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.
@@ -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
  }
@@ -90,4 +90,5 @@ export default class ZaloMiniProgramSDKService extends ZJSBridgeProvider impleme
90
90
  connectWifi: typeof Device.connectWifi;
91
91
  openMediaPicker: typeof Zalo.openMediaPicker;
92
92
  openOutApp: typeof Zalo.openOutApp;
93
+ closeLoading: typeof Window.closeLoading;
93
94
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-sdk",
3
- "version": "2.16.7",
3
+ "version": "2.17.0-rc.0",
4
4
  "description": "Zalo Mini App SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",