@everymatrix/casino-slider 1.8.3 → 1.9.0

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": "@everymatrix/casino-slider",
3
- "version": "1.8.3",
3
+ "version": "1.9.0",
4
4
  "main": "dist/casino-slider.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "15df0a4bc1195017b7df65675dfd40261b5dbe8b"
39
+ "gitHead": "931b121e18fe00e97d089fdc4f642515337a7091"
40
40
  }
@@ -70,7 +70,7 @@
70
70
  prevIndex = activeIndex;
71
71
 
72
72
  if(itemType != 'secondary') {
73
- window.postMessage({ type: actionevent, itemId: item.id, index, item }, window.location.href);
73
+ window.postMessage({ type: actionevent, itemId: item.id, index, item, externalLink: item.externalLink, target: item.attrs.target || null}, window.location.href);
74
74
  activeSubIndex = null;
75
75
  prevSubIndex = null;
76
76
  return;
@@ -245,7 +245,7 @@
245
245
  {#if sliderdata.length > 0}
246
246
 
247
247
  {#each sliderdata as category, index (category.id)}
248
- <li class="CarouselItem {activeindex.toString().indexOf('$') > -1 ? (activeindex.split("$").pop() == category.id.split("$").pop() ? 'active': '') : (activeindex == category.id ? 'active': '')}
248
+ <li class="CarouselItem {activeindex?.toString().indexOf('$') > -1 ? (activeindex?.split("$").pop() == category.id.split("$").pop() ? 'active': '') : (activeindex == category.id ? 'active': '')}
249
249
  {location == 'headerMain' ? '' : 'SecondaryMenu'}"
250
250
  part="CarouselItem"
251
251
  on:click={e => { handleClick(category, index, null, null, 'main'); e.preventDefault()}}>