@remotion/gsap 4.0.535 → 4.0.536

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.
@@ -337,6 +337,8 @@ var useGsapTimeline = (build, { dependencies = EMPTY_DEPENDENCIES } = {}) => {
337
337
  throw new Error(`useGsapTimeline builders created ${strays.join("; ")}. Animations that are not children of the provided timeline advance on the wall clock instead of the Remotion frame. Attach them to the timeline, or use a plain zero-duration gsap.set() for static state.`);
338
338
  }
339
339
  state.controls.pause();
340
+ });
341
+ if (state.timeline && state.controls) {
340
342
  const ownedTimeline = state.timeline;
341
343
  const startTimeOnOwnedClock = (child) => {
342
344
  let time = child.startTime();
@@ -357,7 +359,7 @@ var useGsapTimeline = (build, { dependencies = EMPTY_DEPENDENCIES } = {}) => {
357
359
  state.controls.renderAt(startTime);
358
360
  }
359
361
  state.controls.renderAt(frameToSeconds(frameRef.current, fpsRef.current));
360
- });
362
+ }
361
363
  controlsRef.current = state.controls;
362
364
  } catch (error) {
363
365
  state.controls?.restoreForContextRevert();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/gsap",
3
- "version": "4.0.535",
3
+ "version": "4.0.536",
4
4
  "description": "Use GSAP timelines in Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "url": "https://github.com/remotion-dev/remotion/issues"
25
25
  },
26
26
  "dependencies": {
27
- "remotion": "4.0.535"
27
+ "remotion": "4.0.536"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "gsap": ">=3.12.0 <4",
@@ -44,7 +44,7 @@
44
44
  "react-dom": "19.2.3",
45
45
  "@types/react": "19.2.7",
46
46
  "@types/react-dom": "19.2.3",
47
- "@remotion/eslint-config-internal": "4.0.535",
47
+ "@remotion/eslint-config-internal": "4.0.536",
48
48
  "@happy-dom/global-registrator": "14.5.1",
49
49
  "eslint": "9.19.0",
50
50
  "gsap": "3.15.0",