zmp-sdk 2.16.7 → 2.17.0-rc.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/browser.min.js +34 -1
- package/dist/index.es.js +34 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/src/apis/index.d.ts +1 -0
- package/dist/types/src/services/mock-mp-service.d.ts +1 -0
- package/dist/types/src/services/window.d.ts +9 -0
- package/dist/types/src/services/zalo-mp-service.d.ts +1 -0
- package/dist/types/src/types/interface.d.ts +1 -0
- package/package.json +1 -1
|
@@ -109,6 +109,7 @@ export declare abstract class SDKCreator {
|
|
|
109
109
|
connectWifi(object: InputDataType.ConnectWifi): Promise<void>;
|
|
110
110
|
openMediaPicker(object: InputDataType.OpenMediaPicker<CallbackDataType.OpenMediaPickerSuccessCallBack>): Promise<CallbackDataType.OpenMediaPickerSuccessCallBack>;
|
|
111
111
|
getShareableLink(object: InputDataType.GetShareableLink<string>): Promise<string>;
|
|
112
|
+
closeLoading(object?: InputDataType.CallbackType): Promise<void>;
|
|
112
113
|
}
|
|
113
114
|
export declare class ZaloMiniAppSDKCreator extends SDKCreator {
|
|
114
115
|
protected getServiceInstance(): SDKServiceInterface;
|
|
@@ -82,4 +82,5 @@ export default class MockSDKService implements SDKServiceInterface {
|
|
|
82
82
|
aspect_ratio?: string;
|
|
83
83
|
}, silentRequest?: 0 | 1, maxSelectItem?: number): Promise<CallbackDataType.OpenMediaPickerSuccessCallBack>;
|
|
84
84
|
openOutApp: (url: string) => Promise<void>;
|
|
85
|
+
closeLoading: (when: string) => Promise<void>;
|
|
85
86
|
}
|
|
@@ -28,4 +28,13 @@ export declare class Window {
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
static openWebview(this: ZaloMiniProgramSDK, object: InputDataType.OpenWebview): Promise<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Close loading view.
|
|
33
|
+
*
|
|
34
|
+
* @async
|
|
35
|
+
* @function closeLoading
|
|
36
|
+
* @category Window
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
static closeLoading(this: ZaloMiniProgramSDK, when: string): Promise<void>;
|
|
31
40
|
}
|
|
@@ -78,4 +78,5 @@ export interface SDKServiceInterface {
|
|
|
78
78
|
aspect_ratio?: string;
|
|
79
79
|
}, silentRequest?: 0 | 1, maxSelectItem?: number) => Promise<CallbackDataType.OpenMediaPickerSuccessCallBack>;
|
|
80
80
|
openOutApp: (url: string) => Promise<void>;
|
|
81
|
+
closeLoading: (when: string) => Promise<void>;
|
|
81
82
|
}
|