react-awesome-reveal 4.2.10 → 4.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -4
- package/dist/index.js +2 -4
- package/dist/utils/animations.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -541,15 +541,13 @@ const Reveal = (props) => {
|
|
|
541
541
|
}),
|
|
542
542
|
[duration, keyframes]
|
|
543
543
|
);
|
|
544
|
-
if (isNullable(children))
|
|
545
|
-
return null;
|
|
544
|
+
if (isNullable(children)) return null;
|
|
546
545
|
if (isStringLike(children))
|
|
547
546
|
return /* @__PURE__ */ jsxRuntime.jsx(TextReveal, { ...props, animationStyles, children: String(children) });
|
|
548
547
|
if (reactIs.isFragment(children))
|
|
549
548
|
return /* @__PURE__ */ jsxRuntime.jsx(FragmentReveal, { ...props, animationStyles });
|
|
550
549
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: react$1.Children.map(children, (node, index) => {
|
|
551
|
-
if (!react$1.isValidElement(node))
|
|
552
|
-
return null;
|
|
550
|
+
if (!react$1.isValidElement(node)) return null;
|
|
553
551
|
const nodeDelay = delay + (cascade ? index * duration * damping : 0);
|
|
554
552
|
switch (node.type) {
|
|
555
553
|
case "ol":
|
package/dist/index.js
CHANGED
|
@@ -537,15 +537,13 @@ const Reveal = (props) => {
|
|
|
537
537
|
}),
|
|
538
538
|
[duration, keyframes]
|
|
539
539
|
);
|
|
540
|
-
if (isNullable(children))
|
|
541
|
-
return null;
|
|
540
|
+
if (isNullable(children)) return null;
|
|
542
541
|
if (isStringLike(children))
|
|
543
542
|
return /* @__PURE__ */ jsx(TextReveal, { ...props, animationStyles, children: String(children) });
|
|
544
543
|
if (isFragment(children))
|
|
545
544
|
return /* @__PURE__ */ jsx(FragmentReveal, { ...props, animationStyles });
|
|
546
545
|
return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (node, index) => {
|
|
547
|
-
if (!isValidElement(node))
|
|
548
|
-
return null;
|
|
546
|
+
if (!isValidElement(node)) return null;
|
|
549
547
|
const nodeDelay = delay + (cascade ? index * duration * damping : 0);
|
|
550
548
|
switch (node.type) {
|
|
551
549
|
case "ol":
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SerializedStyles } from '@emotion/react';
|
|
2
1
|
import { Keyframes } from '@emotion/serialize';
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
3
|
export declare function getAnimationCss({ duration, delay, timingFunction, keyframes, iterationCount, }: {
|
|
4
4
|
duration?: number | undefined;
|
|
5
5
|
delay?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-awesome-reveal",
|
|
3
3
|
"description": "React components to add reveal animations using the Intersection Observer API and CSS Animations.",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.12",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@emotion/react": "^11.11.4",
|
|
65
65
|
"@emotion/serialize": "^1.1.4",
|
|
66
|
-
"@types/react": "^18.3.
|
|
66
|
+
"@types/react": "^18.3.3",
|
|
67
67
|
"@types/react-dom": "^18.3.0",
|
|
68
68
|
"@types/react-is": "^18.3.0",
|
|
69
|
-
"@vitejs/plugin-react": "^4.
|
|
69
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
70
70
|
"react": "^18.3.1",
|
|
71
|
-
"vite": "^5.
|
|
72
|
-
"vite-plugin-dts": "3.9.
|
|
71
|
+
"vite": "^5.3.1",
|
|
72
|
+
"vite-plugin-dts": "3.9.1"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"react-intersection-observer": "^9.10.
|
|
75
|
+
"react-intersection-observer": "^9.10.3",
|
|
76
76
|
"react-is": "^18.3.1"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|