react-awesome-reveal
Advanced tools
Comparing version 4.2.11 to 4.2.12
@@ -540,4 +540,3 @@ import { jsx, Fragment } from '@emotion/react/jsx-runtime'; | ||
); | ||
if (isNullable(children)) | ||
return null; | ||
if (isNullable(children)) return null; | ||
if (isStringLike(children)) | ||
@@ -548,4 +547,3 @@ return /* @__PURE__ */ jsx(TextReveal, { ...props, animationStyles, children: String(children) }); | ||
return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (node, index) => { | ||
if (!isValidElement(node)) | ||
return null; | ||
if (!isValidElement(node)) return null; | ||
const nodeDelay = delay + (cascade ? index * duration * damping : 0); | ||
@@ -552,0 +550,0 @@ switch (node.type) { |
{ | ||
"name": "react-awesome-reveal", | ||
"description": "React components to add reveal animations using the Intersection Observer API and CSS Animations.", | ||
"version": "4.2.11", | ||
"version": "4.2.12", | ||
"license": "MIT", | ||
@@ -66,12 +66,12 @@ "type": "module", | ||
"@emotion/serialize": "^1.1.4", | ||
"@types/react": "^18.3.2", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-is": "^18.3.0", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"react": "^18.3.1", | ||
"vite": "^5.2.11", | ||
"vite": "^5.3.1", | ||
"vite-plugin-dts": "3.9.1" | ||
}, | ||
"dependencies": { | ||
"react-intersection-observer": "^9.10.2", | ||
"react-intersection-observer": "^9.10.3", | ||
"react-is": "^18.3.1" | ||
@@ -78,0 +78,0 @@ }, |
Sorry, the diff of this file is not supported yet
115426
3882
+ Added@babel/generator@7.26.8(transitive)
+ Added@babel/parser@7.26.8(transitive)
+ Added@babel/template@7.26.8(transitive)
+ Added@babel/traverse@7.26.8(transitive)
+ Added@babel/types@7.26.8(transitive)
- Removed@babel/generator@7.26.5(transitive)
- Removed@babel/parser@7.26.7(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.7(transitive)
- Removed@babel/types@7.26.7(transitive)