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

@ecl/vanilla-component-inpage-navigation

Package Overview
Dependencies
Maintainers
6
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecl/vanilla-component-inpage-navigation - npm Package Compare versions

Comparing version 3.8.4 to 3.9.0

24

inpage-navigation.js

@@ -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"
}
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