@tarojs/taro-h5 3.5.0-canary.1 → 3.5.0
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 +6 -0
- package/dist/api/ad/index.js +1 -1
- package/dist/api/ai/facial.d.ts +9 -0
- package/dist/api/ai/facial.js +1 -1
- package/dist/api/ai/index.d.ts +2 -0
- package/dist/api/ai/visual.d.ts +6 -0
- package/dist/api/ai/visual.js +3 -1
- package/dist/api/alipay/index.d.ts +3 -0
- package/dist/api/alipay/index.js +1 -1
- package/dist/api/base/crypto.d.ts +3 -0
- package/dist/api/base/crypto.js +1 -1
- package/dist/api/base/debug.d.ts +9 -0
- package/dist/api/base/debug.js +1 -1
- package/dist/api/base/index.d.ts +12 -0
- package/dist/api/base/index.js +5 -5
- package/dist/api/base/performance.d.ts +6 -0
- package/dist/api/base/performance.js +1 -1
- package/dist/api/base/system.d.ts +27 -0
- package/dist/api/base/system.js +191 -0
- package/dist/api/base/update.d.ts +6 -0
- package/dist/api/base/update.js +1 -1
- package/dist/api/base/weapp/app-event.d.ts +41 -0
- package/dist/api/base/weapp/app-event.js +56 -5
- package/dist/api/base/weapp/life-cycle.d.ts +6 -0
- package/dist/api/base/weapp/life-cycle.js +1 -1
- package/dist/api/canvas/CanvasContext.d.ts +104 -0
- package/dist/api/canvas/CanvasContext.js +27 -16
- package/dist/api/canvas/canvasGetImageData.d.ts +5 -0
- package/dist/api/canvas/canvasGetImageData.js +2 -2
- package/dist/api/canvas/canvasPutImageData.d.ts +6 -0
- package/dist/api/canvas/canvasPutImageData.js +2 -2
- package/dist/api/canvas/canvasToTempFilePath.d.ts +6 -0
- package/dist/api/canvas/canvasToTempFilePath.js +2 -2
- package/dist/api/canvas/createCanvasContext.d.ts +5 -0
- package/dist/api/canvas/createCanvasContext.js +1 -1
- package/dist/api/canvas/index.d.ts +12 -0
- package/dist/api/canvas/index.js +6 -2
- package/dist/api/cloud/index.d.ts +31 -0
- package/dist/api/cloud/index.js +1 -1
- package/dist/api/data-analysis/index.d.ts +12 -0
- package/dist/api/data-analysis/index.js +1 -1
- package/dist/api/device/accelerometer.d.ts +17 -0
- package/dist/api/device/accelerometer.js +10 -18
- package/dist/api/device/accessibility.d.ts +3 -0
- package/dist/api/device/accessibility.js +1 -1
- package/dist/api/device/battery.d.ts +5 -0
- package/dist/api/device/battery.js +28 -2
- package/dist/api/device/bluetooth-ble.d.ts +48 -0
- package/dist/api/device/bluetooth-ble.js +1 -1
- package/dist/api/device/bluetooth-peripheral.d.ts +9 -0
- package/dist/api/device/bluetooth-peripheral.js +1 -1
- package/dist/api/device/bluetooth.d.ts +39 -0
- package/dist/api/device/bluetooth.js +1 -1
- package/dist/api/device/calendar.d.ts +6 -0
- package/dist/api/device/calendar.js +1 -1
- package/dist/api/device/clipboard.d.ts +15 -0
- package/dist/api/device/clipboard.js +15 -6
- package/dist/api/device/compass.d.ts +17 -0
- package/dist/api/device/compass.js +33 -19
- package/dist/api/device/contact.d.ts +6 -0
- package/dist/api/device/contact.js +1 -1
- package/dist/api/device/crypto.d.ts +3 -0
- package/dist/api/device/crypto.js +1 -1
- package/dist/api/device/gyroscope.d.ts +12 -0
- package/dist/api/device/gyroscope.js +1 -1
- package/dist/api/device/iBeacon.d.ts +21 -0
- package/dist/api/device/iBeacon.js +1 -1
- package/dist/api/device/index.d.ts +23 -0
- package/dist/api/device/index.js +1 -0
- package/dist/api/device/keyboard.d.ts +12 -0
- package/dist/api/device/keyboard.js +1 -1
- package/dist/api/device/memory.d.ts +6 -0
- package/dist/api/device/memory.js +1 -1
- package/dist/api/device/motion.d.ts +17 -0
- package/dist/api/device/motion.js +9 -18
- package/dist/api/device/network.d.ts +20 -0
- package/dist/api/device/network.js +87 -0
- package/dist/api/device/nfc.d.ts +21 -0
- package/dist/api/device/nfc.js +1 -1
- package/dist/api/device/phone.d.ts +2 -0
- package/dist/api/device/phone.js +2 -2
- package/dist/api/device/scan.d.ts +3 -0
- package/dist/api/device/scan.js +9 -5
- package/dist/api/device/screen.d.ts +18 -0
- package/dist/api/device/screen.js +1 -1
- package/dist/api/device/vibrate.d.ts +9 -0
- package/dist/api/device/vibrate.js +6 -8
- package/dist/api/device/wifi.d.ts +33 -0
- package/dist/api/device/wifi.js +2 -1
- package/dist/api/ext/index.d.ts +6 -0
- package/dist/api/ext/index.js +1 -1
- package/dist/api/files/index.d.ts +24 -0
- package/dist/api/files/index.js +1 -1
- package/dist/api/framework/index.d.ts +4 -0
- package/dist/api/index.d.ts +24 -0
- package/dist/api/index.js +2 -2
- package/dist/api/location/chooseLocation.d.ts +6 -0
- package/dist/api/location/chooseLocation.js +22 -8
- package/dist/api/location/getLocation.d.ts +2 -0
- package/dist/api/location/getLocation.js +64 -0
- package/dist/api/location/index.d.ts +32 -0
- package/dist/api/location/index.js +8 -4
- package/dist/api/media/EditorContext.d.ts +42 -0
- package/dist/api/media/EditorContext.js +2 -1
- package/dist/api/media/audio/InnerAudioContext.d.ts +58 -0
- package/dist/api/media/audio/InnerAudioContext.js +3 -3
- package/dist/api/media/audio/index.d.ts +29 -0
- package/dist/api/media/audio/index.js +1 -1
- package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +71 -0
- package/dist/api/media/background-audio/BackgroundAudioManager.js +2 -2
- package/dist/api/media/background-audio/index.d.ts +29 -0
- package/dist/api/media/background-audio/index.js +1 -1
- package/dist/api/media/camera.d.ts +3 -0
- package/dist/api/media/camera.js +1 -1
- package/dist/api/media/image/chooseImage.d.ts +5 -0
- package/dist/api/media/image/chooseImage.js +14 -3
- package/dist/api/media/image/getImageInfo.d.ts +5 -0
- package/dist/api/media/image/getImageInfo.js +18 -3
- package/dist/api/media/image/index.d.ts +15 -0
- package/dist/api/media/image/index.js +2 -2
- package/dist/api/media/image/previewImage.d.ts +8 -0
- package/dist/api/media/image/previewImage.js +14 -5
- package/dist/api/media/index.d.ts +12 -0
- package/dist/api/media/live.d.ts +6 -0
- package/dist/api/media/live.js +1 -1
- package/dist/api/media/map.d.ts +3 -0
- package/dist/api/media/map.js +1 -1
- package/dist/api/media/media-recorder.d.ts +3 -0
- package/dist/api/media/media-recorder.js +1 -1
- package/dist/api/media/recorder.d.ts +9 -0
- package/dist/api/media/recorder.js +1 -1
- package/dist/api/media/video/index.d.ts +24 -0
- package/dist/api/media/video/index.js +2 -2
- package/dist/api/media/video-decoder.d.ts +3 -0
- package/dist/api/media/video-decoder.js +1 -1
- package/dist/api/media/video-processing.d.ts +3 -0
- package/dist/api/media/video-processing.js +1 -1
- package/dist/api/media/voip.d.ts +42 -0
- package/dist/api/media/voip.js +1 -1
- package/dist/api/navigate/index.d.ts +12 -0
- package/dist/api/navigate/index.js +1 -1
- package/dist/api/network/download.d.ts +6 -0
- package/dist/api/network/download.js +2 -1
- package/dist/api/network/index.d.ts +7 -0
- package/dist/api/network/mdns.d.ts +30 -0
- package/dist/api/network/mdns.js +1 -1
- package/dist/api/network/request/index.d.ts +4 -0
- package/dist/api/network/request/index.js +6 -2
- package/dist/api/network/tcp.d.ts +3 -0
- package/dist/api/network/tcp.js +1 -1
- package/dist/api/network/udp.d.ts +3 -0
- package/dist/api/network/udp.js +1 -1
- package/dist/api/network/upload.d.ts +5 -0
- package/dist/api/network/upload.js +4 -8
- package/{src/api/network/utils.ts → dist/api/network/utils.d.ts} +44 -71
- package/dist/api/network/utils.js +1 -0
- package/dist/api/network/websocket/index.d.ts +7 -0
- package/dist/api/network/websocket/index.js +2 -2
- package/dist/api/network/websocket/socketTask.d.ts +25 -0
- package/dist/api/open-api/account.d.ts +3 -0
- package/dist/api/open-api/account.js +1 -1
- package/dist/api/open-api/address.d.ts +3 -0
- package/dist/api/open-api/address.js +1 -1
- package/dist/api/open-api/authorize.d.ts +6 -0
- package/dist/api/open-api/authorize.js +1 -1
- package/dist/api/open-api/card.d.ts +6 -0
- package/dist/api/open-api/card.js +1 -1
- package/dist/api/open-api/channels-live.d.ts +18 -0
- package/dist/api/open-api/channels-live.js +1 -1
- package/dist/api/open-api/customer-service.d.ts +3 -0
- package/dist/api/open-api/customer-service.js +1 -1
- package/dist/api/open-api/facial.d.ts +12 -0
- package/dist/api/open-api/facial.js +1 -1
- package/dist/api/open-api/favorites.d.ts +6 -0
- package/dist/api/open-api/favorites.js +1 -1
- package/dist/api/open-api/group.d.ts +3 -0
- package/dist/api/open-api/group.js +1 -1
- package/dist/api/open-api/index.d.ts +18 -0
- package/dist/api/open-api/invoice.d.ts +6 -0
- package/dist/api/open-api/invoice.js +1 -1
- package/dist/api/open-api/license-plate.d.ts +3 -0
- package/dist/api/open-api/license-plate.js +1 -1
- package/dist/api/open-api/login.d.ts +9 -0
- package/dist/api/open-api/login.js +1 -1
- package/dist/api/open-api/red-package.d.ts +3 -0
- package/dist/api/open-api/red-package.js +1 -1
- package/dist/api/open-api/settings.d.ts +6 -0
- package/dist/api/open-api/settings.js +1 -1
- package/dist/api/open-api/soter.d.ts +9 -0
- package/dist/api/open-api/soter.js +1 -1
- package/dist/api/open-api/subscribe-message.d.ts +3 -0
- package/dist/api/open-api/subscribe-message.js +1 -1
- package/dist/api/open-api/user-info.d.ts +6 -0
- package/dist/api/open-api/user-info.js +1 -1
- package/dist/api/open-api/werun.d.ts +6 -0
- package/dist/api/open-api/werun.js +1 -1
- package/dist/api/payment/index.d.ts +6 -0
- package/dist/api/payment/index.js +1 -1
- package/dist/api/route/index.d.ts +1 -0
- package/dist/api/route/index.js +1 -1
- package/dist/api/share/index.d.ts +30 -0
- package/dist/api/share/index.js +1 -1
- package/dist/api/storage/background-fetch.d.ts +12 -0
- package/dist/api/storage/background-fetch.js +1 -1
- package/dist/api/storage/index.d.ts +18 -0
- package/dist/api/storage/index.js +2 -2
- package/dist/api/swan/index.d.ts +63 -0
- package/dist/api/swan/index.js +1 -1
- package/dist/api/taro.d.ts +12 -0
- package/dist/api/taro.js +4 -5
- package/dist/api/ui/animation/index.d.ts +2 -0
- package/dist/api/ui/background.d.ts +6 -0
- package/dist/api/ui/background.js +1 -1
- package/dist/api/ui/custom-component.d.ts +1 -0
- package/dist/api/ui/fonts.d.ts +2 -0
- package/dist/api/ui/fonts.js +59 -2
- package/dist/api/ui/index.d.ts +12 -0
- package/dist/api/ui/index.js +1 -1
- package/dist/api/ui/interaction/actionSheet.d.ts +61 -0
- package/dist/api/ui/interaction/actionSheet.js +4 -13
- package/dist/api/ui/interaction/index.d.ts +14 -0
- package/dist/api/ui/interaction/index.js +22 -13
- package/dist/api/ui/interaction/modal.d.ts +69 -0
- package/dist/api/ui/interaction/modal.js +8 -28
- package/dist/api/ui/interaction/toast.d.ts +85 -0
- package/dist/api/ui/interaction/toast.js +15 -41
- package/dist/api/ui/menu.d.ts +3 -0
- package/dist/api/ui/menu.js +1 -1
- package/dist/api/ui/navigation-bar/index.d.ts +15 -0
- package/dist/api/ui/navigation-bar/index.js +4 -5
- package/dist/api/ui/pull-down-refresh.d.ts +9 -0
- package/dist/api/ui/pull-down-refresh.js +1 -1
- package/dist/api/ui/scroll/index.d.ts +5 -0
- package/dist/api/ui/scroll/index.js +2 -2
- package/dist/api/ui/sticky.d.ts +3 -0
- package/dist/api/ui/sticky.js +1 -1
- package/dist/api/ui/tab-bar.d.ts +34 -0
- package/dist/api/ui/tab-bar.js +2 -2
- package/dist/api/ui/window.d.ts +15 -0
- package/dist/api/ui/window.js +2 -2
- package/dist/api/worker/index.d.ts +3 -0
- package/dist/api/worker/index.js +1 -1
- package/dist/api/wxml/index.d.ts +5 -0
- package/dist/api/wxml/index.js +1 -1
- package/dist/api/wxml/nodesRef.d.ts +13 -0
- package/dist/api/wxml/selectorQuery.d.ts +24 -0
- package/dist/api/wxml/selectorQuery.js +2 -2
- package/dist/index.cjs.d.ts +1373 -0
- package/dist/index.cjs.js +5021 -8380
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.esm.d.ts +1373 -0
- package/dist/index.esm.js +5194 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/taroApis.d.ts +1364 -0
- package/dist/taroApis.js +2 -1
- package/dist/taroApis.js.map +1 -0
- package/dist/utils/animation.d.ts +6 -0
- package/dist/utils/animation.js +14 -0
- package/dist/utils/handler.d.ts +48 -0
- package/dist/{api/utils → utils}/handler.js +0 -0
- package/dist/utils/index.d.ts +39 -0
- package/dist/{api/utils → utils}/index.js +36 -53
- package/dist/utils/lodash.d.ts +2 -0
- package/dist/utils/lodash.js +29 -0
- package/dist/utils/valid.d.ts +2 -0
- package/dist/utils/valid.js +7 -0
- package/package.json +21 -20
- package/{src/types → types}/api.d.ts +1 -1
- package/types/define.d.ts +2 -0
- package/types/index.d.ts +33 -0
- package/types/overlay.d.ts +9 -0
- package/LICENSE +0 -21
- package/dist/api/base/system/index.js +0 -2
- package/dist/api/base/system/info.js +0 -57
- package/dist/api/base/system/network.js +0 -63
- package/dist/types/type.js +0 -2
- package/src/api/ad/index.ts +0 -5
- package/src/api/ai/facial.ts +0 -6
- package/src/api/ai/index.ts +0 -2
- package/src/api/ai/visual.ts +0 -4
- package/src/api/alipay/index.ts +0 -4
- package/src/api/base/crypto.ts +0 -4
- package/src/api/base/debug.ts +0 -5
- package/src/api/base/index.ts +0 -23
- package/src/api/base/performance.ts +0 -5
- package/src/api/base/system/index.ts +0 -2
- package/src/api/base/system/info.ts +0 -64
- package/src/api/base/system/network.ts +0 -70
- package/src/api/base/update.ts +0 -5
- package/src/api/base/weapp/app-event.ts +0 -19
- package/src/api/base/weapp/life-cycle.ts +0 -5
- package/src/api/canvas/CanvasContext.ts +0 -233
- package/src/api/canvas/canvasGetImageData.ts +0 -27
- package/src/api/canvas/canvasPutImageData.ts +0 -24
- package/src/api/canvas/canvasToTempFilePath.ts +0 -24
- package/src/api/canvas/createCanvasContext.ts +0 -18
- package/src/api/canvas/index.ts +0 -10
- package/src/api/cloud/index.ts +0 -31
- package/src/api/data-analysis/index.ts +0 -6
- package/src/api/device/accelerometer.ts +0 -87
- package/src/api/device/accessibility.ts +0 -4
- package/src/api/device/battery.ts +0 -5
- package/src/api/device/bluetooth-ble.ts +0 -19
- package/src/api/device/bluetooth-peripheral.ts +0 -6
- package/src/api/device/bluetooth.ts +0 -16
- package/src/api/device/calendar.ts +0 -5
- package/src/api/device/clipboard.ts +0 -67
- package/src/api/device/compass.ts +0 -67
- package/src/api/device/contact.ts +0 -5
- package/src/api/device/crypto.ts +0 -4
- package/src/api/device/gyroscope.ts +0 -7
- package/src/api/device/iBeacon.ts +0 -10
- package/src/api/device/index.ts +0 -22
- package/src/api/device/keyboard.ts +0 -7
- package/src/api/device/memory.ts +0 -5
- package/src/api/device/motion.ts +0 -85
- package/src/api/device/nfc.ts +0 -10
- package/src/api/device/phone.ts +0 -30
- package/src/api/device/scan.ts +0 -7
- package/src/api/device/screen.ts +0 -9
- package/src/api/device/vibrate.ts +0 -36
- package/src/api/device/wifi.ts +0 -13
- package/src/api/ext/index.ts +0 -5
- package/src/api/files/index.ts +0 -11
- package/src/api/framework/index.ts +0 -10
- package/src/api/index.ts +0 -25
- package/src/api/location/chooseLocation.ts +0 -106
- package/src/api/location/index.ts +0 -19
- package/src/api/location/style.css +0 -79
- package/src/api/media/EditorContext.ts +0 -29
- package/src/api/media/audio/InnerAudioContext.ts +0 -98
- package/src/api/media/audio/index.ts +0 -20
- package/src/api/media/background-audio/BackgroundAudioManager.ts +0 -103
- package/src/api/media/background-audio/index.ts +0 -17
- package/src/api/media/camera.ts +0 -4
- package/src/api/media/image/chooseImage.ts +0 -78
- package/src/api/media/image/getImageInfo.ts +0 -35
- package/src/api/media/image/index.ts +0 -13
- package/src/api/media/image/previewImage.ts +0 -80
- package/src/api/media/index.ts +0 -12
- package/src/api/media/live.ts +0 -5
- package/src/api/media/map.ts +0 -4
- package/src/api/media/media-recorder.ts +0 -4
- package/src/api/media/recorder.ts +0 -6
- package/src/api/media/video/index.ts +0 -82
- package/src/api/media/video-decoder.ts +0 -4
- package/src/api/media/video-processing.ts +0 -4
- package/src/api/media/voip.ts +0 -17
- package/src/api/navigate/index.ts +0 -7
- package/src/api/network/download.ts +0 -140
- package/src/api/network/index.ts +0 -7
- package/src/api/network/mdns.ts +0 -13
- package/src/api/network/request/index.ts +0 -130
- package/src/api/network/tcp.ts +0 -4
- package/src/api/network/udp.ts +0 -4
- package/src/api/network/upload.ts +0 -174
- package/src/api/network/websocket/index.ts +0 -88
- package/src/api/network/websocket/socketTask.ts +0 -89
- package/src/api/open-api/account.ts +0 -4
- package/src/api/open-api/address.ts +0 -4
- package/src/api/open-api/authorize.ts +0 -5
- package/src/api/open-api/card.ts +0 -5
- package/src/api/open-api/channels-live.ts +0 -9
- package/src/api/open-api/customer-service.ts +0 -4
- package/src/api/open-api/facial.ts +0 -7
- package/src/api/open-api/favorites.ts +0 -5
- package/src/api/open-api/group.ts +0 -4
- package/src/api/open-api/index.ts +0 -18
- package/src/api/open-api/invoice.ts +0 -5
- package/src/api/open-api/license-plate.ts +0 -4
- package/src/api/open-api/login.ts +0 -6
- package/src/api/open-api/red-package.ts +0 -4
- package/src/api/open-api/settings.ts +0 -5
- package/src/api/open-api/soter.ts +0 -6
- package/src/api/open-api/subscribe-message.ts +0 -4
- package/src/api/open-api/user-info.ts +0 -5
- package/src/api/open-api/werun.ts +0 -5
- package/src/api/payment/index.ts +0 -5
- package/src/api/route/index.ts +0 -10
- package/src/api/share/index.ts +0 -13
- package/src/api/storage/background-fetch.ts +0 -7
- package/src/api/storage/index.ts +0 -181
- package/src/api/swan/index.ts +0 -31
- package/src/api/taro.ts +0 -89
- package/src/api/ui/animation/index.ts +0 -356
- package/src/api/ui/background.ts +0 -5
- package/src/api/ui/custom-component.ts +0 -4
- package/src/api/ui/fonts.ts +0 -4
- package/src/api/ui/index.ts +0 -12
- package/src/api/ui/interaction/actionSheet.ts +0 -212
- package/src/api/ui/interaction/index.ts +0 -301
- package/src/api/ui/interaction/modal.ts +0 -237
- package/src/api/ui/interaction/toast.ts +0 -220
- package/src/api/ui/menu.ts +0 -4
- package/src/api/ui/navigation-bar/index.ts +0 -52
- package/src/api/ui/pull-down-refresh.ts +0 -27
- package/src/api/ui/scroll/index.ts +0 -85
- package/src/api/ui/sticky.ts +0 -4
- package/src/api/ui/tab-bar.ts +0 -326
- package/src/api/ui/window.ts +0 -37
- package/src/api/utils/handler.ts +0 -105
- package/src/api/utils/index.ts +0 -190
- package/src/api/worker/index.ts +0 -4
- package/src/api/wxml/index.ts +0 -9
- package/src/api/wxml/nodesRef.ts +0 -56
- package/src/api/wxml/selectorQuery.ts +0 -219
- package/src/index.ts +0 -6
- package/src/types/define.d.ts +0 -2
- package/src/types/index.d.ts +0 -3
- package/src/types/type.ts +0 -32
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const stopGyroscope: () => Promise<{
|
|
2
|
+
errMsg: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const startGyroscope: () => Promise<{
|
|
5
|
+
errMsg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const onGyroscopeChange: () => Promise<{
|
|
8
|
+
errMsg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const offGyroscopeChange: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const stopBeaconDiscovery: () => Promise<{
|
|
2
|
+
errMsg: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const startBeaconDiscovery: () => Promise<{
|
|
5
|
+
errMsg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const onBeaconUpdate: () => Promise<{
|
|
8
|
+
errMsg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const onBeaconServiceChange: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const offBeaconUpdate: () => Promise<{
|
|
14
|
+
errMsg: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const offBeaconServiceChange: () => Promise<{
|
|
17
|
+
errMsg: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const getBeacons: () => Promise<{
|
|
20
|
+
errMsg: string;
|
|
21
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { temporarilyNotSupport } from '
|
|
1
|
+
import { temporarilyNotSupport } from '../../utils';
|
|
2
2
|
// 蓝牙-信标(Beacon)
|
|
3
3
|
export const stopBeaconDiscovery = temporarilyNotSupport('stopBeaconDiscovery');
|
|
4
4
|
export const startBeaconDiscovery = temporarilyNotSupport('startBeaconDiscovery');
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './accelerometer';
|
|
2
|
+
export * from './accessibility';
|
|
3
|
+
export * from './battery';
|
|
4
|
+
export * from './bluetooth';
|
|
5
|
+
export * from './bluetooth-ble';
|
|
6
|
+
export * from './bluetooth-peripheral';
|
|
7
|
+
export * from './calendar';
|
|
8
|
+
export * from './clipboard';
|
|
9
|
+
export * from './compass';
|
|
10
|
+
export * from './contact';
|
|
11
|
+
export * from './crypto';
|
|
12
|
+
export * from './gyroscope';
|
|
13
|
+
export * from './iBeacon';
|
|
14
|
+
export * from './keyboard';
|
|
15
|
+
export * from './memory';
|
|
16
|
+
export * from './motion';
|
|
17
|
+
export * from './network';
|
|
18
|
+
export * from './nfc';
|
|
19
|
+
export * from './phone';
|
|
20
|
+
export * from './scan';
|
|
21
|
+
export * from './screen';
|
|
22
|
+
export * from './vibrate';
|
|
23
|
+
export * from './wifi';
|
package/dist/api/device/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const onKeyboardHeightChange: () => Promise<{
|
|
2
|
+
errMsg: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const offKeyboardHeightChange: () => Promise<{
|
|
5
|
+
errMsg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const hideKeyboard: () => Promise<{
|
|
8
|
+
errMsg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const getSelectedTextRange: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { temporarilyNotSupport } from '
|
|
1
|
+
import { temporarilyNotSupport } from '../../utils';
|
|
2
2
|
// 键盘
|
|
3
3
|
export const onKeyboardHeightChange = temporarilyNotSupport('onKeyboardHeightChange');
|
|
4
4
|
export const offKeyboardHeightChange = temporarilyNotSupport('offKeyboardHeightChange');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Taro from '@tarojs/api';
|
|
2
|
+
/**
|
|
3
|
+
* 停止监听设备方向的变化。
|
|
4
|
+
*/
|
|
5
|
+
export declare const stopDeviceMotionListening: typeof Taro.stopDeviceMotionListening;
|
|
6
|
+
/**
|
|
7
|
+
* 开始监听设备方向的变化。
|
|
8
|
+
*/
|
|
9
|
+
export declare const startDeviceMotionListening: typeof Taro.startDeviceMotionListening;
|
|
10
|
+
/**
|
|
11
|
+
* 监听设备方向变化事件。
|
|
12
|
+
*/
|
|
13
|
+
export declare const onDeviceMotionChange: typeof Taro.onDeviceMotionChange;
|
|
14
|
+
/**
|
|
15
|
+
* 取消监听设备方向变化事件,参数为空,则取消所有的事件监听。
|
|
16
|
+
*/
|
|
17
|
+
export declare const offDeviceMotionChange: typeof Taro.offDeviceMotionChange;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { throttle } from '../../utils';
|
|
2
|
+
import { CallbackManager, MethodHandler } from '../../utils/handler';
|
|
2
3
|
const callbackManager = new CallbackManager();
|
|
3
4
|
let deviceMotionListener;
|
|
4
5
|
const INTERVAL_MAP = {
|
|
@@ -28,22 +29,6 @@ export const stopDeviceMotionListening = ({ success, fail, complete } = {}) => {
|
|
|
28
29
|
return handle.fail({ errMsg: e.message });
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
|
-
const getDeviceOrientationListener = interval => {
|
|
32
|
-
let lock;
|
|
33
|
-
let timer;
|
|
34
|
-
return evt => {
|
|
35
|
-
if (lock)
|
|
36
|
-
return;
|
|
37
|
-
lock = true;
|
|
38
|
-
timer && clearTimeout(timer);
|
|
39
|
-
callbackManager.trigger({
|
|
40
|
-
alpha: evt.alpha,
|
|
41
|
-
beta: evt.beta,
|
|
42
|
-
gamma: evt.gamma
|
|
43
|
-
});
|
|
44
|
-
timer = setTimeout(() => { lock = false; }, interval);
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
32
|
/**
|
|
48
33
|
* 开始监听设备方向的变化。
|
|
49
34
|
*/
|
|
@@ -55,7 +40,13 @@ export const startDeviceMotionListening = ({ interval = 'normal', success, fail,
|
|
|
55
40
|
if (deviceMotionListener) {
|
|
56
41
|
stopDeviceMotionListening();
|
|
57
42
|
}
|
|
58
|
-
deviceMotionListener =
|
|
43
|
+
deviceMotionListener = throttle((evt) => {
|
|
44
|
+
callbackManager.trigger({
|
|
45
|
+
alpha: evt.alpha,
|
|
46
|
+
beta: evt.beta,
|
|
47
|
+
gamma: evt.gamma
|
|
48
|
+
});
|
|
49
|
+
}, intervalObj.interval);
|
|
59
50
|
window.addEventListener('deviceorientation', deviceMotionListener, true);
|
|
60
51
|
}
|
|
61
52
|
else {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Taro from '@tarojs/api';
|
|
2
|
+
export declare const getNetworkType: typeof Taro.getNetworkType;
|
|
3
|
+
/**
|
|
4
|
+
* 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。
|
|
5
|
+
* - 出现三次以上连接超时
|
|
6
|
+
* - 出现三次 rtt 超过 400
|
|
7
|
+
* - 出现三次以上的丢包
|
|
8
|
+
* > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
|
|
9
|
+
*/
|
|
10
|
+
export declare const onNetworkWeakChange: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const onNetworkStatusChange: typeof Taro.onNetworkStatusChange;
|
|
14
|
+
export declare const offNetworkWeakChange: () => Promise<{
|
|
15
|
+
errMsg: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const offNetworkStatusChange: typeof Taro.offNetworkStatusChange;
|
|
18
|
+
export declare const getLocalIPAddress: () => Promise<{
|
|
19
|
+
errMsg: string;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { temporarilyNotSupport } from '../../utils';
|
|
11
|
+
import { CallbackManager, MethodHandler } from '../../utils/handler';
|
|
12
|
+
function getConnection() {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
return navigator.connection || navigator.mozConnection || navigator.webkitConnection || navigator.msConnection;
|
|
15
|
+
}
|
|
16
|
+
export const getNetworkType = (options = {}) => {
|
|
17
|
+
const connection = getConnection();
|
|
18
|
+
const { success, fail, complete } = options;
|
|
19
|
+
const handle = new MethodHandler({ name: 'getNetworkType', success, fail, complete });
|
|
20
|
+
let networkType = 'unknown';
|
|
21
|
+
// 浏览器不支持获取网络状态
|
|
22
|
+
if (!connection) {
|
|
23
|
+
return handle.success({ networkType });
|
|
24
|
+
}
|
|
25
|
+
// Supports only the navigator.connection.type value which doesn't match the latest spec.
|
|
26
|
+
// https://www.davidbcalhoun.com/2010/using-navigator-connection-android/
|
|
27
|
+
if (!isNaN(Number(connection.type))) {
|
|
28
|
+
switch (connection.type) {
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
case connection.WIFI:
|
|
31
|
+
networkType = 'wifi';
|
|
32
|
+
break;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
case connection.CELL_3G:
|
|
35
|
+
networkType = '3g';
|
|
36
|
+
break;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
case connection.CELL_2G:
|
|
39
|
+
networkType = '2g';
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
// ETHERNET, UNKNOWN
|
|
43
|
+
networkType = 'unknown';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else if (connection.type) {
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
networkType = connection.type; // Only supports the type value.
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
}
|
|
51
|
+
else if (connection.effectiveType) {
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
networkType = connection.effectiveType;
|
|
54
|
+
}
|
|
55
|
+
return handle.success({ networkType });
|
|
56
|
+
};
|
|
57
|
+
const networkStatusManager = new CallbackManager();
|
|
58
|
+
const networkStatusListener = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
const { networkType } = yield getNetworkType();
|
|
60
|
+
const isConnected = networkType !== 'none';
|
|
61
|
+
const obj = { isConnected, networkType };
|
|
62
|
+
networkStatusManager.trigger(obj);
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。
|
|
66
|
+
* - 出现三次以上连接超时
|
|
67
|
+
* - 出现三次 rtt 超过 400
|
|
68
|
+
* - 出现三次以上的丢包
|
|
69
|
+
* > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
|
|
70
|
+
*/
|
|
71
|
+
export const onNetworkWeakChange = temporarilyNotSupport('onNetworkWeakChange');
|
|
72
|
+
export const onNetworkStatusChange = callback => {
|
|
73
|
+
networkStatusManager.add(callback);
|
|
74
|
+
const connection = getConnection();
|
|
75
|
+
if (connection && networkStatusManager.count() === 1) {
|
|
76
|
+
connection.addEventListener('change', networkStatusListener);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export const offNetworkWeakChange = temporarilyNotSupport('offNetworkStatusChange');
|
|
80
|
+
export const offNetworkStatusChange = callback => {
|
|
81
|
+
networkStatusManager.remove(callback);
|
|
82
|
+
const connection = getConnection();
|
|
83
|
+
if (connection && networkStatusManager.count() === 0) {
|
|
84
|
+
connection.removeEventListener('change', networkStatusListener);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
export const getLocalIPAddress = temporarilyNotSupport('getLocalIPAddress');
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const stopHCE: () => Promise<{
|
|
2
|
+
errMsg: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const startHCE: () => Promise<{
|
|
5
|
+
errMsg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const sendHCEMessage: () => Promise<{
|
|
8
|
+
errMsg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const onHCEMessage: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const offHCEMessage: () => Promise<{
|
|
14
|
+
errMsg: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const getNFCAdapter: () => Promise<{
|
|
17
|
+
errMsg: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const getHCEState: () => Promise<{
|
|
20
|
+
errMsg: string;
|
|
21
|
+
}>;
|
package/dist/api/device/nfc.js
CHANGED
package/dist/api/device/phone.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MethodHandler } from '
|
|
1
|
+
import { getParameterError, shouldBeObject } from '../../utils';
|
|
2
|
+
import { MethodHandler } from '../../utils/handler';
|
|
3
3
|
export const makePhoneCall = (options) => {
|
|
4
4
|
// options must be an Object
|
|
5
5
|
const isObject = shouldBeObject(options);
|
package/dist/api/device/scan.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { processOpenApi } from '
|
|
1
|
+
import { processOpenApi } from '../../utils';
|
|
2
2
|
// 扫码
|
|
3
|
-
export const scanCode = processOpenApi(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export const scanCode = processOpenApi({
|
|
4
|
+
name: 'scanQRCode',
|
|
5
|
+
defaultOptions: { needResult: 1 },
|
|
6
|
+
formatResult: res => ({
|
|
7
|
+
errMsg: res.errMsg === 'scanQRCode:ok' ? 'scanCode:ok' : res.errMsg,
|
|
8
|
+
result: res.resultStr
|
|
9
|
+
})
|
|
10
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const setVisualEffectOnCapture: () => Promise<{
|
|
2
|
+
errMsg: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const setScreenBrightness: () => Promise<{
|
|
5
|
+
errMsg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const setKeepScreenOn: () => Promise<{
|
|
8
|
+
errMsg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const onUserCaptureScreen: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const offUserCaptureScreen: () => Promise<{
|
|
14
|
+
errMsg: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const getScreenBrightness: () => Promise<{
|
|
17
|
+
errMsg: string;
|
|
18
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { temporarilyNotSupport } from '
|
|
1
|
+
import { temporarilyNotSupport } from '../../utils';
|
|
2
2
|
// 屏幕
|
|
3
3
|
export const setVisualEffectOnCapture = temporarilyNotSupport('setVisualEffectOnCapture');
|
|
4
4
|
export const setScreenBrightness = temporarilyNotSupport('setScreenBrightness');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Taro from '@tarojs/api';
|
|
2
|
+
/**
|
|
3
|
+
* 使手机发生较短时间的振动(15 ms)。仅在 iPhone 7 / 7 Plus 以上及 Android 机型生效
|
|
4
|
+
*/
|
|
5
|
+
export declare const vibrateShort: typeof Taro.vibrateShort;
|
|
6
|
+
/**
|
|
7
|
+
* 使手机发生较长时间的振动(400 ms)
|
|
8
|
+
*/
|
|
9
|
+
export declare const vibrateLong: typeof Taro.vibrateLong;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MethodHandler } from '
|
|
1
|
+
import { MethodHandler } from '../../utils/handler';
|
|
2
2
|
const vibrator = function vibrator(mm) {
|
|
3
3
|
try {
|
|
4
4
|
return window.navigator.vibrate(mm);
|
|
5
5
|
}
|
|
6
6
|
catch (e) {
|
|
7
|
-
console.warn('当前浏览器不支持vibrate');
|
|
7
|
+
console.warn('当前浏览器不支持 vibrate。');
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -12,12 +12,11 @@ const vibrator = function vibrator(mm) {
|
|
|
12
12
|
*/
|
|
13
13
|
export const vibrateShort = ({ success, fail, complete } = {}) => {
|
|
14
14
|
const handle = new MethodHandler({ name: 'vibrateShort', success, fail, complete });
|
|
15
|
-
if (vibrator) {
|
|
16
|
-
vibrator(15);
|
|
15
|
+
if (vibrator(15)) {
|
|
17
16
|
return handle.success();
|
|
18
17
|
}
|
|
19
18
|
else {
|
|
20
|
-
return handle.fail();
|
|
19
|
+
return handle.fail({ errMsg: 'style is not support' });
|
|
21
20
|
}
|
|
22
21
|
};
|
|
23
22
|
/**
|
|
@@ -25,11 +24,10 @@ export const vibrateShort = ({ success, fail, complete } = {}) => {
|
|
|
25
24
|
*/
|
|
26
25
|
export const vibrateLong = ({ success, fail, complete } = {}) => {
|
|
27
26
|
const handle = new MethodHandler({ name: 'vibrateLong', success, fail, complete });
|
|
28
|
-
if (vibrator) {
|
|
29
|
-
vibrator(400);
|
|
27
|
+
if (vibrator(400)) {
|
|
30
28
|
return handle.success();
|
|
31
29
|
}
|
|
32
30
|
else {
|
|
33
|
-
return handle.fail();
|
|
31
|
+
return handle.fail({ errMsg: 'style is not support' });
|
|
34
32
|
}
|
|
35
33
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const stopWifi: () => Promise<{
|
|
2
|
+
errMsg: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const startWifi: () => Promise<{
|
|
5
|
+
errMsg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const setWifiList: () => Promise<{
|
|
8
|
+
errMsg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const onWifiConnectedWithPartialInfo: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const onWifiConnected: () => Promise<{
|
|
14
|
+
errMsg: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const onGetWifiList: () => Promise<{
|
|
17
|
+
errMsg: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const offWifiConnected: () => Promise<{
|
|
20
|
+
errMsg: string;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const offGetWifiList: () => Promise<{
|
|
23
|
+
errMsg: string;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const getWifiList: () => Promise<{
|
|
26
|
+
errMsg: string;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const getConnectedWifi: () => Promise<{
|
|
29
|
+
errMsg: string;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const connectWifi: () => Promise<{
|
|
32
|
+
errMsg: string;
|
|
33
|
+
}>;
|
package/dist/api/device/wifi.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { temporarilyNotSupport } from '
|
|
1
|
+
import { temporarilyNotSupport } from '../../utils';
|
|
2
2
|
// Wi-Fi
|
|
3
3
|
export const stopWifi = temporarilyNotSupport('stopWifi');
|
|
4
4
|
export const startWifi = temporarilyNotSupport('startWifi');
|
|
5
5
|
export const setWifiList = temporarilyNotSupport('setWifiList');
|
|
6
|
+
export const onWifiConnectedWithPartialInfo = temporarilyNotSupport('onWifiConnectedWithPartialInfo');
|
|
6
7
|
export const onWifiConnected = temporarilyNotSupport('onWifiConnected');
|
|
7
8
|
export const onGetWifiList = temporarilyNotSupport('onGetWifiList');
|
|
8
9
|
export const offWifiConnected = temporarilyNotSupport('offWifiConnected');
|
package/dist/api/ext/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const saveFileToDisk: () => Promise<{
|
|
2
|
+
errMsg: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const saveFile: () => Promise<{
|
|
5
|
+
errMsg: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const removeSavedFile: () => Promise<{
|
|
8
|
+
errMsg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const openDocument: () => Promise<{
|
|
11
|
+
errMsg: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const getSavedFileList: () => Promise<{
|
|
14
|
+
errMsg: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const getSavedFileInfo: () => Promise<{
|
|
17
|
+
errMsg: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const getFileSystemManager: () => Promise<{
|
|
20
|
+
errMsg: string;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const getFileInfo: () => Promise<{
|
|
23
|
+
errMsg: string;
|
|
24
|
+
}>;
|
package/dist/api/files/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './ad';
|
|
2
|
+
export * from './ai';
|
|
3
|
+
export * from './alipay';
|
|
4
|
+
export * from './base';
|
|
5
|
+
export * from './canvas';
|
|
6
|
+
export * from './cloud';
|
|
7
|
+
export * from './data-analysis';
|
|
8
|
+
export * from './device';
|
|
9
|
+
export * from './ext';
|
|
10
|
+
export * from './files';
|
|
11
|
+
export * from './framework';
|
|
12
|
+
export * from './location';
|
|
13
|
+
export * from './media';
|
|
14
|
+
export * from './navigate';
|
|
15
|
+
export * from './network';
|
|
16
|
+
export * from './open-api';
|
|
17
|
+
export * from './payment';
|
|
18
|
+
export * from './route';
|
|
19
|
+
export * from './share';
|
|
20
|
+
export * from './storage';
|
|
21
|
+
export * from './swan';
|
|
22
|
+
export * from './ui';
|
|
23
|
+
export * from './worker';
|
|
24
|
+
export * from './wxml';
|
package/dist/api/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './ad';
|
|
2
2
|
export * from './ai';
|
|
3
|
+
export * from './alipay';
|
|
3
4
|
export * from './base';
|
|
4
5
|
export * from './canvas';
|
|
5
6
|
export * from './cloud';
|
|
@@ -17,8 +18,7 @@ export * from './payment';
|
|
|
17
18
|
export * from './route';
|
|
18
19
|
export * from './share';
|
|
19
20
|
export * from './storage';
|
|
21
|
+
export * from './swan';
|
|
20
22
|
export * from './ui';
|
|
21
23
|
export * from './worker';
|
|
22
24
|
export * from './wxml';
|
|
23
|
-
export * from './alipay';
|
|
24
|
-
export * from './swan';
|