@tarojs/taro-h5 3.7.0-alpha.2 → 3.7.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/ad/index.js +2 -2
- package/dist/api/ad/index.js.map +1 -1
- package/dist/api/ai/facial.js +3 -3
- package/dist/api/ai/facial.js.map +1 -1
- package/dist/api/ai/index.d.ts +3 -2
- package/dist/api/ai/index.js +1 -0
- package/dist/api/ai/index.js.map +1 -1
- package/dist/api/ai/inference.d.ts +3 -0
- package/dist/api/ai/inference.js +8 -0
- package/dist/api/ai/inference.js.map +1 -0
- package/dist/api/ai/visual.js +2 -2
- package/dist/api/ai/visual.js.map +1 -1
- package/dist/api/alipay/index.js +1 -1
- package/dist/api/alipay/index.js.map +1 -1
- package/dist/api/base/crypto.js +1 -1
- package/dist/api/base/crypto.js.map +1 -1
- package/dist/api/base/debug.js +3 -3
- package/dist/api/base/debug.js.map +1 -1
- package/dist/api/base/index.d.ts +8 -9
- package/dist/api/base/index.js +6 -6
- package/dist/api/base/index.js.map +1 -1
- package/dist/api/base/performance.d.ts +4 -1
- package/dist/api/base/performance.js +6 -3
- package/dist/api/base/performance.js.map +1 -1
- package/dist/api/base/system.d.ts +4 -1
- package/dist/api/base/system.js +6 -3
- package/dist/api/base/system.js.map +1 -1
- package/dist/api/base/update.js +2 -2
- package/dist/api/base/update.js.map +1 -1
- package/dist/api/base/weapp/app-event.d.ts +13 -11
- package/dist/api/base/weapp/app-event.js +84 -14
- package/dist/api/base/weapp/app-event.js.map +1 -1
- package/dist/api/canvas/CanvasContext.d.ts +2 -1
- package/dist/api/canvas/CanvasContext.js.map +1 -1
- package/dist/api/canvas/index.d.ts +4 -4
- package/dist/api/canvas/index.js +1 -1
- package/dist/api/canvas/index.js.map +1 -1
- package/dist/api/data-analysis/index.js +4 -4
- package/dist/api/data-analysis/index.js.map +1 -1
- package/dist/api/device/accelerometer.js +1 -2
- package/dist/api/device/accelerometer.js.map +1 -1
- package/dist/api/device/accessibility.js +1 -1
- package/dist/api/device/accessibility.js.map +1 -1
- package/dist/api/device/battery.js +1 -1
- package/dist/api/device/battery.js.map +1 -1
- package/dist/api/device/bluetooth-ble.js +16 -16
- package/dist/api/device/bluetooth-ble.js.map +1 -1
- package/dist/api/device/bluetooth-peripheral.js +3 -3
- package/dist/api/device/bluetooth-peripheral.js.map +1 -1
- package/dist/api/device/bluetooth.js +13 -13
- package/dist/api/device/bluetooth.js.map +1 -1
- package/dist/api/device/calendar.d.ts +3 -2
- package/dist/api/device/calendar.js +142 -3
- package/dist/api/device/calendar.js.map +1 -1
- package/dist/api/device/compass.js +1 -2
- package/dist/api/device/compass.js.map +1 -1
- package/dist/api/device/contact.js +2 -2
- package/dist/api/device/contact.js.map +1 -1
- package/dist/api/device/crypto.js +1 -1
- package/dist/api/device/crypto.js.map +1 -1
- package/dist/api/device/gyroscope.js +4 -4
- package/dist/api/device/gyroscope.js.map +1 -1
- package/dist/api/device/iBeacon.js +7 -7
- package/dist/api/device/iBeacon.js.map +1 -1
- package/dist/api/device/index.d.ts +24 -23
- package/dist/api/device/index.js +3 -2
- package/dist/api/device/index.js.map +1 -1
- package/dist/api/device/keyboard.js +4 -4
- package/dist/api/device/keyboard.js.map +1 -1
- package/dist/api/device/memory.js +2 -2
- package/dist/api/device/memory.js.map +1 -1
- package/dist/api/device/motion.js +1 -2
- package/dist/api/device/motion.js.map +1 -1
- package/dist/api/device/network.js +3 -3
- package/dist/api/device/network.js.map +1 -1
- package/dist/api/device/nfc.js +7 -7
- package/dist/api/device/nfc.js.map +1 -1
- package/dist/api/device/scan.js +1 -1
- package/dist/api/device/scan.js.map +1 -1
- package/dist/api/device/screen.d.ts +4 -1
- package/dist/api/device/screen.js +10 -7
- package/dist/api/device/screen.js.map +1 -1
- package/dist/api/device/sms.d.ts +2 -0
- package/dist/api/device/sms.js +7 -0
- package/dist/api/device/sms.js.map +1 -0
- package/dist/api/device/wifi.d.ts +2 -1
- package/dist/api/device/wifi.js +13 -12
- package/dist/api/device/wifi.js.map +1 -1
- package/dist/api/ext/index.js +2 -2
- package/dist/api/ext/index.js.map +1 -1
- package/dist/api/files/index.js +8 -8
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/framework/index.d.ts +1 -1
- package/dist/api/index.d.ts +25 -24
- package/dist/api/index.js +24 -14
- package/dist/api/index.js.map +1 -1
- package/dist/api/location/chooseLocation.js +9 -5
- package/dist/api/location/chooseLocation.js.map +1 -1
- package/dist/api/location/getLocation.js +1 -1
- package/dist/api/location/getLocation.js.map +1 -1
- package/dist/api/location/index.d.ts +2 -2
- package/dist/api/location/index.js +10 -10
- package/dist/api/location/index.js.map +1 -1
- package/dist/api/media/audio/InnerAudioContext.d.ts +3 -1
- package/dist/api/media/audio/InnerAudioContext.js +4 -1
- package/dist/api/media/audio/InnerAudioContext.js.map +1 -1
- package/dist/api/media/audio/index.js +8 -8
- package/dist/api/media/audio/index.js.map +1 -1
- package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +1 -1
- package/dist/api/media/background-audio/index.d.ts +1 -1
- package/dist/api/media/background-audio/index.js +8 -8
- package/dist/api/media/background-audio/index.js.map +1 -1
- package/dist/api/media/camera.js +1 -1
- package/dist/api/media/camera.js.map +1 -1
- package/dist/api/media/image/chooseImage.d.ts +1 -0
- package/dist/api/media/image/chooseImage.js +28 -71
- package/dist/api/media/image/chooseImage.js.map +1 -1
- package/dist/api/media/image/index.d.ts +9 -6
- package/dist/api/media/image/index.js +8 -7
- package/dist/api/media/image/index.js.map +1 -1
- package/dist/api/media/image/previewImage.js +5 -5
- package/dist/api/media/image/previewImage.js.map +1 -1
- package/dist/api/media/image/saveImageToPhotosAlbum.d.ts +3 -0
- package/dist/api/media/image/saveImageToPhotosAlbum.js +30 -0
- package/dist/api/media/image/saveImageToPhotosAlbum.js.map +1 -0
- package/dist/api/media/index.d.ts +12 -12
- package/dist/api/media/index.js +3 -3
- package/dist/api/media/live.js +2 -2
- package/dist/api/media/live.js.map +1 -1
- package/dist/api/media/map.js +1 -1
- package/dist/api/media/map.js.map +1 -1
- package/dist/api/media/media-recorder.js +1 -1
- package/dist/api/media/media-recorder.js.map +1 -1
- package/dist/api/media/recorder.js +3 -3
- package/dist/api/media/recorder.js.map +1 -1
- package/dist/api/media/video/chooseMedia.d.ts +6 -0
- package/dist/api/media/video/chooseMedia.js +208 -0
- package/dist/api/media/video/chooseMedia.js.map +1 -0
- package/dist/api/media/video/chooseVideo.d.ts +7 -0
- package/dist/api/media/video/chooseVideo.js +44 -0
- package/dist/api/media/video/chooseVideo.js.map +1 -0
- package/dist/api/media/video/getVideoInfo.d.ts +3 -0
- package/dist/api/media/video/getVideoInfo.js +63 -0
- package/dist/api/media/video/getVideoInfo.js.map +1 -0
- package/dist/api/media/video/index.d.ts +5 -8
- package/dist/api/media/video/index.js +8 -67
- package/dist/api/media/video/index.js.map +1 -1
- package/dist/api/media/video/saveVideoToPhotosAlbum.d.ts +3 -0
- package/dist/api/media/video/saveVideoToPhotosAlbum.js +30 -0
- package/dist/api/media/video/saveVideoToPhotosAlbum.js.map +1 -0
- package/dist/api/media/video-decoder.js +1 -1
- package/dist/api/media/video-decoder.js.map +1 -1
- package/dist/api/media/video-processing.js +1 -1
- package/dist/api/media/video-processing.js.map +1 -1
- package/dist/api/media/voip.d.ts +3 -1
- package/dist/api/media/voip.js +17 -15
- package/dist/api/media/voip.js.map +1 -1
- package/dist/api/navigate/index.js +5 -5
- package/dist/api/navigate/index.js.map +1 -1
- package/dist/api/network/index.d.ts +7 -7
- package/dist/api/network/mdns.js +10 -10
- package/dist/api/network/mdns.js.map +1 -1
- package/dist/api/network/request/index.d.ts +1 -1
- package/dist/api/network/request/index.js +23 -18
- package/dist/api/network/request/index.js.map +1 -1
- package/dist/api/network/tcp.js +1 -1
- package/dist/api/network/tcp.js.map +1 -1
- package/dist/api/network/udp.js +1 -1
- package/dist/api/network/udp.js.map +1 -1
- package/dist/api/network/upload.js.map +1 -1
- package/dist/api/open-api/account.js +1 -1
- package/dist/api/open-api/account.js.map +1 -1
- package/dist/api/open-api/address.js +1 -1
- package/dist/api/open-api/address.js.map +1 -1
- package/dist/api/open-api/authorize.js +2 -2
- package/dist/api/open-api/authorize.js.map +1 -1
- package/dist/api/open-api/card.js +2 -2
- package/dist/api/open-api/card.js.map +1 -1
- package/dist/api/open-api/channels-live.d.ts +3 -1
- package/dist/api/open-api/channels-live.js +9 -7
- package/dist/api/open-api/channels-live.js.map +1 -1
- package/dist/api/open-api/customer-service.js +1 -1
- package/dist/api/open-api/customer-service.js.map +1 -1
- package/dist/api/open-api/device-voip.d.ts +3 -0
- package/dist/api/open-api/device-voip.js +8 -0
- package/dist/api/open-api/device-voip.js.map +1 -0
- package/dist/api/open-api/facial.js +4 -4
- package/dist/api/open-api/facial.js.map +1 -1
- package/dist/api/open-api/favorites.js +3 -3
- package/dist/api/open-api/favorites.js.map +1 -1
- package/dist/api/open-api/group.js +1 -1
- package/dist/api/open-api/group.js.map +1 -1
- package/dist/api/open-api/index.d.ts +19 -18
- package/dist/api/open-api/index.js +3 -2
- package/dist/api/open-api/index.js.map +1 -1
- package/dist/api/open-api/invoice.js +2 -2
- package/dist/api/open-api/invoice.js.map +1 -1
- package/dist/api/open-api/license-plate.js +1 -1
- package/dist/api/open-api/license-plate.js.map +1 -1
- package/dist/api/open-api/login.js +3 -3
- package/dist/api/open-api/login.js.map +1 -1
- package/dist/api/open-api/red-package.js +1 -1
- package/dist/api/open-api/red-package.js.map +1 -1
- package/dist/api/open-api/settings.js +2 -2
- package/dist/api/open-api/settings.js.map +1 -1
- package/dist/api/open-api/soter.js +3 -3
- package/dist/api/open-api/soter.js.map +1 -1
- package/dist/api/open-api/subscribe-message.d.ts +2 -1
- package/dist/api/open-api/subscribe-message.js +4 -2
- package/dist/api/open-api/subscribe-message.js.map +1 -1
- package/dist/api/open-api/user-info.js +2 -2
- package/dist/api/open-api/user-info.js.map +1 -1
- package/dist/api/open-api/werun.js +2 -2
- package/dist/api/open-api/werun.js.map +1 -1
- package/dist/api/payment/index.d.ts +2 -1
- package/dist/api/payment/index.js +4 -3
- package/dist/api/payment/index.js.map +1 -1
- package/dist/api/qq/index.d.ts +2 -0
- package/dist/api/qq/index.js +7 -0
- package/dist/api/qq/index.js.map +1 -0
- package/dist/api/share/index.d.ts +10 -0
- package/dist/api/share/index.js +21 -11
- package/dist/api/share/index.js.map +1 -1
- package/dist/api/storage/background-fetch.js +4 -4
- package/dist/api/storage/background-fetch.js.map +1 -1
- package/dist/api/storage/cache-manager.d.ts +2 -0
- package/dist/api/storage/cache-manager.js +7 -0
- package/dist/api/storage/cache-manager.js.map +1 -0
- package/dist/api/storage/index.d.ts +7 -2
- package/dist/api/storage/index.js +8 -3
- package/dist/api/storage/index.js.map +1 -1
- package/dist/api/swan/index.js +21 -21
- package/dist/api/swan/index.js.map +1 -1
- package/dist/api/taro.d.ts +7 -2
- package/dist/api/taro.js +13 -4
- package/dist/api/taro.js.map +1 -1
- package/dist/api/ui/background.js +2 -2
- package/dist/api/ui/background.js.map +1 -1
- package/dist/api/ui/index.d.ts +12 -12
- package/dist/api/ui/index.js +1 -1
- package/dist/api/ui/interaction/index.d.ts +1 -1
- package/dist/api/ui/interaction/index.js +4 -4
- package/dist/api/ui/interaction/index.js.map +1 -1
- package/dist/api/ui/interaction/modal.js +6 -0
- package/dist/api/ui/interaction/modal.js.map +1 -1
- package/dist/api/ui/interaction/toast.js +4 -0
- package/dist/api/ui/interaction/toast.js.map +1 -1
- package/dist/api/ui/menu.js +1 -1
- package/dist/api/ui/menu.js.map +1 -1
- package/dist/api/ui/navigation-bar/index.js +3 -3
- package/dist/api/ui/navigation-bar/index.js.map +1 -1
- package/dist/api/ui/scroll/index.js +4 -3
- package/dist/api/ui/scroll/index.js.map +1 -1
- package/dist/api/ui/sticky.js +1 -1
- package/dist/api/ui/sticky.js.map +1 -1
- package/dist/api/ui/window.d.ts +2 -1
- package/dist/api/ui/window.js +3 -2
- package/dist/api/ui/window.js.map +1 -1
- package/dist/api/worker/index.js +1 -1
- package/dist/api/worker/index.js.map +1 -1
- package/dist/api/wxml/IntersectionObserver.d.ts +1 -1
- package/dist/api/wxml/IntersectionObserver.js +15 -13
- package/dist/api/wxml/IntersectionObserver.js.map +1 -1
- package/dist/api/wxml/MediaQueryObserver.d.ts +1 -1
- package/dist/api/wxml/MediaQueryObserver.js +1 -2
- package/dist/api/wxml/MediaQueryObserver.js.map +1 -1
- package/dist/api/wxml/nodesRef.d.ts +1 -1
- package/dist/api/wxml/selectorQuery.d.ts +1 -1
- package/dist/api/wxml/selectorQuery.js +9 -6
- package/dist/api/wxml/selectorQuery.js.map +1 -1
- package/dist/index.cjs.d.ts +95 -51
- package/dist/index.cjs.js +3226 -2710
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.d.ts +95 -51
- package/dist/index.esm.js +2401 -1914
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +29 -15
- package/dist/index.js.map +1 -1
- package/dist/utils/handler.d.ts +13 -26
- package/dist/utils/handler.js +4 -16
- package/dist/utils/handler.js.map +1 -1
- package/dist/utils/helper.d.ts +2 -0
- package/dist/utils/helper.js +11 -0
- package/dist/utils/helper.js.map +1 -0
- package/dist/utils/index.d.ts +7 -6
- package/dist/utils/index.js +4 -12
- package/dist/utils/index.js.map +1 -1
- package/package.json +20 -14
- package/dist/utils/lodash.d.ts +0 -3
- package/dist/utils/lodash.js +0 -32
- package/dist/utils/lodash.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 加密
|
|
4
|
-
const getRandomValues = temporarilyNotSupport('getRandomValues');
|
|
4
|
+
const getRandomValues = /* @__PURE__ */ temporarilyNotSupport('getRandomValues');
|
|
5
5
|
|
|
6
6
|
export { getRandomValues };
|
|
7
7
|
//# sourceMappingURL=crypto.js.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"crypto.js","sources":["../../../src/api/device/crypto.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 加密\nexport const getRandomValues = /* @__PURE__ */ temporarilyNotSupport('getRandomValues')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 陀螺仪
|
|
4
|
-
const stopGyroscope = temporarilyNotSupport('stopGyroscope');
|
|
5
|
-
const startGyroscope = temporarilyNotSupport('startGyroscope');
|
|
6
|
-
const onGyroscopeChange = temporarilyNotSupport('onGyroscopeChange');
|
|
7
|
-
const offGyroscopeChange = temporarilyNotSupport('offGyroscopeChange');
|
|
4
|
+
const stopGyroscope = /* @__PURE__ */ temporarilyNotSupport('stopGyroscope');
|
|
5
|
+
const startGyroscope = /* @__PURE__ */ temporarilyNotSupport('startGyroscope');
|
|
6
|
+
const onGyroscopeChange = /* @__PURE__ */ temporarilyNotSupport('onGyroscopeChange');
|
|
7
|
+
const offGyroscopeChange = /* @__PURE__ */ temporarilyNotSupport('offGyroscopeChange');
|
|
8
8
|
|
|
9
9
|
export { offGyroscopeChange, onGyroscopeChange, startGyroscope, stopGyroscope };
|
|
10
10
|
//# sourceMappingURL=gyroscope.js.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"gyroscope.js","sources":["../../../src/api/device/gyroscope.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 陀螺仪\nexport const stopGyroscope = /* @__PURE__ */ temporarilyNotSupport('stopGyroscope')\nexport const startGyroscope = /* @__PURE__ */ temporarilyNotSupport('startGyroscope')\nexport const onGyroscopeChange = /* @__PURE__ */ temporarilyNotSupport('onGyroscopeChange')\nexport const offGyroscopeChange = /* @__PURE__ */ temporarilyNotSupport('offGyroscopeChange')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe,EAAC;AACtE,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB,EAAC;AACxE,MAAA,iBAAiB,mBAAmB,qBAAqB,CAAC,mBAAmB,EAAC;AAC9E,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 蓝牙-信标(Beacon)
|
|
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');
|
|
4
|
+
const stopBeaconDiscovery = /* @__PURE__ */ temporarilyNotSupport('stopBeaconDiscovery');
|
|
5
|
+
const startBeaconDiscovery = /* @__PURE__ */ temporarilyNotSupport('startBeaconDiscovery');
|
|
6
|
+
const onBeaconUpdate = /* @__PURE__ */ temporarilyNotSupport('onBeaconUpdate');
|
|
7
|
+
const onBeaconServiceChange = /* @__PURE__ */ temporarilyNotSupport('onBeaconServiceChange');
|
|
8
|
+
const offBeaconUpdate = /* @__PURE__ */ temporarilyNotSupport('offBeaconUpdate');
|
|
9
|
+
const offBeaconServiceChange = /* @__PURE__ */ temporarilyNotSupport('offBeaconServiceChange');
|
|
10
|
+
const getBeacons = /* @__PURE__ */ temporarilyNotSupport('getBeacons');
|
|
11
11
|
|
|
12
12
|
export { getBeacons, offBeaconServiceChange, offBeaconUpdate, onBeaconServiceChange, onBeaconUpdate, startBeaconDiscovery, stopBeaconDiscovery };
|
|
13
13
|
//# sourceMappingURL=iBeacon.js.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"iBeacon.js","sources":["../../../src/api/device/iBeacon.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 蓝牙-信标(Beacon)\nexport const stopBeaconDiscovery = /* @__PURE__ */ temporarilyNotSupport('stopBeaconDiscovery')\nexport const startBeaconDiscovery = /* @__PURE__ */ temporarilyNotSupport('startBeaconDiscovery')\nexport const onBeaconUpdate = /* @__PURE__ */ temporarilyNotSupport('onBeaconUpdate')\nexport const onBeaconServiceChange = /* @__PURE__ */ temporarilyNotSupport('onBeaconServiceChange')\nexport const offBeaconUpdate = /* @__PURE__ */ temporarilyNotSupport('offBeaconUpdate')\nexport const offBeaconServiceChange = /* @__PURE__ */ temporarilyNotSupport('offBeaconServiceChange')\nexport const getBeacons = /* @__PURE__ */ temporarilyNotSupport('getBeacons')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB,EAAC;AACxE,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAC1E,MAAA,sBAAsB,mBAAmB,qBAAqB,CAAC,wBAAwB,EAAC;AACxF,MAAA,UAAU,mBAAmB,qBAAqB,CAAC,YAAY;;;;"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
export * from "./accelerometer";
|
|
2
|
-
export * from "./accessibility";
|
|
3
|
-
export * from "./battery";
|
|
4
|
-
export * from "./bluetooth";
|
|
5
|
-
export * from "./bluetooth-ble";
|
|
6
|
-
export * from "./bluetooth-peripheral";
|
|
7
|
-
export * from "./calendar";
|
|
8
|
-
export * from "./clipboard";
|
|
9
|
-
export * from "./compass";
|
|
10
|
-
export * from "./contact";
|
|
11
|
-
export * from "./crypto";
|
|
12
|
-
export * from "./gyroscope";
|
|
13
|
-
export * from "./iBeacon";
|
|
14
|
-
export * from "./keyboard";
|
|
15
|
-
export * from "./memory";
|
|
16
|
-
export * from "./motion";
|
|
17
|
-
export * from "./network";
|
|
18
|
-
export * from "./nfc";
|
|
19
|
-
export * from "./phone";
|
|
20
|
-
export * from "./scan";
|
|
21
|
-
export * from "./screen";
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./
|
|
1
|
+
export * from "./accelerometer.js";
|
|
2
|
+
export * from "./accessibility.js";
|
|
3
|
+
export * from "./battery.js";
|
|
4
|
+
export * from "./bluetooth.js";
|
|
5
|
+
export * from "./bluetooth-ble.js";
|
|
6
|
+
export * from "./bluetooth-peripheral.js";
|
|
7
|
+
export * from "./calendar.js";
|
|
8
|
+
export * from "./clipboard.js";
|
|
9
|
+
export * from "./compass.js";
|
|
10
|
+
export * from "./contact.js";
|
|
11
|
+
export * from "./crypto.js";
|
|
12
|
+
export * from "./gyroscope.js";
|
|
13
|
+
export * from "./iBeacon.js";
|
|
14
|
+
export * from "./keyboard.js";
|
|
15
|
+
export * from "./memory.js";
|
|
16
|
+
export * from "./motion.js";
|
|
17
|
+
export * from "./network.js";
|
|
18
|
+
export * from "./nfc.js";
|
|
19
|
+
export * from "./phone.js";
|
|
20
|
+
export * from "./scan.js";
|
|
21
|
+
export * from "./screen.js";
|
|
22
|
+
export * from "./sms.js";
|
|
23
|
+
export * from "./vibrate.js";
|
|
24
|
+
export * from "./wifi.js";
|
package/dist/api/device/index.js
CHANGED
|
@@ -18,7 +18,8 @@ export { getLocalIPAddress, getNetworkType, offNetworkStatusChange, offNetworkWe
|
|
|
18
18
|
export { getHCEState, getNFCAdapter, offHCEMessage, onHCEMessage, sendHCEMessage, startHCE, stopHCE } from './nfc.js';
|
|
19
19
|
export { makePhoneCall } from './phone.js';
|
|
20
20
|
export { scanCode } from './scan.js';
|
|
21
|
-
export { getScreenBrightness, offUserCaptureScreen, onUserCaptureScreen, setKeepScreenOn, setScreenBrightness, setVisualEffectOnCapture } from './screen.js';
|
|
21
|
+
export { getScreenBrightness, getScreenRecordingState, offScreenRecordingStateChanged, offUserCaptureScreen, onScreenRecordingStateChanged, onUserCaptureScreen, setKeepScreenOn, setScreenBrightness, setVisualEffectOnCapture } from './screen.js';
|
|
22
|
+
export { sendSms } from './sms.js';
|
|
22
23
|
export { vibrateLong, vibrateShort } from './vibrate.js';
|
|
23
|
-
export { connectWifi, getConnectedWifi, getWifiList, offGetWifiList, offWifiConnected, onGetWifiList, onWifiConnected, onWifiConnectedWithPartialInfo, setWifiList, startWifi, stopWifi } from './wifi.js';
|
|
24
|
+
export { connectWifi, getConnectedWifi, getWifiList, offGetWifiList, offWifiConnected, offWifiConnectedWithPartialInfo, onGetWifiList, onWifiConnected, onWifiConnectedWithPartialInfo, setWifiList, startWifi, stopWifi } from './wifi.js';
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 键盘
|
|
4
|
-
const onKeyboardHeightChange = temporarilyNotSupport('onKeyboardHeightChange');
|
|
5
|
-
const offKeyboardHeightChange = temporarilyNotSupport('offKeyboardHeightChange');
|
|
6
|
-
const hideKeyboard = temporarilyNotSupport('hideKeyboard');
|
|
7
|
-
const getSelectedTextRange = temporarilyNotSupport('getSelectedTextRange');
|
|
4
|
+
const onKeyboardHeightChange = /* @__PURE__ */ temporarilyNotSupport('onKeyboardHeightChange');
|
|
5
|
+
const offKeyboardHeightChange = /* @__PURE__ */ temporarilyNotSupport('offKeyboardHeightChange');
|
|
6
|
+
const hideKeyboard = /* @__PURE__ */ temporarilyNotSupport('hideKeyboard');
|
|
7
|
+
const getSelectedTextRange = /* @__PURE__ */ temporarilyNotSupport('getSelectedTextRange');
|
|
8
8
|
|
|
9
9
|
export { getSelectedTextRange, hideKeyboard, offKeyboardHeightChange, onKeyboardHeightChange };
|
|
10
10
|
//# sourceMappingURL=keyboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","sources":["../../../src/api/device/keyboard.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 键盘\nexport const onKeyboardHeightChange = temporarilyNotSupport('onKeyboardHeightChange')\nexport const offKeyboardHeightChange = temporarilyNotSupport('offKeyboardHeightChange')\nexport const hideKeyboard = temporarilyNotSupport('hideKeyboard')\nexport const getSelectedTextRange = temporarilyNotSupport('getSelectedTextRange')\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"keyboard.js","sources":["../../../src/api/device/keyboard.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 键盘\nexport const onKeyboardHeightChange = /* @__PURE__ */ temporarilyNotSupport('onKeyboardHeightChange')\nexport const offKeyboardHeightChange = /* @__PURE__ */ temporarilyNotSupport('offKeyboardHeightChange')\nexport const hideKeyboard = /* @__PURE__ */ temporarilyNotSupport('hideKeyboard')\nexport const getSelectedTextRange = /* @__PURE__ */ temporarilyNotSupport('getSelectedTextRange')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,sBAAsB,mBAAmB,qBAAqB,CAAC,wBAAwB,EAAC;AACxF,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AAC1F,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc,EAAC;AACpE,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 内存
|
|
4
|
-
const onMemoryWarning = temporarilyNotSupport('onMemoryWarning');
|
|
5
|
-
const offMemoryWarning = temporarilyNotSupport('offMemoryWarning');
|
|
4
|
+
const onMemoryWarning = /* @__PURE__ */ temporarilyNotSupport('onMemoryWarning');
|
|
5
|
+
const offMemoryWarning = /* @__PURE__ */ temporarilyNotSupport('offMemoryWarning');
|
|
6
6
|
|
|
7
7
|
export { offMemoryWarning, onMemoryWarning };
|
|
8
8
|
//# sourceMappingURL=memory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sources":["../../../src/api/device/memory.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 内存\nexport const onMemoryWarning = temporarilyNotSupport('onMemoryWarning')\nexport const offMemoryWarning = temporarilyNotSupport('offMemoryWarning')\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"memory.js","sources":["../../../src/api/device/memory.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 内存\nexport const onMemoryWarning = /* @__PURE__ */ temporarilyNotSupport('onMemoryWarning')\nexport const offMemoryWarning = /* @__PURE__ */ temporarilyNotSupport('offMemoryWarning')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAC1E,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import throttle from 'lodash-es/throttle';
|
|
2
2
|
import { CallbackManager, MethodHandler } from '../../utils/handler.js';
|
|
3
|
-
import { throttle } from '../../utils/lodash.js';
|
|
4
3
|
|
|
5
4
|
const callbackManager = new CallbackManager();
|
|
6
5
|
let deviceMotionListener;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion.js","sources":["../../../src/api/device/motion.ts"],"sourcesContent":["import Taro from '@tarojs/api'\r\
|
|
1
|
+
{"version":3,"file":"motion.js","sources":["../../../src/api/device/motion.ts"],"sourcesContent":["import Taro from '@tarojs/api'\r\nimport throttle from 'lodash-es/throttle'\r\n\r\nimport { CallbackManager, MethodHandler } from '../../utils/handler'\r\n\r\nconst callbackManager = new CallbackManager()\r\nlet deviceMotionListener\r\n\r\nconst INTERVAL_MAP = {\r\n game: {\r\n interval: 20,\r\n frequency: 50\r\n },\r\n ui: {\r\n interval: 60,\r\n frequency: 16.67\r\n },\r\n normal: {\r\n interval: 200,\r\n frequency: 5\r\n }\r\n}\r\n\r\n/**\r\n * 停止监听设备方向的变化。\r\n */\r\nexport const stopDeviceMotionListening: typeof Taro.stopDeviceMotionListening = ({ success, fail, complete } = {}) => {\r\n const handle = new MethodHandler({ name: 'stopDeviceMotionListening', success, fail, complete })\r\n try {\r\n window.removeEventListener('deviceorientation', deviceMotionListener, 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\n/**\r\n * 开始监听设备方向的变化。\r\n */\r\nexport const startDeviceMotionListening: typeof Taro.startDeviceMotionListening = ({ interval = 'normal', success, fail, complete } = {}) => {\r\n const handle = new MethodHandler({ name: 'startDeviceMotionListening', success, fail, complete })\r\n try {\r\n const intervalObj = INTERVAL_MAP[interval]\r\n if (window.DeviceOrientationEvent) {\r\n if (deviceMotionListener) {\r\n stopDeviceMotionListening()\r\n }\r\n deviceMotionListener = throttle((evt: DeviceOrientationEvent) => {\r\n callbackManager.trigger({\r\n alpha: evt.alpha,\r\n beta: evt.beta,\r\n gamma: evt.gamma\r\n })\r\n }, intervalObj.interval)\r\n window.addEventListener('deviceorientation', deviceMotionListener, true)\r\n } else {\r\n throw new Error('deviceMotion 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 * 监听设备方向变化事件。\r\n */\r\nexport const onDeviceMotionChange: typeof Taro.onDeviceMotionChange = callback => {\r\n callbackManager.add(callback)\r\n}\r\n\r\n/**\r\n * 取消监听设备方向变化事件,参数为空,则取消所有的事件监听。\r\n */\r\nexport const offDeviceMotionChange: typeof Taro.offDeviceMotionChange = callback => {\r\n callbackManager.remove(callback)\r\n}\r\n"],"names":[],"mappings":";;;AAKA,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA;AAC7C,IAAI,oBAAoB,CAAA;AAExB,MAAM,YAAY,GAAG;AACnB,IAAA,IAAI,EAAE;AACJ,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,SAAS,EAAE,EAAE;AACd,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,SAAS,EAAE,KAAK;AACjB,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,GAAG;AACb,QAAA,SAAS,EAAE,CAAC;AACb,KAAA;CACF,CAAA;AAED;;AAEG;AACI,MAAM,yBAAyB,GAA0C,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAI;AACnH,IAAA,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;IAChG,IAAI;QACF,MAAM,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,IAAI,CAAC,CAAA;AAC3E,QAAA,OAAO,MAAM,CAAC,OAAO,EAAE,CAAA;AACxB,KAAA;AAAC,IAAA,OAAO,CAAC,EAAE;AACV,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AAC1C,KAAA;AACH,EAAC;AAED;;AAEG;AACU,MAAA,0BAA0B,GAA2C,CAAC,EAAE,QAAQ,GAAG,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAI;AAC1I,IAAA,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;IACjG,IAAI;AACF,QAAA,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QAC1C,IAAI,MAAM,CAAC,sBAAsB,EAAE;AACjC,YAAA,IAAI,oBAAoB,EAAE;AACxB,gBAAA,yBAAyB,EAAE,CAAA;AAC5B,aAAA;AACD,YAAA,oBAAoB,GAAG,QAAQ,CAAC,CAAC,GAA2B,KAAI;gBAC9D,eAAe,CAAC,OAAO,CAAC;oBACtB,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,IAAI,EAAE,GAAG,CAAC,IAAI;oBACd,KAAK,EAAE,GAAG,CAAC,KAAK;AACjB,iBAAA,CAAC,CAAA;AACJ,aAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAA;YACxB,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,IAAI,CAAC,CAAA;AACzE,SAAA;AAAM,aAAA;AACL,YAAA,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;AACjD,SAAA;AACD,QAAA,OAAO,MAAM,CAAC,OAAO,EAAE,CAAA;AACxB,KAAA;AAAC,IAAA,OAAO,CAAC,EAAE;AACV,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AAC1C,KAAA;AACH,EAAC;AAED;;AAEG;AACU,MAAA,oBAAoB,GAAqC,QAAQ,IAAG;AAC/E,IAAA,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;AAC/B,EAAC;AAED;;AAEG;AACU,MAAA,qBAAqB,GAAsC,QAAQ,IAAG;AACjF,IAAA,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AAClC;;;;"}
|
|
@@ -61,7 +61,7 @@ const networkStatusListener = () => __awaiter(void 0, void 0, void 0, function*
|
|
|
61
61
|
* - 出现三次以上的丢包
|
|
62
62
|
* > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
|
|
63
63
|
*/
|
|
64
|
-
const onNetworkWeakChange = temporarilyNotSupport('onNetworkWeakChange');
|
|
64
|
+
const onNetworkWeakChange = /* @__PURE__ */ temporarilyNotSupport('onNetworkWeakChange');
|
|
65
65
|
const onNetworkStatusChange = callback => {
|
|
66
66
|
networkStatusManager.add(callback);
|
|
67
67
|
const connection = getConnection();
|
|
@@ -69,7 +69,7 @@ const onNetworkStatusChange = callback => {
|
|
|
69
69
|
connection.addEventListener('change', networkStatusListener);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
const offNetworkWeakChange = temporarilyNotSupport('
|
|
72
|
+
const offNetworkWeakChange = /* @__PURE__ */ temporarilyNotSupport('offNetworkWeakChange');
|
|
73
73
|
const offNetworkStatusChange = callback => {
|
|
74
74
|
networkStatusManager.remove(callback);
|
|
75
75
|
const connection = getConnection();
|
|
@@ -77,7 +77,7 @@ const offNetworkStatusChange = callback => {
|
|
|
77
77
|
connection.removeEventListener('change', networkStatusListener);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
const getLocalIPAddress = temporarilyNotSupport('getLocalIPAddress');
|
|
80
|
+
const getLocalIPAddress = /* @__PURE__ */ temporarilyNotSupport('getLocalIPAddress');
|
|
81
81
|
|
|
82
82
|
export { getLocalIPAddress, getNetworkType, offNetworkStatusChange, offNetworkWeakChange, onNetworkStatusChange, onNetworkWeakChange };
|
|
83
83
|
//# sourceMappingURL=network.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sources":["../../../src/api/device/network.ts"],"sourcesContent":["import Taro from '@tarojs/api'\n\nimport { temporarilyNotSupport } from '../../utils'\nimport { CallbackManager, MethodHandler } from '../../utils/handler'\n\nfunction getConnection () {\n // @ts-ignore\n return navigator.connection || navigator.mozConnection || navigator.webkitConnection || navigator.msConnection\n}\n\nexport const getNetworkType: typeof Taro.getNetworkType = (options = {}) => {\n const connection = getConnection()\n const { success, fail, complete } = options\n const handle = new MethodHandler<Taro.getNetworkType.SuccessCallbackResult>({ name: 'getNetworkType', success, fail, complete })\n\n let networkType: keyof Taro.getNetworkType.NetworkType = 'unknown'\n // 浏览器不支持获取网络状态\n if (!connection) {\n return handle.success({ networkType })\n }\n\n // Supports only the navigator.connection.type value which doesn't match the latest spec.\n // https://www.davidbcalhoun.com/2010/using-navigator-connection-android/\n if (!isNaN(Number(connection.type))) {\n switch (connection.type) {\n // @ts-ignore\n case connection.WIFI:\n networkType = 'wifi'\n break\n // @ts-ignore\n case connection.CELL_3G:\n networkType = '3g'\n break\n // @ts-ignore\n case connection.CELL_2G:\n networkType = '2g'\n break\n default:\n // ETHERNET, UNKNOWN\n networkType = 'unknown'\n }\n } else if (connection.type) {\n // @ts-ignore\n networkType = connection.type // Only supports the type value.\n // @ts-ignore\n } else if (connection.effectiveType) {\n // @ts-ignore\n networkType = connection.effectiveType\n }\n\n return handle.success({ networkType })\n}\n\nconst networkStatusManager = new CallbackManager()\n\nconst networkStatusListener = async () => {\n const { networkType } = await getNetworkType()\n const isConnected = networkType !== 'none'\n const obj = { isConnected, networkType }\n networkStatusManager.trigger(obj)\n}\n\n/**\n * 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。\n * - 出现三次以上连接超时\n * - 出现三次 rtt 超过 400\n * - 出现三次以上的丢包\n * > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。\n */\nexport const onNetworkWeakChange = temporarilyNotSupport('onNetworkWeakChange')\n\nexport const onNetworkStatusChange: typeof Taro.onNetworkStatusChange = callback => {\n networkStatusManager.add(callback)\n const connection = getConnection()\n if (connection && networkStatusManager.count() === 1) {\n connection.addEventListener('change', networkStatusListener)\n }\n}\n\nexport const offNetworkWeakChange = temporarilyNotSupport('
|
|
1
|
+
{"version":3,"file":"network.js","sources":["../../../src/api/device/network.ts"],"sourcesContent":["import Taro from '@tarojs/api'\n\nimport { temporarilyNotSupport } from '../../utils'\nimport { CallbackManager, MethodHandler } from '../../utils/handler'\n\nfunction getConnection () {\n // @ts-ignore\n return navigator.connection || navigator.mozConnection || navigator.webkitConnection || navigator.msConnection\n}\n\nexport const getNetworkType: typeof Taro.getNetworkType = (options = {}) => {\n const connection = getConnection()\n const { success, fail, complete } = options\n const handle = new MethodHandler<Taro.getNetworkType.SuccessCallbackResult>({ name: 'getNetworkType', success, fail, complete })\n\n let networkType: keyof Taro.getNetworkType.NetworkType = 'unknown'\n // 浏览器不支持获取网络状态\n if (!connection) {\n return handle.success({ networkType })\n }\n\n // Supports only the navigator.connection.type value which doesn't match the latest spec.\n // https://www.davidbcalhoun.com/2010/using-navigator-connection-android/\n if (!isNaN(Number(connection.type))) {\n switch (connection.type) {\n // @ts-ignore\n case connection.WIFI:\n networkType = 'wifi'\n break\n // @ts-ignore\n case connection.CELL_3G:\n networkType = '3g'\n break\n // @ts-ignore\n case connection.CELL_2G:\n networkType = '2g'\n break\n default:\n // ETHERNET, UNKNOWN\n networkType = 'unknown'\n }\n } else if (connection.type) {\n // @ts-ignore\n networkType = connection.type // Only supports the type value.\n // @ts-ignore\n } else if (connection.effectiveType) {\n // @ts-ignore\n networkType = connection.effectiveType\n }\n\n return handle.success({ networkType })\n}\n\nconst networkStatusManager = new CallbackManager()\n\nconst networkStatusListener = async () => {\n const { networkType } = await getNetworkType()\n const isConnected = networkType !== 'none'\n const obj = { isConnected, networkType }\n networkStatusManager.trigger(obj)\n}\n\n/**\n * 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。\n * - 出现三次以上连接超时\n * - 出现三次 rtt 超过 400\n * - 出现三次以上的丢包\n * > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。\n */\nexport const onNetworkWeakChange = /* @__PURE__ */ temporarilyNotSupport('onNetworkWeakChange')\n\nexport const onNetworkStatusChange: typeof Taro.onNetworkStatusChange = callback => {\n networkStatusManager.add(callback)\n const connection = getConnection()\n if (connection && networkStatusManager.count() === 1) {\n connection.addEventListener('change', networkStatusListener)\n }\n}\n\nexport const offNetworkWeakChange = /* @__PURE__ */ temporarilyNotSupport('offNetworkWeakChange')\n\nexport const offNetworkStatusChange: typeof Taro.offNetworkStatusChange = callback => {\n networkStatusManager.remove(callback)\n const connection = getConnection()\n if (connection && networkStatusManager.count() === 0) {\n connection.removeEventListener('change', networkStatusListener)\n }\n}\n\nexport const getLocalIPAddress = /* @__PURE__ */ temporarilyNotSupport('getLocalIPAddress')\n"],"names":[],"mappings":";;;;AAKA,SAAS,aAAa,GAAA;;AAEpB,IAAA,OAAO,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,aAAa,IAAI,SAAS,CAAC,gBAAgB,IAAI,SAAS,CAAC,YAAY,CAAA;AAChH,CAAC;MAEY,cAAc,GAA+B,CAAC,OAAO,GAAG,EAAE,KAAI;AACzE,IAAA,MAAM,UAAU,GAAG,aAAa,EAAE,CAAA;IAClC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;AAC3C,IAAA,MAAM,MAAM,GAAG,IAAI,aAAa,CAA4C,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;IAEhI,IAAI,WAAW,GAA0C,SAAS,CAAA;;IAElE,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC,CAAA;AACvC,KAAA;;;IAID,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE;QACnC,QAAQ,UAAU,CAAC,IAAI;;YAErB,KAAK,UAAU,CAAC,IAAI;gBAClB,WAAW,GAAG,MAAM,CAAA;gBACpB,MAAK;;YAEP,KAAK,UAAU,CAAC,OAAO;gBACrB,WAAW,GAAG,IAAI,CAAA;gBAClB,MAAK;;YAEP,KAAK,UAAU,CAAC,OAAO;gBACrB,WAAW,GAAG,IAAI,CAAA;gBAClB,MAAK;AACP,YAAA;;gBAEE,WAAW,GAAG,SAAS,CAAA;AAC1B,SAAA;AACF,KAAA;SAAM,IAAI,UAAU,CAAC,IAAI,EAAE;;AAE1B,QAAA,WAAW,GAAG,UAAU,CAAC,IAAI,CAAA;;AAE9B,KAAA;SAAM,IAAI,UAAU,CAAC,aAAa,EAAE;;AAEnC,QAAA,WAAW,GAAG,UAAU,CAAC,aAAa,CAAA;AACvC,KAAA;IAED,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC,CAAA;AACxC,EAAC;AAED,MAAM,oBAAoB,GAAG,IAAI,eAAe,EAAE,CAAA;AAElD,MAAM,qBAAqB,GAAG,MAAW,SAAA,CAAA,KAAA,CAAA,EAAA,KAAA,CAAA,EAAA,KAAA,CAAA,EAAA,aAAA;AACvC,IAAA,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,cAAc,EAAE,CAAA;AAC9C,IAAA,MAAM,WAAW,GAAG,WAAW,KAAK,MAAM,CAAA;AAC1C,IAAA,MAAM,GAAG,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AACxC,IAAA,oBAAoB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;AACnC,CAAC,CAAA,CAAA;AAED;;;;;;AAMG;AACU,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAElF,MAAA,qBAAqB,GAAsC,QAAQ,IAAG;AACjF,IAAA,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;AAClC,IAAA,MAAM,UAAU,GAAG,aAAa,EAAE,CAAA;IAClC,IAAI,UAAU,IAAI,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;AACpD,QAAA,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAA;AAC7D,KAAA;AACH,EAAC;AAEY,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AAEpF,MAAA,sBAAsB,GAAuC,QAAQ,IAAG;AACnF,IAAA,oBAAoB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AACrC,IAAA,MAAM,UAAU,GAAG,aAAa,EAAE,CAAA;IAClC,IAAI,UAAU,IAAI,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;AACpD,QAAA,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAA;AAChE,KAAA;AACH,EAAC;AAEY,MAAA,iBAAiB,mBAAmB,qBAAqB,CAAC,mBAAmB;;;;"}
|
package/dist/api/device/nfc.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// NFC
|
|
4
|
-
const stopHCE = temporarilyNotSupport('stopHCE');
|
|
5
|
-
const startHCE = temporarilyNotSupport('startHCE');
|
|
6
|
-
const sendHCEMessage = temporarilyNotSupport('sendHCEMessage');
|
|
7
|
-
const onHCEMessage = temporarilyNotSupport('onHCEMessage');
|
|
8
|
-
const offHCEMessage = temporarilyNotSupport('offHCEMessage');
|
|
9
|
-
const getNFCAdapter = temporarilyNotSupport('getNFCAdapter');
|
|
10
|
-
const getHCEState = temporarilyNotSupport('getHCEState');
|
|
4
|
+
const stopHCE = /* @__PURE__ */ temporarilyNotSupport('stopHCE');
|
|
5
|
+
const startHCE = /* @__PURE__ */ temporarilyNotSupport('startHCE');
|
|
6
|
+
const sendHCEMessage = /* @__PURE__ */ temporarilyNotSupport('sendHCEMessage');
|
|
7
|
+
const onHCEMessage = /* @__PURE__ */ temporarilyNotSupport('onHCEMessage');
|
|
8
|
+
const offHCEMessage = /* @__PURE__ */ temporarilyNotSupport('offHCEMessage');
|
|
9
|
+
const getNFCAdapter = /* @__PURE__ */ temporarilyNotSupport('getNFCAdapter');
|
|
10
|
+
const getHCEState = /* @__PURE__ */ temporarilyNotSupport('getHCEState');
|
|
11
11
|
|
|
12
12
|
export { getHCEState, getNFCAdapter, offHCEMessage, onHCEMessage, sendHCEMessage, startHCE, stopHCE };
|
|
13
13
|
//# sourceMappingURL=nfc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nfc.js","sources":["../../../src/api/device/nfc.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// NFC\nexport const stopHCE = temporarilyNotSupport('stopHCE')\nexport const startHCE = temporarilyNotSupport('startHCE')\nexport const sendHCEMessage = temporarilyNotSupport('sendHCEMessage')\nexport const onHCEMessage = temporarilyNotSupport('onHCEMessage')\nexport const offHCEMessage = temporarilyNotSupport('offHCEMessage')\nexport const getNFCAdapter = temporarilyNotSupport('getNFCAdapter')\nexport const getHCEState = temporarilyNotSupport('getHCEState')\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"nfc.js","sources":["../../../src/api/device/nfc.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// NFC\nexport const stopHCE = /* @__PURE__ */ temporarilyNotSupport('stopHCE')\nexport const startHCE = /* @__PURE__ */ temporarilyNotSupport('startHCE')\nexport const sendHCEMessage = /* @__PURE__ */ temporarilyNotSupport('sendHCEMessage')\nexport const onHCEMessage = /* @__PURE__ */ temporarilyNotSupport('onHCEMessage')\nexport const offHCEMessage = /* @__PURE__ */ temporarilyNotSupport('offHCEMessage')\nexport const getNFCAdapter = /* @__PURE__ */ temporarilyNotSupport('getNFCAdapter')\nexport const getHCEState = /* @__PURE__ */ temporarilyNotSupport('getHCEState')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,OAAO,mBAAmB,qBAAqB,CAAC,SAAS,EAAC;AAC1D,MAAA,QAAQ,mBAAmB,qBAAqB,CAAC,UAAU,EAAC;AAC5D,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB,EAAC;AACxE,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc,EAAC;AACpE,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe,EAAC;AACtE,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe,EAAC;AACtE,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa;;;;"}
|
package/dist/api/device/scan.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.js","sources":["../../../src/api/device/scan.ts"],"sourcesContent":["import { processOpenApi } from '../../utils'\n\n// 扫码\nexport const scanCode = processOpenApi({\n name: 'scanQRCode',\n defaultOptions: { needResult: 1 },\n formatResult: res => ({\n errMsg: res.errMsg === 'scanQRCode:ok' ? 'scanCode:ok' : res.errMsg,\n result: res.resultStr\n })\n})\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"scan.js","sources":["../../../src/api/device/scan.ts"],"sourcesContent":["import { processOpenApi } from '../../utils'\n\n// 扫码\nexport const scanCode = /* @__PURE__ */ processOpenApi({\n name: 'scanQRCode',\n defaultOptions: { needResult: 1 },\n formatResult: res => ({\n errMsg: res.errMsg === 'scanQRCode:ok' ? 'scanCode:ok' : res.errMsg,\n result: res.resultStr\n })\n})\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,QAAQ,mBAAmB,cAAc,CAAC;AACrD,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,cAAc,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE;AACjC,IAAA,YAAY,EAAE,GAAG,KAAK;AACpB,QAAA,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,eAAe,GAAG,aAAa,GAAG,GAAG,CAAC,MAAM;QACnE,MAAM,EAAE,GAAG,CAAC,SAAS;KACtB,CAAC;AACH,CAAA;;;;"}
|
|
@@ -4,4 +4,7 @@ declare const setKeepScreenOn: (option?: {}, ...args: any[]) => Promise<Partial<
|
|
|
4
4
|
declare const onUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
5
5
|
declare const offUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
6
6
|
declare const getScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
7
|
-
|
|
7
|
+
declare const onScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
8
|
+
declare const offScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
|
+
declare const getScreenRecordingState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
10
|
+
export { setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, onScreenRecordingStateChanged, offScreenRecordingStateChanged, getScreenRecordingState };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 屏幕
|
|
4
|
-
const setVisualEffectOnCapture = temporarilyNotSupport('setVisualEffectOnCapture');
|
|
5
|
-
const setScreenBrightness = temporarilyNotSupport('setScreenBrightness');
|
|
6
|
-
const setKeepScreenOn = temporarilyNotSupport('setKeepScreenOn');
|
|
7
|
-
const onUserCaptureScreen = temporarilyNotSupport('onUserCaptureScreen');
|
|
8
|
-
const offUserCaptureScreen = temporarilyNotSupport('offUserCaptureScreen');
|
|
9
|
-
const getScreenBrightness = temporarilyNotSupport('getScreenBrightness');
|
|
4
|
+
const setVisualEffectOnCapture = /* @__PURE__ */ temporarilyNotSupport('setVisualEffectOnCapture');
|
|
5
|
+
const setScreenBrightness = /* @__PURE__ */ temporarilyNotSupport('setScreenBrightness');
|
|
6
|
+
const setKeepScreenOn = /* @__PURE__ */ temporarilyNotSupport('setKeepScreenOn');
|
|
7
|
+
const onUserCaptureScreen = /* @__PURE__ */ temporarilyNotSupport('onUserCaptureScreen');
|
|
8
|
+
const offUserCaptureScreen = /* @__PURE__ */ temporarilyNotSupport('offUserCaptureScreen');
|
|
9
|
+
const getScreenBrightness = /* @__PURE__ */ temporarilyNotSupport('getScreenBrightness');
|
|
10
|
+
const onScreenRecordingStateChanged = /* @__PURE__ */ temporarilyNotSupport('onScreenRecordingStateChanged');
|
|
11
|
+
const offScreenRecordingStateChanged = /* @__PURE__ */ temporarilyNotSupport('offScreenRecordingStateChanged');
|
|
12
|
+
const getScreenRecordingState = /* @__PURE__ */ temporarilyNotSupport('getScreenRecordingState');
|
|
10
13
|
|
|
11
|
-
export { getScreenBrightness, offUserCaptureScreen, onUserCaptureScreen, setKeepScreenOn, setScreenBrightness, setVisualEffectOnCapture };
|
|
14
|
+
export { getScreenBrightness, getScreenRecordingState, offScreenRecordingStateChanged, offUserCaptureScreen, onScreenRecordingStateChanged, onUserCaptureScreen, setKeepScreenOn, setScreenBrightness, setVisualEffectOnCapture };
|
|
12
15
|
//# sourceMappingURL=screen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.js","sources":["../../../src/api/device/screen.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 屏幕\nexport const setVisualEffectOnCapture = temporarilyNotSupport('setVisualEffectOnCapture')\nexport const setScreenBrightness = temporarilyNotSupport('setScreenBrightness')\nexport const setKeepScreenOn = temporarilyNotSupport('setKeepScreenOn')\nexport const onUserCaptureScreen = temporarilyNotSupport('onUserCaptureScreen')\nexport const offUserCaptureScreen = temporarilyNotSupport('offUserCaptureScreen')\nexport const getScreenBrightness = temporarilyNotSupport('getScreenBrightness')\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"screen.js","sources":["../../../src/api/device/screen.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 屏幕\nexport const setVisualEffectOnCapture = /* @__PURE__ */ temporarilyNotSupport('setVisualEffectOnCapture')\nexport const setScreenBrightness = /* @__PURE__ */ temporarilyNotSupport('setScreenBrightness')\nexport const setKeepScreenOn = /* @__PURE__ */ temporarilyNotSupport('setKeepScreenOn')\nexport const onUserCaptureScreen = /* @__PURE__ */ temporarilyNotSupport('onUserCaptureScreen')\nexport const offUserCaptureScreen = /* @__PURE__ */ temporarilyNotSupport('offUserCaptureScreen')\nexport const getScreenBrightness = /* @__PURE__ */ temporarilyNotSupport('getScreenBrightness')\nexport const onScreenRecordingStateChanged = /* @__PURE__ */ temporarilyNotSupport('onScreenRecordingStateChanged')\nexport const offScreenRecordingStateChanged = /* @__PURE__ */ temporarilyNotSupport('offScreenRecordingStateChanged')\nexport const getScreenRecordingState = /* @__PURE__ */ temporarilyNotSupport('getScreenRecordingState')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,wBAAwB,mBAAmB,qBAAqB,CAAC,0BAA0B,EAAC;AAC5F,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAC1E,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,6BAA6B,mBAAmB,qBAAqB,CAAC,+BAA+B,EAAC;AACtG,MAAA,8BAA8B,mBAAmB,qBAAqB,CAAC,gCAAgC,EAAC;AACxG,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms.js","sources":["../../../src/api/device/sms.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 短信\nexport const sendSms = /* @__PURE__ */ temporarilyNotSupport('sendSms')"],"names":[],"mappings":";;AAEA;AACa,MAAA,OAAO,mBAAmB,qBAAqB,CAAC,SAAS;;;;"}
|
|
@@ -4,9 +4,10 @@ declare const setWifiList: (option?: {}, ...args: any[]) => Promise<Partial<Taro
|
|
|
4
4
|
declare const onWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
5
5
|
declare const onWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
6
6
|
declare const onGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
7
|
+
declare const offWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
7
8
|
declare const offWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
8
9
|
declare const offGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
10
|
declare const getWifiList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
10
11
|
declare const getConnectedWifi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
11
12
|
declare const connectWifi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
12
|
-
export { stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi };
|
|
13
|
+
export { stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnectedWithPartialInfo, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi };
|
package/dist/api/device/wifi.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// Wi-Fi
|
|
4
|
-
const stopWifi = temporarilyNotSupport('stopWifi');
|
|
5
|
-
const startWifi = temporarilyNotSupport('startWifi');
|
|
6
|
-
const setWifiList = temporarilyNotSupport('setWifiList');
|
|
7
|
-
const onWifiConnectedWithPartialInfo = temporarilyNotSupport('onWifiConnectedWithPartialInfo');
|
|
8
|
-
const onWifiConnected = temporarilyNotSupport('onWifiConnected');
|
|
9
|
-
const onGetWifiList = temporarilyNotSupport('onGetWifiList');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
4
|
+
const stopWifi = /* @__PURE__ */ temporarilyNotSupport('stopWifi');
|
|
5
|
+
const startWifi = /* @__PURE__ */ temporarilyNotSupport('startWifi');
|
|
6
|
+
const setWifiList = /* @__PURE__ */ temporarilyNotSupport('setWifiList');
|
|
7
|
+
const onWifiConnectedWithPartialInfo = /* @__PURE__ */ temporarilyNotSupport('onWifiConnectedWithPartialInfo');
|
|
8
|
+
const onWifiConnected = /* @__PURE__ */ temporarilyNotSupport('onWifiConnected');
|
|
9
|
+
const onGetWifiList = /* @__PURE__ */ temporarilyNotSupport('onGetWifiList');
|
|
10
|
+
const offWifiConnectedWithPartialInfo = /* @__PURE__ */ temporarilyNotSupport('offWifiConnectedWithPartialInfo');
|
|
11
|
+
const offWifiConnected = /* @__PURE__ */ temporarilyNotSupport('offWifiConnected');
|
|
12
|
+
const offGetWifiList = /* @__PURE__ */ temporarilyNotSupport('offGetWifiList');
|
|
13
|
+
const getWifiList = /* @__PURE__ */ temporarilyNotSupport('getWifiList');
|
|
14
|
+
const getConnectedWifi = /* @__PURE__ */ temporarilyNotSupport('getConnectedWifi');
|
|
15
|
+
const connectWifi = /* @__PURE__ */ temporarilyNotSupport('connectWifi');
|
|
15
16
|
|
|
16
|
-
export { connectWifi, getConnectedWifi, getWifiList, offGetWifiList, offWifiConnected, onGetWifiList, onWifiConnected, onWifiConnectedWithPartialInfo, setWifiList, startWifi, stopWifi };
|
|
17
|
+
export { connectWifi, getConnectedWifi, getWifiList, offGetWifiList, offWifiConnected, offWifiConnectedWithPartialInfo, onGetWifiList, onWifiConnected, onWifiConnectedWithPartialInfo, setWifiList, startWifi, stopWifi };
|
|
17
18
|
//# sourceMappingURL=wifi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wifi.js","sources":["../../../src/api/device/wifi.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// Wi-Fi\nexport const stopWifi = temporarilyNotSupport('stopWifi')\nexport const startWifi = temporarilyNotSupport('startWifi')\nexport const setWifiList = temporarilyNotSupport('setWifiList')\nexport const onWifiConnectedWithPartialInfo = temporarilyNotSupport('onWifiConnectedWithPartialInfo')\nexport const onWifiConnected = temporarilyNotSupport('onWifiConnected')\nexport const onGetWifiList = temporarilyNotSupport('onGetWifiList')\nexport const offWifiConnected = temporarilyNotSupport('offWifiConnected')\nexport const offGetWifiList = temporarilyNotSupport('offGetWifiList')\nexport const getWifiList = temporarilyNotSupport('getWifiList')\nexport const getConnectedWifi = temporarilyNotSupport('getConnectedWifi')\nexport const connectWifi = temporarilyNotSupport('connectWifi')\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"wifi.js","sources":["../../../src/api/device/wifi.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// Wi-Fi\nexport const stopWifi = /* @__PURE__ */ temporarilyNotSupport('stopWifi')\nexport const startWifi = /* @__PURE__ */ temporarilyNotSupport('startWifi')\nexport const setWifiList = /* @__PURE__ */ temporarilyNotSupport('setWifiList')\nexport const onWifiConnectedWithPartialInfo = /* @__PURE__ */ temporarilyNotSupport('onWifiConnectedWithPartialInfo')\nexport const onWifiConnected = /* @__PURE__ */ temporarilyNotSupport('onWifiConnected')\nexport const onGetWifiList = /* @__PURE__ */ temporarilyNotSupport('onGetWifiList')\nexport const offWifiConnectedWithPartialInfo = /* @__PURE__ */ temporarilyNotSupport('offWifiConnectedWithPartialInfo')\nexport const offWifiConnected = /* @__PURE__ */ temporarilyNotSupport('offWifiConnected')\nexport const offGetWifiList = /* @__PURE__ */ temporarilyNotSupport('offGetWifiList')\nexport const getWifiList = /* @__PURE__ */ temporarilyNotSupport('getWifiList')\nexport const getConnectedWifi = /* @__PURE__ */ temporarilyNotSupport('getConnectedWifi')\nexport const connectWifi = /* @__PURE__ */ temporarilyNotSupport('connectWifi')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,QAAQ,mBAAmB,qBAAqB,CAAC,UAAU,EAAC;AAC5D,MAAA,SAAS,mBAAmB,qBAAqB,CAAC,WAAW,EAAC;AAC9D,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa,EAAC;AAClE,MAAA,8BAA8B,mBAAmB,qBAAqB,CAAC,gCAAgC,EAAC;AACxG,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAC1E,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe,EAAC;AACtE,MAAA,+BAA+B,mBAAmB,qBAAqB,CAAC,iCAAiC,EAAC;AAC1G,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAC5E,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB,EAAC;AACxE,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa,EAAC;AAClE,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAC5E,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa;;;;"}
|
package/dist/api/ext/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 第三方平台
|
|
4
|
-
const getExtConfigSync = temporarilyNotSupport('getExtConfigSync');
|
|
5
|
-
const getExtConfig = temporarilyNotSupport('getExtConfig');
|
|
4
|
+
const getExtConfigSync = /* @__PURE__ */ temporarilyNotSupport('getExtConfigSync');
|
|
5
|
+
const getExtConfig = /* @__PURE__ */ temporarilyNotSupport('getExtConfig');
|
|
6
6
|
|
|
7
7
|
export { getExtConfig, getExtConfigSync };
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/api/ext/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 第三方平台\nexport const getExtConfigSync = temporarilyNotSupport('getExtConfigSync')\nexport const getExtConfig = temporarilyNotSupport('getExtConfig')\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/api/ext/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 第三方平台\nexport const getExtConfigSync = /* @__PURE__ */ temporarilyNotSupport('getExtConfigSync')\nexport const getExtConfig = /* @__PURE__ */ temporarilyNotSupport('getExtConfig')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAC5E,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc;;;;"}
|
package/dist/api/files/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { temporarilyNotSupport } from '../../utils/index.js';
|
|
2
2
|
|
|
3
3
|
// 文件
|
|
4
|
-
const saveFileToDisk = temporarilyNotSupport('saveFileToDisk');
|
|
5
|
-
const saveFile = temporarilyNotSupport('saveFile');
|
|
6
|
-
const removeSavedFile = temporarilyNotSupport('removeSavedFile');
|
|
7
|
-
const openDocument = temporarilyNotSupport('openDocument');
|
|
8
|
-
const getSavedFileList = temporarilyNotSupport('getSavedFileList');
|
|
9
|
-
const getSavedFileInfo = temporarilyNotSupport('getSavedFileInfo');
|
|
10
|
-
const getFileSystemManager = temporarilyNotSupport('getFileSystemManager');
|
|
11
|
-
const getFileInfo = temporarilyNotSupport('getFileInfo');
|
|
4
|
+
const saveFileToDisk = /* @__PURE__ */ temporarilyNotSupport('saveFileToDisk');
|
|
5
|
+
const saveFile = /* @__PURE__ */ temporarilyNotSupport('saveFile');
|
|
6
|
+
const removeSavedFile = /* @__PURE__ */ temporarilyNotSupport('removeSavedFile');
|
|
7
|
+
const openDocument = /* @__PURE__ */ temporarilyNotSupport('openDocument');
|
|
8
|
+
const getSavedFileList = /* @__PURE__ */ temporarilyNotSupport('getSavedFileList');
|
|
9
|
+
const getSavedFileInfo = /* @__PURE__ */ temporarilyNotSupport('getSavedFileInfo');
|
|
10
|
+
const getFileSystemManager = /* @__PURE__ */ temporarilyNotSupport('getFileSystemManager');
|
|
11
|
+
const getFileInfo = /* @__PURE__ */ temporarilyNotSupport('getFileInfo');
|
|
12
12
|
|
|
13
13
|
export { getFileInfo, getFileSystemManager, getSavedFileInfo, getSavedFileList, openDocument, removeSavedFile, saveFile, saveFileToDisk };
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/api/files/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\r\n\r\n// 文件\r\nexport const saveFileToDisk = temporarilyNotSupport('saveFileToDisk')\r\nexport const saveFile = temporarilyNotSupport('saveFile')\r\nexport const removeSavedFile = temporarilyNotSupport('removeSavedFile')\r\nexport const openDocument = temporarilyNotSupport('openDocument')\r\nexport const getSavedFileList = temporarilyNotSupport('getSavedFileList')\r\nexport const getSavedFileInfo = temporarilyNotSupport('getSavedFileInfo')\r\nexport const getFileSystemManager = temporarilyNotSupport('getFileSystemManager')\r\nexport const getFileInfo = temporarilyNotSupport('getFileInfo')\r\n"],"names":[],"mappings":";;AAEA;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/api/files/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\r\n\r\n// 文件\r\nexport const saveFileToDisk = /* @__PURE__ */ temporarilyNotSupport('saveFileToDisk')\r\nexport const saveFile = /* @__PURE__ */ temporarilyNotSupport('saveFile')\r\nexport const removeSavedFile = /* @__PURE__ */ temporarilyNotSupport('removeSavedFile')\r\nexport const openDocument = /* @__PURE__ */ temporarilyNotSupport('openDocument')\r\nexport const getSavedFileList = /* @__PURE__ */ temporarilyNotSupport('getSavedFileList')\r\nexport const getSavedFileInfo = /* @__PURE__ */ temporarilyNotSupport('getSavedFileInfo')\r\nexport const getFileSystemManager = /* @__PURE__ */ temporarilyNotSupport('getFileSystemManager')\r\nexport const getFileInfo = /* @__PURE__ */ temporarilyNotSupport('getFileInfo')\r\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB,EAAC;AACxE,MAAA,QAAQ,mBAAmB,qBAAqB,CAAC,UAAU,EAAC;AAC5D,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAC1E,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc,EAAC;AACpE,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAC5E,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAC5E,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Taro from '@tarojs/api';
|
|
2
2
|
declare const getApp: typeof Taro.getApp;
|
|
3
|
-
declare const getCurrentInstance: () => Taro.Current;
|
|
3
|
+
declare const getCurrentInstance: () => Taro.getCurrentInstance.Current;
|
|
4
4
|
export { getApp, getCurrentInstance };
|
|
5
5
|
export { getCurrentPages } from '@tarojs/router';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
export * from "./ad/index";
|
|
2
|
-
export * from "./ai/index";
|
|
3
|
-
export * from "./alipay/index";
|
|
4
|
-
export * from "./base/index";
|
|
5
|
-
export * from "./canvas/index";
|
|
6
|
-
export * from "./cloud/index";
|
|
7
|
-
export * from "./data-analysis/index";
|
|
8
|
-
export * from "./device/index";
|
|
9
|
-
export * from "./ext/index";
|
|
10
|
-
export * from "./files/index";
|
|
11
|
-
export * from "./framework/index";
|
|
12
|
-
export * from "./location/index";
|
|
13
|
-
export * from "./media/index";
|
|
14
|
-
export * from "./navigate/index";
|
|
15
|
-
export * from "./network/index";
|
|
16
|
-
export * from "./open-api/index";
|
|
17
|
-
export * from "./payment/index";
|
|
18
|
-
export * from "./
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
1
|
+
export * from "./ad/index.js";
|
|
2
|
+
export * from "./ai/index.js";
|
|
3
|
+
export * from "./alipay/index.js";
|
|
4
|
+
export * from "./base/index.js";
|
|
5
|
+
export * from "./canvas/index.js";
|
|
6
|
+
export * from "./cloud/index.js";
|
|
7
|
+
export * from "./data-analysis/index.js";
|
|
8
|
+
export * from "./device/index.js";
|
|
9
|
+
export * from "./ext/index.js";
|
|
10
|
+
export * from "./files/index.js";
|
|
11
|
+
export * from "./framework/index.js";
|
|
12
|
+
export * from "./location/index.js";
|
|
13
|
+
export * from "./media/index.js";
|
|
14
|
+
export * from "./navigate/index.js";
|
|
15
|
+
export * from "./network/index.js";
|
|
16
|
+
export * from "./open-api/index.js";
|
|
17
|
+
export * from "./payment/index.js";
|
|
18
|
+
export * from "./qq/index.js";
|
|
19
|
+
export * from "./route/index.js";
|
|
20
|
+
export * from "./share/index.js";
|
|
21
|
+
export * from "./storage/index.js";
|
|
22
|
+
export * from "./swan/index.js";
|
|
23
|
+
export * from "./ui/index.js";
|
|
24
|
+
export * from "./worker/index.js";
|
|
25
|
+
export * from "./wxml/index.js";
|