remotion 3.3.101 → 3.3.103

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.
@@ -38,7 +38,7 @@ const Series = ({ children }) => {
38
38
  throw new TypeError(`A <Series.Sequence /> component (${debugInfo}) was detected to not have any children. Delete it to fix this error.`);
39
39
  }
40
40
  const durationInFramesProp = castedChild.props.durationInFrames;
41
- const { durationInFrames, children: _children, ...passedProps } = castedChild.props;
41
+ const { durationInFrames, children: _children, from, ...passedProps } = castedChild.props; // `from` is not accepted and must be filtered out if used in JS
42
42
  if (i !== flattenedChildren.length - 1 ||
43
43
  durationInFramesProp !== Infinity) {
44
44
  (0, validate_duration_in_frames_js_1.validateDurationInFrames)({
@@ -52,7 +52,7 @@ function spring({ frame: passedFrame, fps, config = {}, from = 0, to = 1, durati
52
52
  };
53
53
  const frame = (reverse
54
54
  ? (passedDurationInFrames !== null && passedDurationInFrames !== void 0 ? passedDurationInFrames : naturalDurationGetter.get()) - passedFrame
55
- : passedFrame) - delay;
55
+ : passedFrame) - (reverse ? -delay : delay);
56
56
  const spr = (0, spring_utils_js_1.springCalculation)({
57
57
  fps,
58
58
  frame: passedDurationInFrames === undefined
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.101";
1
+ export declare const VERSION = "3.3.103";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '3.3.101';
5
+ exports.VERSION = '3.3.103';
@@ -15,7 +15,9 @@ const VideoForDevelopment_js_1 = require("./VideoForDevelopment.js");
15
15
  * @see [Documentation](https://www.remotion.dev/docs/offthreadvideo)
16
16
  */
17
17
  const OffthreadVideo = (props) => {
18
- const { startFrom, endAt, imageFormat, ...otherProps } = props;
18
+ // Should only destruct `startFrom` and `endAt` from props,
19
+ // rest gets drilled down
20
+ const { startFrom, endAt, ...otherProps } = props;
19
21
  const environment = (0, get_environment_js_1.useRemotionEnvironment)();
20
22
  const onDuration = (0, react_1.useCallback)(() => undefined, []);
21
23
  if (typeof props.src !== 'string') {
@@ -30,7 +32,7 @@ const OffthreadVideo = (props) => {
30
32
  (0, validate_media_props_js_1.validateMediaProps)(props, 'Video');
31
33
  (0, validate_offthreadvideo_image_format_js_1.validateOffthreadVideoImageFormat)(props.imageFormat);
32
34
  if (environment === 'rendering') {
33
- return ((0, jsx_runtime_1.jsx)(OffthreadVideoForRendering_js_1.OffthreadVideoForRendering, { imageFormat: imageFormat, ...otherProps }));
35
+ return (0, jsx_runtime_1.jsx)(OffthreadVideoForRendering_js_1.OffthreadVideoForRendering, { ...otherProps });
34
36
  }
35
37
  return ((0, jsx_runtime_1.jsx)(VideoForDevelopment_js_1.VideoForDevelopment, { onDuration: onDuration, onlyWarnForMediaSeekingError: true, ...otherProps }));
36
38
  };
@@ -58,7 +58,7 @@ function truthy(value) {
58
58
  }
59
59
 
60
60
  // Automatically generated on publish
61
- const VERSION = '3.3.101';
61
+ const VERSION = '3.3.103';
62
62
 
63
63
  const checkMultipleRemotionVersions = () => {
64
64
  if (typeof globalThis === 'undefined') {
@@ -3369,7 +3369,7 @@ const Series = ({ children }) => {
3369
3369
  throw new TypeError(`A <Series.Sequence /> component (${debugInfo}) was detected to not have any children. Delete it to fix this error.`);
3370
3370
  }
3371
3371
  const durationInFramesProp = castedChild.props.durationInFrames;
3372
- const { durationInFrames, children: _children, ...passedProps } = castedChild.props;
3372
+ const { durationInFrames, children: _children, from, ...passedProps } = castedChild.props; // `from` is not accepted and must be filtered out if used in JS
3373
3373
  if (i !== flattenedChildren.length - 1 ||
3374
3374
  durationInFramesProp !== Infinity) {
3375
3375
  validateDurationInFrames({
@@ -3625,7 +3625,7 @@ function spring({ frame: passedFrame, fps, config = {}, from = 0, to = 1, durati
3625
3625
  };
3626
3626
  const frame = (reverse
3627
3627
  ? (passedDurationInFrames !== null && passedDurationInFrames !== void 0 ? passedDurationInFrames : naturalDurationGetter.get()) - passedFrame
3628
- : passedFrame) - delay;
3628
+ : passedFrame) - (reverse ? -delay : delay);
3629
3629
  const spr = springCalculation({
3630
3630
  fps,
3631
3631
  frame: passedDurationInFrames === undefined
@@ -3945,7 +3945,9 @@ const VideoForDevelopment = forwardRef(VideoForDevelopmentRefForwardingFunction)
3945
3945
  * @see [Documentation](https://www.remotion.dev/docs/offthreadvideo)
3946
3946
  */
3947
3947
  const OffthreadVideo = (props) => {
3948
- const { startFrom, endAt, imageFormat, ...otherProps } = props;
3948
+ // Should only destruct `startFrom` and `endAt` from props,
3949
+ // rest gets drilled down
3950
+ const { startFrom, endAt, ...otherProps } = props;
3949
3951
  const environment = useRemotionEnvironment();
3950
3952
  const onDuration = useCallback(() => undefined, []);
3951
3953
  if (typeof props.src !== 'string') {
@@ -3960,7 +3962,7 @@ const OffthreadVideo = (props) => {
3960
3962
  validateMediaProps(props, 'Video');
3961
3963
  validateOffthreadVideoImageFormat(props.imageFormat);
3962
3964
  if (environment === 'rendering') {
3963
- return (jsx(OffthreadVideoForRendering, { imageFormat: imageFormat, ...otherProps }));
3965
+ return jsx(OffthreadVideoForRendering, { ...otherProps });
3964
3966
  }
3965
3967
  return (jsx(VideoForDevelopment, { onDuration: onDuration, onlyWarnForMediaSeekingError: true, ...otherProps }));
3966
3968
  };
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '3.3.101';
2
+ const VERSION = '3.3.103';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.3.101",
3
+ "version": "3.3.103",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",