@tarojs/taro-h5 3.6.6 → 3.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/device/index.js +1 -1
- package/dist/api/device/wifi.d.ts +2 -1
- package/dist/api/device/wifi.js +2 -1
- package/dist/api/device/wifi.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +5 -4
- package/dist/api/index.js.map +1 -1
- package/dist/api/media/audio/InnerAudioContext.d.ts +2 -0
- package/dist/api/media/audio/InnerAudioContext.js +4 -1
- package/dist/api/media/audio/InnerAudioContext.js.map +1 -1
- package/dist/api/media/image/index.d.ts +3 -1
- package/dist/api/media/image/index.js +3 -1
- package/dist/api/media/image/index.js.map +1 -1
- package/dist/api/media/index.js +1 -1
- package/dist/api/network/request/index.js +1 -1
- package/dist/api/network/request/index.js.map +1 -1
- package/dist/api/open-api/index.js +1 -1
- package/dist/api/open-api/subscribe-message.d.ts +2 -1
- package/dist/api/open-api/subscribe-message.js +3 -1
- package/dist/api/open-api/subscribe-message.js.map +1 -1
- package/dist/api/qq/index.d.ts +2 -0
- package/dist/api/qq/index.js +7 -0
- package/dist/api/qq/index.js.map +1 -0
- package/dist/api/ui/index.js +1 -1
- package/dist/api/ui/window.d.ts +2 -1
- package/dist/api/ui/window.js +2 -1
- package/dist/api/ui/window.js.map +1 -1
- package/dist/index.cjs.d.ts +9 -1
- package/dist/index.cjs.js +20 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +9 -1
- package/dist/index.esm.js +15 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs.js
CHANGED
|
@@ -19276,6 +19276,7 @@ const setWifiList = temporarilyNotSupport('setWifiList');
|
|
|
19276
19276
|
const onWifiConnectedWithPartialInfo = temporarilyNotSupport('onWifiConnectedWithPartialInfo');
|
|
19277
19277
|
const onWifiConnected = temporarilyNotSupport('onWifiConnected');
|
|
19278
19278
|
const onGetWifiList = temporarilyNotSupport('onGetWifiList');
|
|
19279
|
+
const offWifiConnectedWithPartialInfo = temporarilyNotSupport('offWifiConnectedWithPartialInfo');
|
|
19279
19280
|
const offWifiConnected = temporarilyNotSupport('offWifiConnected');
|
|
19280
19281
|
const offGetWifiList = temporarilyNotSupport('offGetWifiList');
|
|
19281
19282
|
const getWifiList = temporarilyNotSupport('getWifiList');
|
|
@@ -19508,6 +19509,7 @@ const getFuzzyLocation = temporarilyNotSupport('getFuzzyLocation');
|
|
|
19508
19509
|
class InnerAudioContext {
|
|
19509
19510
|
constructor() {
|
|
19510
19511
|
this.__startTime = 0;
|
|
19512
|
+
this.__isFirstPlay = true;
|
|
19511
19513
|
this.play = () => { var _a; return (_a = this.Instance) === null || _a === void 0 ? void 0 : _a.play(); };
|
|
19512
19514
|
this.pause = () => { var _a; return (_a = this.Instance) === null || _a === void 0 ? void 0 : _a.pause(); };
|
|
19513
19515
|
this.stop = () => {
|
|
@@ -19555,7 +19557,8 @@ class InnerAudioContext {
|
|
|
19555
19557
|
this.stopStack = new CallbackManager();
|
|
19556
19558
|
Taro__default["default"].eventCenter.on('__taroRouterChange', () => { this.stop(); });
|
|
19557
19559
|
this.onPlay(() => {
|
|
19558
|
-
if (this.
|
|
19560
|
+
if (this.__isFirstPlay) {
|
|
19561
|
+
this.__isFirstPlay = false;
|
|
19559
19562
|
this.seek(this.startTime);
|
|
19560
19563
|
}
|
|
19561
19564
|
});
|
|
@@ -19564,6 +19567,7 @@ class InnerAudioContext {
|
|
|
19564
19567
|
get autoplay() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.autoplay) || false; }
|
|
19565
19568
|
get buffered() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.buffered.length) || 0; }
|
|
19566
19569
|
get currentTime() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.currentTime) || 0; }
|
|
19570
|
+
set currentTime(e) { this.seek(e); }
|
|
19567
19571
|
get duration() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.duration) || 0; }
|
|
19568
19572
|
set loop(e) { this.setProperty('loop', e); }
|
|
19569
19573
|
get loop() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.loop) || false; }
|
|
@@ -19909,6 +19913,8 @@ const saveImageToPhotosAlbum = temporarilyNotSupport('saveImageToPhotosAlbum');
|
|
|
19909
19913
|
const previewMedia = temporarilyNotSupport('previewMedia');
|
|
19910
19914
|
const compressImage = temporarilyNotSupport('compressImage');
|
|
19911
19915
|
const chooseMessageFile = temporarilyNotSupport('chooseMessageFile');
|
|
19916
|
+
const editImage = temporarilyNotSupport('editImage');
|
|
19917
|
+
const cropImage = temporarilyNotSupport('cropImage');
|
|
19912
19918
|
|
|
19913
19919
|
// 实时音视频
|
|
19914
19920
|
const createLivePusherContext = temporarilyNotSupport('createLivePusherContext');
|
|
@@ -20287,7 +20293,7 @@ function _request(options) {
|
|
|
20287
20293
|
if (methodUpper === 'GET' || methodUpper === 'HEAD') {
|
|
20288
20294
|
url = generateRequestUrlWithParams(url, options.data);
|
|
20289
20295
|
}
|
|
20290
|
-
else if (Object.prototype.toString.call(options.data)
|
|
20296
|
+
else if (['[object Array]', '[object Object]'].indexOf(Object.prototype.toString.call(options.data)) >= 0) {
|
|
20291
20297
|
options.header = options.header || {};
|
|
20292
20298
|
const keyOfContentType = Object.keys(options.header).find(item => item.toLowerCase() === 'content-type');
|
|
20293
20299
|
if (!keyOfContentType) {
|
|
@@ -20736,6 +20742,8 @@ const checkIsSoterEnrolledInDevice = temporarilyNotSupport('checkIsSoterEnrolled
|
|
|
20736
20742
|
|
|
20737
20743
|
// 订阅消息
|
|
20738
20744
|
const requestSubscribeMessage = temporarilyNotSupport('requestSubscribeMessage');
|
|
20745
|
+
// 订阅设备消息
|
|
20746
|
+
const requestSubscribeDeviceMessage = temporarilyNotSupport('requestSubscribeDeviceMessage');
|
|
20739
20747
|
|
|
20740
20748
|
// 用户信息
|
|
20741
20749
|
const getUserProfile = temporarilyNotSupport('getUserProfile');
|
|
@@ -20749,6 +20757,9 @@ const getWeRunData = temporarilyNotSupport('getWeRunData');
|
|
|
20749
20757
|
const requestPayment = temporarilyNotSupport('requestPayment');
|
|
20750
20758
|
const requestOrderPayment = temporarilyNotSupport('requestOrderPayment');
|
|
20751
20759
|
|
|
20760
|
+
// 打开手Q说说发表界面
|
|
20761
|
+
const openQzonePublish = temporarilyNotSupport('openQzonePublish');
|
|
20762
|
+
|
|
20752
20763
|
// 路由
|
|
20753
20764
|
// FIXME 方法导出类型未对齐,后续修复
|
|
20754
20765
|
|
|
@@ -22420,6 +22431,7 @@ const offWindowResize = callback => {
|
|
|
22420
22431
|
window.removeEventListener('resize', resizeListener);
|
|
22421
22432
|
}
|
|
22422
22433
|
};
|
|
22434
|
+
const checkIsPictureInPictureActive = temporarilyNotSupport('checkIsPictureInPictureActive');
|
|
22423
22435
|
|
|
22424
22436
|
// Worker
|
|
22425
22437
|
const createWorker = temporarilyNotSupport('createWorker');
|
|
@@ -22981,6 +22993,7 @@ exports.canvasToTempFilePath = canvasToTempFilePath;
|
|
|
22981
22993
|
exports.carClassify = carClassify;
|
|
22982
22994
|
exports.checkIsAddedToMyMiniProgram = checkIsAddedToMyMiniProgram;
|
|
22983
22995
|
exports.checkIsOpenAccessibility = checkIsOpenAccessibility;
|
|
22996
|
+
exports.checkIsPictureInPictureActive = checkIsPictureInPictureActive;
|
|
22984
22997
|
exports.checkIsSoterEnrolledInDevice = checkIsSoterEnrolledInDevice;
|
|
22985
22998
|
exports.checkIsSupportFacialRecognition = checkIsSupportFacialRecognition;
|
|
22986
22999
|
exports.checkIsSupportSoterAuthentication = checkIsSupportSoterAuthentication;
|
|
@@ -23034,10 +23047,12 @@ exports.createVideoContext = createVideoContext;
|
|
|
23034
23047
|
exports.createVideoDecoder = createVideoDecoder;
|
|
23035
23048
|
exports.createWebAudioContext = createWebAudioContext;
|
|
23036
23049
|
exports.createWorker = createWorker;
|
|
23050
|
+
exports.cropImage = cropImage;
|
|
23037
23051
|
exports["default"] = taro;
|
|
23038
23052
|
exports.disableAlertBeforeUnload = disableAlertBeforeUnload;
|
|
23039
23053
|
exports.dishClassify = dishClassify;
|
|
23040
23054
|
exports.downloadFile = downloadFile;
|
|
23055
|
+
exports.editImage = editImage;
|
|
23041
23056
|
exports.enableAlertBeforeUnload = enableAlertBeforeUnload;
|
|
23042
23057
|
exports.env = env;
|
|
23043
23058
|
exports.eventCenter = eventCenter;
|
|
@@ -23190,6 +23205,7 @@ exports.offVoIPChatMembersChanged = offVoIPChatMembersChanged;
|
|
|
23190
23205
|
exports.offVoIPChatStateChanged = offVoIPChatStateChanged;
|
|
23191
23206
|
exports.offVoIPVideoMembersChanged = offVoIPVideoMembersChanged;
|
|
23192
23207
|
exports.offWifiConnected = offWifiConnected;
|
|
23208
|
+
exports.offWifiConnectedWithPartialInfo = offWifiConnectedWithPartialInfo;
|
|
23193
23209
|
exports.offWindowResize = offWindowResize;
|
|
23194
23210
|
exports.onAccelerometerChange = onAccelerometerChange;
|
|
23195
23211
|
exports.onAppHide = onAppHide;
|
|
@@ -23252,6 +23268,7 @@ exports.openCustomerServiceChat = openCustomerServiceChat;
|
|
|
23252
23268
|
exports.openDocument = openDocument;
|
|
23253
23269
|
exports.openEmbeddedMiniProgram = openEmbeddedMiniProgram;
|
|
23254
23270
|
exports.openLocation = openLocation;
|
|
23271
|
+
exports.openQzonePublish = openQzonePublish;
|
|
23255
23272
|
exports.openSetting = openSetting;
|
|
23256
23273
|
exports.openSystemBluetoothSetting = openSystemBluetoothSetting;
|
|
23257
23274
|
exports.openVideoEditor = openVideoEditor;
|
|
@@ -23281,6 +23298,7 @@ exports.request = request;
|
|
|
23281
23298
|
exports.requestOrderPayment = requestOrderPayment;
|
|
23282
23299
|
exports.requestPayment = requestPayment;
|
|
23283
23300
|
exports.requestPolymerPayment = requestPolymerPayment;
|
|
23301
|
+
exports.requestSubscribeDeviceMessage = requestSubscribeDeviceMessage;
|
|
23284
23302
|
exports.requestSubscribeMessage = requestSubscribeMessage;
|
|
23285
23303
|
exports.requirePlugin = requirePlugin;
|
|
23286
23304
|
exports.reserveChannelsLive = reserveChannelsLive;
|