@smoud/playable-sdk 1.2.0 → 1.2.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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@smoud/playable-sdk)](https://www.npmjs.com/package/@smoud/playable-sdk)
4
4
  [![npm downloads](https://badgen.net/npm/dw/@smoud/playable-sdk)](https://www.npmjs.com/package/@smoud/playable-sdk)
5
- [![build size](https://badgen.net/bundlephobia/min/@smoud/playable-sdk)](https://www.npmjs.com/package/@smoud/playable-sdk)
5
+ [![build size](https://deno.bundlejs.com/badge?q=@smoud/playable-sdk)](https://bundlejs.com/?q=@smoud/playable-sdk)
6
6
  [![DeepScan grade](https://deepscan.io/api/teams/19616/projects/29066/branches/935410/badge/grade.svg)](https://github.com/smoudjs/playable-sdk)
7
7
  [![License](https://img.shields.io/npm/l/@smoud/playable-sdk)](https://github.com/smoudjs/playable-sdk/blob/master/LICENSE)
8
8
 
@@ -46,7 +46,10 @@ It's powerful, unified SDK that seamlessly integrates multiple ad network SDKs,
46
46
  - Remerge
47
47
  - Tencent
48
48
  - YouAppi
49
+ - DT Exchange
49
50
  - Aarki
51
+ - Bidease
52
+ - RevX
50
53
 
51
54
  ### Protocol Support
52
55
 
@@ -177,7 +180,10 @@ Supported **Ad Networks**:
177
180
  - `remerge`
178
181
  - `tencent`
179
182
  - `youappi`
183
+ - `digitalturbine`
180
184
  - `aarki`
185
+ - `bidease`
186
+ - `revx`
181
187
 
182
188
  See more details in [`GitHub repository.`](https://github.com/smoudjs/playable-scripts?tab=readme-ov-file#installation)
183
189
 
@@ -410,6 +416,7 @@ Get started quickly with our template projects:
410
416
  - [Meta (Facebook) Playable Ads](https://www.facebook.com/business/help/412951382532338)
411
417
  - [Moloco Requirements](https://help.moloco.com/hc/en-us/articles/24124525963799-Playable-and-Interactive-End-Card-IEC-creative-guide)
412
418
  - [Mintegral Integration](https://www.playturbo.com/review/doc)
419
+ - [RevX Playable Requirements](https://docs.revx.io/General-Information/playable_requirements_1741786018893.md)
413
420
 
414
421
  ### Testing Tools
415
422
 
package/defines.d.ts CHANGED
@@ -71,7 +71,10 @@ declare const AD_NETWORK:
71
71
  | 'remerge'
72
72
  | 'tencent'
73
73
  | 'youappi'
74
- | 'aarki';
74
+ | 'digitalturbine'
75
+ | 'aarki'
76
+ | 'bidease'
77
+ | 'revx';
75
78
 
76
79
  declare const AD_PROTOCOL: 'mraid' | 'dapi' | 'nucleo' | 'none';
77
80
  declare const GOOGLE_PLAY_URL: string;
@@ -104,6 +107,13 @@ interface Window {
104
107
  clickOpen?: Function;
105
108
  };
106
109
 
110
+ // Bidease functions
111
+ initGame?: Function;
112
+ trackClick?: Function;
113
+
114
+ // RevX functions
115
+ redirect?: Function;
116
+
107
117
  BIGABID_BIDTIMEMACROS?: Record<string, string>
108
118
  INMOBI_DSPMACROS?: Record<string, string>
109
119
  REMERGE_BIDTIMEMACROS?: Record<string, string>
package/dist/esm/index.js CHANGED
@@ -505,6 +505,8 @@ var _sdk = class _sdk {
505
505
  orientation: this.isLandscape ? "landscape" : "portrait",
506
506
  buildID: BUILD_HASH
507
507
  });
508
+ } else if ("bidease" === AD_NETWORK && window.initGame) {
509
+ window.initGame();
508
510
  }
509
511
  fireVolumeChange(_sdk.volume);
510
512
  _sdk.resize();
@@ -578,6 +580,10 @@ var _sdk = class _sdk {
578
580
  emitEvent("install");
579
581
  if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
580
582
  window.TencentGDT.clickOpen();
583
+ } else if ("bidease" === AD_NETWORK && window.trackClick) {
584
+ window.trackClick();
585
+ } else if ("revx" === AD_NETWORK && window.redirect) {
586
+ window.redirect();
581
587
  } else if ("mraid" === AD_PROTOCOL && isMraid()) {
582
588
  mraid.open(destinationUrl);
583
589
  } else if ("dapi" === AD_PROTOCOL && isDapi()) {
@@ -706,7 +712,7 @@ var _sdk = class _sdk {
706
712
  }
707
713
  };
708
714
  /** Current version of the SDK */
709
- _sdk.version = "1.2.0";
715
+ _sdk.version = "1.2.2";
710
716
  /** Current maximum width of the playable ad container in pixels */
711
717
  _sdk.maxWidth = Math.floor(window.innerWidth);
712
718
  /** Current maximum height of the playable ad container in pixels */
@@ -507,6 +507,8 @@
507
507
  orientation: this.isLandscape ? "landscape" : "portrait",
508
508
  buildID: BUILD_HASH
509
509
  });
510
+ } else if ("bidease" === AD_NETWORK && window.initGame) {
511
+ window.initGame();
510
512
  }
511
513
  fireVolumeChange(_sdk.volume);
512
514
  _sdk.resize();
@@ -580,6 +582,10 @@
580
582
  emitEvent("install");
581
583
  if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
582
584
  window.TencentGDT.clickOpen();
585
+ } else if ("bidease" === AD_NETWORK && window.trackClick) {
586
+ window.trackClick();
587
+ } else if ("revx" === AD_NETWORK && window.redirect) {
588
+ window.redirect();
583
589
  } else if ("mraid" === AD_PROTOCOL && isMraid()) {
584
590
  mraid.open(destinationUrl);
585
591
  } else if ("dapi" === AD_PROTOCOL && isDapi()) {
@@ -708,7 +714,7 @@
708
714
  }
709
715
  };
710
716
  /** Current version of the SDK */
711
- _sdk.version = "1.2.0";
717
+ _sdk.version = "1.2.2";
712
718
  /** Current maximum width of the playable ad container in pixels */
713
719
  _sdk.maxWidth = Math.floor(window.innerWidth);
714
720
  /** Current maximum height of the playable ad container in pixels */
package/dist/index.js CHANGED
@@ -532,6 +532,8 @@ var _sdk = class _sdk {
532
532
  orientation: this.isLandscape ? "landscape" : "portrait",
533
533
  buildID: BUILD_HASH
534
534
  });
535
+ } else if ("bidease" === AD_NETWORK && window.initGame) {
536
+ window.initGame();
535
537
  }
536
538
  fireVolumeChange(_sdk.volume);
537
539
  _sdk.resize();
@@ -605,6 +607,10 @@ var _sdk = class _sdk {
605
607
  emitEvent("install");
606
608
  if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
607
609
  window.TencentGDT.clickOpen();
610
+ } else if ("bidease" === AD_NETWORK && window.trackClick) {
611
+ window.trackClick();
612
+ } else if ("revx" === AD_NETWORK && window.redirect) {
613
+ window.redirect();
608
614
  } else if ("mraid" === AD_PROTOCOL && isMraid()) {
609
615
  mraid.open(destinationUrl);
610
616
  } else if ("dapi" === AD_PROTOCOL && isDapi()) {
@@ -733,7 +739,7 @@ var _sdk = class _sdk {
733
739
  }
734
740
  };
735
741
  /** Current version of the SDK */
736
- _sdk.version = "1.2.0";
742
+ _sdk.version = "1.2.2";
737
743
  /** Current maximum width of the playable ad container in pixels */
738
744
  _sdk.maxWidth = Math.floor(window.innerWidth);
739
745
  /** 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.2.0",
3
+ "version": "1.2.2",
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",