🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@datocms/content-link

Package Overview
Dependencies
Maintainers
7
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datocms/content-link - npm Package Compare versions

Comparing version
0.3.17
to
0.3.18
+1
-1
package.json
{
"name": "@datocms/content-link",
"version": "0.3.17",
"version": "0.3.18",
"description": "Lightweight library for DatoCMS visual editing overlays and content links.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -210,8 +210,15 @@ import { type Options, compute as computeScrollIntoView } from 'compute-scroll-into-view';

const parent = el.parentElement;
if (parent) {
return isElementVisible(parent);
return isAncestorVisible(el.parentElement);
}
function isAncestorVisible(el: HTMLElement | null): boolean {
if (!el) return true;
const style = window.getComputedStyle(el);
if (style.display === 'none' || style.visibility === 'hidden' || style.opacity === '0') {
return false;
}
return true;
return isAncestorVisible(el.parentElement);
}

@@ -218,0 +225,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display