@jolibox/ads 1.3.5-beta.10 → 1.3.5-beta.11
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.
|
@@ -4,7 +4,7 @@ export interface NativeProviderConfig {
|
|
|
4
4
|
provider: 'ADMOB' | 'APPLOVIN';
|
|
5
5
|
params: {
|
|
6
6
|
placementId: string;
|
|
7
|
-
adsType: 'INTERSTITIAL' | 'REWARD' | 'REWARD_INTERSTITIAL';
|
|
7
|
+
adsType: 'INTERSTITIAL' | 'REWARD' | 'REWARD_INTERSTITIAL' | 'NATIVE';
|
|
8
8
|
extra?: Record<string, any>;
|
|
9
9
|
};
|
|
10
10
|
}
|
package/dist/index.js
CHANGED
|
@@ -5395,7 +5395,7 @@ function Ya(t, e) {
|
|
|
5395
5395
|
class Qa {
|
|
5396
5396
|
constructor(e, i) {
|
|
5397
5397
|
qe(this, "name", "INTERNAL_NATIVE"), qe(this, "context", void 0), qe(this, "rewardAdManager", void 0), qe(this, "interstitialManager", void 0), qe(this, "initProviders", void 0), this.context = e, this.initProviders = i.providers;
|
|
5398
|
-
const n = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL"], i.providers), r = this.getConfigsByTypes(["INTERSTITIAL"], i.providers);
|
|
5398
|
+
const n = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL", "NATIVE"], i.providers), r = this.getConfigsByTypes(["INTERSTITIAL"], i.providers);
|
|
5399
5399
|
n.length > 0 && (this.rewardAdManager = new Ka(this.context, n)), r.length > 0 && (this.interstitialManager = new Ha(this.context, r));
|
|
5400
5400
|
}
|
|
5401
5401
|
getConfigsByTypes(e, i, n) {
|
|
@@ -5403,7 +5403,7 @@ class Qa {
|
|
|
5403
5403
|
return (n ? n.map((s) => i.find((a) => a.provider === s.provider)).filter((s) => !!s) : i).forEach((s) => {
|
|
5404
5404
|
e.forEach((a) => {
|
|
5405
5405
|
let d = "";
|
|
5406
|
-
a === "REWARD" && (d = s.params.adUnitId.reward), a === "REWARD_INTERSTITIAL" && (d = s.params.adUnitId.rewardInterstitial), a === "INTERSTITIAL" && (d = s.params.adUnitId.interstitial), d && r.push({
|
|
5406
|
+
a === "REWARD" && (d = s.params.adUnitId.reward), a === "REWARD_INTERSTITIAL" && (d = s.params.adUnitId.rewardInterstitial), a === "INTERSTITIAL" && (d = s.params.adUnitId.interstitial), a === "NATIVE" && (d = s.params.adUnitId.nativeAds), d && r.push({
|
|
5407
5407
|
provider: s.provider,
|
|
5408
5408
|
params: {
|
|
5409
5409
|
placementId: d,
|
|
@@ -5439,7 +5439,7 @@ class Qa {
|
|
|
5439
5439
|
});
|
|
5440
5440
|
return;
|
|
5441
5441
|
}
|
|
5442
|
-
const s = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL"], this.initProviders, i.params);
|
|
5442
|
+
const s = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL", "NATIVE"], this.initProviders, i.params);
|
|
5443
5443
|
this.rewardAdManager.requestAds({
|
|
5444
5444
|
beforeAd: e.beforeAd,
|
|
5445
5445
|
afterAd: e.afterAd,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jolibox/ads",
|
|
3
3
|
"description": "This project is for integrating Jolibox ads providers",
|
|
4
|
-
"version": "1.3.5-beta.
|
|
4
|
+
"version": "1.3.5-beta.11",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
],
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jolibox/common": "1.3.5-beta.
|
|
15
|
+
"@jolibox/common": "1.3.5-beta.11",
|
|
16
16
|
"@emotion/css": "11.13.5",
|
|
17
|
-
"@jolibox/types": "1.3.5-beta.
|
|
17
|
+
"@jolibox/types": "1.3.5-beta.11",
|
|
18
18
|
"preact": "10.26.4",
|
|
19
19
|
"@preact/signals": "2.0.4",
|
|
20
|
-
"@jolibox/native-bridge": "1.3.5-beta.
|
|
20
|
+
"@jolibox/native-bridge": "1.3.5-beta.11"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/core": "7.23.3",
|