zmp-sdk 2.15.2 → 2.15.3
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 +68 -162
- package/dist/index.es.js +68 -162
- package/dist/index.js +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/types/src/bridgeProvider.d.ts +1 -0
- package/dist/types/src/constants.d.ts +8 -0
- package/dist/types/src/controller/zalo-mp-manager.d.ts +2 -1
- package/dist/types/src/types/inputData.d.ts +14 -0
- package/package.json +1 -1
|
@@ -39,3 +39,11 @@ export declare const ZALO_SUPPORT_STORAGE_VERSION: {
|
|
|
39
39
|
unknown: number;
|
|
40
40
|
};
|
|
41
41
|
export declare const ZALO_IOS_ACTIONS_SUPPORTED_BEFORE_VER_402: string[];
|
|
42
|
+
export declare const ACTION_LEFT_BUTTON_TYPE: {
|
|
43
|
+
SHOW_BACK: number;
|
|
44
|
+
HIDE_BACK: number;
|
|
45
|
+
SHOW_HOME: number;
|
|
46
|
+
HIDE_HOME: number;
|
|
47
|
+
};
|
|
48
|
+
export declare const SHOW_ACTION_BAR = 5;
|
|
49
|
+
export declare const HIDE_ACTION_BAR = 6;
|
|
@@ -17,10 +17,11 @@ export default class ZaloMiniProgramSDK extends ZJSBridgeProvider implements SDK
|
|
|
17
17
|
#private;
|
|
18
18
|
events: ZMPEEmitter;
|
|
19
19
|
isShowNavBar: boolean;
|
|
20
|
-
isShowHomeButton: boolean;
|
|
21
20
|
private static instance;
|
|
22
21
|
static getInstance(): ZaloMiniProgramSDK;
|
|
23
22
|
constructor();
|
|
23
|
+
getActionBarConfig: () => InputDataType.ActionBarConfig;
|
|
24
|
+
setActionBarConfig: (setState: (state: InputDataType.ActionBarConfig) => InputDataType.ActionBarConfig) => void;
|
|
24
25
|
getLoginStatus(): boolean;
|
|
25
26
|
getAppId(): string;
|
|
26
27
|
getZAppId(): string;
|
|
@@ -411,4 +411,18 @@ export declare type GetUserInfoDataType<T> = CallbackType<T> & {
|
|
|
411
411
|
export declare type OpenProfilePicker<T> = CallbackType<T> & {
|
|
412
412
|
maxProfile?: number;
|
|
413
413
|
};
|
|
414
|
+
export declare type ActionBarConfig = {
|
|
415
|
+
actionbarType: number;
|
|
416
|
+
buttonType: number;
|
|
417
|
+
dataConfig: {
|
|
418
|
+
backgroundColor: string;
|
|
419
|
+
textColor: string;
|
|
420
|
+
viewInLeftType: number;
|
|
421
|
+
confirmToExit: number;
|
|
422
|
+
};
|
|
423
|
+
homeConfig: {
|
|
424
|
+
enable: number;
|
|
425
|
+
url: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
414
428
|
export {};
|