@jolibox/types 1.1.19-beta.1 → 1.1.19

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,4 +1,4 @@
1
- export type TrackEvent = 'jsSdkBegin' | 'onBeforeExit' | 'bootstrapModuleBeginToLoad' | 'bootstrapModuleLoaded' | 'implModuleBeginToLoad' | 'implModuleLoaded' | 'onDocumentReady' | 'joliboxServiceReady' | 'apiInvoked' | 'joliboxSpeedAnalysis' | 'joliboxNetRequestResult' | 'globalJsError' | 'CallRuntimeLoadFinished' | 'AdBreakJumpOut' | 'AdBreakHide' | 'CallAdsInit' | 'LoadAdsenseCompleted' | 'CallAdConfig' | 'PreventAdsCheating' | 'CallShowAdFn' | 'CallAdBreak' | 'CallAdUnit' | 'CallAdBreakDone' | 'CallBeforeAd' | 'CallAfterAd' | 'CallAdBreakTimeout' | 'AdSenseUnitStatusChanged' | 'OpenGame' | 'PlayGame' | 'CloseGame' | 'LevelFinished' | 'TaskFinished' | 'UseGameItem' | 'LevelUpgrade' | 'HistoryUserLevel' | 'HistoryUserScore' | 'GameFCP' | 'GameLCP' | 'GameTTFB';
1
+ export type TrackEvent = 'jsSdkBegin' | 'onBeforeExit' | 'bootstrapModuleBeginToLoad' | 'bootstrapModuleLoaded' | 'implModuleBeginToLoad' | 'implModuleLoaded' | 'onDocumentReady' | 'joliboxServiceReady' | 'apiInvoked' | 'joliboxSpeedAnalysis' | 'joliboxNetRequestResult' | 'globalJsError' | 'CallRuntimeLoadFinished' | 'AdBreakJumpOut' | 'AdBreakHide' | 'CallAdsInit' | 'LoadAdsenseCompleted' | 'CallAdConfig' | 'PreventAdsCheating' | 'CallShowAdFn' | 'CallAdBreak' | 'CallAdUnit' | 'CallAdBreakDone' | 'CallBeforeAd' | 'CallAfterAd' | 'CallAdBreakTimeout' | 'CallAFVRequest' | 'CallAFVLoad' | 'CallAFVPlaying' | 'CallAFVCompleted' | 'CallAFVError' | 'AdSenseUnitStatusChanged' | 'OpenGame' | 'PlayGame' | 'CloseGame' | 'LevelFinished' | 'TaskFinished' | 'UseGameItem' | 'LevelUpgrade' | 'HistoryUserLevel' | 'HistoryUserScore' | 'GameFCP' | 'GameLCP' | 'GameTTFB';
2
2
  export type PerformanceType = 'bootstrapModuleLoaded' | 'implementModuleLoaded' | 'joliboxGameServiceReady';
3
3
  export declare const REPORT_SYSTEM_TIMELINE = "ReportSDK.traceSystemTimeline";
4
4
  export declare const REPORT_SYSTEM_LOG = "ReportSDK.traceSystem";
package/dist/env.d.ts CHANGED
@@ -7,6 +7,7 @@ export interface Env {
7
7
  platform: string;
8
8
  system: string;
9
9
  lang: 'zh' | 'en';
10
+ adId?: string;
10
11
  };
11
12
  hostInfo?: {
12
13
  appName: string;
@@ -1,7 +1,11 @@
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_MODAL_IFRAME_CLOSED = "onModalIframeClosed";
5
+ export declare const ON_MODAL_IFRAME_LOADED = "onModalIframeLoaded";
4
6
  export declare const ON_INTERCEPT_SYSTEM_EXIT = "onInterceptSystemExit";
7
+ export declare const ON_INTERCEPT_BACK_PRESS = "onInterceptBackPress";
8
+ export declare const ON_BACK_PRESS = "onBackPress";
5
9
  export interface RumtimeEventParams {
6
10
  [DOCUMENT_READY]: (startTime: number) => void;
7
11
  [ON_LOGIN_COMPLETE]: (params: {
@@ -11,7 +15,19 @@ export interface RumtimeEventParams {
11
15
  [ON_I18N_CHANGED]: (params: {
12
16
  i18n: string;
13
17
  }) => void;
18
+ [ON_MODAL_IFRAME_CLOSED]: (params: {
19
+ url: string;
20
+ }) => void;
21
+ [ON_MODAL_IFRAME_LOADED]: (params: {
22
+ url: string;
23
+ }) => void;
14
24
  [ON_INTERCEPT_SYSTEM_EXIT]: (params: {
15
25
  intercept: boolean;
16
26
  }) => void;
27
+ [ON_INTERCEPT_BACK_PRESS]: (params: {
28
+ intercept: boolean;
29
+ }) => void;
30
+ [ON_BACK_PRESS]: (params: {
31
+ intercept?: boolean;
32
+ }) => void;
17
33
  }
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.19-beta.1",
4
+ "version": "1.1.19",
5
5
  "typings": "dist/index.d.ts",
6
6
  "license": "MIT",
7
7
  "files": [