@tarojs/plugin-platform-h5 3.7.0-alpha.1 → 3.7.0-alpha.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-h5",
3
- "version": "3.7.0-alpha.1",
3
+ "version": "3.7.0-alpha.11",
4
4
  "description": "Web 端平台插件",
5
5
  "author": "ZakaryCode",
6
6
  "license": "MIT",
@@ -9,6 +9,7 @@
9
9
  "taro"
10
10
  ],
11
11
  "files": [
12
+ "build",
12
13
  "dist",
13
14
  "index.js",
14
15
  "types"
@@ -27,26 +28,39 @@
27
28
  "url": "https://github.com/NervJS/taro/issues"
28
29
  },
29
30
  "dependencies": {
30
- "resolve": "^1.22.0",
31
- "@tarojs/service": "3.7.0-alpha.1",
32
- "@tarojs/components": "3.7.0-alpha.1",
33
- "@tarojs/components-react": "3.7.0-alpha.1",
34
- "@tarojs/router": "3.7.0-alpha.1",
35
- "@tarojs/shared": "3.7.0-alpha.1",
36
- "@tarojs/taro-h5": "3.7.0-alpha.1",
37
- "babel-plugin-transform-taroapi": "3.7.0-alpha.1"
31
+ "@babel/core": "^7.14.5",
32
+ "change-case": "^4.1.2",
33
+ "lodash-es": "4.17.21",
34
+ "@tarojs/components-react": "3.7.0-alpha.11",
35
+ "@tarojs/components": "3.7.0-alpha.11",
36
+ "@tarojs/router": "3.7.0-alpha.11",
37
+ "@tarojs/service": "3.7.0-alpha.11",
38
+ "@tarojs/shared": "3.7.0-alpha.11",
39
+ "@tarojs/helper": "3.7.0-alpha.11",
40
+ "@tarojs/taro-h5": "3.7.0-alpha.11",
41
+ "babel-plugin-transform-taroapi": "3.7.0-alpha.11"
38
42
  },
39
43
  "devDependencies": {
40
44
  "@rollup/plugin-commonjs": "^20.0.0",
45
+ "@rollup/plugin-json": "^4.1.0",
41
46
  "@rollup/plugin-node-resolve": "^8.0.0",
42
- "lodash": "^4.17.21",
43
- "rollup": "^2.79.0",
47
+ "@rollup/plugin-typescript": "^11.1.0",
48
+ "@types/node": "^14.14.31",
49
+ "rollup": "^3.8.1",
44
50
  "rollup-plugin-node-externals": "^5.0.0",
45
51
  "rollup-plugin-ts": "^3.0.2",
46
- "typescript": "^4.7.4"
52
+ "ts-node": "^10.9.1",
53
+ "tsconfig-paths": "^3.14.1",
54
+ "typescript": "^4.7.4",
55
+ "@tarojs/taro": "3.7.0-alpha.11"
47
56
  },
48
57
  "scripts": {
49
- "build": "cross-env NODE_ENV=production rollup -c",
50
- "dev": "cross-env NODE_ENV=development rollup -c -w"
58
+ "prebuild": "run-s clean generate:desc",
59
+ "build": "pnpm run rollup --environment NODE_ENV:production",
60
+ "clean": "rimraf dist",
61
+ "dev": "pnpm run rollup --environment NODE_ENV:development -w",
62
+ "generate:desc": "pnpm run tsx --files ./build/definition-json",
63
+ "rollup": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript --bundleConfigAsCjs",
64
+ "tsx": "ts-node --skipIgnore"
51
65
  }
52
66
  }
@@ -0,0 +1,4 @@
1
+ declare module '*.json' {
2
+ const value: Record<string, any>
3
+ export default value
4
+ }
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- function exportNameOnly () {
6
- const emptyMap = { mappings: '' };
7
- return {
8
- name: 'export-name-only',
9
- renderChunk (code, chunk) {
10
- const pos = chunk.exports.indexOf('default');
11
- if (pos > -1) {
12
- chunk.exports.splice(pos, 1);
13
- }
14
- return {
15
- code: `module.exports = new Set(${JSON.stringify(chunk.exports)})`,
16
- map: emptyMap
17
- }
18
- }
19
- }
20
- }
21
-
22
- exports["default"] = exportNameOnly;
@@ -1,5 +0,0 @@
1
- import Taro from "@tarojs/taro-h5/dist/api/taro";
2
- export * from "@tarojs/taro-h5/dist/api/taro";
3
- export { default } from "@tarojs/taro-h5/dist/api/taro";
4
- export * from "@tarojs/taro-h5/dist/api/index";
5
- export { Taro as default };
package/dist/taroApis.js DELETED
@@ -1,2 +0,0 @@
1
- module.exports = new Set(["Behavior","Current","ENV_TYPE","Events","Link","addCard","addFileToFavorites","addInterceptor","addPhoneCalendar","addPhoneContact","addPhoneRepeatCalendar","addVideoToFavorites","advancedGeneralIdentify","animalClassify","arrayBufferToBase64","authPrivateMessage","authorize","authorizeForMiniProgram","base64ToArrayBuffer","canIUse","canIUseWebp","canvasGetImageData","canvasPutImageData","canvasToTempFilePath","carClassify","checkIsAddedToMyMiniProgram","checkIsOpenAccessibility","checkIsSoterEnrolledInDevice","checkIsSupportFacialRecognition","checkIsSupportSoterAuthentication","checkSession","chooseAddress","chooseContact","chooseImage","chooseInvoice","chooseInvoiceTitle","chooseLicensePlate","chooseLocation","chooseMedia","chooseMessageFile","choosePoi","chooseVideo","cleanInterceptors","clearStorage","clearStorageSync","closeBLEConnection","closeBluetoothAdapter","closeSocket","cloud","compressImage","compressVideo","connectSocket","connectWifi","createAnimation","createAudioContext","createBLEConnection","createBLEPeripheralServer","createBufferURL","createCameraContext","createCanvasContext","createInnerAudioContext","createIntersectionObserver","createInterstitialAd","createLivePlayerContext","createLivePusherContext","createMapContext","createMediaAudioPlayer","createMediaContainer","createMediaQueryObserver","createMediaRecorder","createOffscreenCanvas","createRewardedVideoAd","createSelectorQuery","createTCPSocket","createUDPSocket","createVKSession","createVideoContext","createVideoDecoder","createWebAudioContext","createWorker","disableAlertBeforeUnload","dishClassify","downloadFile","enableAlertBeforeUnload","env","eventCenter","exitMiniProgram","exitVoIPChat","faceDetect","faceVerifyForPay","getAccountInfoSync","getApp","getAppAuthorizeSetting","getAppBaseInfo","getAvailableAudioSources","getBLEDeviceCharacteristics","getBLEDeviceRSSI","getBLEDeviceServices","getBLEMTU","getBackgroundAudioManager","getBackgroundAudioPlayerState","getBackgroundFetchData","getBackgroundFetchToken","getBatteryInfo","getBatteryInfoSync","getBeacons","getBluetoothAdapterState","getBluetoothDevices","getChannelsLiveInfo","getChannelsLiveNoticeInfo","getClipboardData","getConnectedBluetoothDevices","getConnectedWifi","getCurrentInstance","getCurrentPages","getDeviceInfo","getEnterOptionsSync","getEnv","getExptInfoSync","getExtConfig","getExtConfigSync","getFileInfo","getFileSystemManager","getFuzzyLocation","getGroupEnterInfo","getHCEState","getImageInfo","getLaunchOptionsSync","getLocalIPAddress","getLocation","getLogManager","getMenuButtonBoundingClientRect","getNFCAdapter","getNetworkType","getOpenUserInfo","getPerformance","getRandomValues","getRealtimeLogManager","getRecorderManager","getSavedFileInfo","getSavedFileList","getScreenBrightness","getSelectedTextRange","getSetting","getShareInfo","getStorage","getStorageInfo","getStorageInfoSync","getStorageSync","getSwanId","getSystemInfo","getSystemInfoAsync","getSystemInfoSync","getSystemSetting","getUpdateManager","getUserCryptoManager","getUserInfo","getUserProfile","getVideoInfo","getWeRunData","getWifiList","getWindowInfo","hideHomeButton","hideKeyboard","hideLoading","hideNavigationBarLoading","hideShareMenu","hideTabBar","hideTabBarRedDot","hideToast","history","imageAudit","initFaceDetect","initPxTransform","initTabBarApis","interceptors","isBluetoothDevicePaired","isVKSupport","joinVoIPChat","loadFontFace","login","logoClassify","makeBluetoothPair","makePhoneCall","navigateBack","navigateBackMiniProgram","navigateBackSmartProgram","navigateTo","navigateToMiniProgram","navigateToSmartGameProgram","navigateToSmartProgram","nextTick","notifyBLECharacteristicValueChange","objectDetectIdentify","ocrBankCard","ocrDrivingLicense","ocrIdCard","ocrVehicleLicense","offAccelerometerChange","offAppHide","offAppShow","offAudioInterruptionBegin","offAudioInterruptionEnd","offBLECharacteristicValueChange","offBLEConnectionStateChange","offBLEMTUChange","offBLEPeripheralConnectionStateChanged","offBeaconServiceChange","offBeaconUpdate","offBluetoothAdapterStateChange","offBluetoothDeviceFound","offCompassChange","offCopyUrl","offDeviceMotionChange","offError","offGetWifiList","offGyroscopeChange","offHCEMessage","offKeyboardHeightChange","offLocalServiceDiscoveryStop","offLocalServiceFound","offLocalServiceLost","offLocalServiceResolveFail","offLocationChange","offLocationChangeError","offMemoryWarning","offNetworkStatusChange","offNetworkWeakChange","offPageNotFound","offThemeChange","offUnhandledRejection","offUserCaptureScreen","offVoIPChatInterrupted","offVoIPChatMembersChanged","offVoIPChatStateChanged","offVoIPVideoMembersChanged","offWifiConnected","offWindowResize","onAccelerometerChange","onAppHide","onAppShow","onAudioInterruptionBegin","onAudioInterruptionEnd","onBLECharacteristicValueChange","onBLEConnectionStateChange","onBLEMTUChange","onBLEPeripheralConnectionStateChanged","onBackgroundAudioPause","onBackgroundAudioPlay","onBackgroundAudioStop","onBackgroundFetchData","onBeaconServiceChange","onBeaconUpdate","onBluetoothAdapterStateChange","onBluetoothDeviceFound","onCompassChange","onCopyUrl","onDeviceMotionChange","onError","onGetWifiList","onGyroscopeChange","onHCEMessage","onKeyboardHeightChange","onLocalServiceDiscoveryStop","onLocalServiceFound","onLocalServiceLost","onLocalServiceResolveFail","onLocationChange","onLocationChangeError","onMemoryWarning","onNetworkStatusChange","onNetworkWeakChange","onPageNotFound","onSocketClose","onSocketError","onSocketMessage","onSocketOpen","onThemeChange","onUnhandledRejection","onUserCaptureScreen","onVoIPChatInterrupted","onVoIPChatMembersChanged","onVoIPChatSpeakersChanged","onVoIPChatStateChanged","onVoIPVideoMembersChanged","onWifiConnected","onWifiConnectedWithPartialInfo","onWindowResize","openAppAuthorizeSetting","openBluetoothAdapter","openBusinessView","openCard","openChannelsActivity","openChannelsEvent","openChannelsLive","openCustomerServiceChat","openDocument","openEmbeddedMiniProgram","openLocation","openSetting","openSystemBluetoothSetting","openVideoEditor","options","pageScrollTo","pauseBackgroundAudio","pauseVoice","plantClassify","playBackgroundAudio","playVoice","pluginLogin","preload","preloadSubPackage","previewImage","previewMedia","pxTransform","reLaunch","readBLECharacteristicValue","redirectTo","removeSavedFile","removeStorage","removeStorageSync","removeTabBarBadge","reportAnalytics","reportEvent","reportMonitor","reportPerformance","request","requestOrderPayment","requestPayment","requestPolymerPayment","requestSubscribeMessage","requirePlugin","reserveChannelsLive","revokeBufferURL","saveFile","saveFileToDisk","saveImageToPhotosAlbum","saveVideoToPhotosAlbum","scanCode","seekBackgroundAudio","sendHCEMessage","sendSocketMessage","setBLEMTU","setBackgroundColor","setBackgroundFetchToken","setBackgroundTextStyle","setClipboardData","setEnable1v1Chat","setEnableDebug","setInnerAudioOption","setKeepScreenOn","setNavigationBarColor","setNavigationBarTitle","setPageInfo","setScreenBrightness","setStorage","setStorageSync","setTabBarBadge","setTabBarItem","setTabBarStyle","setTopBarText","setVisualEffectOnCapture","setWifiList","setWindowSize","shareFileMessage","shareToWeRun","shareVideoMessage","showActionSheet","showLoading","showModal","showNavigationBarLoading","showRedPackage","showShareImageMenu","showShareMenu","showTabBar","showTabBarRedDot","showToast","startAccelerometer","startBeaconDiscovery","startBluetoothDevicesDiscovery","startCompass","startDeviceMotionListening","startFacialRecognitionVerify","startFacialRecognitionVerifyAndUploadVideo","startGyroscope","startHCE","startLocalServiceDiscovery","startLocationUpdate","startLocationUpdateBackground","startPullDownRefresh","startRecord","startSoterAuthentication","startWifi","stopAccelerometer","stopBackgroundAudio","stopBeaconDiscovery","stopBluetoothDevicesDiscovery","stopCompass","stopDeviceMotionListening","stopFaceDetect","stopGyroscope","stopHCE","stopLocalServiceDiscovery","stopLocationUpdate","stopPullDownRefresh","stopRecord","stopVoice","stopWifi","subscribeVoIPVideoMembers","switchTab","textReview","textToAudio","updateShareMenu","updateVoIPChatMuteConfig","updateWeChatApp","uploadFile","vibrateLong","vibrateShort","writeBLECharacteristicValue"])
2
- //# sourceMappingURL=taroApis.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taroApis.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}