@tarojs/taro-h5 3.5.6 → 3.5.7-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/ad/index.d.ts +2 -6
- package/dist/api/ai/facial.d.ts +3 -9
- package/dist/api/ai/visual.d.ts +2 -6
- package/dist/api/alipay/index.d.ts +1 -3
- package/dist/api/base/crypto.d.ts +1 -3
- package/dist/api/base/debug.d.ts +3 -9
- package/dist/api/base/index.d.ts +1 -3
- package/dist/api/base/performance.d.ts +2 -6
- package/dist/api/base/system.d.ts +2 -8
- package/dist/api/base/system.js +1 -1
- package/dist/api/base/update.d.ts +2 -6
- package/dist/api/base/weapp/app-event.d.ts +12 -36
- package/dist/api/base/weapp/life-cycle.d.ts +3 -6
- package/dist/api/base/weapp/life-cycle.js +14 -3
- package/dist/api/canvas/CanvasContext.js +1 -1
- package/dist/api/canvas/index.d.ts +1 -3
- package/dist/api/cloud/index.d.ts +9 -27
- package/dist/api/data-analysis/index.d.ts +4 -12
- package/dist/api/device/accessibility.d.ts +1 -3
- package/dist/api/device/battery.d.ts +1 -3
- package/dist/api/device/bluetooth-ble.d.ts +16 -48
- package/dist/api/device/bluetooth-peripheral.d.ts +3 -9
- package/dist/api/device/bluetooth.d.ts +13 -39
- package/dist/api/device/calendar.d.ts +2 -6
- package/dist/api/device/contact.d.ts +2 -6
- package/dist/api/device/crypto.d.ts +1 -3
- package/dist/api/device/gyroscope.d.ts +4 -12
- package/dist/api/device/iBeacon.d.ts +7 -21
- package/dist/api/device/keyboard.d.ts +4 -12
- package/dist/api/device/memory.d.ts +2 -6
- package/dist/api/device/network.d.ts +3 -9
- package/dist/api/device/nfc.d.ts +7 -21
- package/dist/api/device/screen.d.ts +6 -18
- package/dist/api/device/wifi.d.ts +11 -33
- package/dist/api/ext/index.d.ts +2 -6
- package/dist/api/files/index.d.ts +8 -24
- package/dist/api/location/index.d.ts +9 -27
- package/dist/api/media/EditorContext.d.ts +13 -39
- package/dist/api/media/audio/index.d.ts +8 -24
- package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +4 -12
- package/dist/api/media/background-audio/index.d.ts +8 -24
- package/dist/api/media/camera.d.ts +1 -3
- package/dist/api/media/image/index.d.ts +4 -12
- package/dist/api/media/live.d.ts +2 -6
- package/dist/api/media/map.d.ts +1 -3
- package/dist/api/media/media-recorder.d.ts +1 -3
- package/dist/api/media/recorder.d.ts +3 -9
- package/dist/api/media/video/index.d.ts +5 -15
- package/dist/api/media/video-decoder.d.ts +1 -3
- package/dist/api/media/video-processing.d.ts +1 -3
- package/dist/api/media/voip.d.ts +14 -42
- package/dist/api/navigate/index.d.ts +5 -15
- package/dist/api/network/download.js +4 -3
- package/dist/api/network/mdns.d.ts +10 -30
- package/dist/api/network/request/index.js +5 -4
- package/dist/api/network/tcp.d.ts +1 -3
- package/dist/api/network/udp.d.ts +1 -3
- package/dist/api/network/upload.js +4 -3
- package/dist/api/open-api/account.d.ts +1 -3
- package/dist/api/open-api/address.d.ts +1 -3
- package/dist/api/open-api/authorize.d.ts +2 -6
- package/dist/api/open-api/card.d.ts +2 -6
- package/dist/api/open-api/channels-live.d.ts +6 -18
- package/dist/api/open-api/customer-service.d.ts +1 -3
- package/dist/api/open-api/facial.d.ts +4 -12
- package/dist/api/open-api/favorites.d.ts +2 -6
- package/dist/api/open-api/group.d.ts +1 -3
- package/dist/api/open-api/invoice.d.ts +2 -6
- package/dist/api/open-api/license-plate.d.ts +1 -3
- package/dist/api/open-api/login.d.ts +3 -9
- package/dist/api/open-api/red-package.d.ts +1 -3
- package/dist/api/open-api/settings.d.ts +2 -6
- package/dist/api/open-api/soter.d.ts +3 -9
- package/dist/api/open-api/subscribe-message.d.ts +1 -3
- package/dist/api/open-api/user-info.d.ts +2 -6
- package/dist/api/open-api/werun.d.ts +2 -6
- package/dist/api/payment/index.d.ts +2 -6
- package/dist/api/share/index.d.ts +10 -30
- package/dist/api/storage/background-fetch.d.ts +4 -12
- package/dist/api/storage/index.d.ts +2 -6
- package/dist/api/swan/index.d.ts +21 -63
- package/dist/api/taro.d.ts +1 -3
- package/dist/api/ui/background.d.ts +2 -6
- package/dist/api/ui/interaction/index.d.ts +2 -6
- package/dist/api/ui/menu.d.ts +1 -3
- package/dist/api/ui/navigation-bar/index.d.ts +3 -9
- package/dist/api/ui/sticky.d.ts +1 -3
- package/dist/api/ui/window.d.ts +1 -3
- package/dist/api/worker/index.d.ts +1 -3
- package/dist/api/wxml/index.d.ts +1 -3
- package/dist/index.cjs.d.ts +308 -924
- package/dist/index.cjs.js +155 -131
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +308 -924
- package/dist/index.esm.js +155 -131
- package/dist/index.esm.js.map +1 -1
- package/dist/taroApis.d.ts +307 -921
- package/dist/utils/index.d.ts +4 -9
- package/dist/utils/index.js +48 -36
- package/package.json +8 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CallbackManager } from '../../utils/handler';
|
|
2
2
|
import { convertObjectUrlToBlob, NETWORK_TIMEOUT, setHeader, XHR_STATS } from './utils';
|
|
3
|
-
const createUploadTask = ({ url, filePath, formData = {}, name, header, timeout, fileName, success, error }) => {
|
|
3
|
+
const createUploadTask = ({ url, filePath, formData = {}, name, header, timeout, fileName, withCredentials = true, success, error }) => {
|
|
4
4
|
let timeoutInter;
|
|
5
5
|
let formKey;
|
|
6
6
|
const apiName = 'uploadFile';
|
|
@@ -11,7 +11,7 @@ const createUploadTask = ({ url, filePath, formData = {}, name, header, timeout,
|
|
|
11
11
|
progressUpdate: new CallbackManager()
|
|
12
12
|
};
|
|
13
13
|
xhr.open('POST', url);
|
|
14
|
-
xhr.withCredentials =
|
|
14
|
+
xhr.withCredentials = !!withCredentials;
|
|
15
15
|
setHeader(xhr, header);
|
|
16
16
|
for (formKey in formData) {
|
|
17
17
|
form.append(formKey, formData[formKey]);
|
|
@@ -117,7 +117,7 @@ const createUploadTask = ({ url, filePath, formData = {}, name, header, timeout,
|
|
|
117
117
|
/**
|
|
118
118
|
* 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data。使用前请注意阅读相关说明。
|
|
119
119
|
*/
|
|
120
|
-
export const uploadFile = ({ url, filePath, name, header, formData, timeout, fileName, success, fail, complete }) => {
|
|
120
|
+
export const uploadFile = ({ url, filePath, name, header, formData, timeout, fileName, withCredentials, success, fail, complete }) => {
|
|
121
121
|
let task;
|
|
122
122
|
const result = new Promise((resolve, reject) => {
|
|
123
123
|
task = createUploadTask({
|
|
@@ -128,6 +128,7 @@ export const uploadFile = ({ url, filePath, name, header, formData, timeout, fil
|
|
|
128
128
|
formData,
|
|
129
129
|
timeout,
|
|
130
130
|
fileName,
|
|
131
|
+
withCredentials,
|
|
131
132
|
success: res => {
|
|
132
133
|
success && success(res);
|
|
133
134
|
complete && complete(res);
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const authorizeForMiniProgram: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const authorize: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const authorizeForMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const authorize: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const openCard: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const addCard: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const openCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const addCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
export declare const reserveChannelsLive: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
}>;
|
|
7
|
-
export declare const openChannelsEvent: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const openChannelsActivity: () => Promise<{
|
|
11
|
-
errMsg: string;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const getChannelsLiveNoticeInfo: () => Promise<{
|
|
14
|
-
errMsg: string;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const getChannelsLiveInfo: () => Promise<{
|
|
17
|
-
errMsg: string;
|
|
18
|
-
}>;
|
|
1
|
+
export declare const reserveChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const openChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
3
|
+
export declare const openChannelsEvent: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
4
|
+
export declare const openChannelsActivity: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
5
|
+
export declare const getChannelsLiveNoticeInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
6
|
+
export declare const getChannelsLiveInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
export declare const checkIsSupportFacialRecognition: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const startFacialRecognitionVerifyAndUploadVideo: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const faceVerifyForPay: () => Promise<{
|
|
11
|
-
errMsg: string;
|
|
12
|
-
}>;
|
|
1
|
+
export declare const checkIsSupportFacialRecognition: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const startFacialRecognitionVerify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
3
|
+
export declare const startFacialRecognitionVerifyAndUploadVideo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
4
|
+
export declare const faceVerifyForPay: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const addVideoToFavorites: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const addFileToFavorites: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const addVideoToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const addFileToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const chooseInvoiceTitle: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const chooseInvoice: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const chooseInvoiceTitle: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const chooseInvoice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export declare const pluginLogin: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const login: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const checkSession: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
1
|
+
export declare const pluginLogin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const login: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
3
|
+
export declare const checkSession: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const openSetting: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const getSetting: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const openSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const getSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export declare const startSoterAuthentication: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const checkIsSupportSoterAuthentication: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const checkIsSoterEnrolledInDevice: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
1
|
+
export declare const startSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const checkIsSupportSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
3
|
+
export declare const checkIsSoterEnrolledInDevice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const getUserProfile: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const getUserInfo: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const shareToWeRun: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const getWeRunData: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const requestPayment: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const requestOrderPayment: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
export declare const updateShareMenu: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
}>;
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
}>;
|
|
10
|
-
export declare const
|
|
11
|
-
errMsg: string;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const shareFileMessage: () => Promise<{
|
|
14
|
-
errMsg: string;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const onCopyUrl: () => Promise<{
|
|
17
|
-
errMsg: string;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const offCopyUrl: () => Promise<{
|
|
20
|
-
errMsg: string;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const hideShareMenu: () => Promise<{
|
|
23
|
-
errMsg: string;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const getShareInfo: () => Promise<{
|
|
26
|
-
errMsg: string;
|
|
27
|
-
}>;
|
|
28
|
-
export declare const authPrivateMessage: () => Promise<{
|
|
29
|
-
errMsg: string;
|
|
30
|
-
}>;
|
|
1
|
+
export declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
3
|
+
export declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
4
|
+
export declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
5
|
+
export declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
6
|
+
export declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
7
|
+
export declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
8
|
+
export declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
|
+
export declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
10
|
+
export declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
export declare const setBackgroundFetchToken: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const getBackgroundFetchToken: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const getBackgroundFetchData: () => Promise<{
|
|
11
|
-
errMsg: string;
|
|
12
|
-
}>;
|
|
1
|
+
export declare const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
3
|
+
export declare const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
4
|
+
export declare const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import Taro from '@tarojs/api';
|
|
2
2
|
export declare const setStorageSync: typeof Taro.setStorageSync;
|
|
3
3
|
export declare const setStorage: typeof Taro.setStorage;
|
|
4
|
-
export declare const revokeBufferURL: () => Promise<
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
4
|
+
export declare const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
7
5
|
export declare const removeStorageSync: typeof Taro.removeStorageSync;
|
|
8
6
|
export declare const removeStorage: typeof Taro.removeStorage;
|
|
9
7
|
export declare const getStorageSync: typeof Taro.getStorageSync;
|
|
10
8
|
export declare const getStorageInfoSync: typeof Taro.getStorageInfoSync;
|
|
11
9
|
export declare const getStorageInfo: typeof Taro.getStorageInfo;
|
|
12
10
|
export declare const getStorage: typeof Taro.getStorage;
|
|
13
|
-
export declare const createBufferURL: () => Promise<
|
|
14
|
-
errMsg: string;
|
|
15
|
-
}>;
|
|
11
|
+
export declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
16
12
|
export declare const clearStorageSync: typeof Taro.clearStorageSync;
|
|
17
13
|
export declare const clearStorage: typeof Taro.clearStorage;
|
|
18
14
|
export * from './background-fetch';
|
package/dist/api/swan/index.d.ts
CHANGED
|
@@ -1,63 +1,21 @@
|
|
|
1
|
-
export declare const setPageInfo: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
}>;
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
}>;
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
}>;
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
}>;
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
}>;
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
}>;
|
|
22
|
-
export declare const imageAudit: () => Promise<{
|
|
23
|
-
errMsg: string;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const advancedGeneralIdentify: () => Promise<{
|
|
26
|
-
errMsg: string;
|
|
27
|
-
}>;
|
|
28
|
-
export declare const objectDetectIdentify: () => Promise<{
|
|
29
|
-
errMsg: string;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const carClassify: () => Promise<{
|
|
32
|
-
errMsg: string;
|
|
33
|
-
}>;
|
|
34
|
-
export declare const dishClassify: () => Promise<{
|
|
35
|
-
errMsg: string;
|
|
36
|
-
}>;
|
|
37
|
-
export declare const logoClassify: () => Promise<{
|
|
38
|
-
errMsg: string;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const animalClassify: () => Promise<{
|
|
41
|
-
errMsg: string;
|
|
42
|
-
}>;
|
|
43
|
-
export declare const plantClassify: () => Promise<{
|
|
44
|
-
errMsg: string;
|
|
45
|
-
}>;
|
|
46
|
-
export declare const getSwanId: () => Promise<{
|
|
47
|
-
errMsg: string;
|
|
48
|
-
}>;
|
|
49
|
-
export declare const requestPolymerPayment: () => Promise<{
|
|
50
|
-
errMsg: string;
|
|
51
|
-
}>;
|
|
52
|
-
export declare const navigateToSmartGameProgram: () => Promise<{
|
|
53
|
-
errMsg: string;
|
|
54
|
-
}>;
|
|
55
|
-
export declare const navigateToSmartProgram: () => Promise<{
|
|
56
|
-
errMsg: string;
|
|
57
|
-
}>;
|
|
58
|
-
export declare const navigateBackSmartProgram: () => Promise<{
|
|
59
|
-
errMsg: string;
|
|
60
|
-
}>;
|
|
61
|
-
export declare const preloadSubPackage: () => Promise<{
|
|
62
|
-
errMsg: string;
|
|
63
|
-
}>;
|
|
1
|
+
export declare const setPageInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const ocrIdCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
3
|
+
export declare const ocrBankCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
4
|
+
export declare const ocrDrivingLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
5
|
+
export declare const ocrVehicleLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
6
|
+
export declare const textReview: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
7
|
+
export declare const textToAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
8
|
+
export declare const imageAudit: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
|
+
export declare const advancedGeneralIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
10
|
+
export declare const objectDetectIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
11
|
+
export declare const carClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
12
|
+
export declare const dishClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
13
|
+
export declare const logoClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
14
|
+
export declare const animalClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
15
|
+
export declare const plantClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
16
|
+
export declare const getSwanId: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
17
|
+
export declare const requestPolymerPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
18
|
+
export declare const navigateToSmartGameProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
19
|
+
export declare const navigateToSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
20
|
+
export declare const navigateBackSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
21
|
+
export declare const preloadSubPackage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
package/dist/api/taro.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ import { history } from '@tarojs/router';
|
|
|
3
3
|
declare const Behavior: any, getEnv: any, ENV_TYPE: any, Link: any, interceptors: any, Current: any, options: any, eventCenter: any, Events: any, preload: any;
|
|
4
4
|
declare const taro: typeof Taro;
|
|
5
5
|
declare const initPxTransform: any;
|
|
6
|
-
declare const requirePlugin: () => Promise<
|
|
7
|
-
errMsg: string;
|
|
8
|
-
}>;
|
|
6
|
+
declare const requirePlugin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
7
|
declare const pxTransform: (size: any) => string;
|
|
10
8
|
declare const canIUseWebp: () => boolean;
|
|
11
9
|
export default taro;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export declare const setBackgroundTextStyle: () => Promise<
|
|
2
|
-
|
|
3
|
-
}>;
|
|
4
|
-
export declare const setBackgroundColor: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
1
|
+
export declare const setBackgroundTextStyle: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
2
|
+
export declare const setBackgroundColor: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -5,10 +5,6 @@ declare const showLoading: typeof Taro.showLoading;
|
|
|
5
5
|
declare const hideLoading: typeof Taro.hideLoading;
|
|
6
6
|
declare const showModal: typeof Taro.showModal;
|
|
7
7
|
declare const showActionSheet: typeof Taro.showActionSheet;
|
|
8
|
-
declare const enableAlertBeforeUnload: () => Promise<
|
|
9
|
-
|
|
10
|
-
}>;
|
|
11
|
-
declare const disableAlertBeforeUnload: () => Promise<{
|
|
12
|
-
errMsg: string;
|
|
13
|
-
}>;
|
|
8
|
+
declare const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
|
+
declare const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
14
10
|
export { disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast };
|
package/dist/api/ui/menu.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export declare const getMenuButtonBoundingClientRect: () => Promise<
|
|
2
|
-
errMsg: string;
|
|
3
|
-
}>;
|
|
1
|
+
export declare const getMenuButtonBoundingClientRect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import Taro from '@tarojs/api';
|
|
2
|
-
export declare const showNavigationBarLoading: () => Promise<
|
|
3
|
-
errMsg: string;
|
|
4
|
-
}>;
|
|
2
|
+
export declare const showNavigationBarLoading: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
5
3
|
export declare function setNavigationBarTitle(options: any): Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
6
4
|
/**
|
|
7
5
|
* 设置页面导航条颜色
|
|
8
6
|
*/
|
|
9
7
|
export declare const setNavigationBarColor: typeof Taro.setNavigationBarColor;
|
|
10
|
-
export declare const hideNavigationBarLoading: () => Promise<
|
|
11
|
-
|
|
12
|
-
}>;
|
|
13
|
-
export declare const hideHomeButton: () => Promise<{
|
|
14
|
-
errMsg: string;
|
|
15
|
-
}>;
|
|
8
|
+
export declare const hideNavigationBarLoading: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
|
+
export declare const hideHomeButton: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
package/dist/api/ui/sticky.d.ts
CHANGED
package/dist/api/ui/window.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import Taro from '@tarojs/api';
|
|
|
2
2
|
/**
|
|
3
3
|
* 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
|
|
4
4
|
*/
|
|
5
|
-
export declare const setWindowSize: () => Promise<
|
|
6
|
-
errMsg: string;
|
|
7
|
-
}>;
|
|
5
|
+
export declare const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
8
6
|
/**
|
|
9
7
|
* 监听窗口尺寸变化事件
|
|
10
8
|
*/
|
package/dist/api/wxml/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import Taro from '@tarojs/api';
|
|
2
2
|
export declare const createSelectorQuery: typeof Taro.createSelectorQuery;
|
|
3
|
-
export declare const createIntersectionObserver: () => Promise<
|
|
4
|
-
errMsg: string;
|
|
5
|
-
}>;
|
|
3
|
+
export declare const createIntersectionObserver: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|