@smoud/playable-sdk 1.0.10 → 1.0.12

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
@@ -3,8 +3,8 @@
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
5
  [![build size](https://badgen.net/bundlephobia/min/@smoud/playable-sdk)](https://www.npmjs.com/package/@smoud/playable-sdk)
6
- [![DeepScan grade](https://deepscan.io/api/teams/19616/projects/29066/branches/935410/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=19616&pid=29066&bid=935410)
7
- [![License](https://img.shields.io/npm/l/@smoud/playable-sdk)](https://opensource.org/license/MIT)
6
+ [![DeepScan grade](https://deepscan.io/api/teams/19616/projects/29066/branches/935410/badge/grade.svg)](https://github.com/smoudjs/playable-sdk)
7
+ [![License](https://img.shields.io/npm/l/@smoud/playable-sdk)](https://github.com/smoudjs/playable-sdk/blob/master/LICENSE)
8
8
 
9
9
  It's powerful, unified SDK that seamlessly integrates multiple ad network SDKs, including MRAID, Google, Facebook, Vungle, and many more. Designed for effortless playable ad development, it provides a standardized interface, ensuring compatibility, optimization, and easy deployment across various platforms. With `@smoud/playable-sdk`, you can streamline your workflow, maximize reach, and focus on crafting engaging interactive ads without worrying about SDK fragmentation. 🚀
10
10
 
@@ -167,7 +167,7 @@ See more details in [`GitHub repository.`](https://github.com/smoudjs/playable-s
167
167
 
168
168
  ### Custom Build Pipeline
169
169
 
170
- Before setting up a custom pipeline, consider using `@smoud/playable-scripts`. It provides an API to extend the standard build function and simplifies the process. See more details [here](https://github.com/smoudjs/playable-scripts).
170
+ Before setting up a custom pipeline, consider using `@smoud/playable-scripts`. It provides an API to extend the standard build function and simplifies the process. See more details [here](https://github.com/smoudjs/playable-scripts?tab=readme-ov-file#api-reference).
171
171
 
172
172
  If you still prefer a fully custom build, you need to manage the following aspects yourself:
173
173
 
package/dist/esm/index.js CHANGED
@@ -336,7 +336,7 @@ var _sdk = class _sdk {
336
336
  ensureProtocol();
337
337
  if (callback) initCallback = callback;
338
338
  if ("mraid" === AD_PROTOCOL && isMraid()) {
339
- if (mraid.getState() !== "ready" && "adcolony" !== AD_NETWORK) {
339
+ if (mraid.getState() !== "ready") {
340
340
  mraid.addEventListener("ready", startMraidProtocol);
341
341
  } else {
342
342
  startMraidProtocol();
@@ -572,7 +572,7 @@ var _sdk = class _sdk {
572
572
  }
573
573
  };
574
574
  /** Current version of the SDK */
575
- _sdk.version = "1.0.7";
575
+ _sdk.version = "1.0.12";
576
576
  /** Current maximum width of the playable ad container in pixels */
577
577
  _sdk.maxWidth = Math.floor(window.innerWidth);
578
578
  /** Current maximum height of the playable ad container in pixels */
@@ -592,6 +592,11 @@ _sdk.volume = 1;
592
592
  /** Number of user interactions with the playable ad */
593
593
  _sdk.interactions = 0;
594
594
  var sdk = _sdk;
595
+ window["console"].log(
596
+ `%c @smoud/playable-sdk %c v${sdk.version} `,
597
+ "background: #007acc; color: #fff; font-size: 14px; padding: 4px 8px; border-top-left-radius: 4px; border-bottom-left-radius: 4px;",
598
+ "background: #e1e4e8; color: #333; font-size: 14px; padding: 4px 8px; border-top-right-radius: 4px; border-bottom-right-radius: 4px;"
599
+ );
595
600
  window.PlayableSDK = sdk;
596
601
  export {
597
602
  sdk as default,
@@ -338,7 +338,7 @@
338
338
  ensureProtocol();
339
339
  if (callback) initCallback = callback;
340
340
  if ("mraid" === AD_PROTOCOL && isMraid()) {
341
- if (mraid.getState() !== "ready" && "adcolony" !== AD_NETWORK) {
341
+ if (mraid.getState() !== "ready") {
342
342
  mraid.addEventListener("ready", startMraidProtocol);
343
343
  } else {
344
344
  startMraidProtocol();
@@ -574,7 +574,7 @@
574
574
  }
575
575
  };
576
576
  /** Current version of the SDK */
577
- _sdk.version = "1.0.7";
577
+ _sdk.version = "1.0.12";
578
578
  /** Current maximum width of the playable ad container in pixels */
579
579
  _sdk.maxWidth = Math.floor(window.innerWidth);
580
580
  /** Current maximum height of the playable ad container in pixels */
@@ -594,5 +594,10 @@
594
594
  /** Number of user interactions with the playable ad */
595
595
  _sdk.interactions = 0;
596
596
  var sdk = _sdk;
597
+ window["console"].log(
598
+ `%c @smoud/playable-sdk %c v${sdk.version} `,
599
+ "background: #007acc; color: #fff; font-size: 14px; padding: 4px 8px; border-top-left-radius: 4px; border-bottom-left-radius: 4px;",
600
+ "background: #e1e4e8; color: #333; font-size: 14px; padding: 4px 8px; border-top-right-radius: 4px; border-bottom-right-radius: 4px;"
601
+ );
597
602
  window.PlayableSDK = sdk;
598
603
  })();
package/dist/index.js CHANGED
@@ -363,7 +363,7 @@ var _sdk = class _sdk {
363
363
  ensureProtocol();
364
364
  if (callback) initCallback = callback;
365
365
  if ("mraid" === AD_PROTOCOL && isMraid()) {
366
- if (mraid.getState() !== "ready" && "adcolony" !== AD_NETWORK) {
366
+ if (mraid.getState() !== "ready") {
367
367
  mraid.addEventListener("ready", startMraidProtocol);
368
368
  } else {
369
369
  startMraidProtocol();
@@ -599,7 +599,7 @@ var _sdk = class _sdk {
599
599
  }
600
600
  };
601
601
  /** Current version of the SDK */
602
- _sdk.version = "1.0.7";
602
+ _sdk.version = "1.0.12";
603
603
  /** Current maximum width of the playable ad container in pixels */
604
604
  _sdk.maxWidth = Math.floor(window.innerWidth);
605
605
  /** Current maximum height of the playable ad container in pixels */
@@ -619,6 +619,11 @@ _sdk.volume = 1;
619
619
  /** Number of user interactions with the playable ad */
620
620
  _sdk.interactions = 0;
621
621
  var sdk = _sdk;
622
+ window["console"].log(
623
+ `%c @smoud/playable-sdk %c v${sdk.version} `,
624
+ "background: #007acc; color: #fff; font-size: 14px; padding: 4px 8px; border-top-left-radius: 4px; border-bottom-left-radius: 4px;",
625
+ "background: #e1e4e8; color: #333; font-size: 14px; padding: 4px 8px; border-top-right-radius: 4px; border-bottom-right-radius: 4px;"
626
+ );
622
627
  window.PlayableSDK = sdk;
623
628
  // Annotate the CommonJS export names for ESM import in node:
624
629
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smoud/playable-sdk",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
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",
@@ -16,7 +16,7 @@
16
16
  "defines.d.ts"
17
17
  ],
18
18
  "scripts": {
19
- "build": "npx tsup src/index.ts --format esm,cjs,iife --out-dir dist --legacy-output --dts --clean",
19
+ "build": "npx tsup",
20
20
  "test": "jest",
21
21
  "deploy": "npm run test && npm run build && npm publish --access public"
22
22
  },