@remotion/lottie 4.0.234 → 4.0.236

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.
@@ -21,10 +21,10 @@ const Lottie = ({ animationData, className, direction, loop, playbackRate, style
21
21
  }
22
22
  (0, validate_playbackrate_1.validatePlaybackRate)(playbackRate);
23
23
  (0, validate_loop_1.validateLoop)(loop);
24
- const animationRef = (0, react_1.useRef)();
24
+ const animationRef = (0, react_1.useRef)(null);
25
25
  const currentFrameRef = (0, react_1.useRef)(null);
26
26
  const containerRef = (0, react_1.useRef)(null);
27
- const onAnimationLoadedRef = (0, react_1.useRef)();
27
+ const onAnimationLoadedRef = (0, react_1.useRef)(onAnimationLoaded);
28
28
  onAnimationLoadedRef.current = onAnimationLoaded;
29
29
  const [handle] = (0, react_1.useState)(() => (0, remotion_1.delayRender)('Waiting for Lottie animation to load'));
30
30
  const frame = (0, remotion_1.useCurrentFrame)();
@@ -79,10 +79,10 @@ var Lottie = ({
79
79
  }
80
80
  validatePlaybackRate(playbackRate);
81
81
  validateLoop(loop);
82
- const animationRef = useRef();
82
+ const animationRef = useRef(null);
83
83
  const currentFrameRef = useRef(null);
84
84
  const containerRef = useRef(null);
85
- const onAnimationLoadedRef = useRef();
85
+ const onAnimationLoadedRef = useRef(onAnimationLoaded);
86
86
  onAnimationLoadedRef.current = onAnimationLoaded;
87
87
  const [handle] = useState(() => delayRender("Waiting for Lottie animation to load"));
88
88
  const frame = useCurrentFrame();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lottie"
4
4
  },
5
5
  "name": "@remotion/lottie",
6
- "version": "4.0.234",
6
+ "version": "4.0.236",
7
7
  "description": "Include Lottie animations in Remotion",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
- "remotion": "4.0.234"
22
+ "remotion": "4.0.236"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "lottie-web": "^5",
@@ -36,10 +36,10 @@
36
36
  }
37
37
  },
38
38
  "devDependencies": {
39
- "react": "18.3.1",
40
- "react-dom": "18.3.1",
39
+ "react": "19.0.0",
40
+ "react-dom": "19.0.0",
41
41
  "eslint": "9.14.0",
42
- "@remotion/eslint-config-internal": "4.0.234"
42
+ "@remotion/eslint-config-internal": "4.0.236"
43
43
  },
44
44
  "keywords": [
45
45
  "remotion",