@jolibox/ads 1.1.41 → 1.1.43
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/afg/adbreak-async-proxy.d.ts +2 -1
- package/dist/afv/adrequest-async-proxy.d.ts +1 -0
- package/dist/components/googlegpt/index.d.ts +4 -0
- package/dist/components/googlegpt/interstitial.d.ts +5 -6
- package/dist/components/googlegpt/reward.d.ts +2 -3
- package/dist/components/googlegpt/type.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +725 -705
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAFGAdBreakServerParams } from './type';
|
|
1
|
+
import type { IAFGAdBreakServerParams } from './type';
|
|
2
2
|
import type { IAbstractAFGProvider, IPlacementInfo, IAdBreakParams } from './ads-interface';
|
|
3
3
|
import type { IAdsContext } from '../type/base';
|
|
4
4
|
export declare class AdBreakAsyncProxy {
|
|
@@ -14,6 +14,7 @@ export declare class AdBreakAsyncProxy {
|
|
|
14
14
|
private currentClientParams?;
|
|
15
15
|
private adsHasResponse;
|
|
16
16
|
private videoChecker;
|
|
17
|
+
private contextInfo;
|
|
17
18
|
constructor(context: IAdsContext);
|
|
18
19
|
get paramsToTrack(): {
|
|
19
20
|
provider: string | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type
|
|
2
|
-
interface IInterstitialAdContext {
|
|
1
|
+
import type { BreakStatus } from './type';
|
|
2
|
+
export interface IInterstitialAdContext {
|
|
3
3
|
beforeAd?: () => void;
|
|
4
4
|
afterAd?: () => void;
|
|
5
|
-
onEnd?: (endReason:
|
|
5
|
+
onEnd?: (endReason: BreakStatus) => void;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* InterstitialAdManager class for managing Google GPT interstitial ads.
|
|
@@ -27,7 +27,7 @@ export declare class InterstitialAdManager {
|
|
|
27
27
|
* The init function will potentially request an ad in the background.
|
|
28
28
|
*/
|
|
29
29
|
private init;
|
|
30
|
-
destroy: (endReason:
|
|
30
|
+
destroy: (endReason: BreakStatus, clearContext?: boolean) => void;
|
|
31
31
|
/**
|
|
32
32
|
* Destroy the interstitial ad and cleans up resources.
|
|
33
33
|
*
|
|
@@ -36,7 +36,7 @@ export declare class InterstitialAdManager {
|
|
|
36
36
|
*
|
|
37
37
|
* @param endReason The reason for ending the ad.
|
|
38
38
|
*/
|
|
39
|
-
reinit: (endReason:
|
|
39
|
+
reinit: (endReason: BreakStatus, clearContext?: boolean) => void;
|
|
40
40
|
private handleSlotReady;
|
|
41
41
|
private handleSlotClosed;
|
|
42
42
|
/**
|
|
@@ -50,4 +50,3 @@ export declare class InterstitialAdManager {
|
|
|
50
50
|
*/
|
|
51
51
|
requestAds: (context: IInterstitialAdContext) => void;
|
|
52
52
|
}
|
|
53
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type BreakStatus
|
|
2
|
-
interface IRewardAdContext {
|
|
1
|
+
import type { BreakStatus } from './type';
|
|
2
|
+
export interface IRewardAdContext {
|
|
3
3
|
beforeAd?: () => void;
|
|
4
4
|
beforeReward: (showAdFn: () => void) => void;
|
|
5
5
|
adDismissed: () => void;
|
|
@@ -55,4 +55,3 @@ export declare class RewardAdManager {
|
|
|
55
55
|
*/
|
|
56
56
|
requestAds: (context: IRewardAdContext) => void;
|
|
57
57
|
}
|
|
58
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BreakStatus = 'notReady' | 'timeout' | 'error' | 'noAdPreloaded' | 'frequencyCapped' | 'ignored' | 'other' | 'dismissed' | 'viewed';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './googlegpt';
|
package/dist/index.d.ts
CHANGED