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

@vaadin/overlay

Package Overview
Dependencies
Maintainers
12
Versions
283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/overlay - npm Package Compare versions

Comparing version 24.6.0-rc1 to 24.7.0-alpha1

16

package.json
{
"name": "@vaadin/overlay",
"version": "24.6.0-rc1",
"version": "24.7.0-alpha1",
"publishConfig": {

@@ -39,15 +39,15 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/a11y-base": "24.6.0-rc1",
"@vaadin/component-base": "24.6.0-rc1",
"@vaadin/vaadin-lumo-styles": "24.6.0-rc1",
"@vaadin/vaadin-material-styles": "24.6.0-rc1",
"@vaadin/vaadin-themable-mixin": "24.6.0-rc1",
"@vaadin/a11y-base": "24.7.0-alpha1",
"@vaadin/component-base": "24.7.0-alpha1",
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha1",
"@vaadin/vaadin-material-styles": "24.7.0-alpha1",
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha1",
"lit": "^3.0.0"
},
"devDependencies": {
"@vaadin/chai-plugins": "24.6.0-rc1",
"@vaadin/chai-plugins": "24.7.0-alpha1",
"@vaadin/testing-helpers": "^1.0.0",
"sinon": "^18.0.0"
},
"gitHead": "d62ba309e3286777ad3ea7e015d50a2c4976bb42"
"gitHead": "04be941c9a7b659871c97f31b9cc3ffd7528087b"
}

@@ -17,2 +17,9 @@ /**

/**
* Returns all attached overlay instances excluding notification container,
* which only needs to be in the stack for zIndex but not pointer-events.
* @private
*/
const getOverlayInstances = () => getAttachedInstances().filter((el) => el.$.overlay);
/**
* Returns true if the overlay is the last one in the opened overlays stack.

@@ -23,3 +30,3 @@ * @param {HTMLElement} overlay

*/
export const isLastOverlay = (overlay) => overlay === getAttachedInstances().pop();
export const isLastOverlay = (overlay) => overlay === getOverlayInstances().pop();

@@ -73,4 +80,4 @@ /**

// Disable pointer events in other attached overlays
getAttachedInstances().forEach((el) => {
if (el !== this && el.$.overlay) {
getOverlayInstances().forEach((el) => {
if (el !== this) {
el.$.overlay.style.pointerEvents = 'none';

@@ -90,3 +97,3 @@ }

// Restore pointer events in the previous overlay(s)
const instances = getAttachedInstances();
const instances = getOverlayInstances();

@@ -100,5 +107,3 @@ let el;

}
if (el.$.overlay) {
el.$.overlay.style.removeProperty('pointer-events');
}
el.$.overlay.style.removeProperty('pointer-events');
if (!el.modeless) {

@@ -105,0 +110,0 @@ // Stop after the last modal

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