@betarena/ad-engine 0.0.38 → 0.0.40

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.40",
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';
@@ -233,6 +235,19 @@
233
235
  noopener
234
236
  noreferrer
235
237
  "
238
+ on:click=
239
+ {
240
+ () =>
241
+ {
242
+ postMod
243
+ (
244
+ `${betarenaEndpoint}/ad/update/click`,
245
+ {
246
+ creativeId: adData.id
247
+ }
248
+ );
249
+ }
250
+ }
236
251
  >
237
252
  <!--
238
253
  <iframe
@@ -305,6 +320,19 @@
305
320
  noopener
306
321
  noreferrer
307
322
  "
323
+ on:click=
324
+ {
325
+ () =>
326
+ {
327
+ postMod
328
+ (
329
+ `${betarenaEndpoint}/ad/update/click`,
330
+ {
331
+ creativeId: adData.id
332
+ }
333
+ );
334
+ }
335
+ }
308
336
  >
309
337
  <button
310
338
  >
@@ -384,8 +412,8 @@
384
412
  {
385
413
  /* 📌 position */
386
414
  position: absolute;
387
- top: 10px;
388
- right: 10px;
415
+ top: 14px;
416
+ right: 20px;
389
417
  z-index: 1;
390
418
  }
391
419