@everymatrix/casino-header-controller 1.9.0 → 1.9.1
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.
|
3
|
+
"version": "1.9.1",
|
4
4
|
"main": "dist/casino-header-controller.js",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"publishConfig": {
|
39
39
|
"access": "public"
|
40
40
|
},
|
41
|
-
"gitHead": "
|
41
|
+
"gitHead": "b882819d6bf435954793bf62ec04879ecb8572e0"
|
42
42
|
}
|
@@ -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"
|
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>
|