@remotion/transitions 4.0.152 → 4.0.153

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.
@@ -125,21 +125,21 @@ const TransitionSeriesChildren = ({ children, }) => {
125
125
  const UppercasePrevPresentation = prevPresentation.component;
126
126
  return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
127
127
  // eslint-disable-next-line react/no-array-index-key
128
- , { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_d = nextPresentation.props) !== null && _d !== void 0 ? _d : {}, presentationDirection: "exiting", presentationProgress: nextProgress, children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_e = prevPresentation.props) !== null && _e !== void 0 ? _e : {}, presentationDirection: "entering", presentationProgress: prevProgress, children: child }) }) }, i));
128
+ , { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_d = nextPresentation.props) !== null && _d !== void 0 ? _d : {}, presentationDirection: "exiting", presentationProgress: nextProgress, presentationDurationInFrames: next.props.timing.getDurationInFrames({ fps }), children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_e = prevPresentation.props) !== null && _e !== void 0 ? _e : {}, presentationDirection: "entering", presentationProgress: prevProgress, presentationDurationInFrames: prev.props.timing.getDurationInFrames({ fps }), children: child }) }) }, i));
129
129
  }
130
130
  if (prevProgress !== null && prev) {
131
131
  const prevPresentation = (_f = prev.props.presentation) !== null && _f !== void 0 ? _f : (0, slide_js_1.slide)();
132
132
  const UppercasePrevPresentation = prevPresentation.component;
133
133
  return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
134
134
  // eslint-disable-next-line react/no-array-index-key
135
- , { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_g = prevPresentation.props) !== null && _g !== void 0 ? _g : {}, presentationDirection: "entering", presentationProgress: prevProgress, children: child }) }, i));
135
+ , { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercasePrevPresentation, { passedProps: (_g = prevPresentation.props) !== null && _g !== void 0 ? _g : {}, presentationDirection: "entering", presentationProgress: prevProgress, presentationDurationInFrames: prev.props.timing.getDurationInFrames({ fps }), children: child }) }, i));
136
136
  }
137
137
  if (nextProgress !== null && next) {
138
138
  const nextPresentation = (_h = next.props.presentation) !== null && _h !== void 0 ? _h : (0, slide_js_1.slide)();
139
139
  const UppercaseNextPresentation = nextPresentation.component;
140
140
  return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
141
141
  // eslint-disable-next-line react/no-array-index-key
142
- , { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_j = nextPresentation.props) !== null && _j !== void 0 ? _j : {}, presentationDirection: "exiting", presentationProgress: nextProgress, children: child }) }, i));
142
+ , { from: Math.floor(actualStartFrame), durationInFrames: durationInFramesProp, ...passedProps, name: passedProps.name || '<TS.Sequence>', children: (0, jsx_runtime_1.jsx)(UppercaseNextPresentation, { passedProps: (_j = nextPresentation.props) !== null && _j !== void 0 ? _j : {}, presentationDirection: "exiting", presentationProgress: nextProgress, presentationDurationInFrames: next.props.timing.getDurationInFrames({ fps }), children: child }) }, i));
143
143
  }
144
144
  return ((0, jsx_runtime_1.jsx)(remotion_1.Sequence
145
145
  // eslint-disable-next-line react/no-array-index-key
@@ -257,10 +257,12 @@ var TransitionSeriesChildren = ({
257
257
  passedProps: nextPresentation.props ?? {},
258
258
  presentationDirection: "exiting",
259
259
  presentationProgress: nextProgress,
260
+ presentationDurationInFrames: next.props.timing.getDurationInFrames({ fps }),
260
261
  children: jsx2(UppercasePrevPresentation, {
261
262
  passedProps: prevPresentation.props ?? {},
262
263
  presentationDirection: "entering",
263
264
  presentationProgress: prevProgress,
265
+ presentationDurationInFrames: prev.props.timing.getDurationInFrames({ fps }),
264
266
  children: child
265
267
  })
266
268
  })
@@ -278,6 +280,7 @@ var TransitionSeriesChildren = ({
278
280
  passedProps: prevPresentation.props ?? {},
279
281
  presentationDirection: "entering",
280
282
  presentationProgress: prevProgress,
283
+ presentationDurationInFrames: prev.props.timing.getDurationInFrames({ fps }),
281
284
  children: child
282
285
  })
283
286
  }, i);
@@ -294,6 +297,7 @@ var TransitionSeriesChildren = ({
294
297
  passedProps: nextPresentation.props ?? {},
295
298
  presentationDirection: "exiting",
296
299
  presentationProgress: nextProgress,
300
+ presentationDurationInFrames: next.props.timing.getDurationInFrames({ fps }),
297
301
  children: child
298
302
  })
299
303
  }, i);
package/dist/types.d.ts CHANGED
@@ -23,5 +23,6 @@ export type TransitionPresentationComponentProps<PresentationProps extends Recor
23
23
  children: React.ReactNode;
24
24
  presentationDirection: PresentationDirection;
25
25
  passedProps: PresentationProps;
26
+ presentationDurationInFrames: number;
26
27
  };
27
28
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/transitions",
3
- "version": "4.0.152",
3
+ "version": "4.0.153",
4
4
  "description": "Transition presets for Remotion",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.mjs",
@@ -16,9 +16,9 @@
16
16
  "url": "https://github.com/remotion-dev/remotion/issues"
17
17
  },
18
18
  "dependencies": {
19
- "@remotion/shapes": "4.0.152",
20
- "remotion": "4.0.152",
21
- "@remotion/paths": "4.0.152"
19
+ "remotion": "4.0.153",
20
+ "@remotion/paths": "4.0.153",
21
+ "@remotion/shapes": "4.0.153"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@jonny/eslint-config": "3.0.281",
@@ -32,8 +32,8 @@
32
32
  "@types/react-dom": "18.3.0",
33
33
  "@types/bun": "1.0.12",
34
34
  "@vitejs/plugin-react": "^2.0.0",
35
- "@remotion/test-utils": "4.0.152",
36
- "remotion": "4.0.152"
35
+ "@remotion/test-utils": "4.0.153",
36
+ "remotion": "4.0.153"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=16.8.0",