solid-presence
Advanced tools
Comparing version
@@ -8,4 +8,3 @@ import { access } from '@corvu/utils/reactivity'; | ||
const element = access(props.element); | ||
if (!element) | ||
return; | ||
if (!element) return; | ||
return getComputedStyle(element); | ||
@@ -21,4 +20,3 @@ }); | ||
untrack(() => { | ||
if (prevShow === show) | ||
return show; | ||
if (prevShow === show) return show; | ||
const prevAnimationName = animationName; | ||
@@ -43,4 +41,3 @@ const currentAnimationName = getAnimationName(); | ||
const element = access(props.element); | ||
if (!element) | ||
return; | ||
if (!element) return; | ||
const handleAnimationStart = (event) => { | ||
@@ -47,0 +44,0 @@ if (event.target === element) { |
{ | ||
"name": "solid-presence", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"private": false, | ||
@@ -32,2 +32,3 @@ "description": "SolidJS utility that manages the presence of an element in the DOM while being aware of pending animations.", | ||
"types": "./dist/index.d.ts", | ||
"solid": "./dist/index.jsx", | ||
"default": "./dist/index.js" | ||
@@ -49,6 +50,6 @@ } | ||
"dependencies": { | ||
"@corvu/utils": "~0.2.0" | ||
"@corvu/utils": "~0.3.1" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^7.8.0", | ||
"@typescript-eslint/eslint-plugin": "^7.13.1", | ||
"esbuild-plugin-solid": "^0.6.0", | ||
@@ -58,5 +59,5 @@ "eslint": "^8.57.0", | ||
"eslint-plugin-solid": "^0.14.0", | ||
"prettier": "^3.2.5", | ||
"prettier": "^3.3.2", | ||
"solid-js": "^1.8.17", | ||
"tsup": "^8.0.2", | ||
"tsup": "^8.1.0", | ||
"typedoc": "0.25.13", | ||
@@ -63,0 +64,0 @@ "typescript": "^5.4.5" |
9891
34.88%6
20%171
78.13%+ Added
- Removed
Updated