@jolibox/types 1.1.20-beta.1 → 1.1.21
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.
|
@@ -2,7 +2,9 @@ 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
4
|
export declare const ROUTER_SDK_INTERCEPT_SYSTEM_EXIT = "RouterSDK.interceptSystemExit";
|
|
5
|
+
export declare const ROUTER_SDK_NAVIGATE_TO_NATIVE_PAGE = "RouterSDK.navigateToNativePage";
|
|
5
6
|
import { StandardResponse } from '../response';
|
|
7
|
+
export type NavigateToNativePageType = 'openHistory';
|
|
6
8
|
export interface RouterCommandParams {
|
|
7
9
|
[ROUTER_SDK_OPEN_SCHEMA]: (schema: string) => StandardResponse<void>;
|
|
8
10
|
[ROUTER_SDK_OPEN_PAGE]: (url: string) => StandardResponse<{
|
|
@@ -10,5 +12,6 @@ export interface RouterCommandParams {
|
|
|
10
12
|
}>;
|
|
11
13
|
[ROUTER_SDK_CLOSE_PAGE]: (webviewId: number) => StandardResponse<void>;
|
|
12
14
|
[ROUTER_SDK_INTERCEPT_SYSTEM_EXIT]: (intercept: boolean) => StandardResponse<void>;
|
|
15
|
+
[ROUTER_SDK_NAVIGATE_TO_NATIVE_PAGE]: (path: NavigateToNativePageType, params: Record<string, unknown>) => StandardResponse<void>;
|
|
13
16
|
}
|
|
14
17
|
export type RouterCommandType = keyof RouterCommandParams;
|
package/dist/sdks/router.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ export interface Router {
|
|
|
6
6
|
}>>;
|
|
7
7
|
closePage: (webviewId: number) => Promise<StandardResponse<void>>;
|
|
8
8
|
interceptSystemExit: (intercept: boolean) => Promise<StandardResponse<void>>;
|
|
9
|
+
navigateToNativePage: (path: string, params: Record<string, unknown>) => Promise<StandardResponse<void>>;
|
|
9
10
|
}
|