@jolibox/ads 1.1.19-beta.6

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.
@@ -0,0 +1,16 @@
1
+ import type { IAdsContext } from '../type/base';
2
+ import { type IRequestAdParams } from './ads-interface';
3
+ export * from './ima';
4
+ export * from './okspin';
5
+ export declare class JoliboxAdsForVideo {
6
+ private context;
7
+ private contextInfo;
8
+ private providers;
9
+ private adsTrackSerializer;
10
+ private initialized;
11
+ constructor(context?: IAdsContext<'DRAMA'>);
12
+ private getRequestContextData;
13
+ private getRequestBizParams;
14
+ init(): Promise<void>;
15
+ requestAd(params: IRequestAdParams<any>): Promise<void>;
16
+ }
@@ -0,0 +1,15 @@
1
+ import type { IAdsContext } from '../../type/base';
2
+ import type { IOKSpinForVideoInitServerParams, IOKSpinForVideoRequestAdServerParams } from './type';
3
+ import { type IAbstractAFVProvider, type IRequestAdParams } from '../ads-interface';
4
+ export declare class OKSpinForVideoProvider implements IAbstractAFVProvider {
5
+ name: string;
6
+ private initialized;
7
+ private initCompleter;
8
+ private context;
9
+ private adsOverlay;
10
+ private adsIsShowing;
11
+ private state;
12
+ constructor(context: IAdsContext);
13
+ init: (serverParams: IOKSpinForVideoInitServerParams) => Promise<void>;
14
+ requestAd: (clientParams: IRequestAdParams<undefined>, serverParam: IOKSpinForVideoRequestAdServerParams) => void;
15
+ }
@@ -0,0 +1,13 @@
1
+ export interface IOKSpinForVideoInitServerParams {
2
+ provider: 'OKSPIN';
3
+ params: {
4
+ appk: string;
5
+ };
6
+ }
7
+ export interface IOKSpinForVideoRequestAdServerParams {
8
+ provider: 'OKSPIN';
9
+ params: {
10
+ url: string;
11
+ countdown: number;
12
+ };
13
+ }
@@ -0,0 +1,10 @@
1
+ import type { GoogleIMAProvider } from './ima';
2
+ import type { IGoogleIMAInitServerParams, IGoogleIMARequestAdServerParams } from './ima/type';
3
+ import { OKSpinForVideoProvider } from './okspin';
4
+ import { IOKSpinForVideoInitServerParams, IOKSpinForVideoRequestAdServerParams } from './okspin/type';
5
+ export type IAFVInitServerParams = IGoogleIMAInitServerParams | IOKSpinForVideoInitServerParams;
6
+ export type IAFVRequestAdServerParams = IGoogleIMARequestAdServerParams | IOKSpinForVideoRequestAdServerParams;
7
+ export interface IAFVProviders {
8
+ GOOGLE_IMA?: GoogleIMAProvider;
9
+ OKSPIN?: OKSpinForVideoProvider;
10
+ }
@@ -0,0 +1 @@
1
+ export declare const commonCss: string;
@@ -0,0 +1 @@
1
+ export declare function useInterval(callback: () => void, delay: number | null): void;
@@ -0,0 +1,16 @@
1
+ export declare const createState: () => {
2
+ afterAd: import("@preact/signals").Signal<(() => void | null) | undefined>;
3
+ adDismissed: import("@preact/signals").Signal<(() => void | null) | undefined>;
4
+ adViewed: import("@preact/signals").Signal<(() => void | null) | undefined>;
5
+ adBreakDone: import("@preact/signals").Signal<(() => void | null) | undefined>;
6
+ adLoaded: import("@preact/signals").Signal<(() => void | null) | undefined>;
7
+ visible: import("@preact/signals").Signal<boolean>;
8
+ countdown: import("@preact/signals").Signal<number>;
9
+ src: import("@preact/signals").Signal<string>;
10
+ mode: import("@preact/signals").Signal<"interstitial" | "reward" | "rewarded_insterstitial">;
11
+ };
12
+ type State = ReturnType<typeof createState>;
13
+ export declare const JoliboxAFGOverlay: ({ state }: {
14
+ state: State;
15
+ }) => JSX.Element | null;
16
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const confirm: ({ title: _title, content: _content }: {
2
+ title?: string;
3
+ content?: string;
4
+ }) => Promise<boolean>;
5
+ export declare const JoliboxAdsConfirmPopup: () => JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ export declare const createState: () => {
2
+ timerPaused: import("@preact/signals").Signal<boolean>;
3
+ startTimestamp: import("@preact/signals").Signal<number | null>;
4
+ startTimer: () => void;
5
+ };
6
+ type State = ReturnType<typeof createState>;
7
+ interface JoliboxAdsHandleBarProps {
8
+ state: State;
9
+ countdown?: number;
10
+ mode: 'reward' | 'interstitial' | 'rewarded_insterstitial';
11
+ onClose: (reason: 'dismiss' | 'viewed') => void;
12
+ }
13
+ export declare const JoliboxAdsHandleBar: ({ countdown, mode, onClose, state }: JoliboxAdsHandleBarProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './afg';
2
+ export * from './afv';
3
+ export * from './type/base';