@betarena/ad-engine 0.0.29 → 0.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betarena/ad-engine",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "private": false,
5
5
  "description": "Betarena ad-engine widget",
6
6
  "keywords": [
@@ -493,13 +493,19 @@
493
493
  -->
494
494
  <DevInfoBox>
495
495
  <p>
496
- Device Type :|: {deviceType}
496
+ [detected] Device Type :|: {deviceType}
497
497
  </p>
498
498
  <p>
499
- Geo-Location :|: {geoLocation?.country_code}
499
+ [detected] Geo-Location :|: {geoLocation?.country_code}
500
500
  </p>
501
501
  <p>
502
- Number of Adverts Detected :|: {betarenaAdsInjectMap.size}
502
+ [detected] Page Advert Snippets Number :|: {betarenaAdsInjectMap.size}
503
+ </p>
504
+ <p>
505
+ [properties] AuthorId :|: {authorId}
506
+ </p>
507
+ <p>
508
+ [properties] AuthorArticleTagIds :|: [{authorArticleTagIds}]
503
509
  </p>
504
510
  </DevInfoBox>
505
511
 
@@ -89,9 +89,9 @@
89
89
  * @description
90
90
  * 📝 number of `milliseconds` for advert close action show
91
91
  * @example
92
- * => 15000 (15 seconds)
92
+ * => 5000 (5 seconds)
93
93
  */
94
- timeoutForAdvertCloseAction = 15000
94
+ timeoutForAdvertCloseAction = 5000
95
95
  ;
96
96
 
97
97
  let
@@ -225,11 +225,22 @@
225
225
  ╰─────
226
226
  -->
227
227
  {#if ((adData.type == 1 || adData.type == 4) && adData.data?.media)}
228
- <!-- <iframe
229
- width=250
230
- height=250
231
- src={adData.data?.media}
232
- /> -->
228
+ <a
229
+ href={adData.data?.video_link}
230
+ target="_blank"
231
+ rel=
232
+ "
233
+ noopener
234
+ noreferrer
235
+ "
236
+ >
237
+ <!--
238
+ <iframe
239
+ width=250
240
+ height=250
241
+ src={adData.data?.media}
242
+ />
243
+ -->
233
244
  <video
234
245
  id="banner"
235
246
  width=250
@@ -238,7 +249,9 @@
238
249
  autoplay={true}
239
250
  muted={true}
240
251
  playsinline={true}
252
+ loop={true}
241
253
  />
254
+ </a>
242
255
 
243
256
  {:else if (adData.type == 2)}
244
257
  <img
@@ -356,6 +369,15 @@
356
369
  border-radius: 40px 40px 0px 0px;
357
370
  background-color: var(--dark-theme-1-4-shade);
358
371
 
372
+ @mixin banner
373
+ {
374
+ /* 🎨 style */
375
+ max-height: 355px;
376
+ min-height: 355px;
377
+ width: 100%;
378
+ object-fit: cover;
379
+ }
380
+
359
381
  img
360
382
  {
361
383
  &#close
@@ -369,24 +391,21 @@
369
391
 
370
392
  &#banner
371
393
  {
394
+ @include banner;
372
395
  /* 🎨 style */
373
- height: 355px;
374
- width: 100%;
375
396
  }
376
397
  }
377
398
 
378
399
  iframe
379
400
  {
380
401
  /* 🎨 style */
381
- width: 100%;
382
- object-fit: cover;
402
+ @include banner;
383
403
  }
384
404
 
385
405
  video
386
406
  {
387
407
  /* 🎨 style */
388
- width: 100%;
389
- object-fit: cover;
408
+ @include banner;
390
409
  }
391
410
 
392
411
  div#main-box
@@ -408,6 +427,7 @@
408
427
  /* 🎨 style */
409
428
  border-radius: 7.57px;
410
429
  max-height: 50px;
430
+ min-height: 50px;
411
431
  width: 100%;
412
432
  padding: 10px;
413
433
  background: radial-gradient(97.9% 290.93% at 11.52% 99.71%, #2E6514 0%, #66BE3C 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
@@ -165,7 +165,7 @@
165
165
  align-content: space-between;
166
166
  /* 🛝 layout */
167
167
  display: grid;
168
- grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
168
+ grid-template-columns: 1fr;
169
169
 
170
170
  div.grid-box
171
171
  {
@@ -196,4 +196,21 @@
196
196
  }
197
197
  }
198
198
 
199
+ /*
200
+ ╭──────────────────────────────────────────────────────────────────────────────╮
201
+ │ ⚡️ RESPONSIVNESS │
202
+ ╰──────────────────────────────────────────────────────────────────────────────╯
203
+ */
204
+
205
+ @media only screen
206
+ and (min-width: 560px)
207
+ {
208
+ div#developer-admin-infobox
209
+ {
210
+ /* 🛝 layout */
211
+ display: grid;
212
+ grid-template-columns: 1fr 1fr 1fr;
213
+ }
214
+ }
215
+
199
216
  </style>