remotion 4.1.0-alpha2 → 4.1.0-alpha4

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.
@@ -1 +1 @@
1
- export declare const VERSION = "4.1.0-alpha2";
1
+ export declare const VERSION = "4.1.0-alpha4";
@@ -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 = '4.1.0-alpha2';
5
+ exports.VERSION = '4.1.0-alpha4';
@@ -58,7 +58,7 @@ function truthy(value) {
58
58
  }
59
59
 
60
60
  // Automatically generated on publish
61
- const VERSION = '4.1.0-alpha2';
61
+ const VERSION = '4.1.0-alpha4';
62
62
 
63
63
  const checkMultipleRemotionVersions = () => {
64
64
  if (typeof globalThis === 'undefined') {
@@ -3708,7 +3708,7 @@ const Series = ({ children }) => {
3708
3708
  throw new TypeError(`A <Series.Sequence /> component (${debugInfo}) was detected to not have any children. Delete it to fix this error.`);
3709
3709
  }
3710
3710
  const durationInFramesProp = castedChild.props.durationInFrames;
3711
- const { durationInFrames, children: _children, ...passedProps } = castedChild.props;
3711
+ const { durationInFrames, children: _children, from, ...passedProps } = castedChild.props; // `from` is not accepted and must be filtered out if used in JS
3712
3712
  if (i !== flattenedChildren.length - 1 ||
3713
3713
  durationInFramesProp !== Infinity) {
3714
3714
  validateDurationInFrames({
@@ -4328,7 +4328,9 @@ const VideoForDevelopment = forwardRef(VideoForDevelopmentRefForwardingFunction)
4328
4328
  * @see [Documentation](https://www.remotion.dev/docs/offthreadvideo)
4329
4329
  */
4330
4330
  const OffthreadVideo = (props) => {
4331
- const { startFrom, endAt, imageFormat, ...otherProps } = props;
4331
+ // Should only destruct `startFrom` and `endAt` from props,
4332
+ // rest gets drilled down
4333
+ const { startFrom, endAt, ...otherProps } = props;
4332
4334
  const environment = useRemotionEnvironment();
4333
4335
  const onDuration = useCallback(() => undefined, []);
4334
4336
  if (typeof props.src !== 'string') {
@@ -4345,7 +4347,7 @@ const OffthreadVideo = (props) => {
4345
4347
  }
4346
4348
  validateMediaProps(props, 'Video');
4347
4349
  if (environment === 'rendering') {
4348
- return (jsx(OffthreadVideoForRendering, { imageFormat: imageFormat, ...otherProps }));
4350
+ return jsx(OffthreadVideoForRendering, { ...otherProps });
4349
4351
  }
4350
4352
  return (jsx(VideoForDevelopment, { onDuration: onDuration, onlyWarnForMediaSeekingError: true, ...otherProps }));
4351
4353
  };
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.1.0-alpha2';
2
+ const VERSION = '4.1.0-alpha4';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.1.0-alpha2",
3
+ "version": "4.1.0-alpha4",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",