react-awesome-reveal 4.2.11 → 4.2.13
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/animations/attention_seekers/bounce.d.ts +1 -1
- package/dist/animations/attention_seekers/flash.d.ts +1 -1
- package/dist/animations/attention_seekers/headShake.d.ts +1 -1
- package/dist/animations/attention_seekers/heartBeat.d.ts +1 -1
- package/dist/animations/attention_seekers/jello.d.ts +1 -1
- package/dist/animations/attention_seekers/pulse.d.ts +1 -1
- package/dist/animations/attention_seekers/rubberBand.d.ts +1 -1
- package/dist/animations/attention_seekers/shake.d.ts +1 -1
- package/dist/animations/attention_seekers/shakeX.d.ts +1 -1
- package/dist/animations/attention_seekers/shakeY.d.ts +1 -1
- package/dist/animations/attention_seekers/swing.d.ts +1 -1
- package/dist/animations/attention_seekers/tada.d.ts +1 -1
- package/dist/animations/attention_seekers/wobble.d.ts +1 -1
- package/dist/animations/bouncing_entrances/bounceIn.d.ts +1 -1
- package/dist/animations/bouncing_entrances/bounceInDown.d.ts +1 -1
- package/dist/animations/bouncing_entrances/bounceInLeft.d.ts +1 -1
- package/dist/animations/bouncing_entrances/bounceInRight.d.ts +1 -1
- package/dist/animations/bouncing_entrances/bounceInUp.d.ts +1 -1
- package/dist/animations/bouncing_exits/bounceOut.d.ts +1 -1
- package/dist/animations/bouncing_exits/bounceOutDown.d.ts +1 -1
- package/dist/animations/bouncing_exits/bounceOutLeft.d.ts +1 -1
- package/dist/animations/bouncing_exits/bounceOutRight.d.ts +1 -1
- package/dist/animations/bouncing_exits/bounceOutUp.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeIn.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInBottomLeft.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInBottomRight.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInDown.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInDownBig.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInLeft.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInLeftBig.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInRight.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInRightBig.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInTopLeft.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInTopRight.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInUp.d.ts +1 -1
- package/dist/animations/fading_entrances/fadeInUpBig.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOut.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutBottomLeft.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutBottomRight.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutDown.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutDownBig.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutLeft.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutLeftBig.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutRight.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutRightBig.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutTopLeft.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutTopRight.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutUp.d.ts +1 -1
- package/dist/animations/fading_exits/fadeOutUpBig.d.ts +1 -1
- package/dist/animations/flippers/flip.d.ts +1 -1
- package/dist/animations/flippers/flipInX.d.ts +1 -1
- package/dist/animations/flippers/flipInY.d.ts +1 -1
- package/dist/animations/flippers/flipOutX.d.ts +1 -1
- package/dist/animations/flippers/flipOutY.d.ts +1 -1
- package/dist/animations/rotating_entrances/rotateIn.d.ts +1 -1
- package/dist/animations/rotating_entrances/rotateInDownLeft.d.ts +1 -1
- package/dist/animations/rotating_entrances/rotateInDownRight.d.ts +1 -1
- package/dist/animations/rotating_entrances/rotateInUpLeft.d.ts +1 -1
- package/dist/animations/rotating_entrances/rotateInUpRight.d.ts +1 -1
- package/dist/animations/rotating_exits/rotateOut.d.ts +1 -1
- package/dist/animations/rotating_exits/rotateOutDownLeft.d.ts +1 -1
- package/dist/animations/rotating_exits/rotateOutDownRight.d.ts +1 -1
- package/dist/animations/rotating_exits/rotateOutUpLeft.d.ts +1 -1
- package/dist/animations/rotating_exits/rotateOutUpRight.d.ts +1 -1
- package/dist/animations/sliding_entrances/slideInDown.d.ts +1 -1
- package/dist/animations/sliding_entrances/slideInLeft.d.ts +1 -1
- package/dist/animations/sliding_entrances/slideInRight.d.ts +1 -1
- package/dist/animations/sliding_entrances/slideInUp.d.ts +1 -1
- package/dist/animations/sliding_exits/slideOutDown.d.ts +1 -1
- package/dist/animations/sliding_exits/slideOutLeft.d.ts +1 -1
- package/dist/animations/sliding_exits/slideOutRight.d.ts +1 -1
- package/dist/animations/sliding_exits/slideOutUp.d.ts +1 -1
- package/dist/animations/specials/hinge.d.ts +1 -1
- package/dist/animations/specials/jackInTheBox.d.ts +1 -1
- package/dist/animations/specials/rollIn.d.ts +1 -1
- package/dist/animations/specials/rollOut.d.ts +1 -1
- package/dist/animations/zooming_entrances/zoomIn.d.ts +1 -1
- package/dist/animations/zooming_entrances/zoomInDown.d.ts +1 -1
- package/dist/animations/zooming_entrances/zoomInLeft.d.ts +1 -1
- package/dist/animations/zooming_entrances/zoomInRight.d.ts +1 -1
- package/dist/animations/zooming_entrances/zoomInUp.d.ts +1 -1
- package/dist/animations/zooming_exits/zoomOut.d.ts +1 -1
- package/dist/animations/zooming_exits/zoomOutDown.d.ts +1 -1
- package/dist/animations/zooming_exits/zoomOutLeft.d.ts +1 -1
- package/dist/animations/zooming_exits/zoomOutRight.d.ts +1 -1
- package/dist/animations/zooming_exits/zoomOutUp.d.ts +1 -1
- package/dist/index.cjs +2 -4
- package/dist/index.js +2 -4
- package/dist/utils/animations.d.ts +1 -2
- package/package.json +7 -7
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,4 @@
|
|
|
1
|
-
import { Keyframes } from '@emotion/
|
|
2
|
-
import { SerializedStyles } from '@emotion/react';
|
|
1
|
+
import { Keyframes, SerializedStyles } from '@emotion/react';
|
|
3
2
|
export declare function getAnimationCss({ duration, delay, timingFunction, keyframes, iterationCount, }: {
|
|
4
3
|
duration?: number | undefined;
|
|
5
4
|
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.13",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -61,18 +61,18 @@
|
|
|
61
61
|
"react": ">=16.14.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@emotion/react": "^11.
|
|
65
|
-
"@emotion/serialize": "^1.
|
|
66
|
-
"@types/react": "^18.3.
|
|
64
|
+
"@emotion/react": "^11.13.0",
|
|
65
|
+
"@emotion/serialize": "^1.3.0",
|
|
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.
|
|
71
|
+
"vite": "^5.3.4",
|
|
72
72
|
"vite-plugin-dts": "3.9.1"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"react-intersection-observer": "^9.
|
|
75
|
+
"react-intersection-observer": "^9.13.0",
|
|
76
76
|
"react-is": "^18.3.1"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|