Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@debtcollective/dc-header-component

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@debtcollective/dc-header-component - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

dist/header/p-0a958ff5.entry.js

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [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)
### Bug Fixes
* issue with logged in state not showing all links ([8235cf2](https://github.com/debtcollective/packages/commit/8235cf2))
## [4.1.1](https://github.com/debtcollective/packages/compare/@debtcollective/dc-header-component@4.1.0...@debtcollective/dc-header-component@4.1.1) (2022-01-19)

@@ -8,0 +19,0 @@

56

dist/cjs/dc-header_4.cjs.entry.js

@@ -295,4 +295,2 @@ 'use strict';

const data = { user, community, homepage };
const rootLinks = [];
const authenticatedLinks = [];
const guestLinks = [];

@@ -303,11 +301,2 @@ siteMenu

const itemData = Object.assign(Object.assign({}, item), { url: interpolateURL(item.url, data) });
// Items without the property set will be always displayed
if (!itemData.hasOwnProperty("authenticated")) {
rootLinks.push(itemData);
return true;
}
if (item.authenticated) {
authenticatedLinks.push(itemData);
return true;
}
guestLinks.push(itemData);

@@ -321,5 +310,3 @@ }

return {
authenticatedLinks,
guestLinks,
rootLinks,
};

@@ -364,25 +351,32 @@ };

render() {
return (index.h("div", { class: "menu-container", hidden: !this.open }, index.h("div", { class: `menu ${this.open ? "is-open" : ""}` }, index.h("div", { class: "menu-section menu-header" }, index.h("button", { class: "btn-transparent menu-close material-icons", "aria-label": "close menu", onClick: this.toggleMenuHandler.bind(this) }, "close")), index.h("menu", { class: "menu-section menu-nav" }, this.user
? this.config.authenticatedLinks.map((link) => (index.h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text)))
: this.config.guestLinks.map((link, key) => {
if (link.type === "MENU_ITEM_LINK") {
return (index.h("div", { class: "menu-container", hidden: !this.open }, index.h("div", { class: `menu ${this.open ? "is-open" : ""}` }, index.h("div", { class: "menu-section menu-header" }, index.h("button", { class: "btn-transparent menu-close material-icons", "aria-label": "close menu", onClick: this.toggleMenuHandler.bind(this) }, "close")), index.h("menu", { class: "menu-section menu-nav" }, this.config.guestLinks.map((link, key) => {
if (link.type === "MENU_ITEM_LINK") {
if (typeof link.authenticated !== 'undefined') {
if (link.authenticated && this.user) {
return index.h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
else if (!link.authenticated && !this.user) {
return index.h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
}
else {
return index.h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
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) => {
console.log(childLink);
if (typeof childLink.authenticated !== 'undefined') {
if (childLink.authenticated && this.user) {
return index.h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
else if (!childLink.authenticated && !this.user) {
return index.h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
}
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) => {
if (typeof childLink.authenticated !== 'undefined') {
if (childLink.authenticated && this.user) {
return index.h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
else {
else if (!childLink.authenticated && !this.user) {
return index.h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
})));
}
}), this.config.rootLinks.map((link) => (index.h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text)))), index.h("div", { class: "menu-section menu-footer mt-auto" }, index.h("dc-link", { class: "icon", to: this.socialLinks.twitter, target: "_blank" }, index.h("span", { class: "d-none" }, "Go to Debtcollective's Twitter page"), index.h("svg", { "aria-hidden": "true", width: "32", height: "22", viewBox: "0 0 32 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M31.391 2.54176C30.2714 2.97352 29.0664 3.26476 27.802 3.39509C29.0929 2.72466 30.0827 1.66269 30.5495 0.395825C29.3421 1.01746 28.0055 1.46853 26.5816 1.71203C25.4421 0.658636 23.818 0 22.0206 0C18.5702 0 15.7725 2.42698 15.7725 5.42088C15.7725 5.84514 15.8276 6.25866 15.9345 6.6561C10.7412 6.42976 6.13636 4.27202 3.05435 0.992246C2.51646 1.79248 2.20857 2.72358 2.20857 3.71798C2.20857 5.59842 3.31154 7.25788 4.98826 8.22974C3.96442 8.20132 3.00056 7.95728 2.15787 7.55126C2.15725 7.57379 2.15725 7.59685 2.15725 7.61992C2.15725 10.2459 4.31126 12.4364 7.1701 12.9352C6.64582 13.0585 6.09371 13.125 5.52367 13.125C5.12056 13.125 4.72921 13.0913 4.34774 13.0274C5.14344 15.1809 7.45078 16.7486 10.1847 16.7921C8.04617 18.2461 5.35241 19.1128 2.42433 19.1128C1.92046 19.1128 1.42276 19.0871 0.933716 19.0367C3.6998 20.5755 6.98399 21.4722 10.5124 21.4722C22.0064 21.4722 28.2911 13.2125 28.2911 6.04895C28.2911 5.81403 28.2855 5.57964 28.2737 5.34687C29.4942 4.58418 30.5538 3.62894 31.391 2.54176Z", fill: "#434343" }))), index.h("dc-link", { class: "icon", to: this.socialLinks.facebook, target: "_blank" }, index.h("span", { class: "d-none" }, "Go to Debtcollective's Facebook page"), index.h("svg", { "aria-hidden": "true", width: "28", height: "24", viewBox: "0 0 28 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.292114 22.0001C0.292114 23.1051 1.29658 24 2.53648 24H24.9815C26.2215 24 27.2258 23.1051 27.2258 22.0001V1.99991C27.2258 0.89501 26.2215 0 24.9815 0H2.53654C1.29658 0 0.292176 0.895062 0.292176 1.99991L0.292114 22.0001ZM14.3202 21V13H12.0756V9.99994H14.3202C14.3202 4.84496 14.5667 4.50002 21.6148 4.50002V7.50004C17.9 7.50004 18.248 7.68506 18.248 10H21.6148V13.0001H18.248V21H14.3202Z", fill: "#343434" }))), index.h("dc-link", { class: "icon", to: this.socialLinks.instagram, target: "_blank" }, index.h("span", { class: "d-none" }, "Go to Debtcollective's Instagram profile"), index.h("svg", { "aria-hidden": "true", width: "28", height: "25", viewBox: "0 0 28 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M21.8601 0H5.33332C2.46257 0 0.127075 2.08063 0.127075 4.63867V9.53882V19.3657C0.127075 21.9238 2.46257 24.0044 5.33332 24.0044H21.8605C24.7314 24.0044 27.0663 21.9238 27.0663 19.3657V9.53834V4.63819C27.0657 2.08014 24.7308 0 21.8601 0ZM23.3532 2.76626L23.9488 2.76432V3.29259V6.83309L19.3979 6.84616L19.3821 2.77788L23.3532 2.76626ZM9.75163 9.53834C10.6145 8.47454 12.0143 7.77681 13.5967 7.77681C15.179 7.77681 16.5788 8.47454 17.4407 9.53834C18.0019 10.2327 18.3383 11.082 18.3383 12.002C18.3383 14.3315 16.2093 16.2267 13.5961 16.2267C10.9814 16.2267 8.85449 14.3315 8.85449 12.002C8.85504 11.082 9.1903 10.2327 9.75163 9.53834ZM24.4411 19.3653C24.4411 20.6344 23.2832 21.6652 21.8601 21.6652H5.33332C3.90963 21.6652 2.75166 20.6344 2.75166 19.3653V9.53834H6.77276C6.42553 10.2995 6.23045 11.1309 6.23045 12.002C6.23045 15.6204 9.53427 18.5664 13.5967 18.5664C17.6586 18.5664 20.9624 15.6204 20.9624 12.002C20.9624 11.1309 20.7662 10.2995 20.4189 9.53834H24.4411V19.3653Z", fill: "#434343" })))))));
}
else {
return index.h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
})));
}
})), index.h("div", { class: "menu-section menu-footer mt-auto" }, index.h("dc-link", { class: "icon", to: this.socialLinks.twitter, target: "_blank" }, index.h("span", { class: "d-none" }, "Go to Debtcollective's Twitter page"), index.h("svg", { "aria-hidden": "true", width: "32", height: "22", viewBox: "0 0 32 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M31.391 2.54176C30.2714 2.97352 29.0664 3.26476 27.802 3.39509C29.0929 2.72466 30.0827 1.66269 30.5495 0.395825C29.3421 1.01746 28.0055 1.46853 26.5816 1.71203C25.4421 0.658636 23.818 0 22.0206 0C18.5702 0 15.7725 2.42698 15.7725 5.42088C15.7725 5.84514 15.8276 6.25866 15.9345 6.6561C10.7412 6.42976 6.13636 4.27202 3.05435 0.992246C2.51646 1.79248 2.20857 2.72358 2.20857 3.71798C2.20857 5.59842 3.31154 7.25788 4.98826 8.22974C3.96442 8.20132 3.00056 7.95728 2.15787 7.55126C2.15725 7.57379 2.15725 7.59685 2.15725 7.61992C2.15725 10.2459 4.31126 12.4364 7.1701 12.9352C6.64582 13.0585 6.09371 13.125 5.52367 13.125C5.12056 13.125 4.72921 13.0913 4.34774 13.0274C5.14344 15.1809 7.45078 16.7486 10.1847 16.7921C8.04617 18.2461 5.35241 19.1128 2.42433 19.1128C1.92046 19.1128 1.42276 19.0871 0.933716 19.0367C3.6998 20.5755 6.98399 21.4722 10.5124 21.4722C22.0064 21.4722 28.2911 13.2125 28.2911 6.04895C28.2911 5.81403 28.2855 5.57964 28.2737 5.34687C29.4942 4.58418 30.5538 3.62894 31.391 2.54176Z", fill: "#434343" }))), index.h("dc-link", { class: "icon", to: this.socialLinks.facebook, target: "_blank" }, index.h("span", { class: "d-none" }, "Go to Debtcollective's Facebook page"), index.h("svg", { "aria-hidden": "true", width: "28", height: "24", viewBox: "0 0 28 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.292114 22.0001C0.292114 23.1051 1.29658 24 2.53648 24H24.9815C26.2215 24 27.2258 23.1051 27.2258 22.0001V1.99991C27.2258 0.89501 26.2215 0 24.9815 0H2.53654C1.29658 0 0.292176 0.895062 0.292176 1.99991L0.292114 22.0001ZM14.3202 21V13H12.0756V9.99994H14.3202C14.3202 4.84496 14.5667 4.50002 21.6148 4.50002V7.50004C17.9 7.50004 18.248 7.68506 18.248 10H21.6148V13.0001H18.248V21H14.3202Z", fill: "#343434" }))), index.h("dc-link", { class: "icon", to: this.socialLinks.instagram, target: "_blank" }, index.h("span", { class: "d-none" }, "Go to Debtcollective's Instagram profile"), index.h("svg", { "aria-hidden": "true", width: "28", height: "25", viewBox: "0 0 28 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M21.8601 0H5.33332C2.46257 0 0.127075 2.08063 0.127075 4.63867V9.53882V19.3657C0.127075 21.9238 2.46257 24.0044 5.33332 24.0044H21.8605C24.7314 24.0044 27.0663 21.9238 27.0663 19.3657V9.53834V4.63819C27.0657 2.08014 24.7308 0 21.8601 0ZM23.3532 2.76626L23.9488 2.76432V3.29259V6.83309L19.3979 6.84616L19.3821 2.77788L23.3532 2.76626ZM9.75163 9.53834C10.6145 8.47454 12.0143 7.77681 13.5967 7.77681C15.179 7.77681 16.5788 8.47454 17.4407 9.53834C18.0019 10.2327 18.3383 11.082 18.3383 12.002C18.3383 14.3315 16.2093 16.2267 13.5961 16.2267C10.9814 16.2267 8.85449 14.3315 8.85449 12.002C8.85504 11.082 9.1903 10.2327 9.75163 9.53834ZM24.4411 19.3653C24.4411 20.6344 23.2832 21.6652 21.8601 21.6652H5.33332C3.90963 21.6652 2.75166 20.6344 2.75166 19.3653V9.53834H6.77276C6.42553 10.2995 6.23045 11.1309 6.23045 12.002C6.23045 15.6204 9.53427 18.5664 13.5967 18.5664C17.6586 18.5664 20.9624 15.6204 20.9624 12.002C20.9624 11.1309 20.7662 10.2995 20.4189 9.53834H24.4411V19.3653Z", fill: "#434343" })))))));
}

@@ -389,0 +383,0 @@ static get assetsDirs() { return ["assets"]; }

@@ -26,33 +26,38 @@ import "./link";

h("button", { class: "btn-transparent menu-close material-icons", "aria-label": "close menu", onClick: this.toggleMenuHandler.bind(this) }, "close")),
h("menu", { class: "menu-section menu-nav" },
this.user
? this.config.authenticatedLinks.map((link) => (h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text)))
: this.config.guestLinks.map((link, key) => {
if (link.type === "MENU_ITEM_LINK") {
h("menu", { class: "menu-section menu-nav" }, this.config.guestLinks.map((link, key) => {
if (link.type === "MENU_ITEM_LINK") {
if (typeof link.authenticated !== 'undefined') {
if (link.authenticated && this.user) {
return h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
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) => {
console.log(childLink);
if (typeof childLink.authenticated !== 'undefined') {
if (childLink.authenticated && this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
else if (!childLink.authenticated && !this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
}
else {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
})));
else if (!link.authenticated && !this.user) {
return h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
}),
this.config.rootLinks.map((link) => (h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text)))),
}
else {
return h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
}
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) => {
if (typeof childLink.authenticated !== 'undefined') {
if (childLink.authenticated && this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
else if (!childLink.authenticated && !this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
}
else {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
})));
}
})),
h("div", { class: "menu-section menu-footer mt-auto" },

@@ -59,0 +64,0 @@ h("dc-link", { class: "icon", to: this.socialLinks.twitter, target: "_blank" },

@@ -95,4 +95,2 @@ import config from "../config.json";

const data = { user, community, homepage };
const rootLinks = [];
const authenticatedLinks = [];
const guestLinks = [];

@@ -103,11 +101,2 @@ siteMenu

const itemData = Object.assign(Object.assign({}, item), { url: interpolateURL(item.url, data) });
// Items without the property set will be always displayed
if (!itemData.hasOwnProperty("authenticated")) {
rootLinks.push(itemData);
return true;
}
if (item.authenticated) {
authenticatedLinks.push(itemData);
return true;
}
guestLinks.push(itemData);

@@ -122,5 +111,3 @@ }

return {
authenticatedLinks,
guestLinks,
rootLinks,
};

@@ -127,0 +114,0 @@ };

@@ -291,4 +291,2 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getAssetPath } from './index-8956c047.js';

const data = { user, community, homepage };
const rootLinks = [];
const authenticatedLinks = [];
const guestLinks = [];

@@ -299,11 +297,2 @@ siteMenu

const itemData = Object.assign(Object.assign({}, item), { url: interpolateURL(item.url, data) });
// Items without the property set will be always displayed
if (!itemData.hasOwnProperty("authenticated")) {
rootLinks.push(itemData);
return true;
}
if (item.authenticated) {
authenticatedLinks.push(itemData);
return true;
}
guestLinks.push(itemData);

@@ -317,5 +306,3 @@ }

return {
authenticatedLinks,
guestLinks,
rootLinks,
};

@@ -360,25 +347,32 @@ };

render() {
return (h("div", { class: "menu-container", hidden: !this.open }, h("div", { class: `menu ${this.open ? "is-open" : ""}` }, h("div", { class: "menu-section menu-header" }, h("button", { class: "btn-transparent menu-close material-icons", "aria-label": "close menu", onClick: this.toggleMenuHandler.bind(this) }, "close")), h("menu", { class: "menu-section menu-nav" }, this.user
? this.config.authenticatedLinks.map((link) => (h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text)))
: this.config.guestLinks.map((link, key) => {
if (link.type === "MENU_ITEM_LINK") {
return (h("div", { class: "menu-container", hidden: !this.open }, h("div", { class: `menu ${this.open ? "is-open" : ""}` }, h("div", { class: "menu-section menu-header" }, h("button", { class: "btn-transparent menu-close material-icons", "aria-label": "close menu", onClick: this.toggleMenuHandler.bind(this) }, "close")), h("menu", { class: "menu-section menu-nav" }, this.config.guestLinks.map((link, key) => {
if (link.type === "MENU_ITEM_LINK") {
if (typeof link.authenticated !== 'undefined') {
if (link.authenticated && this.user) {
return h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
else if (!link.authenticated && !this.user) {
return h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
}
else {
return h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text);
}
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) => {
console.log(childLink);
if (typeof childLink.authenticated !== 'undefined') {
if (childLink.authenticated && this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
else if (!childLink.authenticated && !this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
}
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) => {
if (typeof childLink.authenticated !== 'undefined') {
if (childLink.authenticated && this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
else {
else if (!childLink.authenticated && !this.user) {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
})));
}
}), this.config.rootLinks.map((link) => (h("dc-link", { class: "menu-nav-item text-lg", namespace: "menu", role: "menuitem", to: link.url }, link.text)))), h("div", { class: "menu-section menu-footer mt-auto" }, h("dc-link", { class: "icon", to: this.socialLinks.twitter, target: "_blank" }, h("span", { class: "d-none" }, "Go to Debtcollective's Twitter page"), h("svg", { "aria-hidden": "true", width: "32", height: "22", viewBox: "0 0 32 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M31.391 2.54176C30.2714 2.97352 29.0664 3.26476 27.802 3.39509C29.0929 2.72466 30.0827 1.66269 30.5495 0.395825C29.3421 1.01746 28.0055 1.46853 26.5816 1.71203C25.4421 0.658636 23.818 0 22.0206 0C18.5702 0 15.7725 2.42698 15.7725 5.42088C15.7725 5.84514 15.8276 6.25866 15.9345 6.6561C10.7412 6.42976 6.13636 4.27202 3.05435 0.992246C2.51646 1.79248 2.20857 2.72358 2.20857 3.71798C2.20857 5.59842 3.31154 7.25788 4.98826 8.22974C3.96442 8.20132 3.00056 7.95728 2.15787 7.55126C2.15725 7.57379 2.15725 7.59685 2.15725 7.61992C2.15725 10.2459 4.31126 12.4364 7.1701 12.9352C6.64582 13.0585 6.09371 13.125 5.52367 13.125C5.12056 13.125 4.72921 13.0913 4.34774 13.0274C5.14344 15.1809 7.45078 16.7486 10.1847 16.7921C8.04617 18.2461 5.35241 19.1128 2.42433 19.1128C1.92046 19.1128 1.42276 19.0871 0.933716 19.0367C3.6998 20.5755 6.98399 21.4722 10.5124 21.4722C22.0064 21.4722 28.2911 13.2125 28.2911 6.04895C28.2911 5.81403 28.2855 5.57964 28.2737 5.34687C29.4942 4.58418 30.5538 3.62894 31.391 2.54176Z", fill: "#434343" }))), h("dc-link", { class: "icon", to: this.socialLinks.facebook, target: "_blank" }, h("span", { class: "d-none" }, "Go to Debtcollective's Facebook page"), h("svg", { "aria-hidden": "true", width: "28", height: "24", viewBox: "0 0 28 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.292114 22.0001C0.292114 23.1051 1.29658 24 2.53648 24H24.9815C26.2215 24 27.2258 23.1051 27.2258 22.0001V1.99991C27.2258 0.89501 26.2215 0 24.9815 0H2.53654C1.29658 0 0.292176 0.895062 0.292176 1.99991L0.292114 22.0001ZM14.3202 21V13H12.0756V9.99994H14.3202C14.3202 4.84496 14.5667 4.50002 21.6148 4.50002V7.50004C17.9 7.50004 18.248 7.68506 18.248 10H21.6148V13.0001H18.248V21H14.3202Z", fill: "#343434" }))), h("dc-link", { class: "icon", to: this.socialLinks.instagram, target: "_blank" }, h("span", { class: "d-none" }, "Go to Debtcollective's Instagram profile"), h("svg", { "aria-hidden": "true", width: "28", height: "25", viewBox: "0 0 28 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M21.8601 0H5.33332C2.46257 0 0.127075 2.08063 0.127075 4.63867V9.53882V19.3657C0.127075 21.9238 2.46257 24.0044 5.33332 24.0044H21.8605C24.7314 24.0044 27.0663 21.9238 27.0663 19.3657V9.53834V4.63819C27.0657 2.08014 24.7308 0 21.8601 0ZM23.3532 2.76626L23.9488 2.76432V3.29259V6.83309L19.3979 6.84616L19.3821 2.77788L23.3532 2.76626ZM9.75163 9.53834C10.6145 8.47454 12.0143 7.77681 13.5967 7.77681C15.179 7.77681 16.5788 8.47454 17.4407 9.53834C18.0019 10.2327 18.3383 11.082 18.3383 12.002C18.3383 14.3315 16.2093 16.2267 13.5961 16.2267C10.9814 16.2267 8.85449 14.3315 8.85449 12.002C8.85504 11.082 9.1903 10.2327 9.75163 9.53834ZM24.4411 19.3653C24.4411 20.6344 23.2832 21.6652 21.8601 21.6652H5.33332C3.90963 21.6652 2.75166 20.6344 2.75166 19.3653V9.53834H6.77276C6.42553 10.2995 6.23045 11.1309 6.23045 12.002C6.23045 15.6204 9.53427 18.5664 13.5967 18.5664C17.6586 18.5664 20.9624 15.6204 20.9624 12.002C20.9624 11.1309 20.7662 10.2995 20.4189 9.53834H24.4411V19.3653Z", fill: "#434343" })))))));
}
else {
return h("dc-link", Object.assign({ role: "menuitem", class: "text hover-green", namespace: "menu", to: childLink.url }, childLink.attrs), childLink.text);
}
})));
}
})), h("div", { class: "menu-section menu-footer mt-auto" }, h("dc-link", { class: "icon", to: this.socialLinks.twitter, target: "_blank" }, h("span", { class: "d-none" }, "Go to Debtcollective's Twitter page"), h("svg", { "aria-hidden": "true", width: "32", height: "22", viewBox: "0 0 32 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M31.391 2.54176C30.2714 2.97352 29.0664 3.26476 27.802 3.39509C29.0929 2.72466 30.0827 1.66269 30.5495 0.395825C29.3421 1.01746 28.0055 1.46853 26.5816 1.71203C25.4421 0.658636 23.818 0 22.0206 0C18.5702 0 15.7725 2.42698 15.7725 5.42088C15.7725 5.84514 15.8276 6.25866 15.9345 6.6561C10.7412 6.42976 6.13636 4.27202 3.05435 0.992246C2.51646 1.79248 2.20857 2.72358 2.20857 3.71798C2.20857 5.59842 3.31154 7.25788 4.98826 8.22974C3.96442 8.20132 3.00056 7.95728 2.15787 7.55126C2.15725 7.57379 2.15725 7.59685 2.15725 7.61992C2.15725 10.2459 4.31126 12.4364 7.1701 12.9352C6.64582 13.0585 6.09371 13.125 5.52367 13.125C5.12056 13.125 4.72921 13.0913 4.34774 13.0274C5.14344 15.1809 7.45078 16.7486 10.1847 16.7921C8.04617 18.2461 5.35241 19.1128 2.42433 19.1128C1.92046 19.1128 1.42276 19.0871 0.933716 19.0367C3.6998 20.5755 6.98399 21.4722 10.5124 21.4722C22.0064 21.4722 28.2911 13.2125 28.2911 6.04895C28.2911 5.81403 28.2855 5.57964 28.2737 5.34687C29.4942 4.58418 30.5538 3.62894 31.391 2.54176Z", fill: "#434343" }))), h("dc-link", { class: "icon", to: this.socialLinks.facebook, target: "_blank" }, h("span", { class: "d-none" }, "Go to Debtcollective's Facebook page"), h("svg", { "aria-hidden": "true", width: "28", height: "24", viewBox: "0 0 28 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.292114 22.0001C0.292114 23.1051 1.29658 24 2.53648 24H24.9815C26.2215 24 27.2258 23.1051 27.2258 22.0001V1.99991C27.2258 0.89501 26.2215 0 24.9815 0H2.53654C1.29658 0 0.292176 0.895062 0.292176 1.99991L0.292114 22.0001ZM14.3202 21V13H12.0756V9.99994H14.3202C14.3202 4.84496 14.5667 4.50002 21.6148 4.50002V7.50004C17.9 7.50004 18.248 7.68506 18.248 10H21.6148V13.0001H18.248V21H14.3202Z", fill: "#343434" }))), h("dc-link", { class: "icon", to: this.socialLinks.instagram, target: "_blank" }, h("span", { class: "d-none" }, "Go to Debtcollective's Instagram profile"), h("svg", { "aria-hidden": "true", width: "28", height: "25", viewBox: "0 0 28 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M21.8601 0H5.33332C2.46257 0 0.127075 2.08063 0.127075 4.63867V9.53882V19.3657C0.127075 21.9238 2.46257 24.0044 5.33332 24.0044H21.8605C24.7314 24.0044 27.0663 21.9238 27.0663 19.3657V9.53834V4.63819C27.0657 2.08014 24.7308 0 21.8601 0ZM23.3532 2.76626L23.9488 2.76432V3.29259V6.83309L19.3979 6.84616L19.3821 2.77788L23.3532 2.76626ZM9.75163 9.53834C10.6145 8.47454 12.0143 7.77681 13.5967 7.77681C15.179 7.77681 16.5788 8.47454 17.4407 9.53834C18.0019 10.2327 18.3383 11.082 18.3383 12.002C18.3383 14.3315 16.2093 16.2267 13.5961 16.2267C10.9814 16.2267 8.85449 14.3315 8.85449 12.002C8.85504 11.082 9.1903 10.2327 9.75163 9.53834ZM24.4411 19.3653C24.4411 20.6344 23.2832 21.6652 21.8601 21.6652H5.33332C3.90963 21.6652 2.75166 20.6344 2.75166 19.3653V9.53834H6.77276C6.42553 10.2995 6.23045 11.1309 6.23045 12.002C6.23045 15.6204 9.53427 18.5664 13.5967 18.5664C17.6586 18.5664 20.9624 15.6204 20.9624 12.002C20.9624 11.1309 20.7662 10.2995 20.4189 9.53834H24.4411V19.3653Z", fill: "#434343" })))))));
}

@@ -385,0 +379,0 @@ static get assetsDirs() { return ["assets"]; }

@@ -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-d776faab",[[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-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)));

@@ -50,5 +50,3 @@ export declare const interpolateWordpressNav: (wordpress: any) => Promise<void>;

}) => {
authenticatedLinks: any[];
guestLinks: any[];
rootLinks: any[];
};

@@ -55,0 +53,0 @@ export declare const getSocialLinks: () => {

{
"name": "@debtcollective/dc-header-component",
"version": "4.1.1",
"version": "4.1.2",
"description": "Stencil header component for debtcollective web apps",

@@ -42,3 +42,3 @@ "main": "dist/index.cjs.js",

"license": "BSD-3-Clause",
"gitHead": "4405b8e7d979cd061e273442f2e52f206490e9b3"
"gitHead": "f1c6e76ec94562326263b25e30797b6d0e840bcb"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc