@singcl/ad-execute-manager 1.13.1 → 1.13.2

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.
@@ -63,7 +63,7 @@ export type IConstructArgs = {
63
63
  /**
64
64
  * 激励视频参数 (可选)
65
65
  */
66
- adConfig?: IRewordAdConfig | undefined;
66
+ adConfig?: any;
67
67
  /**
68
68
  * 回调集合
69
69
  */
@@ -110,7 +110,7 @@ export type IRewardedVideoAd = {
110
110
  * @property {string} [sign] 初始化标识
111
111
  * @property {boolean} [preserveOnEnd] 是否保留tt激励视频广告实例
112
112
  * @property {boolean} [needEndOnTimeout] 是否需要在超时情况下结束广告
113
- * @property {IRewordAdConfig=} [adConfig] 激励视频参数 (可选)
113
+ * @property {import('../typings/ad.js').IRewordAdConfig} [adConfig] 激励视频参数 (可选)
114
114
  * @property {IConnection=} [collection] 回调集合
115
115
  */
116
116
  /**
@@ -173,6 +173,7 @@ declare class InterstitialAdNovel extends InterstitialAdFather {
173
173
  bindApiAdErrorLister: any;
174
174
  _bindShiftCloseLister: any;
175
175
  _bindShiftErrorLister: any;
176
+ _adConfig: any;
176
177
  /**
177
178
  * 初始化
178
179
  * 子类可以选择覆盖此方法,或使用默认实现
@@ -1,30 +1,5 @@
1
1
  export default RewardAdNovel;
2
2
  export type IRewordAdConfig = import("./typings/ad.js").IRewordAdConfig;
3
- export type ICallbackArgs = {
4
- /**
5
- * 广告执行场景
6
- */
7
- scene: number;
8
- /**
9
- * 是否看完
10
- */
11
- isEnded: boolean;
12
- /**
13
- * 完整观看次数
14
- */
15
- count: number;
16
- /**
17
- * 执行下一个任务的回调函数,手动调用以继续执行流程[end]
18
- */
19
- end?: () => void;
20
- /**
21
- * 执行下一个任务的回调函数, 手动调用以继续执行流程[circle]
22
- */
23
- circle?: (args: {
24
- ignoreRemain: boolean;
25
- scene: number;
26
- }) => void;
27
- };
28
3
  export type IConnection = {
29
4
  /**
30
5
  * 广告中途退出回调
@@ -96,15 +71,6 @@ export type IRewardedVideoAd = {
96
71
  /**
97
72
  * @typedef {import('./typings/ad.js').IRewordAdConfig} IRewordAdConfig
98
73
  */
99
- /**
100
- * @typedef ICallbackArgs
101
- * @property {number} scene 广告执行场景
102
- * @property {boolean} isEnded 是否看完
103
- * @property {number} count 完整观看次数
104
- * @property {() => void} [end] 执行下一个任务的回调函数,手动调用以继续执行流程[end]
105
- * @property {(args: {ignoreRemain: boolean, scene: number}) => void} [circle] 执行下一个任务的回调函数, 手动调用以继续执行流程[circle]
106
- *
107
- */
108
74
  /**
109
75
  * @typedef IConnection
110
76
  * @property {(args: ICallbackArgs) => void} [onHalfway] 广告中途退出回调
@@ -281,6 +247,7 @@ declare class RewardAdNovel extends RewardAdFather {
281
247
  /**
282
248
  * 广告展示失败分析
283
249
  * 子类需要埋点可以选择覆盖此方法
250
+ * ATTENTION:该方法可能会调用两次,一次是show().catch(),一次是onError(),所以需要做好去重处理
284
251
  * @protected
285
252
  * @param {object} _args
286
253
  * @param {string} _args.scene 广告执行场景 必填
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singcl/ad-execute-manager",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "A powerful and flexible ad execution management library for handling reward-based ads, interstitial ads, and other advertising formats in JavaScript applications.",
5
5
  "type": "module",
6
6
  "exports": {