hylid-bridge 1.0.4 → 1.0.5
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/lib/appEnv/clients.d.ts +7 -0
- package/lib/appEnv/clients.js +37 -0
- package/lib/appEnv/index.d.ts +17 -0
- package/lib/appEnv/index.js +47 -0
- package/lib/appEnv/utils.d.ts +4 -0
- package/lib/appEnv/utils.js +19 -0
- package/lib/bridges.js +2196 -1357
- package/lib/clients/mp/lazada/crossPay.d.ts +2 -3
- package/lib/clients/mp/lazada/crossPay.js +2 -11
- package/lib/clients/mp/lazada/custom.d.ts +6 -0
- package/lib/clients/mp/lazada/custom.js +6 -0
- package/lib/clients/mp/lazada/generated.d.ts +175 -0
- package/lib/clients/mp/lazada/generated.js +282 -0
- package/lib/clients/mp/lazada/index.d.ts +111 -54
- package/lib/clients/mp/lazada/index.js +19 -104
- package/lib/clients/mp/taobao/crossPay.d.ts +2 -3
- package/lib/clients/mp/taobao/crossPay.js +2 -11
- package/lib/clients/mp/taobao/custom.d.ts +7 -0
- package/lib/clients/mp/taobao/custom.js +8 -0
- package/lib/clients/mp/taobao/generated.d.ts +63 -0
- package/lib/clients/mp/taobao/generated.js +90 -0
- package/lib/clients/mp/taobao/index.d.ts +3 -51
- package/lib/clients/mp/taobao/index.js +19 -98
- package/lib/clients/{mp-web/intl → mp_web/cn}/crossPay.d.ts +0 -0
- package/lib/clients/mp_web/cn/crossPay.js +8 -0
- package/lib/clients/mp_web/cn/custom.d.ts +6 -0
- package/lib/clients/mp_web/cn/custom.js +6 -0
- package/lib/clients/mp_web/cn/generated.d.ts +46 -0
- package/lib/clients/mp_web/cn/generated.js +82 -0
- package/lib/clients/mp_web/cn/getAppIdSync.d.ts +2 -0
- package/lib/clients/mp_web/cn/getAppIdSync.js +3 -0
- package/lib/clients/mp_web/cn/index.d.ts +48 -0
- package/lib/clients/mp_web/cn/index.js +19 -0
- package/lib/clients/mp_web/intl/custom.d.ts +6 -0
- package/lib/clients/mp_web/intl/custom.js +6 -0
- package/lib/clients/mp_web/intl/generated.d.ts +160 -0
- package/lib/clients/mp_web/intl/generated.js +270 -0
- package/lib/clients/mp_web/intl/getAppIdSync.d.ts +2 -0
- package/lib/clients/mp_web/intl/getAppIdSync.js +3 -0
- package/lib/clients/mp_web/intl/getOpenUserInfo.d.ts +3 -0
- package/lib/clients/mp_web/intl/getOpenUserInfo.js +44 -0
- package/lib/clients/mp_web/intl/index.d.ts +162 -0
- package/lib/clients/mp_web/intl/index.js +19 -0
- package/lib/clients/web/cn/alert.d.ts +2 -0
- package/lib/clients/web/cn/alert.js +2 -0
- package/lib/clients/web/cn/clearStorage.d.ts +2 -0
- package/lib/clients/web/cn/clearStorage.js +2 -0
- package/lib/clients/web/cn/confirm.d.ts +2 -0
- package/lib/clients/web/cn/confirm.js +2 -0
- package/lib/clients/web/cn/custom.d.ts +31 -0
- package/lib/clients/web/cn/custom.js +56 -0
- package/lib/clients/web/cn/datePicker.d.ts +2 -0
- package/lib/clients/web/cn/datePicker.js +2 -0
- package/lib/clients/web/cn/downloadFile.d.ts +2 -0
- package/lib/clients/web/cn/downloadFile.js +2 -0
- package/lib/clients/web/cn/generated.d.ts +94 -0
- package/lib/clients/web/cn/generated.js +154 -0
- package/lib/clients/web/cn/getLocation.d.ts +2 -0
- package/lib/clients/web/cn/getLocation.js +2 -0
- package/lib/clients/web/cn/getNetworkType.d.ts +2 -0
- package/lib/clients/web/cn/getNetworkType.js +2 -0
- package/lib/clients/web/cn/getStorage.d.ts +2 -0
- package/lib/clients/web/cn/getStorage.js +2 -0
- package/lib/clients/web/cn/index.d.ts +30 -130
- package/lib/clients/web/cn/index.js +19 -208
- package/lib/clients/web/cn/navigateBack.d.ts +2 -0
- package/lib/clients/web/cn/navigateBack.js +2 -0
- package/lib/clients/web/cn/navigateTo.d.ts +2 -0
- package/lib/clients/web/cn/navigateTo.js +2 -0
- package/lib/clients/web/cn/offAccelerometerChange.d.ts +2 -0
- package/lib/clients/web/cn/offAccelerometerChange.js +2 -0
- package/lib/clients/web/cn/offCompassChange.d.ts +2 -0
- package/lib/clients/web/cn/offCompassChange.js +2 -0
- package/lib/clients/web/cn/onAccelerometerChange.d.ts +2 -0
- package/lib/clients/web/cn/onAccelerometerChange.js +2 -0
- package/lib/clients/web/cn/onCompassChange.d.ts +2 -0
- package/lib/clients/web/cn/onCompassChange.js +2 -0
- package/lib/clients/web/cn/reLaunch.d.ts +2 -0
- package/lib/clients/web/cn/reLaunch.js +2 -0
- package/lib/clients/web/cn/redirectTo.d.ts +2 -0
- package/lib/clients/web/cn/redirectTo.js +2 -0
- package/lib/clients/web/cn/request.d.ts +2 -0
- package/lib/clients/web/cn/request.js +2 -0
- package/lib/clients/web/cn/saveFile.d.ts +2 -0
- package/lib/clients/web/cn/saveFile.js +2 -0
- package/lib/clients/web/cn/setNavigationBar.d.ts +2 -0
- package/lib/clients/web/cn/setNavigationBar.js +2 -0
- package/lib/clients/web/cn/setStorage.d.ts +2 -0
- package/lib/clients/web/cn/setStorage.js +2 -0
- package/lib/clients/web/cn/setTabBarStyle.d.ts +2 -0
- package/lib/clients/web/cn/setTabBarStyle.js +2 -0
- package/lib/clients/web/cn/showActionSheet.d.ts +2 -0
- package/lib/clients/web/cn/showActionSheet.js +2 -0
- package/lib/clients/web/cn/showAuthGuide.d.ts +2 -0
- package/lib/clients/web/cn/showAuthGuide.js +2 -0
- package/lib/clients/web/cn/showToast.d.ts +2 -0
- package/lib/clients/web/cn/showToast.js +2 -0
- package/lib/clients/web/cn/startPullDownRefresh.d.ts +2 -0
- package/lib/clients/web/cn/startPullDownRefresh.js +2 -0
- package/lib/clients/web/cn/stopPullDownRefresh.d.ts +2 -0
- package/lib/clients/web/cn/stopPullDownRefresh.js +2 -0
- package/lib/clients/web/cn/uploadFile.d.ts +2 -0
- package/lib/clients/web/cn/uploadFile.js +2 -0
- package/lib/clients/web/intl/alert.d.ts +2 -0
- package/lib/clients/web/intl/alert.js +2 -0
- package/lib/clients/web/intl/clearStorage.d.ts +2 -0
- package/lib/clients/web/intl/clearStorage.js +2 -0
- package/lib/clients/web/intl/confirm.d.ts +2 -0
- package/lib/clients/web/intl/confirm.js +2 -0
- package/lib/clients/web/intl/custom.d.ts +31 -0
- package/lib/clients/web/intl/custom.js +56 -0
- package/lib/clients/web/intl/datePicker.d.ts +2 -0
- package/lib/clients/web/intl/datePicker.js +2 -0
- package/lib/clients/web/intl/downloadFile.d.ts +2 -0
- package/lib/clients/web/intl/downloadFile.js +2 -0
- package/lib/clients/web/intl/generated.d.ts +128 -0
- package/lib/clients/web/intl/generated.js +210 -0
- package/lib/clients/web/intl/getLocation.d.ts +2 -0
- package/lib/clients/web/intl/getLocation.js +2 -0
- package/lib/clients/web/intl/getNetworkType.d.ts +2 -0
- package/lib/clients/web/intl/getNetworkType.js +2 -0
- package/lib/clients/web/intl/getStorage.d.ts +2 -0
- package/lib/clients/web/intl/getStorage.js +2 -0
- package/lib/clients/web/intl/index.d.ts +61 -131
- package/lib/clients/web/intl/index.js +19 -210
- package/lib/clients/web/intl/navigateBack.d.ts +2 -0
- package/lib/clients/web/intl/navigateBack.js +2 -0
- package/lib/clients/web/intl/navigateTo.d.ts +2 -0
- package/lib/clients/web/intl/navigateTo.js +2 -0
- package/lib/clients/web/intl/offAccelerometerChange.d.ts +2 -0
- package/lib/clients/web/intl/offAccelerometerChange.js +2 -0
- package/lib/clients/web/intl/offCompassChange.d.ts +2 -0
- package/lib/clients/web/intl/offCompassChange.js +2 -0
- package/lib/clients/web/intl/onAccelerometerChange.d.ts +2 -0
- package/lib/clients/web/intl/onAccelerometerChange.js +2 -0
- package/lib/clients/web/intl/onCompassChange.d.ts +2 -0
- package/lib/clients/web/intl/onCompassChange.js +2 -0
- package/lib/clients/web/intl/reLaunch.d.ts +2 -0
- package/lib/clients/web/intl/reLaunch.js +2 -0
- package/lib/clients/web/intl/redirectTo.d.ts +2 -0
- package/lib/clients/web/intl/redirectTo.js +2 -0
- package/lib/clients/web/intl/request.d.ts +2 -0
- package/lib/clients/web/intl/request.js +2 -0
- package/lib/clients/web/intl/saveFile.d.ts +2 -0
- package/lib/clients/web/intl/saveFile.js +2 -0
- package/lib/clients/web/intl/setNavigationBar.d.ts +2 -0
- package/lib/clients/web/intl/setNavigationBar.js +2 -0
- package/lib/clients/web/intl/setStorage.d.ts +2 -0
- package/lib/clients/web/intl/setStorage.js +2 -0
- package/lib/clients/web/intl/setTabBarStyle.d.ts +2 -0
- package/lib/clients/web/intl/setTabBarStyle.js +2 -0
- package/lib/clients/web/intl/showActionSheet.d.ts +2 -0
- package/lib/clients/web/intl/showActionSheet.js +2 -0
- package/lib/clients/web/intl/showAuthGuide.d.ts +2 -0
- package/lib/clients/web/intl/showAuthGuide.js +2 -0
- package/lib/clients/web/intl/showToast.d.ts +2 -0
- package/lib/clients/web/intl/showToast.js +2 -0
- package/lib/clients/web/intl/startPullDownRefresh.d.ts +2 -0
- package/lib/clients/web/intl/startPullDownRefresh.js +2 -0
- package/lib/clients/web/intl/stopPullDownRefresh.d.ts +2 -0
- package/lib/clients/web/intl/stopPullDownRefresh.js +2 -0
- package/lib/clients/web/intl/uploadFile.d.ts +2 -0
- package/lib/clients/web/intl/uploadFile.js +2 -0
- package/lib/common/apis/custom/mp/crossPay.d.ts +3 -0
- package/lib/common/apis/custom/mp/crossPay.js +7 -0
- package/lib/common/apis/custom/mp_web/getAppIdSync.d.ts +2 -0
- package/lib/common/apis/custom/mp_web/getAppIdSync.js +6 -0
- package/lib/common/apis/custom/web/alert.d.ts +3 -0
- package/lib/common/apis/custom/web/alert.js +41 -0
- package/lib/common/apis/custom/web/clearStorage.d.ts +3 -0
- package/lib/common/apis/custom/web/clearStorage.js +8 -0
- package/lib/common/apis/custom/web/confirm.d.ts +3 -0
- package/lib/common/apis/custom/web/confirm.js +46 -0
- package/lib/common/apis/custom/web/datePicker.d.ts +3 -0
- package/lib/common/apis/custom/web/datePicker.js +49 -0
- package/lib/common/apis/custom/web/downloadFile.d.ts +3 -0
- package/lib/common/apis/custom/web/downloadFile.js +58 -0
- package/lib/common/apis/custom/web/getLocation.d.ts +3 -0
- package/lib/common/apis/custom/web/getLocation.js +43 -0
- package/lib/common/apis/custom/web/getNetworkType.d.ts +3 -0
- package/lib/common/apis/custom/web/getNetworkType.js +31 -0
- package/lib/common/apis/custom/web/getStorage.d.ts +3 -0
- package/lib/common/apis/custom/web/getStorage.js +32 -0
- package/lib/common/apis/custom/web/navigateBack.d.ts +3 -0
- package/lib/common/apis/custom/web/navigateBack.js +44 -0
- package/lib/common/apis/custom/web/navigateTo.d.ts +3 -0
- package/lib/common/apis/custom/web/navigateTo.js +7 -0
- package/lib/common/apis/custom/web/offAccelerometerChange.d.ts +3 -0
- package/lib/common/apis/custom/web/offAccelerometerChange.js +25 -0
- package/lib/common/apis/custom/web/offCompassChange.d.ts +3 -0
- package/lib/common/apis/custom/web/offCompassChange.js +25 -0
- package/lib/common/apis/custom/web/onAccelerometerChange.d.ts +3 -0
- package/lib/common/apis/custom/web/onAccelerometerChange.js +25 -0
- package/lib/common/apis/custom/web/onCompassChange.d.ts +3 -0
- package/lib/common/apis/custom/web/onCompassChange.js +25 -0
- package/lib/common/apis/custom/web/reLaunch.d.ts +3 -0
- package/lib/common/apis/custom/web/reLaunch.js +7 -0
- package/lib/common/apis/custom/web/redirectTo.d.ts +3 -0
- package/lib/common/apis/custom/web/redirectTo.js +14 -0
- package/lib/common/apis/custom/web/request.d.ts +3 -0
- package/lib/common/apis/custom/web/request.js +85 -0
- package/lib/common/apis/custom/web/saveFile.d.ts +3 -0
- package/lib/common/apis/custom/web/saveFile.js +42 -0
- package/lib/common/apis/custom/web/setNavigationBar.d.ts +3 -0
- package/lib/common/apis/custom/web/setNavigationBar.js +62 -0
- package/lib/common/apis/custom/web/setStorage.d.ts +3 -0
- package/lib/common/apis/custom/web/setStorage.js +42 -0
- package/lib/common/apis/custom/web/setTabBarStyle.d.ts +3 -0
- package/lib/common/apis/custom/web/setTabBarStyle.js +25 -0
- package/lib/common/apis/custom/web/showActionSheet.d.ts +3 -0
- package/lib/common/apis/custom/web/showActionSheet.js +44 -0
- package/lib/common/apis/custom/web/showAuthGuide.d.ts +3 -0
- package/lib/common/apis/custom/web/showAuthGuide.js +25 -0
- package/lib/common/apis/custom/web/showToast.d.ts +3 -0
- package/lib/common/apis/custom/web/showToast.js +25 -0
- package/lib/common/apis/custom/web/startPullDownRefresh.d.ts +3 -0
- package/lib/common/apis/custom/web/startPullDownRefresh.js +7 -0
- package/lib/common/apis/custom/web/stopPullDownRefresh.d.ts +3 -0
- package/lib/common/apis/custom/web/stopPullDownRefresh.js +7 -0
- package/lib/common/apis/custom/web/uploadFile.d.ts +3 -0
- package/lib/common/apis/custom/web/uploadFile.js +47 -0
- package/lib/common/apis/generated/APRegionRPC.d.ts +2 -0
- package/lib/common/apis/generated/APRegionRPC.js +4 -0
- package/lib/common/apis/generated/addFatigueAction.d.ts +2 -0
- package/lib/common/apis/generated/addFatigueAction.js +4 -0
- package/lib/common/apis/generated/addPhoneContact.d.ts +3 -0
- package/lib/common/apis/generated/addPhoneContact.js +4 -0
- package/lib/common/apis/generated/alert.d.ts +3 -0
- package/lib/common/apis/generated/alert.js +4 -0
- package/lib/common/apis/generated/apDisableJSAPI.d.ts +2 -0
- package/lib/common/apis/generated/apDisableJSAPI.js +4 -0
- package/lib/common/apis/generated/appxrpc.d.ts +4 -0
- package/lib/common/apis/generated/appxrpc.js +4 -0
- package/lib/common/apis/generated/batchQueryCdpSpaceInfo.d.ts +2 -0
- package/lib/common/apis/generated/batchQueryCdpSpaceInfo.js +4 -0
- package/lib/common/apis/generated/chooseImage.d.ts +3 -0
- package/lib/common/apis/generated/chooseImage.js +4 -0
- package/lib/common/apis/generated/choosePhoneContact.d.ts +3 -0
- package/lib/common/apis/generated/choosePhoneContact.js +4 -0
- package/lib/common/apis/generated/clearStorage.d.ts +3 -0
- package/lib/common/apis/generated/clearStorage.js +4 -0
- package/lib/common/apis/generated/clearStorageSync.d.ts +2 -0
- package/lib/common/apis/generated/clearStorageSync.js +4 -0
- package/lib/common/apis/generated/closeBluetoothAdapter.d.ts +3 -0
- package/lib/common/apis/generated/closeBluetoothAdapter.js +4 -0
- package/lib/common/apis/generated/closeSocket.d.ts +3 -0
- package/lib/common/apis/generated/closeSocket.js +4 -0
- package/lib/common/apis/generated/confirm.d.ts +3 -0
- package/lib/common/apis/generated/confirm.js +4 -0
- package/lib/common/apis/generated/connectBLEDevice.d.ts +3 -0
- package/lib/common/apis/generated/connectBLEDevice.js +4 -0
- package/lib/common/apis/generated/connectSocket.d.ts +3 -0
- package/lib/common/apis/generated/connectSocket.js +4 -0
- package/lib/common/apis/generated/createAnimation.d.ts +3 -0
- package/lib/common/apis/generated/createAnimation.js +4 -0
- package/lib/common/apis/generated/createWebViewContext.d.ts +3 -0
- package/lib/common/apis/generated/createWebViewContext.js +4 -0
- package/lib/common/apis/generated/crossPay.d.ts +3 -0
- package/lib/common/apis/generated/crossPay.js +4 -0
- package/lib/common/apis/generated/datePicker.d.ts +3 -0
- package/lib/common/apis/generated/datePicker.js +4 -0
- package/lib/common/apis/generated/disconnectBLEDevice.d.ts +3 -0
- package/lib/common/apis/generated/disconnectBLEDevice.js +4 -0
- package/lib/common/apis/generated/downloadFile.d.ts +3 -0
- package/lib/common/apis/generated/downloadFile.js +4 -0
- package/lib/common/apis/generated/exitApp.d.ts +2 -0
- package/lib/common/apis/generated/exitApp.js +4 -0
- package/lib/common/apis/generated/getAppIdSync.d.ts +2 -0
- package/lib/common/apis/generated/getAppIdSync.js +4 -0
- package/lib/common/apis/generated/getAppToken.d.ts +2 -0
- package/lib/common/apis/generated/getAppToken.js +4 -0
- package/lib/common/apis/generated/getAuthCode.d.ts +3 -0
- package/lib/common/apis/generated/getAuthCode.js +4 -0
- package/lib/common/apis/generated/getBLEDeviceCharacteristics.d.ts +3 -0
- package/lib/common/apis/generated/getBLEDeviceCharacteristics.js +4 -0
- package/lib/common/apis/generated/getBLEDeviceServices.d.ts +3 -0
- package/lib/common/apis/generated/getBLEDeviceServices.js +4 -0
- package/lib/common/apis/generated/getBatteryInfo.d.ts +3 -0
- package/lib/common/apis/generated/getBatteryInfo.js +4 -0
- package/lib/common/apis/generated/getBluetoothAdapterState.d.ts +3 -0
- package/lib/common/apis/generated/getBluetoothAdapterState.js +4 -0
- package/lib/common/apis/generated/getBluetoothDevices.d.ts +3 -0
- package/lib/common/apis/generated/getBluetoothDevices.js +4 -0
- package/lib/common/apis/generated/getClipboard.d.ts +3 -0
- package/lib/common/apis/generated/getClipboard.js +4 -0
- package/lib/common/apis/generated/getComponentAuth.d.ts +2 -0
- package/lib/common/apis/generated/getComponentAuth.js +4 -0
- package/lib/common/apis/generated/getConnectedBluetoothDevices.d.ts +3 -0
- package/lib/common/apis/generated/getConnectedBluetoothDevices.js +4 -0
- package/lib/common/apis/generated/getFileInfo.d.ts +6 -0
- package/lib/common/apis/generated/getFileInfo.js +4 -0
- package/lib/common/apis/generated/getImageInfo.d.ts +3 -0
- package/lib/common/apis/generated/getImageInfo.js +4 -0
- package/lib/common/apis/generated/getLocation.d.ts +3 -0
- package/lib/common/apis/generated/getLocation.js +4 -0
- package/lib/common/apis/generated/getNetworkType.d.ts +3 -0
- package/lib/common/apis/generated/getNetworkType.js +4 -0
- package/lib/common/apis/generated/getOpenUserInfo.d.ts +3 -0
- package/lib/common/apis/generated/getOpenUserInfo.js +4 -0
- package/lib/common/apis/generated/getPaymentCode.d.ts +2 -0
- package/lib/common/apis/generated/getPaymentCode.js +4 -0
- package/lib/common/apis/generated/getPhoneNumber.d.ts +2 -0
- package/lib/common/apis/generated/getPhoneNumber.js +4 -0
- package/lib/common/apis/generated/getSavedFileInfo.d.ts +3 -0
- package/lib/common/apis/generated/getSavedFileInfo.js +4 -0
- package/lib/common/apis/generated/getSavedFileList.d.ts +3 -0
- package/lib/common/apis/generated/getSavedFileList.js +4 -0
- package/lib/common/apis/generated/getScreenBrightness.d.ts +5 -0
- package/lib/common/apis/generated/getScreenBrightness.js +4 -0
- package/lib/common/apis/generated/getServerTime.d.ts +5 -0
- package/lib/common/apis/generated/getServerTime.js +4 -0
- package/lib/common/apis/generated/getSetting.d.ts +3 -0
- package/lib/common/apis/generated/getSetting.js +4 -0
- package/lib/common/apis/generated/getSiteInfo.d.ts +5 -0
- package/lib/common/apis/generated/getSiteInfo.js +4 -0
- package/lib/common/apis/generated/getStorage.d.ts +3 -0
- package/lib/common/apis/generated/getStorage.js +4 -0
- package/lib/common/apis/generated/getStorageSync.d.ts +6 -0
- package/lib/common/apis/generated/getStorageSync.js +4 -0
- package/lib/common/apis/generated/getSystemInfo.d.ts +3 -0
- package/lib/common/apis/generated/getSystemInfo.js +4 -0
- package/lib/common/apis/generated/hideBackHome.d.ts +2 -0
- package/lib/common/apis/generated/hideBackHome.js +4 -0
- package/lib/common/apis/generated/hideKeyboard.d.ts +2 -0
- package/lib/common/apis/generated/hideKeyboard.js +4 -0
- package/lib/common/apis/generated/hideLoading.d.ts +3 -0
- package/lib/common/apis/generated/hideLoading.js +4 -0
- package/lib/common/apis/generated/hideNavigationBarLoading.d.ts +2 -0
- package/lib/common/apis/generated/hideNavigationBarLoading.js +4 -0
- package/lib/common/apis/generated/hideTabBar.d.ts +3 -0
- package/lib/common/apis/generated/hideTabBar.js +4 -0
- package/lib/common/apis/generated/hideToast.d.ts +3 -0
- package/lib/common/apis/generated/hideToast.js +4 -0
- package/lib/common/apis/generated/inquireQuote.d.ts +2 -0
- package/lib/common/apis/generated/inquireQuote.js +4 -0
- package/lib/common/apis/generated/isInstalledApp.d.ts +2 -0
- package/lib/common/apis/generated/isInstalledApp.js +4 -0
- package/lib/common/apis/generated/makePhoneCall.d.ts +4 -0
- package/lib/common/apis/generated/makePhoneCall.js +4 -0
- package/lib/common/apis/generated/multiLevelSelect.d.ts +3 -0
- package/lib/common/apis/generated/multiLevelSelect.js +4 -0
- package/lib/common/apis/generated/navigateBack.d.ts +3 -0
- package/lib/common/apis/generated/navigateBack.js +4 -0
- package/lib/common/apis/generated/navigateBackMiniProgram.d.ts +3 -0
- package/lib/common/apis/generated/navigateBackMiniProgram.js +4 -0
- package/lib/common/apis/generated/navigateTo.d.ts +3 -0
- package/lib/common/apis/generated/navigateTo.js +4 -0
- package/lib/common/apis/generated/navigateToBizScene.d.ts +2 -0
- package/lib/common/apis/generated/navigateToBizScene.js +4 -0
- package/lib/common/apis/generated/navigateToMiniProgram.d.ts +3 -0
- package/lib/common/apis/generated/navigateToMiniProgram.js +4 -0
- package/lib/common/apis/generated/notifyBLECharacteristicValueChange.d.ts +3 -0
- package/lib/common/apis/generated/notifyBLECharacteristicValueChange.js +4 -0
- package/lib/common/apis/generated/offAccelerometerChange.d.ts +3 -0
- package/lib/common/apis/generated/offAccelerometerChange.js +4 -0
- package/lib/common/apis/generated/offBLECharacteristicValueChange.d.ts +3 -0
- package/lib/common/apis/generated/offBLECharacteristicValueChange.js +4 -0
- package/lib/common/apis/generated/offBLEConnectionStateChanged.d.ts +3 -0
- package/lib/common/apis/generated/offBLEConnectionStateChanged.js +4 -0
- package/lib/common/apis/generated/offBluetoothAdapterStateChange.d.ts +3 -0
- package/lib/common/apis/generated/offBluetoothAdapterStateChange.js +4 -0
- package/lib/common/apis/generated/offBluetoothDeviceFound.d.ts +3 -0
- package/lib/common/apis/generated/offBluetoothDeviceFound.js +4 -0
- package/lib/common/apis/generated/offCompassChange.d.ts +3 -0
- package/lib/common/apis/generated/offCompassChange.js +4 -0
- package/lib/common/apis/generated/offMemoryWarning.d.ts +4 -0
- package/lib/common/apis/generated/offMemoryWarning.js +4 -0
- package/lib/common/apis/generated/offSocketClose.d.ts +3 -0
- package/lib/common/apis/generated/offSocketClose.js +4 -0
- package/lib/common/apis/generated/offSocketError.d.ts +3 -0
- package/lib/common/apis/generated/offSocketError.js +4 -0
- package/lib/common/apis/generated/offSocketMessage.d.ts +3 -0
- package/lib/common/apis/generated/offSocketMessage.js +4 -0
- package/lib/common/apis/generated/offSocketOpen.d.ts +3 -0
- package/lib/common/apis/generated/offSocketOpen.js +4 -0
- package/lib/common/apis/generated/offUserCaptureScreen.d.ts +2 -0
- package/lib/common/apis/generated/offUserCaptureScreen.js +4 -0
- package/lib/common/apis/generated/onAccelerometerChange.d.ts +3 -0
- package/lib/common/apis/generated/onAccelerometerChange.js +4 -0
- package/lib/common/apis/generated/onBLECharacteristicValueChange.d.ts +3 -0
- package/lib/common/apis/generated/onBLECharacteristicValueChange.js +4 -0
- package/lib/common/apis/generated/onBLEConnectionStateChanged.d.ts +3 -0
- package/lib/common/apis/generated/onBLEConnectionStateChanged.js +4 -0
- package/lib/common/apis/generated/onBluetoothAdapterStateChange.d.ts +3 -0
- package/lib/common/apis/generated/onBluetoothAdapterStateChange.js +4 -0
- package/lib/common/apis/generated/onBluetoothDeviceFound.d.ts +3 -0
- package/lib/common/apis/generated/onBluetoothDeviceFound.js +4 -0
- package/lib/common/apis/generated/onCompassChange.d.ts +3 -0
- package/lib/common/apis/generated/onCompassChange.js +4 -0
- package/lib/common/apis/generated/onMemoryWarning.d.ts +4 -0
- package/lib/common/apis/generated/onMemoryWarning.js +4 -0
- package/lib/common/apis/generated/onSocketClose.d.ts +3 -0
- package/lib/common/apis/generated/onSocketClose.js +4 -0
- package/lib/common/apis/generated/onSocketError.d.ts +3 -0
- package/lib/common/apis/generated/onSocketError.js +4 -0
- package/lib/common/apis/generated/onSocketMessage.d.ts +3 -0
- package/lib/common/apis/generated/onSocketMessage.js +4 -0
- package/lib/common/apis/generated/onSocketOpen.d.ts +3 -0
- package/lib/common/apis/generated/onSocketOpen.js +4 -0
- package/lib/common/apis/generated/onUserCaptureScreen.d.ts +2 -0
- package/lib/common/apis/generated/onUserCaptureScreen.js +4 -0
- package/lib/common/apis/generated/openBluetoothAdapter.d.ts +3 -0
- package/lib/common/apis/generated/openBluetoothAdapter.js +4 -0
- package/lib/common/apis/generated/openDocument.d.ts +6 -0
- package/lib/common/apis/generated/openDocument.js +4 -0
- package/lib/common/apis/generated/openSchemeWithBacking.d.ts +2 -0
- package/lib/common/apis/generated/openSchemeWithBacking.js +4 -0
- package/lib/common/apis/generated/openSetting.d.ts +3 -0
- package/lib/common/apis/generated/openSetting.js +4 -0
- package/lib/common/apis/generated/pageScrollTo.d.ts +3 -0
- package/lib/common/apis/generated/pageScrollTo.js +4 -0
- package/lib/common/apis/generated/paySignCenter.d.ts +2 -0
- package/lib/common/apis/generated/paySignCenter.js +4 -0
- package/lib/common/apis/generated/previewImage.d.ts +3 -0
- package/lib/common/apis/generated/previewImage.js +4 -0
- package/lib/common/apis/generated/prompt.d.ts +3 -0
- package/lib/common/apis/generated/prompt.js +4 -0
- package/lib/common/apis/generated/reLaunch.d.ts +3 -0
- package/lib/common/apis/generated/reLaunch.js +4 -0
- package/lib/common/apis/generated/readBLECharacteristicValue.d.ts +3 -0
- package/lib/common/apis/generated/readBLECharacteristicValue.js +4 -0
- package/lib/common/apis/generated/redirectTo.d.ts +3 -0
- package/lib/common/apis/generated/redirectTo.js +4 -0
- package/lib/common/apis/generated/regionFetchAllApps.d.ts +2 -0
- package/lib/common/apis/generated/regionFetchAllApps.js +4 -0
- package/lib/common/apis/generated/regionSearchAppsByKeywords.d.ts +2 -0
- package/lib/common/apis/generated/regionSearchAppsByKeywords.js +4 -0
- package/lib/common/apis/generated/removeSavedFile.d.ts +3 -0
- package/lib/common/apis/generated/removeSavedFile.js +4 -0
- package/lib/common/apis/generated/removeStorage.d.ts +3 -0
- package/lib/common/apis/generated/removeStorage.js +4 -0
- package/lib/common/apis/generated/removeStorageSync.d.ts +4 -0
- package/lib/common/apis/generated/removeStorageSync.js +4 -0
- package/lib/common/apis/generated/request.d.ts +3 -0
- package/lib/common/apis/generated/request.js +4 -0
- package/lib/common/apis/generated/rpc.d.ts +2 -0
- package/lib/common/apis/generated/rpc.js +4 -0
- package/lib/common/apis/generated/saveFile.d.ts +3 -0
- package/lib/common/apis/generated/saveFile.js +4 -0
- package/lib/common/apis/generated/saveImage.d.ts +3 -0
- package/lib/common/apis/generated/saveImage.js +4 -0
- package/lib/common/apis/generated/scan.d.ts +3 -0
- package/lib/common/apis/generated/scan.js +4 -0
- package/lib/common/apis/generated/sendSocketMessage.d.ts +3 -0
- package/lib/common/apis/generated/sendSocketMessage.js +4 -0
- package/lib/common/apis/generated/setBackgroundColor.d.ts +3 -0
- package/lib/common/apis/generated/setBackgroundColor.js +4 -0
- package/lib/common/apis/generated/setCanPullDown.d.ts +4 -0
- package/lib/common/apis/generated/setCanPullDown.js +4 -0
- package/lib/common/apis/generated/setClipboard.d.ts +3 -0
- package/lib/common/apis/generated/setClipboard.js +4 -0
- package/lib/common/apis/generated/setKeepScreenOn.d.ts +3 -0
- package/lib/common/apis/generated/setKeepScreenOn.js +4 -0
- package/lib/common/apis/generated/setNavigationBar.d.ts +3 -0
- package/lib/common/apis/generated/setNavigationBar.js +4 -0
- package/lib/common/apis/generated/setOptionMenu.d.ts +3 -0
- package/lib/common/apis/generated/setOptionMenu.js +4 -0
- package/lib/common/apis/generated/setScreenBrightness.d.ts +3 -0
- package/lib/common/apis/generated/setScreenBrightness.js +4 -0
- package/lib/common/apis/generated/setStorage.d.ts +3 -0
- package/lib/common/apis/generated/setStorage.js +4 -0
- package/lib/common/apis/generated/setStorageSync.d.ts +5 -0
- package/lib/common/apis/generated/setStorageSync.js +4 -0
- package/lib/common/apis/generated/setTabBarStyle.d.ts +2 -0
- package/lib/common/apis/generated/setTabBarStyle.js +4 -0
- package/lib/common/apis/generated/showActionSheet.d.ts +2 -0
- package/lib/common/apis/generated/showActionSheet.js +4 -0
- package/lib/common/apis/generated/showAuthGuide.d.ts +3 -0
- package/lib/common/apis/generated/showAuthGuide.js +4 -0
- package/lib/common/apis/generated/showLoading.d.ts +3 -0
- package/lib/common/apis/generated/showLoading.js +4 -0
- package/lib/common/apis/generated/showNavigationBarLoading.d.ts +2 -0
- package/lib/common/apis/generated/showNavigationBarLoading.js +4 -0
- package/lib/common/apis/generated/showToast.d.ts +3 -0
- package/lib/common/apis/generated/showToast.js +4 -0
- package/lib/common/apis/generated/signContract.d.ts +3 -0
- package/lib/common/apis/generated/signContract.js +4 -0
- package/lib/common/apis/generated/startApp.d.ts +2 -0
- package/lib/common/apis/generated/startApp.js +4 -0
- package/lib/common/apis/generated/startBizService.d.ts +2 -0
- package/lib/common/apis/generated/startBizService.js +4 -0
- package/lib/common/apis/generated/startBluetoothDevicesDiscovery.d.ts +3 -0
- package/lib/common/apis/generated/startBluetoothDevicesDiscovery.js +4 -0
- package/lib/common/apis/generated/startPullDownRefresh.d.ts +2 -0
- package/lib/common/apis/generated/startPullDownRefresh.js +4 -0
- package/lib/common/apis/generated/stopBluetoothDevicesDiscovery.d.ts +3 -0
- package/lib/common/apis/generated/stopBluetoothDevicesDiscovery.js +4 -0
- package/lib/common/apis/generated/stopPullDownRefresh.d.ts +2 -0
- package/lib/common/apis/generated/stopPullDownRefresh.js +4 -0
- package/lib/common/apis/generated/switchTab.d.ts +3 -0
- package/lib/common/apis/generated/switchTab.js +4 -0
- package/lib/common/apis/generated/thirdPartyAuthForAc.d.ts +2 -0
- package/lib/common/apis/generated/thirdPartyAuthForAc.js +4 -0
- package/lib/common/apis/generated/tradePay.d.ts +3 -0
- package/lib/common/apis/generated/tradePay.js +4 -0
- package/lib/common/apis/generated/uploadApdidToken.d.ts +2 -0
- package/lib/common/apis/generated/uploadApdidToken.js +4 -0
- package/lib/common/apis/generated/uploadFile.d.ts +3 -0
- package/lib/common/apis/generated/uploadFile.js +4 -0
- package/lib/common/apis/generated/vibrate.d.ts +3 -0
- package/lib/common/apis/generated/vibrate.js +4 -0
- package/lib/common/apis/generated/watchShake.d.ts +3 -0
- package/lib/common/apis/generated/watchShake.js +4 -0
- package/lib/common/apis/generated/writeBLECharacteristicValue.d.ts +3 -0
- package/lib/common/apis/generated/writeBLECharacteristicValue.js +4 -0
- package/lib/common/call/index.d.ts +11 -0
- package/lib/common/call/index.js +89 -0
- package/lib/common/call/mp.d.ts +2 -0
- package/lib/common/call/mp.js +6 -0
- package/lib/common/call/mpWeb.d.ts +4 -0
- package/lib/common/call/mpWeb.js +50 -0
- package/lib/common/call/web.d.ts +2 -0
- package/lib/common/call/web.js +32 -0
- package/lib/common/canIUse.d.ts +3 -0
- package/lib/common/canIUse.js +152 -0
- package/lib/common/constants.d.ts +17 -0
- package/lib/common/constants.js +27 -1
- package/lib/common/init-mp-web-channel.js +3 -3
- package/lib/common/logger.d.ts +21 -0
- package/lib/common/logger.js +44 -0
- package/lib/common/notFound.d.ts +2 -0
- package/lib/common/notFound.js +12 -0
- package/lib/index.d.ts +5 -5
- package/lib/index.js +5 -5
- package/lib/umd/1.0.4/index.js +1 -1
- package/lib/umd/1.0.5/index.js +1 -0
- package/package.json +2 -2
- package/lib/appEnv.d.ts +0 -12
- package/lib/appEnv.js +0 -79
- package/lib/clients/mp/lazada/getAppIdSync.d.ts +0 -3
- package/lib/clients/mp/lazada/getAppIdSync.js +0 -7
- package/lib/clients/mp/lazada/hideNavigationBarLoading.d.ts +0 -3
- package/lib/clients/mp/lazada/hideNavigationBarLoading.js +0 -6
- package/lib/clients/mp/lazada/showNavigationBarLoading.d.ts +0 -3
- package/lib/clients/mp/lazada/showNavigationBarLoading.js +0 -6
- package/lib/clients/mp/lazada/tradePay.d.ts +0 -3
- package/lib/clients/mp/lazada/tradePay.js +0 -11
- package/lib/clients/mp/taobao/tradePay.d.ts +0 -3
- package/lib/clients/mp/taobao/tradePay.js +0 -11
- package/lib/clients/mp-web/cn/crossPay.d.ts +0 -3
- package/lib/clients/mp-web/cn/crossPay.js +0 -8
- package/lib/clients/mp-web/cn/index.d.ts +0 -91
- package/lib/clients/mp-web/cn/index.js +0 -88
- package/lib/clients/mp-web/intl/APRegionRPC.d.ts +0 -3
- package/lib/clients/mp-web/intl/APRegionRPC.js +0 -7
- package/lib/clients/mp-web/intl/addFatigueAction.d.ts +0 -3
- package/lib/clients/mp-web/intl/addFatigueAction.js +0 -7
- package/lib/clients/mp-web/intl/apDisableJSAPI.d.ts +0 -3
- package/lib/clients/mp-web/intl/apDisableJSAPI.js +0 -7
- package/lib/clients/mp-web/intl/appxrpc.d.ts +0 -3
- package/lib/clients/mp-web/intl/appxrpc.js +0 -7
- package/lib/clients/mp-web/intl/batchQueryCdpSpaceInfo.d.ts +0 -3
- package/lib/clients/mp-web/intl/batchQueryCdpSpaceInfo.js +0 -7
- package/lib/clients/mp-web/intl/choosePhoneContact.d.ts +0 -3
- package/lib/clients/mp-web/intl/choosePhoneContact.js +0 -7
- package/lib/clients/mp-web/intl/crossPay.js +0 -7
- package/lib/clients/mp-web/intl/exitApp.d.ts +0 -3
- package/lib/clients/mp-web/intl/exitApp.js +0 -7
- package/lib/clients/mp-web/intl/getAppToken.d.ts +0 -3
- package/lib/clients/mp-web/intl/getAppToken.js +0 -7
- package/lib/clients/mp-web/intl/getComponentAuth.d.ts +0 -3
- package/lib/clients/mp-web/intl/getComponentAuth.js +0 -7
- package/lib/clients/mp-web/intl/getPaymentCode.d.ts +0 -3
- package/lib/clients/mp-web/intl/getPaymentCode.js +0 -7
- package/lib/clients/mp-web/intl/getPhoneNumber.d.ts +0 -3
- package/lib/clients/mp-web/intl/getPhoneNumber.js +0 -7
- package/lib/clients/mp-web/intl/getServerTime.d.ts +0 -3
- package/lib/clients/mp-web/intl/getServerTime.js +0 -7
- package/lib/clients/mp-web/intl/getSetting.d.ts +0 -3
- package/lib/clients/mp-web/intl/getSetting.js +0 -7
- package/lib/clients/mp-web/intl/getSiteInfo.d.ts +0 -3
- package/lib/clients/mp-web/intl/getSiteInfo.js +0 -7
- package/lib/clients/mp-web/intl/index.d.ts +0 -149
- package/lib/clients/mp-web/intl/index.js +0 -140
- package/lib/clients/mp-web/intl/inquireQuote.d.ts +0 -3
- package/lib/clients/mp-web/intl/inquireQuote.js +0 -7
- package/lib/clients/mp-web/intl/isInstalledApp.d.ts +0 -3
- package/lib/clients/mp-web/intl/isInstalledApp.js +0 -7
- package/lib/clients/mp-web/intl/navigateToBizScene.d.ts +0 -3
- package/lib/clients/mp-web/intl/navigateToBizScene.js +0 -7
- package/lib/clients/mp-web/intl/openSchemeWithBacking.d.ts +0 -3
- package/lib/clients/mp-web/intl/openSchemeWithBacking.js +0 -7
- package/lib/clients/mp-web/intl/paySignCenter.d.ts +0 -3
- package/lib/clients/mp-web/intl/paySignCenter.js +0 -7
- package/lib/clients/mp-web/intl/regionFetchAllApps.d.ts +0 -3
- package/lib/clients/mp-web/intl/regionFetchAllApps.js +0 -7
- package/lib/clients/mp-web/intl/regionSearchAppsByKeywords.d.ts +0 -3
- package/lib/clients/mp-web/intl/regionSearchAppsByKeywords.js +0 -7
- package/lib/clients/mp-web/intl/rpc.d.ts +0 -3
- package/lib/clients/mp-web/intl/rpc.js +0 -7
- package/lib/clients/mp-web/intl/signContract.d.ts +0 -3
- package/lib/clients/mp-web/intl/signContract.js +0 -7
- package/lib/clients/mp-web/intl/startApp.d.ts +0 -3
- package/lib/clients/mp-web/intl/startApp.js +0 -7
- package/lib/clients/mp-web/intl/startBizService.d.ts +0 -3
- package/lib/clients/mp-web/intl/startBizService.js +0 -7
- package/lib/clients/mp-web/intl/thirdPartyAuthForAc.d.ts +0 -3
- package/lib/clients/mp-web/intl/thirdPartyAuthForAc.js +0 -7
- package/lib/clients/mp-web/intl/uploadApdidToken.d.ts +0 -3
- package/lib/clients/mp-web/intl/uploadApdidToken.js +0 -7
- package/lib/clients/web/intl/getSiteInfo.d.ts +0 -3
- package/lib/clients/web/intl/getSiteInfo.js +0 -51
- package/lib/common/mp/alert.d.ts +0 -3
- package/lib/common/mp/alert.js +0 -7
- package/lib/common/mp/clearStorage.d.ts +0 -3
- package/lib/common/mp/clearStorage.js +0 -7
- package/lib/common/mp/clearStorageSync.d.ts +0 -3
- package/lib/common/mp/clearStorageSync.js +0 -7
- package/lib/common/mp/confirm.d.ts +0 -3
- package/lib/common/mp/confirm.js +0 -7
- package/lib/common/mp/createAnimation.d.ts +0 -3
- package/lib/common/mp/createAnimation.js +0 -7
- package/lib/common/mp/createWebViewContext.d.ts +0 -3
- package/lib/common/mp/createWebViewContext.js +0 -7
- package/lib/common/mp/getClipboard.d.ts +0 -3
- package/lib/common/mp/getClipboard.js +0 -7
- package/lib/common/mp/getLocation.d.ts +0 -3
- package/lib/common/mp/getLocation.js +0 -7
- package/lib/common/mp/getNetworkType.d.ts +0 -3
- package/lib/common/mp/getNetworkType.js +0 -7
- package/lib/common/mp/getStorage.d.ts +0 -3
- package/lib/common/mp/getStorage.js +0 -7
- package/lib/common/mp/getStorageSync.d.ts +0 -3
- package/lib/common/mp/getStorageSync.js +0 -7
- package/lib/common/mp/getSystemInfo.d.ts +0 -3
- package/lib/common/mp/getSystemInfo.js +0 -7
- package/lib/common/mp/hideBackHome.d.ts +0 -3
- package/lib/common/mp/hideBackHome.js +0 -7
- package/lib/common/mp/hideKeyboard.d.ts +0 -3
- package/lib/common/mp/hideKeyboard.js +0 -7
- package/lib/common/mp/hideLoading.d.ts +0 -3
- package/lib/common/mp/hideLoading.js +0 -7
- package/lib/common/mp/hideTabBar.d.ts +0 -3
- package/lib/common/mp/hideTabBar.js +0 -7
- package/lib/common/mp/hideToast.d.ts +0 -3
- package/lib/common/mp/hideToast.js +0 -7
- package/lib/common/mp/navigateBack.d.ts +0 -3
- package/lib/common/mp/navigateBack.js +0 -7
- package/lib/common/mp/navigateTo.d.ts +0 -3
- package/lib/common/mp/navigateTo.js +0 -7
- package/lib/common/mp/offMemoryWarning.d.ts +0 -3
- package/lib/common/mp/offMemoryWarning.js +0 -7
- package/lib/common/mp/onMemoryWarning.d.ts +0 -3
- package/lib/common/mp/onMemoryWarning.js +0 -7
- package/lib/common/mp/pageScrollTo.d.ts +0 -3
- package/lib/common/mp/pageScrollTo.js +0 -7
- package/lib/common/mp/prompt.d.ts +0 -3
- package/lib/common/mp/prompt.js +0 -7
- package/lib/common/mp/reLaunch.d.ts +0 -3
- package/lib/common/mp/reLaunch.js +0 -7
- package/lib/common/mp/redirectTo.d.ts +0 -3
- package/lib/common/mp/redirectTo.js +0 -7
- package/lib/common/mp/removeStorage.d.ts +0 -3
- package/lib/common/mp/removeStorage.js +0 -7
- package/lib/common/mp/removeStorageSync.d.ts +0 -3
- package/lib/common/mp/removeStorageSync.js +0 -7
- package/lib/common/mp/request.d.ts +0 -3
- package/lib/common/mp/request.js +0 -7
- package/lib/common/mp/scan.d.ts +0 -3
- package/lib/common/mp/scan.js +0 -7
- package/lib/common/mp/setBackgroundColor.d.ts +0 -3
- package/lib/common/mp/setBackgroundColor.js +0 -7
- package/lib/common/mp/setCanPullDown.d.ts +0 -3
- package/lib/common/mp/setCanPullDown.js +0 -7
- package/lib/common/mp/setClipboard.d.ts +0 -3
- package/lib/common/mp/setClipboard.js +0 -7
- package/lib/common/mp/setNavigationBar.d.ts +0 -3
- package/lib/common/mp/setNavigationBar.js +0 -7
- package/lib/common/mp/setStorage.d.ts +0 -3
- package/lib/common/mp/setStorage.js +0 -7
- package/lib/common/mp/setStorageSync.d.ts +0 -3
- package/lib/common/mp/setStorageSync.js +0 -7
- package/lib/common/mp/setTabBarStyle.d.ts +0 -3
- package/lib/common/mp/setTabBarStyle.js +0 -7
- package/lib/common/mp/showActionSheet.d.ts +0 -3
- package/lib/common/mp/showActionSheet.js +0 -7
- package/lib/common/mp/showAuthGuide.d.ts +0 -3
- package/lib/common/mp/showAuthGuide.js +0 -7
- package/lib/common/mp/showLoading.d.ts +0 -3
- package/lib/common/mp/showLoading.js +0 -7
- package/lib/common/mp/showToast.d.ts +0 -3
- package/lib/common/mp/showToast.js +0 -7
- package/lib/common/mp/startPullDownRefresh.d.ts +0 -3
- package/lib/common/mp/startPullDownRefresh.js +0 -7
- package/lib/common/mp/stopPullDownRefresh.d.ts +0 -3
- package/lib/common/mp/stopPullDownRefresh.js +0 -7
- package/lib/common/mp/switchTab.d.ts +0 -3
- package/lib/common/mp/switchTab.js +0 -7
- package/lib/common/mp-web/alert.d.ts +0 -3
- package/lib/common/mp-web/alert.js +0 -9
- package/lib/common/mp-web/chooseImage.d.ts +0 -3
- package/lib/common/mp-web/chooseImage.js +0 -9
- package/lib/common/mp-web/clearStorage.d.ts +0 -3
- package/lib/common/mp-web/clearStorage.js +0 -9
- package/lib/common/mp-web/confirm.d.ts +0 -3
- package/lib/common/mp-web/confirm.js +0 -9
- package/lib/common/mp-web/getAppIdSync.d.ts +0 -3
- package/lib/common/mp-web/getAppIdSync.js +0 -9
- package/lib/common/mp-web/getAuthCode.d.ts +0 -3
- package/lib/common/mp-web/getAuthCode.js +0 -9
- package/lib/common/mp-web/getClipboard.d.ts +0 -3
- package/lib/common/mp-web/getClipboard.js +0 -9
- package/lib/common/mp-web/getImageInfo.d.ts +0 -3
- package/lib/common/mp-web/getImageInfo.js +0 -9
- package/lib/common/mp-web/getLocation.d.ts +0 -3
- package/lib/common/mp-web/getLocation.js +0 -9
- package/lib/common/mp-web/getNetworkType.d.ts +0 -3
- package/lib/common/mp-web/getNetworkType.js +0 -9
- package/lib/common/mp-web/getPhoneNumber.d.ts +0 -3
- package/lib/common/mp-web/getPhoneNumber.js +0 -9
- package/lib/common/mp-web/getStorage.d.ts +0 -3
- package/lib/common/mp-web/getStorage.js +0 -9
- package/lib/common/mp-web/getSystemInfo.d.ts +0 -3
- package/lib/common/mp-web/getSystemInfo.js +0 -9
- package/lib/common/mp-web/hideKeyboard.d.ts +0 -3
- package/lib/common/mp-web/hideKeyboard.js +0 -9
- package/lib/common/mp-web/hideLoading.d.ts +0 -3
- package/lib/common/mp-web/hideLoading.js +0 -9
- package/lib/common/mp-web/hideNavigationBarLoading.d.ts +0 -3
- package/lib/common/mp-web/hideNavigationBarLoading.js +0 -9
- package/lib/common/mp-web/hideToast.d.ts +0 -3
- package/lib/common/mp-web/hideToast.js +0 -9
- package/lib/common/mp-web/makePhoneCall.d.ts +0 -3
- package/lib/common/mp-web/makePhoneCall.js +0 -9
- package/lib/common/mp-web/multiLevelSelect.d.ts +0 -3
- package/lib/common/mp-web/multiLevelSelect.js +0 -9
- package/lib/common/mp-web/navigateBack.d.ts +0 -3
- package/lib/common/mp-web/navigateBack.js +0 -9
- package/lib/common/mp-web/navigateBackMiniProgram.d.ts +0 -3
- package/lib/common/mp-web/navigateBackMiniProgram.js +0 -9
- package/lib/common/mp-web/navigateTo.d.ts +0 -3
- package/lib/common/mp-web/navigateTo.js +0 -9
- package/lib/common/mp-web/navigateToMiniProgram.d.ts +0 -3
- package/lib/common/mp-web/navigateToMiniProgram.js +0 -9
- package/lib/common/mp-web/previewImage.d.ts +0 -3
- package/lib/common/mp-web/previewImage.js +0 -9
- package/lib/common/mp-web/prompt.d.ts +0 -3
- package/lib/common/mp-web/prompt.js +0 -9
- package/lib/common/mp-web/reLaunch.d.ts +0 -3
- package/lib/common/mp-web/reLaunch.js +0 -9
- package/lib/common/mp-web/redirectTo.d.ts +0 -3
- package/lib/common/mp-web/redirectTo.js +0 -9
- package/lib/common/mp-web/removeStorage.d.ts +0 -3
- package/lib/common/mp-web/removeStorage.js +0 -9
- package/lib/common/mp-web/request.d.ts +0 -3
- package/lib/common/mp-web/request.js +0 -9
- package/lib/common/mp-web/saveImage.d.ts +0 -3
- package/lib/common/mp-web/saveImage.js +0 -9
- package/lib/common/mp-web/scan.d.ts +0 -3
- package/lib/common/mp-web/scan.js +0 -9
- package/lib/common/mp-web/setClipboard.d.ts +0 -3
- package/lib/common/mp-web/setClipboard.js +0 -9
- package/lib/common/mp-web/setNavigationBar.d.ts +0 -3
- package/lib/common/mp-web/setNavigationBar.js +0 -9
- package/lib/common/mp-web/setOptionMenu.d.ts +0 -3
- package/lib/common/mp-web/setOptionMenu.js +0 -9
- package/lib/common/mp-web/setStorage.d.ts +0 -3
- package/lib/common/mp-web/setStorage.js +0 -9
- package/lib/common/mp-web/showAuthGuide.d.ts +0 -3
- package/lib/common/mp-web/showAuthGuide.js +0 -9
- package/lib/common/mp-web/showLoading.d.ts +0 -3
- package/lib/common/mp-web/showLoading.js +0 -9
- package/lib/common/mp-web/showNavigationBarLoading.d.ts +0 -3
- package/lib/common/mp-web/showNavigationBarLoading.js +0 -9
- package/lib/common/mp-web/showToast.d.ts +0 -3
- package/lib/common/mp-web/showToast.js +0 -9
- package/lib/common/mp-web/tradePay.d.ts +0 -3
- package/lib/common/mp-web/tradePay.js +0 -9
- package/lib/common/mp-web/vibrate.d.ts +0 -3
- package/lib/common/mp-web/vibrate.js +0 -9
- package/lib/common/mp-web-call copy.d.ts +0 -4
- package/lib/common/mp-web-call copy.js +0 -76
- package/lib/common/mp-web-call.d.ts +0 -4
- package/lib/common/mp-web-call.js +0 -50
- package/lib/common/mp-web-call2.d.ts +0 -4
- package/lib/common/mp-web-call2.js +0 -54
- package/lib/common/notImplemented.d.ts +0 -2
- package/lib/common/notImplemented.js +0 -5
- package/lib/common/web/addPhoneContact.d.ts +0 -3
- package/lib/common/web/addPhoneContact.js +0 -51
- package/lib/common/web/alert.d.ts +0 -3
- package/lib/common/web/alert.js +0 -54
- package/lib/common/web/chooseImage.d.ts +0 -3
- package/lib/common/web/chooseImage.js +0 -51
- package/lib/common/web/clearStorage.d.ts +0 -3
- package/lib/common/web/clearStorage.js +0 -49
- package/lib/common/web/closeBluetoothAdapter.d.ts +0 -3
- package/lib/common/web/closeBluetoothAdapter.js +0 -51
- package/lib/common/web/closeSocket.d.ts +0 -3
- package/lib/common/web/closeSocket.js +0 -51
- package/lib/common/web/confirm.d.ts +0 -3
- package/lib/common/web/confirm.js +0 -61
- package/lib/common/web/connectBLEDevice.d.ts +0 -3
- package/lib/common/web/connectBLEDevice.js +0 -51
- package/lib/common/web/connectSocket.d.ts +0 -3
- package/lib/common/web/connectSocket.js +0 -51
- package/lib/common/web/datePicker.d.ts +0 -3
- package/lib/common/web/datePicker.js +0 -59
- package/lib/common/web/disconnectBLEDevice.d.ts +0 -3
- package/lib/common/web/disconnectBLEDevice.js +0 -51
- package/lib/common/web/downloadFile.d.ts +0 -3
- package/lib/common/web/downloadFile.js +0 -68
- package/lib/common/web/getAuthCode.d.ts +0 -3
- package/lib/common/web/getAuthCode.js +0 -51
- package/lib/common/web/getBLEDeviceCharacteristics.d.ts +0 -3
- package/lib/common/web/getBLEDeviceCharacteristics.js +0 -51
- package/lib/common/web/getBLEDeviceServices.d.ts +0 -3
- package/lib/common/web/getBLEDeviceServices.js +0 -51
- package/lib/common/web/getBatteryInfo.d.ts +0 -3
- package/lib/common/web/getBatteryInfo.js +0 -51
- package/lib/common/web/getBluetoothAdapterState.d.ts +0 -3
- package/lib/common/web/getBluetoothAdapterState.js +0 -51
- package/lib/common/web/getBluetoothDevices.d.ts +0 -3
- package/lib/common/web/getBluetoothDevices.js +0 -51
- package/lib/common/web/getClipboard.d.ts +0 -3
- package/lib/common/web/getClipboard.js +0 -51
- package/lib/common/web/getConnectedBluetoothDevices.d.ts +0 -3
- package/lib/common/web/getConnectedBluetoothDevices.js +0 -51
- package/lib/common/web/getFileInfo.d.ts +0 -3
- package/lib/common/web/getFileInfo.js +0 -51
- package/lib/common/web/getImageInfo.d.ts +0 -3
- package/lib/common/web/getImageInfo.js +0 -51
- package/lib/common/web/getLocation.d.ts +0 -3
- package/lib/common/web/getLocation.js +0 -53
- package/lib/common/web/getNetworkType.d.ts +0 -3
- package/lib/common/web/getNetworkType.js +0 -39
- package/lib/common/web/getPhoneNumber.d.ts +0 -3
- package/lib/common/web/getPhoneNumber.js +0 -51
- package/lib/common/web/getSavedFileInfo.d.ts +0 -3
- package/lib/common/web/getSavedFileInfo.js +0 -51
- package/lib/common/web/getSavedFileList.d.ts +0 -3
- package/lib/common/web/getSavedFileList.js +0 -51
- package/lib/common/web/getScreenBrightness.d.ts +0 -3
- package/lib/common/web/getScreenBrightness.js +0 -51
- package/lib/common/web/getServerTime.d.ts +0 -3
- package/lib/common/web/getServerTime.js +0 -51
- package/lib/common/web/getSetting.d.ts +0 -3
- package/lib/common/web/getSetting.js +0 -51
- package/lib/common/web/getStorage.d.ts +0 -3
- package/lib/common/web/getStorage.js +0 -53
- package/lib/common/web/getSystemInfo.d.ts +0 -3
- package/lib/common/web/getSystemInfo.js +0 -19
- package/lib/common/web/hideKeyboard.d.ts +0 -3
- package/lib/common/web/hideKeyboard.js +0 -7
- package/lib/common/web/hideLoading.d.ts +0 -3
- package/lib/common/web/hideLoading.js +0 -7
- package/lib/common/web/hideNavigationBarLoading.d.ts +0 -3
- package/lib/common/web/hideNavigationBarLoading.js +0 -7
- package/lib/common/web/hideToast.d.ts +0 -3
- package/lib/common/web/hideToast.js +0 -51
- package/lib/common/web/multiLevelSelect.d.ts +0 -3
- package/lib/common/web/multiLevelSelect.js +0 -51
- package/lib/common/web/navigateBack.d.ts +0 -3
- package/lib/common/web/navigateBack.js +0 -53
- package/lib/common/web/navigateBackMiniProgram.d.ts +0 -3
- package/lib/common/web/navigateBackMiniProgram.js +0 -51
- package/lib/common/web/navigateTo.d.ts +0 -3
- package/lib/common/web/navigateTo.js +0 -49
- package/lib/common/web/navigateToMiniProgram.d.ts +0 -3
- package/lib/common/web/navigateToMiniProgram.js +0 -51
- package/lib/common/web/notifyBLECharacteristicValueChange.d.ts +0 -3
- package/lib/common/web/notifyBLECharacteristicValueChange.js +0 -51
- package/lib/common/web/offAccelerometerChange.d.ts +0 -3
- package/lib/common/web/offAccelerometerChange.js +0 -51
- package/lib/common/web/offBLECharacteristicValueChange.d.ts +0 -3
- package/lib/common/web/offBLECharacteristicValueChange.js +0 -51
- package/lib/common/web/offBLEConnectionStateChanged.d.ts +0 -3
- package/lib/common/web/offBLEConnectionStateChanged.js +0 -51
- package/lib/common/web/offBluetoothAdapterStateChange.d.ts +0 -3
- package/lib/common/web/offBluetoothAdapterStateChange.js +0 -51
- package/lib/common/web/offBluetoothDeviceFound.d.ts +0 -3
- package/lib/common/web/offBluetoothDeviceFound.js +0 -51
- package/lib/common/web/offCompassChange.d.ts +0 -3
- package/lib/common/web/offCompassChange.js +0 -51
- package/lib/common/web/offSocketClose.d.ts +0 -3
- package/lib/common/web/offSocketClose.js +0 -51
- package/lib/common/web/offSocketError.d.ts +0 -3
- package/lib/common/web/offSocketError.js +0 -51
- package/lib/common/web/offSocketMessage.d.ts +0 -3
- package/lib/common/web/offSocketMessage.js +0 -51
- package/lib/common/web/offSocketOpen.d.ts +0 -3
- package/lib/common/web/offSocketOpen.js +0 -51
- package/lib/common/web/offUserCaptureScreen.d.ts +0 -3
- package/lib/common/web/offUserCaptureScreen.js +0 -51
- package/lib/common/web/onAccelerometerChange.d.ts +0 -3
- package/lib/common/web/onAccelerometerChange.js +0 -51
- package/lib/common/web/onBLECharacteristicValueChange.d.ts +0 -3
- package/lib/common/web/onBLECharacteristicValueChange.js +0 -51
- package/lib/common/web/onBLEConnectionStateChanged.d.ts +0 -3
- package/lib/common/web/onBLEConnectionStateChanged.js +0 -51
- package/lib/common/web/onBluetoothAdapterStateChange.d.ts +0 -3
- package/lib/common/web/onBluetoothAdapterStateChange.js +0 -51
- package/lib/common/web/onBluetoothDeviceFound.d.ts +0 -3
- package/lib/common/web/onBluetoothDeviceFound.js +0 -51
- package/lib/common/web/onCompassChange.d.ts +0 -3
- package/lib/common/web/onCompassChange.js +0 -51
- package/lib/common/web/onSocketClose.d.ts +0 -3
- package/lib/common/web/onSocketClose.js +0 -51
- package/lib/common/web/onSocketError.d.ts +0 -3
- package/lib/common/web/onSocketError.js +0 -51
- package/lib/common/web/onSocketMessage.d.ts +0 -3
- package/lib/common/web/onSocketMessage.js +0 -51
- package/lib/common/web/onSocketOpen.d.ts +0 -3
- package/lib/common/web/onSocketOpen.js +0 -51
- package/lib/common/web/onUserCaptureScreen.d.ts +0 -3
- package/lib/common/web/onUserCaptureScreen.js +0 -51
- package/lib/common/web/openBluetoothAdapter.d.ts +0 -3
- package/lib/common/web/openBluetoothAdapter.js +0 -51
- package/lib/common/web/openDocument.d.ts +0 -3
- package/lib/common/web/openDocument.js +0 -51
- package/lib/common/web/openSetting.d.ts +0 -3
- package/lib/common/web/openSetting.js +0 -51
- package/lib/common/web/previewImage.d.ts +0 -3
- package/lib/common/web/previewImage.js +0 -51
- package/lib/common/web/reLaunch.d.ts +0 -3
- package/lib/common/web/reLaunch.js +0 -49
- package/lib/common/web/readBLECharacteristicValue.d.ts +0 -3
- package/lib/common/web/readBLECharacteristicValue.js +0 -51
- package/lib/common/web/redirectTo.d.ts +0 -3
- package/lib/common/web/redirectTo.js +0 -18
- package/lib/common/web/removeSavedFile.d.ts +0 -3
- package/lib/common/web/removeSavedFile.js +0 -51
- package/lib/common/web/removeStorage.d.ts +0 -3
- package/lib/common/web/removeStorage.js +0 -49
- package/lib/common/web/request.d.ts +0 -3
- package/lib/common/web/request.js +0 -94
- package/lib/common/web/saveFile.d.ts +0 -3
- package/lib/common/web/saveFile.js +0 -52
- package/lib/common/web/saveImage.d.ts +0 -3
- package/lib/common/web/saveImage.js +0 -51
- package/lib/common/web/scan.d.ts +0 -3
- package/lib/common/web/scan.js +0 -51
- package/lib/common/web/sendSocketMessage.d.ts +0 -3
- package/lib/common/web/sendSocketMessage.js +0 -51
- package/lib/common/web/setBackgroundColor.d.ts +0 -3
- package/lib/common/web/setBackgroundColor.js +0 -51
- package/lib/common/web/setCanPullDown.d.ts +0 -3
- package/lib/common/web/setCanPullDown.js +0 -51
- package/lib/common/web/setClipboard.d.ts +0 -3
- package/lib/common/web/setClipboard.js +0 -51
- package/lib/common/web/setKeepScreenOn.d.ts +0 -3
- package/lib/common/web/setKeepScreenOn.js +0 -51
- package/lib/common/web/setNavigationBar.d.ts +0 -3
- package/lib/common/web/setNavigationBar.js +0 -79
- package/lib/common/web/setOptionMenu.d.ts +0 -3
- package/lib/common/web/setOptionMenu.js +0 -51
- package/lib/common/web/setScreenBrightness.d.ts +0 -3
- package/lib/common/web/setScreenBrightness.js +0 -51
- package/lib/common/web/setStorage.d.ts +0 -3
- package/lib/common/web/setStorage.js +0 -52
- package/lib/common/web/setTabBarStyle.d.ts +0 -3
- package/lib/common/web/setTabBarStyle.js +0 -51
- package/lib/common/web/showActionSheet.d.ts +0 -3
- package/lib/common/web/showActionSheet.js +0 -54
- package/lib/common/web/showAuthGuide.d.ts +0 -3
- package/lib/common/web/showAuthGuide.js +0 -51
- package/lib/common/web/showLoading.d.ts +0 -3
- package/lib/common/web/showLoading.js +0 -51
- package/lib/common/web/showNavigationBarLoading.d.ts +0 -3
- package/lib/common/web/showNavigationBarLoading.js +0 -7
- package/lib/common/web/showToast.d.ts +0 -3
- package/lib/common/web/showToast.js +0 -53
- package/lib/common/web/signContract.d.ts +0 -3
- package/lib/common/web/signContract.js +0 -51
- package/lib/common/web/startBluetoothDevicesDiscovery.d.ts +0 -3
- package/lib/common/web/startBluetoothDevicesDiscovery.js +0 -51
- package/lib/common/web/startPullDownRefresh.d.ts +0 -3
- package/lib/common/web/startPullDownRefresh.js +0 -7
- package/lib/common/web/stopBluetoothDevicesDiscovery.d.ts +0 -3
- package/lib/common/web/stopBluetoothDevicesDiscovery.js +0 -51
- package/lib/common/web/stopPullDownRefresh.d.ts +0 -3
- package/lib/common/web/stopPullDownRefresh.js +0 -7
- package/lib/common/web/switchTab.d.ts +0 -3
- package/lib/common/web/switchTab.js +0 -51
- package/lib/common/web/uploadFile.d.ts +0 -3
- package/lib/common/web/uploadFile.js +0 -54
- package/lib/common/web/vibrate.d.ts +0 -3
- package/lib/common/web/vibrate.js +0 -51
- package/lib/common/web/watchShake.d.ts +0 -3
- package/lib/common/web/watchShake.js +0 -51
- package/lib/common/web/writeBLECharacteristicValue.d.ts +0 -3
- package/lib/common/web/writeBLECharacteristicValue.js +0 -51
- package/lib/common/web-call.d.ts +0 -4
- package/lib/common/web-call.js +0 -20
- package/lib/umd/1.0.1/index.js +0 -1
- package/lib/umd/1.0.2/index.js +0 -1
- package/lib/umd/1.0.3/index.js +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
|
|
20
|
+
for (var p in s) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
import call from '../../../call';
|
|
31
|
+
import { isIOS, safeJSONParse } from '../../../utils';
|
|
32
|
+
|
|
33
|
+
var request = function request(options) {
|
|
34
|
+
var _a = options || {},
|
|
35
|
+
headers = _a.headers,
|
|
36
|
+
data = _a.data,
|
|
37
|
+
dataType = _a.dataType,
|
|
38
|
+
rest = __rest(_a, ["headers", "data", "dataType"]);
|
|
39
|
+
|
|
40
|
+
var androidHeaders = [];
|
|
41
|
+
|
|
42
|
+
if (!isIOS) {
|
|
43
|
+
for (var i in headers) {
|
|
44
|
+
var o = {};
|
|
45
|
+
o[i] = headers[i];
|
|
46
|
+
androidHeaders.push();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var formatData = function formatData(data) {
|
|
51
|
+
var result = data;
|
|
52
|
+
|
|
53
|
+
switch (dataType) {
|
|
54
|
+
case 'json':
|
|
55
|
+
result = safeJSONParse(data, {});
|
|
56
|
+
break;
|
|
57
|
+
|
|
58
|
+
case 'base64':
|
|
59
|
+
result = data.startsWith('data:') ? data : 'data:application/json;base64,' + data;
|
|
60
|
+
break;
|
|
61
|
+
|
|
62
|
+
case 'text':
|
|
63
|
+
result = data;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return result;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
call('httpRequest', __assign({
|
|
71
|
+
headers: isIOS ? headers : androidHeaders,
|
|
72
|
+
data: JSON.stringify(data),
|
|
73
|
+
dataType: dataType
|
|
74
|
+
}, rest), {
|
|
75
|
+
modify: {
|
|
76
|
+
success: function success(res) {
|
|
77
|
+
return __assign(__assign({}, res), {
|
|
78
|
+
data: formatData(res.data)
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default request;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
|
|
20
|
+
for (var p in s) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
import call from '../../../call';
|
|
31
|
+
|
|
32
|
+
var saveFile = function saveFile(options) {
|
|
33
|
+
var _a = options || {},
|
|
34
|
+
apFilePath = _a.apFilePath,
|
|
35
|
+
rest = __rest(_a, ["apFilePath"]);
|
|
36
|
+
|
|
37
|
+
call('saveFile', __assign({
|
|
38
|
+
tempFilePath: apFilePath
|
|
39
|
+
}, rest));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default saveFile;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import call from '../../../call';
|
|
2
|
+
import { isNaN } from '../../../utils';
|
|
3
|
+
|
|
4
|
+
var setNavigationBar = function setNavigationBar(options) {
|
|
5
|
+
var title = options.title,
|
|
6
|
+
image = options.image,
|
|
7
|
+
backgroundColor = options.backgroundColor,
|
|
8
|
+
borderBottomColor = options.borderBottomColor,
|
|
9
|
+
reset = options.reset,
|
|
10
|
+
success = options.success,
|
|
11
|
+
complete = options.complete,
|
|
12
|
+
fail = options.fail;
|
|
13
|
+
if (title || image) call('setTitle', {
|
|
14
|
+
title: title,
|
|
15
|
+
image: image
|
|
16
|
+
});
|
|
17
|
+
var bottomColorValue = Number.parseInt((borderBottomColor === null || borderBottomColor === void 0 ? void 0 : borderBottomColor.slice(1)) || 'ffffff', 16);
|
|
18
|
+
var colorValue = backgroundColor ? Number.parseInt(backgroundColor.slice(1), 16) : '';
|
|
19
|
+
call('setBarBottomLineColor', {
|
|
20
|
+
color: bottomColorValue
|
|
21
|
+
}, {
|
|
22
|
+
modify: {
|
|
23
|
+
fail: function fail(res) {
|
|
24
|
+
if (!isNaN(bottomColorValue)) return res;
|
|
25
|
+
res.error = 2;
|
|
26
|
+
res.errorMessage = 'The color value is illegal.';
|
|
27
|
+
return res;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
var setTitleColorParams = {
|
|
32
|
+
success: success,
|
|
33
|
+
complete: complete,
|
|
34
|
+
fail: fail
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
if (colorValue) {
|
|
38
|
+
Object.assign(setTitleColorParams, {
|
|
39
|
+
color: colorValue || 'ffffff'
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (reset) {
|
|
44
|
+
Object.assign(setTitleColorParams, {
|
|
45
|
+
reset: reset
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
call('setTitleColor', setTitleColorParams, {
|
|
50
|
+
modify: {
|
|
51
|
+
fail: function fail(res) {
|
|
52
|
+
if (reset) return res;
|
|
53
|
+
if (!isNaN(colorValue)) return res;
|
|
54
|
+
res.error = 2;
|
|
55
|
+
res.errorMessage = 'The color value is illegal.';
|
|
56
|
+
return res;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export default setNavigationBar;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
|
|
20
|
+
for (var p in s) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
import call from '../../../call';
|
|
31
|
+
|
|
32
|
+
var setStorage = function setStorage(options) {
|
|
33
|
+
var _a = options || {},
|
|
34
|
+
data = _a.data,
|
|
35
|
+
rest = __rest(_a, ["data"]);
|
|
36
|
+
|
|
37
|
+
call('setAPDataStorage', __assign({
|
|
38
|
+
value: JSON.stringify(data)
|
|
39
|
+
}, rest));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default setStorage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
import call from '../../../call';
|
|
18
|
+
|
|
19
|
+
var setTabBarStyle = function setTabBarStyle(options) {
|
|
20
|
+
call('setTabBar', __assign({
|
|
21
|
+
actionType: 'setTabbarStyle'
|
|
22
|
+
}, options));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default setTabBarStyle;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
|
|
20
|
+
for (var p in s) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
import call from '../../../call';
|
|
31
|
+
|
|
32
|
+
var showActionSheet = function showActionSheet(options) {
|
|
33
|
+
var _a = options || {},
|
|
34
|
+
items = _a.items,
|
|
35
|
+
cancelButtonText = _a.cancelButtonText,
|
|
36
|
+
rest = __rest(_a, ["items", "cancelButtonText"]);
|
|
37
|
+
|
|
38
|
+
call('actionSheet', __assign({
|
|
39
|
+
btns: items,
|
|
40
|
+
cancelBtn: cancelButtonText
|
|
41
|
+
}, rest));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default showActionSheet;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
import call from '../../../call';
|
|
18
|
+
|
|
19
|
+
var showAuthGuide = function showAuthGuide(options) {
|
|
20
|
+
call('showAuthGuide', __assign({
|
|
21
|
+
bizType: 'alipayIntl'
|
|
22
|
+
}, options));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default showAuthGuide;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
import call from '../../../call';
|
|
18
|
+
|
|
19
|
+
var showToast = function showToast(options) {
|
|
20
|
+
call('toast', __assign({
|
|
21
|
+
content: ''
|
|
22
|
+
}, options));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default showToast;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
|
|
20
|
+
for (var p in s) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
import call from '../../../call';
|
|
31
|
+
|
|
32
|
+
var uploadFile = function uploadFile(options) {
|
|
33
|
+
var _a = options || {},
|
|
34
|
+
success = _a.success,
|
|
35
|
+
complete = _a.complete,
|
|
36
|
+
fail = _a.fail,
|
|
37
|
+
fileName = _a.fileName,
|
|
38
|
+
fileType = _a.fileType,
|
|
39
|
+
rest = __rest(_a, ["success", "complete", "fail", "fileName", "fileType"]);
|
|
40
|
+
|
|
41
|
+
call('uploadFile', __assign({
|
|
42
|
+
name: fileName,
|
|
43
|
+
type: fileType
|
|
44
|
+
}, rest));
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default uploadFile;
|