@ecl/vanilla-component-inpage-navigation
Advanced tools
Comparing version 3.8.4 to 3.9.0
@@ -51,3 +51,3 @@ import Stickyfill from 'stickyfilljs'; | ||
contentClass = 'ecl-inpage-navigation__heading--active', | ||
} = {} | ||
} = {}, | ||
) { | ||
@@ -57,3 +57,3 @@ // Check element | ||
throw new TypeError( | ||
'DOM element should be given to initialize this widget.' | ||
'DOM element should be given to initialize this widget.', | ||
); | ||
@@ -123,3 +123,3 @@ } | ||
this.deactivateScrollSpy, | ||
false | ||
false, | ||
); | ||
@@ -166,3 +166,3 @@ | ||
}, | ||
{ root: null } | ||
{ root: null }, | ||
); | ||
@@ -209,3 +209,3 @@ | ||
this.activateScrollSpy, | ||
false | ||
false, | ||
); | ||
@@ -215,3 +215,3 @@ document.removeEventListener( | ||
this.deactivateScrollSpy, | ||
false | ||
false, | ||
); | ||
@@ -238,3 +238,3 @@ this.gumshoe.destroy(); | ||
!mutation.target.classList.contains( | ||
'ecl-inpage-navigation__trigger-current' | ||
'ecl-inpage-navigation__trigger-current', | ||
) | ||
@@ -248,7 +248,7 @@ ) { | ||
const addedNodeIndex = H2s.findIndex( | ||
(H2) => H2.id === addedNode.id | ||
(H2) => H2.id === addedNode.id, | ||
); | ||
const element = | ||
currentInpage.childNodes[addedNodeIndex - 1].cloneNode( | ||
true | ||
true, | ||
); | ||
@@ -314,3 +314,3 @@ element.childNodes[0].textContent = addedNode.textContent; | ||
navLinks.forEach((link) => | ||
link.addEventListener('click', this.handleClickOnLink) | ||
link.addEventListener('click', this.handleClickOnLink), | ||
); | ||
@@ -372,3 +372,3 @@ toggleElement.addEventListener('click', this.handleClickOnToggler); | ||
'click', | ||
this.handleClickOnToggler | ||
this.handleClickOnToggler, | ||
); | ||
@@ -378,3 +378,3 @@ } | ||
this.navLinks.forEach((link) => | ||
link.removeEventListener('click', this.handleClickOnLink) | ||
link.removeEventListener('click', this.handleClickOnLink), | ||
); | ||
@@ -381,0 +381,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "EUPL-1.2", | ||
"version": "3.8.4", | ||
"version": "3.9.0", | ||
"description": "ECL In-page Navigation", | ||
@@ -13,4 +13,4 @@ "main": "inpage-navigation.js", | ||
"dependencies": { | ||
"@ecl/theme-dev": "3.8.4", | ||
"@ecl/vanilla-layout-grid": "3.8.4", | ||
"@ecl/theme-dev": "3.9.0", | ||
"@ecl/vanilla-layout-grid": "3.9.0", | ||
"gumshoejs": "5.1.2", | ||
@@ -35,3 +35,3 @@ "stickyfilljs": "2.1.0" | ||
], | ||
"gitHead": "b79eb951894a3ca13c9b1a6b8f4bfce3f02dbbf5" | ||
"gitHead": "da7e2afeeec9d1aa44e4ce9e5ac46619a23328db" | ||
} |
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
35919
+ Added@ecl/theme-dev@3.9.0(transitive)
+ Added@ecl/vanilla-layout-grid@3.9.0(transitive)
- Removed@ecl/theme-dev@3.8.4(transitive)
- Removed@ecl/vanilla-layout-grid@3.8.4(transitive)
Updated@ecl/theme-dev@3.9.0