remotion 3.3.100 → 3.3.102
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.
package/dist/cjs/series/index.js
CHANGED
|
@@ -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)({
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.3.
|
|
1
|
+
export declare const VERSION = "3.3.102";
|
package/dist/cjs/version.js
CHANGED
|
@@ -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
|
-
|
|
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 (
|
|
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
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -58,7 +58,7 @@ function truthy(value) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
// Automatically generated on publish
|
|
61
|
-
const VERSION = '3.3.
|
|
61
|
+
const VERSION = '3.3.102';
|
|
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({
|
|
@@ -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
|
-
|
|
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
|
|
3965
|
+
return jsx(OffthreadVideoForRendering, { ...otherProps });
|
|
3964
3966
|
}
|
|
3965
3967
|
return (jsx(VideoForDevelopment, { onDuration: onDuration, onlyWarnForMediaSeekingError: true, ...otherProps }));
|
|
3966
3968
|
};
|
package/dist/esm/version.mjs
CHANGED