@tarojs/taro-h5 3.5.0-beta.2 → 3.5.0-beta.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/dist/index.cjs.js +95 -67
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +82 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/{api → src/api}/ad/index.js +0 -0
- package/dist/{api → src/api}/ai/facial.js +0 -0
- package/dist/{api → src/api}/ai/index.js +0 -0
- package/dist/{api → src/api}/ai/visual.js +0 -0
- package/dist/{api → src/api}/alipay/index.js +0 -0
- package/dist/{api → src/api}/base/crypto.js +0 -0
- package/dist/{api → src/api}/base/debug.js +0 -0
- package/dist/{api → src/api}/base/index.js +0 -0
- package/dist/{api → src/api}/base/performance.js +0 -0
- package/dist/{api → src/api}/base/system.js +0 -0
- package/dist/{api → src/api}/base/update.js +0 -0
- package/dist/src/api/base/weapp/app-event.js +69 -0
- package/dist/{api → src/api}/base/weapp/life-cycle.js +0 -0
- package/dist/{api → src/api}/canvas/CanvasContext.js +0 -0
- package/dist/{api → src/api}/canvas/canvasGetImageData.js +0 -0
- package/dist/{api → src/api}/canvas/canvasPutImageData.js +0 -0
- package/dist/{api → src/api}/canvas/canvasToTempFilePath.js +0 -0
- package/dist/{api → src/api}/canvas/createCanvasContext.js +0 -0
- package/dist/{api → src/api}/canvas/index.js +0 -0
- package/dist/{api → src/api}/cloud/index.js +0 -0
- package/dist/{api → src/api}/data-analysis/index.js +0 -0
- package/dist/{api → src/api}/device/accelerometer.js +0 -0
- package/dist/{api → src/api}/device/accessibility.js +0 -0
- package/dist/{api → src/api}/device/battery.js +0 -0
- package/dist/{api → src/api}/device/bluetooth-ble.js +0 -0
- package/dist/{api → src/api}/device/bluetooth-peripheral.js +0 -0
- package/dist/{api → src/api}/device/bluetooth.js +0 -0
- package/dist/{api → src/api}/device/calendar.js +0 -0
- package/dist/{api → src/api}/device/clipboard.js +0 -0
- package/dist/{api → src/api}/device/compass.js +0 -0
- package/dist/{api → src/api}/device/contact.js +0 -0
- package/dist/{api → src/api}/device/crypto.js +0 -0
- package/dist/{api → src/api}/device/gyroscope.js +0 -0
- package/dist/{api → src/api}/device/iBeacon.js +0 -0
- package/dist/{api → src/api}/device/index.js +0 -0
- package/dist/{api → src/api}/device/keyboard.js +0 -0
- package/dist/{api → src/api}/device/memory.js +0 -0
- package/dist/{api → src/api}/device/motion.js +0 -0
- package/dist/{api → src/api}/device/network.js +0 -0
- package/dist/{api → src/api}/device/nfc.js +0 -0
- package/dist/{api → src/api}/device/phone.js +0 -0
- package/dist/{api → src/api}/device/scan.js +0 -0
- package/dist/{api → src/api}/device/screen.js +0 -0
- package/dist/{api → src/api}/device/vibrate.js +5 -7
- package/dist/{api → src/api}/device/wifi.js +0 -0
- package/dist/{api → src/api}/ext/index.js +0 -0
- package/dist/{api → src/api}/files/index.js +0 -0
- package/dist/{api → src/api}/framework/index.js +0 -0
- package/dist/{api → src/api}/index.js +0 -0
- package/dist/{api → src/api}/location/chooseLocation.js +0 -0
- package/dist/{api → src/api}/location/getLocation.js +0 -0
- package/dist/{api → src/api}/location/index.js +1 -0
- package/dist/{api → src/api}/media/EditorContext.js +0 -0
- package/dist/{api → src/api}/media/audio/InnerAudioContext.js +1 -1
- package/dist/{api → src/api}/media/audio/index.js +0 -0
- package/dist/{api → src/api}/media/background-audio/BackgroundAudioManager.js +0 -0
- package/dist/{api → src/api}/media/background-audio/index.js +0 -0
- package/dist/{api → src/api}/media/camera.js +0 -0
- package/dist/{api → src/api}/media/image/chooseImage.js +0 -0
- package/dist/{api → src/api}/media/image/getImageInfo.js +0 -0
- package/dist/{api → src/api}/media/image/index.js +0 -0
- package/dist/{api → src/api}/media/image/previewImage.js +0 -0
- package/dist/{api → src/api}/media/index.js +0 -0
- package/dist/{api → src/api}/media/live.js +0 -0
- package/dist/{api → src/api}/media/map.js +0 -0
- package/dist/{api → src/api}/media/media-recorder.js +0 -0
- package/dist/{api → src/api}/media/recorder.js +0 -0
- package/dist/{api → src/api}/media/video/index.js +0 -0
- package/dist/{api → src/api}/media/video-decoder.js +0 -0
- package/dist/{api → src/api}/media/video-processing.js +0 -0
- package/dist/{api → src/api}/media/voip.js +0 -0
- package/dist/{api → src/api}/navigate/index.js +0 -0
- package/dist/{api → src/api}/network/download.js +0 -0
- package/dist/{api → src/api}/network/index.js +0 -0
- package/dist/{api → src/api}/network/mdns.js +0 -0
- package/dist/{api → src/api}/network/request/index.js +0 -0
- package/dist/{api → src/api}/network/tcp.js +0 -0
- package/dist/{api → src/api}/network/udp.js +0 -0
- package/dist/{api → src/api}/network/upload.js +0 -0
- package/dist/{api → src/api}/network/utils.js +0 -0
- package/dist/{api → src/api}/network/websocket/index.js +0 -0
- package/dist/{api → src/api}/network/websocket/socketTask.js +0 -0
- package/dist/{api → src/api}/open-api/account.js +0 -0
- package/dist/{api → src/api}/open-api/address.js +0 -0
- package/dist/{api → src/api}/open-api/authorize.js +0 -0
- package/dist/{api → src/api}/open-api/card.js +0 -0
- package/dist/{api → src/api}/open-api/channels-live.js +0 -0
- package/dist/{api → src/api}/open-api/customer-service.js +0 -0
- package/dist/{api → src/api}/open-api/facial.js +0 -0
- package/dist/{api → src/api}/open-api/favorites.js +0 -0
- package/dist/{api → src/api}/open-api/group.js +0 -0
- package/dist/{api → src/api}/open-api/index.js +0 -0
- package/dist/{api → src/api}/open-api/invoice.js +0 -0
- package/dist/{api → src/api}/open-api/license-plate.js +0 -0
- package/dist/{api → src/api}/open-api/login.js +0 -0
- package/dist/{api → src/api}/open-api/red-package.js +0 -0
- package/dist/{api → src/api}/open-api/settings.js +0 -0
- package/dist/{api → src/api}/open-api/soter.js +0 -0
- package/dist/{api → src/api}/open-api/subscribe-message.js +0 -0
- package/dist/{api → src/api}/open-api/user-info.js +0 -0
- package/dist/{api → src/api}/open-api/werun.js +0 -0
- package/dist/{api → src/api}/payment/index.js +0 -0
- package/dist/{api → src/api}/route/index.js +0 -0
- package/dist/{api → src/api}/share/index.js +0 -0
- package/dist/{api → src/api}/storage/background-fetch.js +0 -0
- package/dist/{api → src/api}/storage/index.js +0 -0
- package/dist/{api → src/api}/swan/index.js +0 -0
- package/dist/{api → src/api}/taro.js +0 -0
- package/dist/{api → src/api}/ui/animation/index.js +0 -0
- package/dist/{api → src/api}/ui/background.js +0 -0
- package/dist/{api → src/api}/ui/custom-component.js +0 -0
- package/dist/{api → src/api}/ui/fonts.js +0 -0
- package/dist/{api → src/api}/ui/index.js +0 -0
- package/dist/{api → src/api}/ui/interaction/actionSheet.js +0 -0
- package/dist/{api → src/api}/ui/interaction/index.js +0 -0
- package/dist/{api → src/api}/ui/interaction/modal.js +1 -0
- package/dist/{api → src/api}/ui/interaction/toast.js +0 -0
- package/dist/{api → src/api}/ui/menu.js +0 -0
- package/dist/{api → src/api}/ui/navigation-bar/index.js +0 -0
- package/dist/{api → src/api}/ui/pull-down-refresh.js +0 -0
- package/dist/{api → src/api}/ui/scroll/index.js +0 -0
- package/dist/{api → src/api}/ui/sticky.js +0 -0
- package/dist/{api → src/api}/ui/tab-bar.js +0 -0
- package/dist/{api → src/api}/ui/window.js +0 -0
- package/dist/{api → src/api}/worker/index.js +0 -0
- package/dist/{api → src/api}/wxml/index.js +0 -0
- package/dist/{api → src/api}/wxml/nodesRef.js +0 -0
- package/dist/{api → src/api}/wxml/selectorQuery.js +1 -1
- package/dist/{index.js → src/index.js} +0 -0
- package/dist/{utils → src/utils}/animation.js +0 -0
- package/dist/{utils → src/utils}/handler.js +0 -0
- package/dist/{utils → src/utils}/index.js +0 -0
- package/dist/{utils → src/utils}/lodash.js +0 -0
- package/dist/{utils → src/utils}/valid.js +0 -0
- package/dist/taroApis.js +1 -1
- package/dist/types/type.js +2 -0
- package/package.json +16 -16
- package/src/api/base/weapp/app-event.ts +64 -4
- package/src/api/device/vibrate.ts +6 -8
- package/src/api/location/index.ts +1 -0
- package/src/api/media/audio/InnerAudioContext.ts +1 -1
- package/src/api/network/websocket/socketTask.ts +1 -1
- package/src/api/ui/interaction/modal.ts +1 -0
- package/src/api/wxml/selectorQuery.ts +1 -1
- package/types/api.d.ts +4 -0
- package/types/define.d.ts +2 -0
- package/types/index.d.ts +3 -0
- package/types/overlay.d.ts +9 -0
- package/types/type.ts +32 -0
- package/LICENSE +0 -21
- package/dist/api/base/weapp/app-event.js +0 -18
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import Taro from '@tarojs/api';
|
|
2
|
+
import { parse } from 'query-string';
|
|
3
|
+
import { temporarilyNotSupport } from '../../../utils';
|
|
4
|
+
import { CallbackManager } from '../../../utils/handler';
|
|
5
|
+
const appShowCallbackManager = new CallbackManager();
|
|
6
|
+
const appHideCallbackManager = new CallbackManager();
|
|
7
|
+
const getApp = () => {
|
|
8
|
+
var _a;
|
|
9
|
+
const path = (_a = Taro.Current.page) === null || _a === void 0 ? void 0 : _a.path;
|
|
10
|
+
return {
|
|
11
|
+
/** 小程序切前台的路径 */
|
|
12
|
+
path: path === null || path === void 0 ? void 0 : path.substring(0, path.indexOf('?')),
|
|
13
|
+
/** 小程序切前台的 query 参数 */
|
|
14
|
+
query: parse(location.search),
|
|
15
|
+
/** 来源信息。 */
|
|
16
|
+
referrerInfo: {},
|
|
17
|
+
/** 小程序切前台的[场景值](https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/scene.html) */
|
|
18
|
+
scene: 0,
|
|
19
|
+
/** shareTicket,详见[获取更多转发信息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) */
|
|
20
|
+
shareTicket: ''
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
const appShowListener = () => {
|
|
24
|
+
if (document.visibilityState !== 'hidden') {
|
|
25
|
+
appShowCallbackManager.trigger(getApp());
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const appHideListener = () => {
|
|
29
|
+
if (document.visibilityState === 'hidden') {
|
|
30
|
+
appHideCallbackManager.trigger(getApp());
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
// 应用级事件
|
|
34
|
+
export const onUnhandledRejection = temporarilyNotSupport('onUnhandledRejection');
|
|
35
|
+
export const onThemeChange = temporarilyNotSupport('onThemeChange');
|
|
36
|
+
export const onPageNotFound = temporarilyNotSupport('onPageNotFound');
|
|
37
|
+
export const onError = temporarilyNotSupport('onError');
|
|
38
|
+
export const onAudioInterruptionEnd = temporarilyNotSupport('onAudioInterruptionEnd');
|
|
39
|
+
export const onAudioInterruptionBegin = temporarilyNotSupport('onAudioInterruptionBegin');
|
|
40
|
+
export const onAppShow = callback => {
|
|
41
|
+
appShowCallbackManager.add(callback);
|
|
42
|
+
if (appShowCallbackManager.count() === 1) {
|
|
43
|
+
window.addEventListener('visibilitychange', appShowListener);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export const onAppHide = callback => {
|
|
47
|
+
appHideCallbackManager.add(callback);
|
|
48
|
+
if (appHideCallbackManager.count() === 1) {
|
|
49
|
+
window.addEventListener('visibilitychange', appHideListener);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export const offUnhandledRejection = temporarilyNotSupport('offUnhandledRejection');
|
|
53
|
+
export const offThemeChange = temporarilyNotSupport('offThemeChange');
|
|
54
|
+
export const offPageNotFound = temporarilyNotSupport('offPageNotFound');
|
|
55
|
+
export const offError = temporarilyNotSupport('offError');
|
|
56
|
+
export const offAudioInterruptionEnd = temporarilyNotSupport('offAudioInterruptionEnd');
|
|
57
|
+
export const offAudioInterruptionBegin = temporarilyNotSupport('offAudioInterruptionBegin');
|
|
58
|
+
export const offAppShow = callback => {
|
|
59
|
+
appShowCallbackManager.remove(callback);
|
|
60
|
+
if (appShowCallbackManager.count() === 0) {
|
|
61
|
+
window.removeEventListener('visibilitychange', appShowListener);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export const offAppHide = callback => {
|
|
65
|
+
appHideCallbackManager.remove(callback);
|
|
66
|
+
if (appHideCallbackManager.count() === 0) {
|
|
67
|
+
window.removeEventListener('visibilitychange', appHideListener);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ const vibrator = function vibrator(mm) {
|
|
|
4
4
|
return window.navigator.vibrate(mm);
|
|
5
5
|
}
|
|
6
6
|
catch (e) {
|
|
7
|
-
console.warn('当前浏览器不支持vibrate');
|
|
7
|
+
console.warn('当前浏览器不支持 vibrate。');
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -12,12 +12,11 @@ const vibrator = function vibrator(mm) {
|
|
|
12
12
|
*/
|
|
13
13
|
export const vibrateShort = ({ success, fail, complete } = {}) => {
|
|
14
14
|
const handle = new MethodHandler({ name: 'vibrateShort', success, fail, complete });
|
|
15
|
-
if (vibrator) {
|
|
16
|
-
vibrator(15);
|
|
15
|
+
if (vibrator(15)) {
|
|
17
16
|
return handle.success();
|
|
18
17
|
}
|
|
19
18
|
else {
|
|
20
|
-
return handle.fail();
|
|
19
|
+
return handle.fail({ errMsg: 'style is not support' });
|
|
21
20
|
}
|
|
22
21
|
};
|
|
23
22
|
/**
|
|
@@ -25,11 +24,10 @@ export const vibrateShort = ({ success, fail, complete } = {}) => {
|
|
|
25
24
|
*/
|
|
26
25
|
export const vibrateLong = ({ success, fail, complete } = {}) => {
|
|
27
26
|
const handle = new MethodHandler({ name: 'vibrateLong', success, fail, complete });
|
|
28
|
-
if (vibrator) {
|
|
29
|
-
vibrator(400);
|
|
27
|
+
if (vibrator(400)) {
|
|
30
28
|
return handle.success();
|
|
31
29
|
}
|
|
32
30
|
else {
|
|
33
|
-
return handle.fail();
|
|
31
|
+
return handle.fail({ errMsg: 'style is not support' });
|
|
34
32
|
}
|
|
35
33
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,4 +13,5 @@ export const offLocationChangeError = temporarilyNotSupport('offLocationChangeEr
|
|
|
13
13
|
export const offLocationChange = temporarilyNotSupport('offLocationChange');
|
|
14
14
|
export { getLocation } from './getLocation';
|
|
15
15
|
export const choosePoi = temporarilyNotSupport('choosePoi');
|
|
16
|
+
export const getFuzzyLocation = temporarilyNotSupport('getFuzzyLocation');
|
|
16
17
|
export { chooseLocation } from './chooseLocation';
|
|
File without changes
|
|
@@ -63,7 +63,7 @@ export class InnerAudioContext {
|
|
|
63
63
|
get duration() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.duration) || 0; }
|
|
64
64
|
set loop(e) { this.setProperty('loop', e); }
|
|
65
65
|
get loop() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.loop) || false; }
|
|
66
|
-
get paused() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.paused)
|
|
66
|
+
get paused() { var _a, _b; return (_b = (_a = this.Instance) === null || _a === void 0 ? void 0 : _a.paused) !== null && _b !== void 0 ? _b : true; }
|
|
67
67
|
set src(e) { this.setProperty('src', e); }
|
|
68
68
|
get src() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.src) || ''; }
|
|
69
69
|
set volume(e) { this.setProperty('volume', e); }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -143,6 +143,7 @@ export default class Modal {
|
|
|
143
143
|
this.text.setAttribute('style', inlineStyle(textStyle));
|
|
144
144
|
}
|
|
145
145
|
else {
|
|
146
|
+
this.title.textContent = '';
|
|
146
147
|
// block => none
|
|
147
148
|
this.title.style.display = 'none';
|
|
148
149
|
const textCSS = Object.assign(Object.assign({}, textStyle), { padding: '40px 20px 26px', color: '#353535' });
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -25,7 +25,7 @@ function filter(fields, dom, selector) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
|
-
// TODO https://developers.weixin.qq.com/miniprogram/dev/
|
|
28
|
+
// TODO https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/ScrollViewContext.html
|
|
29
29
|
// if (/^taro-scroll-view-core/i.test(tagName))
|
|
30
30
|
res.nodeCanvasType = '';
|
|
31
31
|
res.node = dom;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/taroApis.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
module.exports = new Set(["addCard","addFileToFavorites","addInterceptor","addPhoneCalendar","addPhoneContact","addPhoneRepeatCalendar","addVideoToFavorites","advancedGeneralIdentify","animalClassify","arrayBufferToBase64","authPrivateMessage","authorize","authorizeForMiniProgram","base64ToArrayBuffer","canIUse","canvasGetImageData","canvasPutImageData","canvasToTempFilePath","carClassify","checkIsOpenAccessibility","checkIsSoterEnrolledInDevice","checkIsSupportFacialRecognition","checkIsSupportSoterAuthentication","checkSession","chooseAddress","chooseContact","chooseImage","chooseInvoice","chooseInvoiceTitle","chooseLicensePlate","chooseLocation","chooseMedia","chooseMessageFile","choosePoi","chooseVideo","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","createMediaRecorder","createOffscreenCanvas","createRewardedVideoAd","createSelectorQuery","createTCPSocket","createUDPSocket","createVKSession","createVideoContext","createVideoDecoder","createWebAudioContext","createWorker","disableAlertBeforeUnload","dishClassify","downloadFile","enableAlertBeforeUnload","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","getExptInfoSync","getExtConfig","getExtConfigSync","getFileInfo","getFileSystemManager","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","imageAudit","initFaceDetect","initTabBarApis","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","openCard","openChannelsActivity","openChannelsEvent","openChannelsLive","openCustomerServiceChat","openDocument","openEmbeddedMiniProgram","openLocation","openSetting","openSystemBluetoothSetting","openVideoEditor","pageScrollTo","pauseBackgroundAudio","pauseVoice","plantClassify","playBackgroundAudio","playVoice","pluginLogin","preloadSubPackage","previewImage","previewMedia","reLaunch","readBLECharacteristicValue","redirectTo","removeSavedFile","removeStorage","removeStorageSync","removeTabBarBadge","reportAnalytics","reportEvent","reportMonitor","reportPerformance","request","requestOrderPayment","requestPayment","requestPolymerPayment","requestSubscribeMessage","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"])
|
|
1
|
+
module.exports = new Set(["addCard","addFileToFavorites","addInterceptor","addPhoneCalendar","addPhoneContact","addPhoneRepeatCalendar","addVideoToFavorites","advancedGeneralIdentify","animalClassify","arrayBufferToBase64","authPrivateMessage","authorize","authorizeForMiniProgram","base64ToArrayBuffer","canIUse","canvasGetImageData","canvasPutImageData","canvasToTempFilePath","carClassify","checkIsOpenAccessibility","checkIsSoterEnrolledInDevice","checkIsSupportFacialRecognition","checkIsSupportSoterAuthentication","checkSession","chooseAddress","chooseContact","chooseImage","chooseInvoice","chooseInvoiceTitle","chooseLicensePlate","chooseLocation","chooseMedia","chooseMessageFile","choosePoi","chooseVideo","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","createMediaRecorder","createOffscreenCanvas","createRewardedVideoAd","createSelectorQuery","createTCPSocket","createUDPSocket","createVKSession","createVideoContext","createVideoDecoder","createWebAudioContext","createWorker","disableAlertBeforeUnload","dishClassify","downloadFile","enableAlertBeforeUnload","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","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","imageAudit","initFaceDetect","initTabBarApis","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","openCard","openChannelsActivity","openChannelsEvent","openChannelsLive","openCustomerServiceChat","openDocument","openEmbeddedMiniProgram","openLocation","openSetting","openSystemBluetoothSetting","openVideoEditor","pageScrollTo","pauseBackgroundAudio","pauseVoice","plantClassify","playBackgroundAudio","playVoice","pluginLogin","preloadSubPackage","previewImage","previewMedia","reLaunch","readBLECharacteristicValue","redirectTo","removeSavedFile","removeStorage","removeStorageSync","removeTabBarBadge","reportAnalytics","reportEvent","reportMonitor","reportPerformance","request","requestOrderPayment","requestPayment","requestPolymerPayment","requestSubscribeMessage","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
2
|
//# sourceMappingURL=taroApis.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro-h5",
|
|
3
|
-
"version": "3.5.0-beta.
|
|
3
|
+
"version": "3.5.0-beta.5",
|
|
4
4
|
"description": "Taro h5 framework",
|
|
5
5
|
"browser": "dist/index.esm.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -10,19 +10,10 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
12
|
"src",
|
|
13
|
+
"types",
|
|
13
14
|
"index.js"
|
|
14
15
|
],
|
|
15
16
|
"sideEffects": false,
|
|
16
|
-
"scripts": {
|
|
17
|
-
"assets": "cpy 'src/**/*.css' dist",
|
|
18
|
-
"build": "rimraf ./dist && tsc && npm run assets && rollup -c",
|
|
19
|
-
"predev": "npm run assets",
|
|
20
|
-
"dev": "tsc -w",
|
|
21
|
-
"test": "jest",
|
|
22
|
-
"test:ci": "jest -i --coverage false",
|
|
23
|
-
"test:dev": "jest --watch",
|
|
24
|
-
"test:coverage": "jest --coverage"
|
|
25
|
-
},
|
|
26
17
|
"repository": {
|
|
27
18
|
"type": "git",
|
|
28
19
|
"url": "git+https://github.com/NervJS/taro.git"
|
|
@@ -33,14 +24,23 @@
|
|
|
33
24
|
"author": "O2Team",
|
|
34
25
|
"license": "MIT",
|
|
35
26
|
"dependencies": {
|
|
36
|
-
"@tarojs/api": "3.5.0-beta.
|
|
37
|
-
"@tarojs/router": "3.5.0-beta.
|
|
38
|
-
"@tarojs/runtime": "3.5.0-beta.
|
|
27
|
+
"@tarojs/api": "3.5.0-beta.5",
|
|
28
|
+
"@tarojs/router": "3.5.0-beta.5",
|
|
29
|
+
"@tarojs/runtime": "3.5.0-beta.5",
|
|
39
30
|
"base64-js": "^1.3.0",
|
|
40
31
|
"jsonp-retry": "^1.0.3",
|
|
41
32
|
"mobile-detect": "^1.4.2",
|
|
42
33
|
"query-string": "^7.1.1",
|
|
43
34
|
"whatwg-fetch": "^3.4.0"
|
|
44
35
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
36
|
+
"scripts": {
|
|
37
|
+
"assets": "cpy 'src/**/*.css' dist",
|
|
38
|
+
"build": "rimraf ./dist && tsc && pnpm run assets && rollup -c",
|
|
39
|
+
"predev": "pnpm run assets",
|
|
40
|
+
"dev": "tsc -w",
|
|
41
|
+
"test": "jest",
|
|
42
|
+
"test:ci": "jest -i --coverage false",
|
|
43
|
+
"test:dev": "jest --watch",
|
|
44
|
+
"test:coverage": "jest --coverage"
|
|
45
|
+
}
|
|
46
|
+
}
|