@smoud/playable-sdk 1.0.10 → 1.0.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.
package/dist/esm/index.js CHANGED
@@ -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.11";
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
+ 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,
@@ -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.11";
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
+ 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
@@ -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.11";
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
+ 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.11",
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
  },