@jolibox/types 1.1.18-beta.5 → 1.1.19-beta.1

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.
@@ -1,6 +1,7 @@
1
1
  export declare const ROUTER_SDK_OPEN_SCHEMA = "RouterSDK.openSchema";
2
2
  export declare const ROUTER_SDK_OPEN_PAGE = "RouterSDK.openPage";
3
3
  export declare const ROUTER_SDK_CLOSE_PAGE = "RouterSDK.closePage";
4
+ export declare const ROUTER_SDK_INTERCEPT_SYSTEM_EXIT = "RouterSDK.interceptSystemExit";
4
5
  import { StandardResponse } from '../response';
5
6
  export interface RouterCommandParams {
6
7
  [ROUTER_SDK_OPEN_SCHEMA]: (schema: string) => StandardResponse<void>;
@@ -8,5 +9,6 @@ export interface RouterCommandParams {
8
9
  webviewId: number;
9
10
  }>;
10
11
  [ROUTER_SDK_CLOSE_PAGE]: (webviewId: number) => StandardResponse<void>;
12
+ [ROUTER_SDK_INTERCEPT_SYSTEM_EXIT]: (intercept: boolean) => StandardResponse<void>;
11
13
  }
12
14
  export type RouterCommandType = keyof RouterCommandParams;
@@ -1,6 +1,7 @@
1
1
  export declare const DOCUMENT_READY = "onDocumentReady";
2
2
  export declare const ON_LOGIN_COMPLETE = "onLoginComplete";
3
3
  export declare const ON_I18N_CHANGED = "onI18nChanged";
4
+ export declare const ON_INTERCEPT_SYSTEM_EXIT = "onInterceptSystemExit";
4
5
  export interface RumtimeEventParams {
5
6
  [DOCUMENT_READY]: (startTime: number) => void;
6
7
  [ON_LOGIN_COMPLETE]: (params: {
@@ -10,4 +11,7 @@ export interface RumtimeEventParams {
10
11
  [ON_I18N_CHANGED]: (params: {
11
12
  i18n: string;
12
13
  }) => void;
14
+ [ON_INTERCEPT_SYSTEM_EXIT]: (params: {
15
+ intercept: boolean;
16
+ }) => void;
13
17
  }
@@ -5,4 +5,5 @@ export interface Router {
5
5
  webviewId: number;
6
6
  }>>;
7
7
  closePage: (webviewId: number) => Promise<StandardResponse<void>>;
8
+ interceptSystemExit: (intercept: boolean) => Promise<StandardResponse<void>>;
8
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jolibox/types",
3
3
  "description": "This project is common types used for JS-SDk interfere & implement",
4
- "version": "1.1.18-beta.5",
4
+ "version": "1.1.19-beta.1",
5
5
  "typings": "dist/index.d.ts",
6
6
  "license": "MIT",
7
7
  "files": [