@debtcollective/dc-header-component
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -6,2 +6,14 @@ # Change Log | ||
## [4.1.3](https://github.com/debtcollective/packages/compare/@debtcollective/dc-header-component@4.1.2...@debtcollective/dc-header-component@4.1.3) (2022-02-24) | ||
### Bug Fixes | ||
* multiple class attributes defined in Menu ([e5f0bff](https://github.com/debtcollective/packages/commit/e5f0bff)) | ||
* open non debtcollective links in new tab ([915ceab](https://github.com/debtcollective/packages/commit/915ceab)) | ||
## [4.1.2](https://github.com/debtcollective/packages/compare/@debtcollective/dc-header-component@4.1.1...@debtcollective/dc-header-component@4.1.2) (2022-01-20) | ||
@@ -8,0 +20,0 @@ |
@@ -19,2 +19,6 @@ 'use strict'; | ||
render() { | ||
// Open external links in new tab | ||
if (!this.to.includes('debtcollective.org')) { | ||
this.target = '_blank'; | ||
} | ||
return (index.h(index.Host, null, index.h("a", { href: this.to, target: this.target }, index.h("slot", null)))); | ||
@@ -364,3 +368,3 @@ } | ||
else { | ||
return index.h("details", { class: "menu-nav-item-collapsable", role: "menuitem", "aria-labelledby": `expandable-menuitem-${key}` }, index.h("summary", { class: "text-lg", id: `expandable-menuitem-${key}` }, link.text, index.h("div", { class: "material-icons icon icon-more", role: "presentation" }, "expand_more"), " ", index.h("div", { class: "material-icons icon icon-less", role: "presentation" }, "expand_less")), index.h("div", { class: "menu-nav-item-nested", role: "menu" }, link.items.map((childLink) => { | ||
return index.h("details", Object.assign({ class: "menu-nav-item-collapsable text hover-green", role: "menuitem", namespace: "menu", to: link.url }, link.attrs, { "aria-labelledby": `expandable-menuitem-${key}` }), index.h("summary", { class: "text-lg", id: `expandable-menuitem-${key}` }, link.text, index.h("div", { class: "material-icons icon icon-more", role: "presentation" }, "expand_more"), " ", index.h("div", { class: "material-icons icon icon-less", role: "presentation" }, "expand_less")), index.h("div", { class: "menu-nav-item-nested", role: "menu" }, link.items.map((childLink) => { | ||
if (typeof childLink.authenticated !== 'undefined') { | ||
@@ -367,0 +371,0 @@ if (childLink.authenticated && this.user) { |
@@ -10,2 +10,6 @@ import { Component, h, Event, Prop, Listen, Host, } from "@stencil/core"; | ||
render() { | ||
// Open external links in new tab | ||
if (!this.to.includes('debtcollective.org')) { | ||
this.target = '_blank'; | ||
} | ||
return (h(Host, null, | ||
@@ -12,0 +16,0 @@ h("a", { href: this.to, target: this.target }, |
@@ -41,3 +41,3 @@ import "./link"; | ||
else { | ||
return h("details", { class: "menu-nav-item-collapsable", role: "menuitem", "aria-labelledby": `expandable-menuitem-${key}` }, | ||
return h("details", Object.assign({ class: "menu-nav-item-collapsable text hover-green", role: "menuitem", namespace: "menu", to: link.url }, link.attrs, { "aria-labelledby": `expandable-menuitem-${key}` }), | ||
h("summary", { class: "text-lg", id: `expandable-menuitem-${key}` }, | ||
@@ -44,0 +44,0 @@ link.text, |
@@ -15,2 +15,6 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getAssetPath } from './index-8956c047.js'; | ||
render() { | ||
// Open external links in new tab | ||
if (!this.to.includes('debtcollective.org')) { | ||
this.target = '_blank'; | ||
} | ||
return (h(Host, null, h("a", { href: this.to, target: this.target }, h("slot", null)))); | ||
@@ -360,3 +364,3 @@ } | ||
else { | ||
return h("details", { class: "menu-nav-item-collapsable", role: "menuitem", "aria-labelledby": `expandable-menuitem-${key}` }, h("summary", { class: "text-lg", id: `expandable-menuitem-${key}` }, link.text, h("div", { class: "material-icons icon icon-more", role: "presentation" }, "expand_more"), " ", h("div", { class: "material-icons icon icon-less", role: "presentation" }, "expand_less")), h("div", { class: "menu-nav-item-nested", role: "menu" }, link.items.map((childLink) => { | ||
return h("details", Object.assign({ class: "menu-nav-item-collapsable text hover-green", role: "menuitem", namespace: "menu", to: link.url }, link.attrs, { "aria-labelledby": `expandable-menuitem-${key}` }), h("summary", { class: "text-lg", id: `expandable-menuitem-${key}` }, link.text, h("div", { class: "material-icons icon icon-more", role: "presentation" }, "expand_more"), " ", h("div", { class: "material-icons icon icon-less", role: "presentation" }, "expand_less")), h("div", { class: "menu-nav-item-nested", role: "menu" }, link.items.map((childLink) => { | ||
if (typeof childLink.authenticated !== 'undefined') { | ||
@@ -363,0 +367,0 @@ if (childLink.authenticated && this.user) { |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as o}from"./p-1822b0d8.js";(()=>{const o=import.meta.url,l={};return""!==o&&(l.resourcesUrl=new URL(".",o).href),e(l)})().then((e=>o([["p-0a958ff5",[[1,"dc-header",{homepage:[1],community:[1],wordpress:[1],returnurl:[1],logo:[8],logosmall:[8],user:[32],isShrink:[32],scrollTop:[32],isMenuOpen:[32],isProfileMenuOpen:[32]},[[9,"scroll","handleScroll"],[0,"toggleMenu","toggleMenuHandler"],[0,"toggleProfileMenu","toggleProfileMenuHandler"],[0,"closeAll","closeAll"]]],[1,"dc-menu",{open:[4],community:[1],homepage:[1],wordpress:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[1,"dc-profile",{shrank:[4],expanded:[4],community:[1],homepage:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[4,"dc-link",{to:[1],target:[1],namespace:[1]},[[2,"click","handleClick"]]]]]],e))); | ||
import{p as e,b as o}from"./p-1822b0d8.js";(()=>{const o=import.meta.url,l={};return""!==o&&(l.resourcesUrl=new URL(".",o).href),e(l)})().then((e=>o([["p-d77bcba6",[[1,"dc-header",{homepage:[1],community:[1],wordpress:[1],returnurl:[1],logo:[8],logosmall:[8],user:[32],isShrink:[32],scrollTop:[32],isMenuOpen:[32],isProfileMenuOpen:[32]},[[9,"scroll","handleScroll"],[0,"toggleMenu","toggleMenuHandler"],[0,"toggleProfileMenu","toggleProfileMenuHandler"],[0,"closeAll","closeAll"]]],[1,"dc-menu",{open:[4],community:[1],homepage:[1],wordpress:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[1,"dc-profile",{shrank:[4],expanded:[4],community:[1],homepage:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[4,"dc-link",{to:[1],target:[1],namespace:[1]},[[2,"click","handleClick"]]]]]],e))); |
{ | ||
"name": "@debtcollective/dc-header-component", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Stencil header component for debtcollective web apps", | ||
@@ -42,3 +42,3 @@ "main": "dist/index.cjs.js", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "f1c6e76ec94562326263b25e30797b6d0e840bcb" | ||
"gitHead": "4e3f6bf43963601da9b849d2fd0b78e376ebcc37" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
614566
9928