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

solid-dismiss

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-dismiss - npm Package Compare versions

Comparing version 1.0.26 to 1.0.27

58

dist/esm/index.js

@@ -1083,14 +1083,16 @@ import { isServer, insert, template, delegateEvents, addEventListener, effect, setAttribute, classList, createComponent, mergeProps } from 'solid-js/web';

requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
if (!onEnter || onEnter.length < 2) {
el.addEventListener("transitionend", endTransition, {
once: true
});
el.addEventListener("animationend", endTransition, {
once: true
});
}
if (!onEnter || onEnter.length < 2) {
el.addEventListener("transitionend", endTransition, {
once: true
});
el.addEventListener("animationend", endTransition, {
once: true
});
}
});
});

@@ -1588,20 +1590,22 @@

requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
if (!onEnter || onEnter.length < 2) {
if (type === "popup") {
endEnterTransitionRef = endTransition;
} else {
endEnterTransitionOverlayRef = endTransition;
if (!onEnter || onEnter.length < 2) {
if (type === "popup") {
endEnterTransitionRef = endTransition;
} else {
endEnterTransitionOverlayRef = endTransition;
}
el.addEventListener("transitionend", endTransition, {
once: true
});
el.addEventListener("animationend", endTransition, {
once: true
});
}
el.addEventListener("transitionend", endTransition, {
once: true
});
el.addEventListener("animationend", endTransition, {
once: true
});
}
});
});

@@ -1608,0 +1612,0 @@

@@ -36,9 +36,11 @@ import { untrack, createComputed, createSignal, children, } from "solid-js";

requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
if (!onEnter || onEnter.length < 2) {
el.addEventListener("transitionend", endTransition, { once: true });
el.addEventListener("animationend", endTransition, { once: true });
}
requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
if (!onEnter || onEnter.length < 2) {
el.addEventListener("transitionend", endTransition, { once: true });
el.addEventListener("animationend", endTransition, { once: true });
}
});
});

@@ -45,0 +47,0 @@ function endTransition() {

@@ -149,19 +149,21 @@ import "./browserInfo";

requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
if (!onEnter || onEnter.length < 2) {
if (type === "popup") {
endEnterTransitionRef = endTransition;
requestAnimationFrame(() => {
el.classList.remove(...enterClasses);
el.classList.add(...enterToClasses);
onEnter && onEnter(el, endTransition);
if (!onEnter || onEnter.length < 2) {
if (type === "popup") {
endEnterTransitionRef = endTransition;
}
else {
endEnterTransitionOverlayRef = endTransition;
}
el.addEventListener("transitionend", endTransition, {
once: true,
});
el.addEventListener("animationend", endTransition, {
once: true,
});
}
else {
endEnterTransitionOverlayRef = endTransition;
}
el.addEventListener("transitionend", endTransition, {
once: true,
});
el.addEventListener("animationend", endTransition, {
once: true,
});
}
});
});

@@ -168,0 +170,0 @@ function endTransition() {

{
"name": "solid-dismiss",
"version": "1.0.26",
"version": "1.0.27",
"homepage": "https://aquaductape.github.io/solid-dismiss/",

@@ -5,0 +5,0 @@ "description": "Handles \"click outside\" behavior for popup menu. Closing is triggered by click/focus outside of popup element or pressing \"Escape\" key.",

Sorry, the diff of this file is not supported yet

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