@smoud/playable-sdk 1.1.3 → 1.1.4

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
@@ -44,6 +44,9 @@ It's powerful, unified SDK that seamlessly integrates multiple ad network SDKs,
44
44
  - Bigabid
45
45
  - inMobi
46
46
  - Remerge
47
+ - Tencent
48
+ - YouAppi
49
+ - Aarki
47
50
 
48
51
  ### Protocol Support
49
52
 
@@ -172,6 +175,9 @@ Supported **Ad Networks**:
172
175
  - `bigabid`
173
176
  - `inmobi`
174
177
  - `remerge`
178
+ - `tencent`
179
+ - `youappi`
180
+ - `aarki`
175
181
 
176
182
  See more details in [`GitHub repository.`](https://github.com/smoudjs/playable-scripts?tab=readme-ov-file#installation)
177
183
 
package/defines.d.ts CHANGED
@@ -68,7 +68,10 @@ declare const AD_NETWORK:
68
68
  | 'adikteev'
69
69
  | 'bigabid'
70
70
  | 'inmobi'
71
- | 'remerge';
71
+ | 'remerge'
72
+ | 'tencent'
73
+ | 'youappi'
74
+ | 'aarki';
72
75
 
73
76
  declare const AD_PROTOCOL: 'mraid' | 'dapi' | 'nucleo' | 'none';
74
77
  declare const GOOGLE_PLAY_URL: string;
@@ -96,6 +99,11 @@ interface Window {
96
99
  click: Function;
97
100
  };
98
101
 
102
+ // Tencent functions
103
+ TencentGDT?: {
104
+ clickOpen?: Function;
105
+ };
106
+
99
107
  BIGABID_BIDTIMEMACROS?: Record<string, string>
100
108
  INMOBI_DSPMACROS?: Record<string, string>
101
109
  REMERGE_BIDTIMEMACROS?: Record<string, string>
package/dist/esm/index.js CHANGED
@@ -548,7 +548,9 @@ var _sdk = class _sdk {
548
548
  isInstallClicked = false;
549
549
  }, 500);
550
550
  emitEvent("install");
551
- if ("mraid" === AD_PROTOCOL && isMraid()) {
551
+ if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
552
+ window.TencentGDT.clickOpen();
553
+ } else if ("mraid" === AD_PROTOCOL && isMraid()) {
552
554
  mraid.open(destinationUrl);
553
555
  } else if ("dapi" === AD_PROTOCOL && isDapi()) {
554
556
  dapi.openStoreUrl();
@@ -674,7 +676,7 @@ var _sdk = class _sdk {
674
676
  }
675
677
  };
676
678
  /** Current version of the SDK */
677
- _sdk.version = "1.1.3";
679
+ _sdk.version = "1.1.4";
678
680
  /** Current maximum width of the playable ad container in pixels */
679
681
  _sdk.maxWidth = Math.floor(window.innerWidth);
680
682
  /** Current maximum height of the playable ad container in pixels */
@@ -550,7 +550,9 @@
550
550
  isInstallClicked = false;
551
551
  }, 500);
552
552
  emitEvent("install");
553
- if ("mraid" === AD_PROTOCOL && isMraid()) {
553
+ if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
554
+ window.TencentGDT.clickOpen();
555
+ } else if ("mraid" === AD_PROTOCOL && isMraid()) {
554
556
  mraid.open(destinationUrl);
555
557
  } else if ("dapi" === AD_PROTOCOL && isDapi()) {
556
558
  dapi.openStoreUrl();
@@ -676,7 +678,7 @@
676
678
  }
677
679
  };
678
680
  /** Current version of the SDK */
679
- _sdk.version = "1.1.3";
681
+ _sdk.version = "1.1.4";
680
682
  /** Current maximum width of the playable ad container in pixels */
681
683
  _sdk.maxWidth = Math.floor(window.innerWidth);
682
684
  /** Current maximum height of the playable ad container in pixels */
package/dist/index.js CHANGED
@@ -575,7 +575,9 @@ var _sdk = class _sdk {
575
575
  isInstallClicked = false;
576
576
  }, 500);
577
577
  emitEvent("install");
578
- if ("mraid" === AD_PROTOCOL && isMraid()) {
578
+ if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
579
+ window.TencentGDT.clickOpen();
580
+ } else if ("mraid" === AD_PROTOCOL && isMraid()) {
579
581
  mraid.open(destinationUrl);
580
582
  } else if ("dapi" === AD_PROTOCOL && isDapi()) {
581
583
  dapi.openStoreUrl();
@@ -701,7 +703,7 @@ var _sdk = class _sdk {
701
703
  }
702
704
  };
703
705
  /** Current version of the SDK */
704
- _sdk.version = "1.1.3";
706
+ _sdk.version = "1.1.4";
705
707
  /** Current maximum width of the playable ad container in pixels */
706
708
  _sdk.maxWidth = Math.floor(window.innerWidth);
707
709
  /** 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.1.3",
3
+ "version": "1.1.4",
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",