@everymatrix/casino-header-controller 1.9.0 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "main": "dist/casino-header-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -17,7 +17,6 @@
17
17
  "@rollup/plugin-node-resolve": "^10.0.0",
18
18
  "@rollup/plugin-typescript": "^6.0.0",
19
19
  "@tsconfig/svelte": "^1.0.0",
20
- "node-sass": "^5.0.0",
21
20
  "rollup": "^2.3.4",
22
21
  "rollup-plugin-dev-server": "^0.4.3",
23
22
  "rollup-plugin-livereload": "^2.0.0",
@@ -25,7 +24,7 @@
25
24
  "rollup-plugin-terser": "^7.0.0",
26
25
  "rollup-plugin-uglify": "^6.0.4",
27
26
  "svelte-check": "^1.0.0",
28
- "svelte-preprocess": "^4.0.0",
27
+ "svelte-preprocess": "^5.0.0",
29
28
  "tslib": "^2.0.0",
30
29
  "typescript": "^3.9.3"
31
30
  },
@@ -38,5 +37,5 @@
38
37
  "publishConfig": {
39
38
  "access": "public"
40
39
  },
41
- "gitHead": "931b121e18fe00e97d089fdc4f642515337a7091"
40
+ "gitHead": "c6cac429dd6c7cee4304007d5a41a9fed7e78217"
42
41
  }
@@ -283,7 +283,7 @@
283
283
  }
284
284
 
285
285
  const navigationTrigger = (itemData:any) => {
286
- window.postMessage({ type: actionevent, itemId: itemData.id, item: itemData }, window.location.href);
286
+ window.postMessage({ type: actionevent, itemId: itemData.id, item: itemData, externalLink: itemData.externalLink, target: itemData.attrs?.target || null }, window.location.href);
287
287
  }
288
288
 
289
289
  const setClientStyling = ():void => {
@@ -440,7 +440,7 @@
440
440
  <ul class="HeaderItemsMenuSecondary" part="HeaderItemsMenuSecondary">
441
441
  {#each secondaryMenuArray as secondaryItem}
442
442
  <li class="ItemSecondary" part="ItemSecondary">
443
- <button on:click={navigationTrigger(secondaryItem)}>{secondaryItem.label}</button>
443
+ <button on:click={() => navigationTrigger(secondaryItem)}>{secondaryItem.label}</button>
444
444
  </li>
445
445
  {/each}
446
446
  </ul>
@@ -527,7 +527,9 @@
527
527
  <nav class="HeaderSecondaryNav" part="HeaderSecondaryNav">
528
528
  <ul class="HeaderItemsMenuSecondary" part="HeaderItemsMenuSecondary">
529
529
  {#each secondaryMenuArray as secondaryItem}
530
- <li class="ItemSecondary" part="ItemSecondary"><a href={secondaryItem.path}>{secondaryItem.label}</a></li>
530
+ <li class="ItemSecondary" part="ItemSecondary">
531
+ <button on:click={() => navigationTrigger(secondaryItem)}>{secondaryItem.label}</button>
532
+ </li>
531
533
  {/each}
532
534
  </ul>
533
535
  </nav>