@betarena/ad-engine 0.0.38 → 0.0.39

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.38",
3
+ "version": "0.0.39",
4
4
  "private": false,
5
5
  "description": "Betarena ad-engine widget",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  "vite": "5.1.6"
61
61
  },
62
62
  "dependencies": {
63
- "@betarena/scores-lib": "1.11.0-alpha.16",
63
+ "@betarena/scores-lib": "1.11.0-alpha.17",
64
64
  "@fontsource/roboto": "5.0.12",
65
65
  "svelte-preprocess": "5.1.3"
66
66
  },
@@ -43,6 +43,8 @@
43
43
 
44
44
  import { betarenaAdEngineStore } from './_store.js';
45
45
  import { storeAdmin } from './store/admin.js';
46
+ import { postMod } from './utils/fetch.js';
47
+ import { betarenaEndpoint } from './constants/instance.js';
46
48
 
47
49
  import iconClose from './assets/icon-close.svg';
48
50
  import iconArrow from './assets/icon-external-link.svg';
@@ -305,6 +307,19 @@
305
307
  noopener
306
308
  noreferrer
307
309
  "
310
+ on:click=
311
+ {
312
+ () =>
313
+ {
314
+ postMod
315
+ (
316
+ `${betarenaEndpoint}/ad/update/click`,
317
+ {
318
+ creativeId: adData.id
319
+ }
320
+ )
321
+ }
322
+ }
308
323
  >
309
324
  <button
310
325
  >
@@ -384,8 +399,8 @@
384
399
  {
385
400
  /* 📌 position */
386
401
  position: absolute;
387
- top: 10px;
388
- right: 10px;
402
+ top: 14px;
403
+ right: 20px;
389
404
  z-index: 1;
390
405
  }
391
406