@smoud/playable-sdk 1.0.23 → 1.0.24

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/esm/index.js CHANGED
@@ -97,7 +97,7 @@ function ensureProtocol() {
97
97
  actualProtocol = DAPI;
98
98
  } catch (error) {
99
99
  }
100
- } else if ("facebook" === AD_NETWORK) {
100
+ } else if ("facebook" === AD_NETWORK || "moloco" === AD_NETWORK || "mytarget" === AD_NETWORK) {
101
101
  try {
102
102
  if (FbPlayableAd) actualProtocol = FACEBOOK;
103
103
  } catch (error) {
@@ -111,7 +111,7 @@ function ensureProtocol() {
111
111
  if (window.gameReady) actualProtocol = MINTEGRAL;
112
112
  } else if ("tapjoy" === AD_NETWORK) {
113
113
  if (window.TJ_API) actualProtocol = TAPJOY;
114
- } else if ("tiktok" === AD_NETWORK) {
114
+ } else if ("tiktok" === AD_NETWORK || "pangle" === AD_NETWORK) {
115
115
  if (window.openAppStore) actualProtocol = TIKTOK;
116
116
  } else if ("smadex" === AD_NETWORK) {
117
117
  try {
@@ -533,7 +533,7 @@ var _sdk = class _sdk {
533
533
  dapi.openStoreUrl();
534
534
  } else if ("nucleo" === AD_PROTOCOL && isNucleo()) {
535
535
  NUC.trigger.convert(destinationUrl);
536
- } else if ("facebook" == AD_NETWORK && isFacebook()) {
536
+ } else if (("facebook" === AD_NETWORK || "moloco" === AD_NETWORK || "mytarget" === AD_NETWORK) && isFacebook()) {
537
537
  FbPlayableAd.onCTAClick();
538
538
  } else if ("snapchat" == AD_NETWORK && isSnapchat()) {
539
539
  ScPlayableAd.onCTAClick();
@@ -547,7 +547,7 @@ var _sdk = class _sdk {
547
547
  window.install && window.install();
548
548
  } else if ("tapjoy" === AD_NETWORK && isTapjoy()) {
549
549
  window.TJ_API.click();
550
- } else if ("tiktok" === AD_NETWORK && isTikTok()) {
550
+ } else if (("tiktok" === AD_NETWORK || "pangle" === AD_NETWORK) && isTikTok()) {
551
551
  window.openAppStore();
552
552
  } else {
553
553
  window.open(destinationUrl);
@@ -653,7 +653,7 @@ var _sdk = class _sdk {
653
653
  }
654
654
  };
655
655
  /** Current version of the SDK */
656
- _sdk.version = "1.0.23";
656
+ _sdk.version = "1.0.24";
657
657
  /** Current maximum width of the playable ad container in pixels */
658
658
  _sdk.maxWidth = Math.floor(window.innerWidth);
659
659
  /** Current maximum height of the playable ad container in pixels */
@@ -99,7 +99,7 @@
99
99
  actualProtocol = DAPI;
100
100
  } catch (error) {
101
101
  }
102
- } else if ("facebook" === AD_NETWORK) {
102
+ } else if ("facebook" === AD_NETWORK || "moloco" === AD_NETWORK || "mytarget" === AD_NETWORK) {
103
103
  try {
104
104
  if (FbPlayableAd) actualProtocol = FACEBOOK;
105
105
  } catch (error) {
@@ -113,7 +113,7 @@
113
113
  if (window.gameReady) actualProtocol = MINTEGRAL;
114
114
  } else if ("tapjoy" === AD_NETWORK) {
115
115
  if (window.TJ_API) actualProtocol = TAPJOY;
116
- } else if ("tiktok" === AD_NETWORK) {
116
+ } else if ("tiktok" === AD_NETWORK || "pangle" === AD_NETWORK) {
117
117
  if (window.openAppStore) actualProtocol = TIKTOK;
118
118
  } else if ("smadex" === AD_NETWORK) {
119
119
  try {
@@ -535,7 +535,7 @@
535
535
  dapi.openStoreUrl();
536
536
  } else if ("nucleo" === AD_PROTOCOL && isNucleo()) {
537
537
  NUC.trigger.convert(destinationUrl);
538
- } else if ("facebook" == AD_NETWORK && isFacebook()) {
538
+ } else if (("facebook" === AD_NETWORK || "moloco" === AD_NETWORK || "mytarget" === AD_NETWORK) && isFacebook()) {
539
539
  FbPlayableAd.onCTAClick();
540
540
  } else if ("snapchat" == AD_NETWORK && isSnapchat()) {
541
541
  ScPlayableAd.onCTAClick();
@@ -549,7 +549,7 @@
549
549
  window.install && window.install();
550
550
  } else if ("tapjoy" === AD_NETWORK && isTapjoy()) {
551
551
  window.TJ_API.click();
552
- } else if ("tiktok" === AD_NETWORK && isTikTok()) {
552
+ } else if (("tiktok" === AD_NETWORK || "pangle" === AD_NETWORK) && isTikTok()) {
553
553
  window.openAppStore();
554
554
  } else {
555
555
  window.open(destinationUrl);
@@ -655,7 +655,7 @@
655
655
  }
656
656
  };
657
657
  /** Current version of the SDK */
658
- _sdk.version = "1.0.23";
658
+ _sdk.version = "1.0.24";
659
659
  /** Current maximum width of the playable ad container in pixels */
660
660
  _sdk.maxWidth = Math.floor(window.innerWidth);
661
661
  /** Current maximum height of the playable ad container in pixels */
package/dist/index.js CHANGED
@@ -124,7 +124,7 @@ function ensureProtocol() {
124
124
  actualProtocol = DAPI;
125
125
  } catch (error) {
126
126
  }
127
- } else if ("facebook" === AD_NETWORK) {
127
+ } else if ("facebook" === AD_NETWORK || "moloco" === AD_NETWORK || "mytarget" === AD_NETWORK) {
128
128
  try {
129
129
  if (FbPlayableAd) actualProtocol = FACEBOOK;
130
130
  } catch (error) {
@@ -138,7 +138,7 @@ function ensureProtocol() {
138
138
  if (window.gameReady) actualProtocol = MINTEGRAL;
139
139
  } else if ("tapjoy" === AD_NETWORK) {
140
140
  if (window.TJ_API) actualProtocol = TAPJOY;
141
- } else if ("tiktok" === AD_NETWORK) {
141
+ } else if ("tiktok" === AD_NETWORK || "pangle" === AD_NETWORK) {
142
142
  if (window.openAppStore) actualProtocol = TIKTOK;
143
143
  } else if ("smadex" === AD_NETWORK) {
144
144
  try {
@@ -560,7 +560,7 @@ var _sdk = class _sdk {
560
560
  dapi.openStoreUrl();
561
561
  } else if ("nucleo" === AD_PROTOCOL && isNucleo()) {
562
562
  NUC.trigger.convert(destinationUrl);
563
- } else if ("facebook" == AD_NETWORK && isFacebook()) {
563
+ } else if (("facebook" === AD_NETWORK || "moloco" === AD_NETWORK || "mytarget" === AD_NETWORK) && isFacebook()) {
564
564
  FbPlayableAd.onCTAClick();
565
565
  } else if ("snapchat" == AD_NETWORK && isSnapchat()) {
566
566
  ScPlayableAd.onCTAClick();
@@ -574,7 +574,7 @@ var _sdk = class _sdk {
574
574
  window.install && window.install();
575
575
  } else if ("tapjoy" === AD_NETWORK && isTapjoy()) {
576
576
  window.TJ_API.click();
577
- } else if ("tiktok" === AD_NETWORK && isTikTok()) {
577
+ } else if (("tiktok" === AD_NETWORK || "pangle" === AD_NETWORK) && isTikTok()) {
578
578
  window.openAppStore();
579
579
  } else {
580
580
  window.open(destinationUrl);
@@ -680,7 +680,7 @@ var _sdk = class _sdk {
680
680
  }
681
681
  };
682
682
  /** Current version of the SDK */
683
- _sdk.version = "1.0.23";
683
+ _sdk.version = "1.0.24";
684
684
  /** Current maximum width of the playable ad container in pixels */
685
685
  _sdk.maxWidth = Math.floor(window.innerWidth);
686
686
  /** Current maximum height of the playable ad container in pixels */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smoud/playable-sdk",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "It's unified Playable SDK that supports MRAID, Google, Facebook, Vungle, and many more Ad Networks, simplifying playable ad development with a standardized interface for seamless cross-network compatibility.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",