@betarena/ad-engine 0.0.21 → 0.0.22

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.21",
3
+ "version": "0.0.22",
4
4
  "private": false,
5
5
  "description": "Betarena ad-engine widget",
6
6
  "keywords": [
package/src/index.ts ADDED
@@ -0,0 +1,29 @@
1
+ import AdvertEngineWidget from './lib/Advert-Engine-Widget.svelte'
2
+
3
+ let
4
+ /**
5
+ * @description
6
+ */
7
+ app
8
+ ;
9
+
10
+ // ╭─────
11
+ // │ CHECK |:| running on 'browser'
12
+ // ╰─────
13
+ if (typeof document !== 'undefined')
14
+ app
15
+ = new AdvertEngineWidget
16
+ (
17
+ {
18
+ target: document.body,
19
+ props:
20
+ {
21
+ // authorId: 1
22
+ authorArticleTagIds: [1]
23
+ }
24
+ }
25
+ )
26
+ ;
27
+ ;
28
+
29
+ export default app;
@@ -487,23 +487,20 @@
487
487
  ╰─────
488
488
  -->
489
489
  <div>
490
-
491
490
  <p>
492
491
  Device Type: {deviceType}
493
492
  </p>
494
-
495
493
  <p>
496
494
  {geoLocation?.country_code}
497
495
  </p>
498
-
499
496
  </div>
500
497
 
498
+ <!--
501
499
  <div
502
500
  data-betarena-zone-id=1
503
501
  >
504
502
  </div>
505
503
 
506
- <!--
507
504
  <hr>
508
505
 
509
506
  <div
@@ -277,7 +277,7 @@
277
277
  {
278
278
  /* 🎨 style */
279
279
  border-radius: 7.57px;
280
- height: 50px;
280
+ max-height: 50px;
281
281
  width: 100%;
282
282
  padding: 10px;
283
283
  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 */;
@@ -377,7 +377,7 @@
377
377
  {
378
378
  /* 🎨 style */
379
379
  border-radius: 7.57px;
380
- height: 50px;
380
+ max-height: 50px;
381
381
  width: 100%;
382
382
  padding: 10px;
383
383
  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 */;