@jolibox/types 1.1.11-beta.5 → 1.1.12
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/commands/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { StorageCommandParams } from './storage';
|
|
|
8
8
|
import { TaskTrackCommandParams } from './task-track';
|
|
9
9
|
import { KeyboardCommandParams } from './native/keyboard';
|
|
10
10
|
import { LoginCommandParams } from './native/login';
|
|
11
|
-
import { RouterCommandParams } from './native/navigate';
|
|
12
11
|
export * from './runtime';
|
|
13
12
|
export * from './report';
|
|
14
13
|
export * from './api';
|
|
@@ -20,6 +19,5 @@ export * from './storage';
|
|
|
20
19
|
export * from './task-track';
|
|
21
20
|
export * from './native/keyboard';
|
|
22
21
|
export * from './native/login';
|
|
23
|
-
export
|
|
24
|
-
export type CommandParamsMap = RumtimeCommandParams & ReportCommandParams & APICommandParams & AdsCommandParams & LifeCycleCommandParams & HttpCommandParams & StorageCommandParams & KeyboardCommandParams & TaskTrackCommandParams & LoginCommandParams & RouterCommandParams;
|
|
22
|
+
export type CommandParamsMap = RumtimeCommandParams & ReportCommandParams & APICommandParams & AdsCommandParams & LifeCycleCommandParams & HttpCommandParams & StorageCommandParams & KeyboardCommandParams & TaskTrackCommandParams & LoginCommandParams;
|
|
25
23
|
export type CommandType = keyof CommandParamsMap;
|
|
@@ -4,7 +4,7 @@ export declare const LIFECYCLE_ONREADYEVENT = "LifecycleSDK.onReady";
|
|
|
4
4
|
export declare const LIFECYCLE_ONGSHOW_EVENT = "LifecycleSDK.onJoliboxShow";
|
|
5
5
|
export declare const LIFECYCLE_ONGHIDE_EVENT = "LifecycleSDK.onJoliboxHide";
|
|
6
6
|
export interface LifeCycleCommandParams {
|
|
7
|
-
[LIFECYCLE_EXITGAME]: (onBeforeExit: () => void
|
|
7
|
+
[LIFECYCLE_EXITGAME]: (onBeforeExit: () => void) => void;
|
|
8
8
|
[LIFECYCLE_ONREADYEVENT]: (onReady: (info?: Env['hostUserInfo']) => void) => void;
|
|
9
9
|
[LIFECYCLE_ONGSHOW_EVENT]: (onShow: () => void) => void;
|
|
10
10
|
[LIFECYCLE_ONGHIDE_EVENT]: (onHide: () => void) => void;
|
package/dist/env.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/sdks/lifecycle.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ export interface Lifecycle {
|
|
|
3
3
|
onReady: (params: (info: Env['hostUserInfo']) => void) => void;
|
|
4
4
|
onJoliboxShow: (params: () => void) => void;
|
|
5
5
|
onJoliboxHide: (params: () => void) => void;
|
|
6
|
-
exit: (
|
|
6
|
+
exit: (param: {
|
|
7
7
|
onBeforeExit: () => void;
|
|
8
|
-
shouldStay?: boolean;
|
|
9
8
|
}) => void;
|
|
10
9
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const ROUTER_SDK_OPEN_SCHEMA = "RouterSDK.openSchema";
|
|
2
|
-
export declare const ROUTER_SDK_OPEN_PAGE = "RouterSDK.openPage";
|
|
3
|
-
export declare const ROUTER_SDK_CLOSE_PAGE = "RouterSDK.closePage";
|
|
4
|
-
import { StandardResponse } from '../response';
|
|
5
|
-
export interface RouterCommandParams {
|
|
6
|
-
[ROUTER_SDK_OPEN_SCHEMA]: (schema: string) => StandardResponse<void>;
|
|
7
|
-
[ROUTER_SDK_OPEN_PAGE]: (url: string) => StandardResponse<{
|
|
8
|
-
webviewId: number;
|
|
9
|
-
}>;
|
|
10
|
-
[ROUTER_SDK_CLOSE_PAGE]: (webviewId: number) => StandardResponse<void>;
|
|
11
|
-
}
|
|
12
|
-
export type RouterCommandType = keyof RouterCommandParams;
|
package/dist/sdks/router.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StandardResponse } from '../commands';
|
|
2
|
-
export interface Router {
|
|
3
|
-
openSchema: (schema: string) => Promise<StandardResponse<void>>;
|
|
4
|
-
openPage: (url: string) => Promise<StandardResponse<{
|
|
5
|
-
webviewId: number;
|
|
6
|
-
}>>;
|
|
7
|
-
closePage: (webviewId: number) => Promise<StandardResponse<void>>;
|
|
8
|
-
}
|