@smoud/playable-sdk 1.1.0 → 1.1.1
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 +12 -5
- package/dist/iife/index.js +12 -5
- package/dist/index.js +12 -5
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -268,10 +268,17 @@ function startMraidProtocol() {
|
|
|
268
268
|
mraid.addEventListener("error", function(t, e) {
|
|
269
269
|
console.log("mraid error: " + t + " action: " + e);
|
|
270
270
|
});
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
271
|
+
if (AD_NETWORK === "unity") {
|
|
272
|
+
window.addEventListener("resize", function() {
|
|
273
|
+
const maxSize = mraid.getMaxSize();
|
|
274
|
+
fireResizeEvent(maxSize.width, maxSize.height);
|
|
275
|
+
});
|
|
276
|
+
} else {
|
|
277
|
+
mraid.addEventListener("sizeChange", function() {
|
|
278
|
+
const maxSize = mraid.getMaxSize();
|
|
279
|
+
fireResizeEvent(maxSize.width, maxSize.height);
|
|
280
|
+
});
|
|
281
|
+
}
|
|
275
282
|
isProtocolInitialized = true;
|
|
276
283
|
}
|
|
277
284
|
function startDapiProtocol() {
|
|
@@ -649,7 +656,7 @@ var _sdk = class _sdk {
|
|
|
649
656
|
}
|
|
650
657
|
};
|
|
651
658
|
/** Current version of the SDK */
|
|
652
|
-
_sdk.version = "1.1.
|
|
659
|
+
_sdk.version = "1.1.1";
|
|
653
660
|
/** Current maximum width of the playable ad container in pixels */
|
|
654
661
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
655
662
|
/** Current maximum height of the playable ad container in pixels */
|
package/dist/iife/index.js
CHANGED
|
@@ -270,10 +270,17 @@
|
|
|
270
270
|
mraid.addEventListener("error", function(t, e) {
|
|
271
271
|
console.log("mraid error: " + t + " action: " + e);
|
|
272
272
|
});
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
273
|
+
if (AD_NETWORK === "unity") {
|
|
274
|
+
window.addEventListener("resize", function() {
|
|
275
|
+
const maxSize = mraid.getMaxSize();
|
|
276
|
+
fireResizeEvent(maxSize.width, maxSize.height);
|
|
277
|
+
});
|
|
278
|
+
} else {
|
|
279
|
+
mraid.addEventListener("sizeChange", function() {
|
|
280
|
+
const maxSize = mraid.getMaxSize();
|
|
281
|
+
fireResizeEvent(maxSize.width, maxSize.height);
|
|
282
|
+
});
|
|
283
|
+
}
|
|
277
284
|
isProtocolInitialized = true;
|
|
278
285
|
}
|
|
279
286
|
function startDapiProtocol() {
|
|
@@ -651,7 +658,7 @@
|
|
|
651
658
|
}
|
|
652
659
|
};
|
|
653
660
|
/** Current version of the SDK */
|
|
654
|
-
_sdk.version = "1.1.
|
|
661
|
+
_sdk.version = "1.1.1";
|
|
655
662
|
/** Current maximum width of the playable ad container in pixels */
|
|
656
663
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
657
664
|
/** Current maximum height of the playable ad container in pixels */
|
package/dist/index.js
CHANGED
|
@@ -295,10 +295,17 @@ function startMraidProtocol() {
|
|
|
295
295
|
mraid.addEventListener("error", function(t, e) {
|
|
296
296
|
console.log("mraid error: " + t + " action: " + e);
|
|
297
297
|
});
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
298
|
+
if (AD_NETWORK === "unity") {
|
|
299
|
+
window.addEventListener("resize", function() {
|
|
300
|
+
const maxSize = mraid.getMaxSize();
|
|
301
|
+
fireResizeEvent(maxSize.width, maxSize.height);
|
|
302
|
+
});
|
|
303
|
+
} else {
|
|
304
|
+
mraid.addEventListener("sizeChange", function() {
|
|
305
|
+
const maxSize = mraid.getMaxSize();
|
|
306
|
+
fireResizeEvent(maxSize.width, maxSize.height);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
302
309
|
isProtocolInitialized = true;
|
|
303
310
|
}
|
|
304
311
|
function startDapiProtocol() {
|
|
@@ -676,7 +683,7 @@ var _sdk = class _sdk {
|
|
|
676
683
|
}
|
|
677
684
|
};
|
|
678
685
|
/** Current version of the SDK */
|
|
679
|
-
_sdk.version = "1.1.
|
|
686
|
+
_sdk.version = "1.1.1";
|
|
680
687
|
/** Current maximum width of the playable ad container in pixels */
|
|
681
688
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
682
689
|
/** 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
|
+
"version": "1.1.1",
|
|
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",
|