zmp-sdk 2.16.4 → 2.16.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/browser.min.js +163 -161
- package/dist/index.es.js +163 -161
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/src/{controller → apis}/index.d.ts +4 -4
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/services/background.d.ts +1 -1
- package/dist/types/src/services/basic.d.ts +1 -1
- package/dist/types/src/services/dataCaching.d.ts +1 -1
- package/dist/types/src/services/device.d.ts +1 -1
- package/dist/types/src/services/location.d.ts +1 -1
- package/dist/types/src/services/media.d.ts +1 -1
- package/dist/types/src/{controller/mock-mp-manager.d.ts → services/mock-mp-service.d.ts} +4 -4
- package/dist/types/src/services/navigationBar.d.ts +1 -1
- package/dist/types/src/services/openApi.d.ts +1 -1
- package/dist/types/src/services/routing.d.ts +1 -1
- package/dist/types/src/services/window.d.ts +1 -1
- package/dist/types/src/{controller/zalo-mp-manager.d.ts → services/zalo-mp-service.d.ts} +14 -14
- package/dist/types/src/services/zalo.d.ts +1 -1
- package/dist/types/src/types/interface.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SDKServiceInterface } from '../types/interface';
|
|
2
2
|
import { ZMPEEmitter } from '../event-emitter';
|
|
3
3
|
import * as InputDataType from '../types/inputData';
|
|
4
4
|
import * as CallbackDataType from '../types/callbackData';
|
|
@@ -6,7 +6,7 @@ export declare abstract class SDKCreator {
|
|
|
6
6
|
#private;
|
|
7
7
|
events: ZMPEEmitter;
|
|
8
8
|
constructor();
|
|
9
|
-
protected abstract
|
|
9
|
+
protected abstract getServiceInstance(): SDKServiceInterface;
|
|
10
10
|
/**
|
|
11
11
|
* Login to call more action.
|
|
12
12
|
*
|
|
@@ -111,8 +111,8 @@ export declare abstract class SDKCreator {
|
|
|
111
111
|
getShareableLink(object: InputDataType.GetShareableLink<string>): Promise<string>;
|
|
112
112
|
}
|
|
113
113
|
export declare class ZaloMiniAppSDKCreator extends SDKCreator {
|
|
114
|
-
protected
|
|
114
|
+
protected getServiceInstance(): SDKServiceInterface;
|
|
115
115
|
}
|
|
116
116
|
export declare class MockSDKCreator extends SDKCreator {
|
|
117
|
-
protected
|
|
117
|
+
protected getServiceInstance(): SDKServiceInterface;
|
|
118
118
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as InputDataType from '../types/inputData';
|
|
2
|
-
import ZaloMiniProgramSDK from '
|
|
2
|
+
import ZaloMiniProgramSDK from './zalo-mp-service';
|
|
3
3
|
export declare class DataCaching {
|
|
4
4
|
/**
|
|
5
5
|
* Stores data in the specified key in the local cache.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as InputDataType from '../types/inputData';
|
|
2
2
|
import * as CallbackDataType from '../types/callbackData';
|
|
3
|
-
import ZaloMiniProgramSDK from '
|
|
3
|
+
import ZaloMiniProgramSDK from './zalo-mp-service';
|
|
4
4
|
export declare class Device {
|
|
5
5
|
/**
|
|
6
6
|
* Sets the device orientation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as InputDataType from '../types/inputData';
|
|
2
2
|
import * as CallbackDataType from '../types/callbackData';
|
|
3
|
-
import ZaloMiniProgramSDK from '
|
|
3
|
+
import ZaloMiniProgramSDK from './zalo-mp-service';
|
|
4
4
|
export declare class Media {
|
|
5
5
|
/**
|
|
6
6
|
* Yêu cầu quyền camera
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as InputDataType from '../types/inputData';
|
|
2
2
|
import * as CallbackDataType from '../types/callbackData';
|
|
3
|
-
import { Basics } from '
|
|
4
|
-
import { Routing } from '
|
|
3
|
+
import { Basics } from './basic';
|
|
4
|
+
import { Routing } from './routing';
|
|
5
5
|
import * as Enum from '../types/enum';
|
|
6
|
-
import {
|
|
7
|
-
export default class
|
|
6
|
+
import { SDKServiceInterface } from '../types/interface';
|
|
7
|
+
export default class MockSDKService implements SDKServiceInterface {
|
|
8
8
|
#private;
|
|
9
9
|
getLoginStatus: () => boolean;
|
|
10
10
|
getAppId: () => string;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { ZJSBridgeProvider } from '../bridgeProvider';
|
|
2
2
|
import * as InputDataType from '../types/inputData';
|
|
3
|
-
import { Basics } from '
|
|
4
|
-
import { NavigationBar } from '
|
|
5
|
-
import { Background } from '
|
|
6
|
-
import { Device } from '
|
|
7
|
-
import { DataCaching } from '
|
|
8
|
-
import { OpenApi } from '
|
|
9
|
-
import { Window } from '
|
|
10
|
-
import { Location } from '
|
|
11
|
-
import { Media } from '
|
|
12
|
-
import { Zalo } from '
|
|
13
|
-
import { Routing } from '
|
|
14
|
-
import {
|
|
3
|
+
import { Basics } from './basic';
|
|
4
|
+
import { NavigationBar } from './navigationBar';
|
|
5
|
+
import { Background } from './background';
|
|
6
|
+
import { Device } from './device';
|
|
7
|
+
import { DataCaching } from './dataCaching';
|
|
8
|
+
import { OpenApi } from './openApi';
|
|
9
|
+
import { Window } from './window';
|
|
10
|
+
import { Location } from './location';
|
|
11
|
+
import { Media } from './media';
|
|
12
|
+
import { Zalo } from './zalo';
|
|
13
|
+
import { Routing } from './routing';
|
|
14
|
+
import { SDKServiceInterface } from '../types/interface';
|
|
15
15
|
import { ZMPEEmitter } from '../event-emitter';
|
|
16
|
-
export default class
|
|
16
|
+
export default class ZaloMiniProgramSDKService extends ZJSBridgeProvider implements SDKServiceInterface {
|
|
17
17
|
#private;
|
|
18
18
|
events: ZMPEEmitter;
|
|
19
19
|
isShowNavBar: boolean;
|
|
20
20
|
isIOS: boolean;
|
|
21
21
|
private static instance;
|
|
22
|
-
static getInstance():
|
|
22
|
+
static getInstance(): ZaloMiniProgramSDKService;
|
|
23
23
|
constructor();
|
|
24
24
|
getActionBarConfig: () => InputDataType.ActionBarConfig;
|
|
25
25
|
setActionBarConfig: (setState: (state: InputDataType.ActionBarConfig) => InputDataType.ActionBarConfig) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as InputDataType from '../types/inputData';
|
|
2
2
|
import * as CallbackDataType from '../types/callbackData';
|
|
3
3
|
import { MediaPickerType } from '../types/enum';
|
|
4
|
-
import ZaloMiniProgramSDK from '
|
|
4
|
+
import ZaloMiniProgramSDK from './zalo-mp-service';
|
|
5
5
|
export declare class Zalo {
|
|
6
6
|
/**
|
|
7
7
|
* View QR.
|
|
@@ -2,7 +2,7 @@ import * as InputDataType from './inputData';
|
|
|
2
2
|
import * as CallbackDataType from './callbackData';
|
|
3
3
|
import { systemInfo } from './entity';
|
|
4
4
|
import { MediaPickerType } from './enum';
|
|
5
|
-
export interface
|
|
5
|
+
export interface SDKServiceInterface {
|
|
6
6
|
getAppId: () => string;
|
|
7
7
|
login: (object?: InputDataType.CallbackType) => Promise<string>;
|
|
8
8
|
getLoginStatus: () => boolean;
|