remotion 4.0.244 → 4.0.245
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/LICENSE.md +1 -1
- package/dist/cjs/AbsoluteFill.d.ts +0 -4
- package/dist/cjs/AbsoluteFill.js +3 -3
- package/dist/cjs/Composition.d.ts +0 -4
- package/dist/cjs/Composition.js +2 -2
- package/dist/cjs/Folder.d.ts +0 -4
- package/dist/cjs/Folder.js +2 -2
- package/dist/cjs/IFrame.d.ts +0 -4
- package/dist/cjs/IFrame.js +2 -2
- package/dist/cjs/Img.d.ts +0 -4
- package/dist/cjs/Img.js +2 -2
- package/dist/cjs/Sequence.d.ts +0 -4
- package/dist/cjs/Sequence.js +1 -1
- package/dist/cjs/Still.d.ts +0 -4
- package/dist/cjs/Still.js +1 -1
- package/dist/cjs/audio/Audio.d.ts +0 -4
- package/dist/cjs/audio/Audio.js +2 -2
- package/dist/cjs/cancel-render.d.ts +0 -4
- package/dist/cjs/cancel-render.js +3 -3
- package/dist/cjs/delay-render.d.ts +0 -11
- package/dist/cjs/delay-render.js +6 -9
- package/dist/cjs/freeze.d.ts +0 -4
- package/dist/cjs/freeze.js +3 -3
- package/dist/cjs/get-remotion-environment.d.ts +0 -4
- package/dist/cjs/get-remotion-environment.js +2 -2
- package/dist/cjs/get-static-files.d.ts +0 -4
- package/dist/cjs/get-static-files.js +3 -3
- package/dist/cjs/interpolate-colors.d.ts +0 -4
- package/dist/cjs/interpolate-colors.js +7 -5
- package/dist/cjs/interpolate.d.ts +0 -11
- package/dist/cjs/interpolate.js +3 -10
- package/dist/cjs/loop/index.d.ts +0 -4
- package/dist/cjs/loop/index.js +2 -2
- package/dist/cjs/prefetch.d.ts +0 -4
- package/dist/cjs/prefetch.js +2 -2
- package/dist/cjs/random.d.ts +0 -4
- package/dist/cjs/random.js +2 -2
- package/dist/cjs/register-root.d.ts +0 -4
- package/dist/cjs/register-root.js +2 -2
- package/dist/cjs/spring/index.d.ts +0 -17
- package/dist/cjs/spring/index.js +1 -14
- package/dist/cjs/spring/measure-spring.d.ts +0 -4
- package/dist/cjs/spring/measure-spring.js +3 -3
- package/dist/cjs/static-file.d.ts +0 -4
- package/dist/cjs/static-file.js +1 -1
- package/dist/cjs/use-current-frame.d.ts +0 -4
- package/dist/cjs/use-current-frame.js +3 -3
- package/dist/cjs/use-current-scale.d.ts +0 -4
- package/dist/cjs/use-current-scale.js +3 -3
- package/dist/cjs/use-video-config.d.ts +0 -5
- package/dist/cjs/use-video-config.js +2 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/OffthreadVideo.d.ts +0 -4
- package/dist/cjs/video/OffthreadVideo.js +1 -1
- package/dist/cjs/video/Video.d.ts +0 -4
- package/dist/cjs/video/Video.js +2 -2
- package/dist/cjs/watch-static-file.d.ts +0 -7
- package/dist/cjs/watch-static-file.js +2 -5
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @description An absolutely positioned <div> element with 100% width, height, and a column flex style
|
|
4
|
-
* @see [Documentation](https://www.remotion.dev/docs/absolute-fill)
|
|
5
|
-
*/
|
|
6
2
|
export declare const AbsoluteFill: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/cjs/AbsoluteFill.js
CHANGED
|
@@ -21,8 +21,8 @@ const AbsoluteFillRefForwarding = (props, ref) => {
|
|
|
21
21
|
}, [style]);
|
|
22
22
|
return (0, jsx_runtime_1.jsx)("div", { ref: ref, style: actualStyle, ...other });
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
* @description
|
|
26
|
-
* @see [Documentation](https://
|
|
24
|
+
/*
|
|
25
|
+
* @description A helper component which renders an absolutely positioned <div> element with full width, height, and flex display suited for content layering.
|
|
26
|
+
* @see [Documentation](https://remotion.dev/docs/absolute-fill)
|
|
27
27
|
*/
|
|
28
28
|
exports.AbsoluteFill = (0, react_1.forwardRef)(AbsoluteFillRefForwarding);
|
|
@@ -51,9 +51,5 @@ export type CompositionProps<Schema extends AnyZodObject, Props extends Record<s
|
|
|
51
51
|
readonly id: string;
|
|
52
52
|
readonly schema?: Schema;
|
|
53
53
|
} & CompositionCalculateMetadataOrExplicit<Schema, Props> & CompProps<Props> & PropsIfHasProps<Schema, Props>;
|
|
54
|
-
/**
|
|
55
|
-
* @description This component is used to register a video to make it renderable and make it show in the sidebar, in dev mode.
|
|
56
|
-
* @see [Documentation](https://www.remotion.dev/docs/composition)
|
|
57
|
-
*/
|
|
58
54
|
export declare const Composition: <Schema extends AnyZodObject, Props extends Record<string, unknown>>({ width, height, fps, durationInFrames, id, defaultProps, schema, ...compProps }: CompositionProps<Schema, Props>) => React.ReactPortal | null;
|
|
59
55
|
export {};
|
package/dist/cjs/Composition.js
CHANGED
|
@@ -26,9 +26,9 @@ const Fallback = () => {
|
|
|
26
26
|
}, []);
|
|
27
27
|
return null;
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
/*
|
|
30
30
|
* @description This component is used to register a video to make it renderable and make it show in the sidebar, in dev mode.
|
|
31
|
-
* @see [Documentation](https://
|
|
31
|
+
* @see [Documentation](https://remotion.dev/docs/composition)
|
|
32
32
|
*/
|
|
33
33
|
const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, schema, ...compProps }) => {
|
|
34
34
|
var _a, _b;
|
package/dist/cjs/Folder.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ type FolderContextType = {
|
|
|
8
8
|
parentName: string | null;
|
|
9
9
|
};
|
|
10
10
|
export declare const FolderContext: import("react").Context<FolderContextType>;
|
|
11
|
-
/**
|
|
12
|
-
* @description By wrapping a <Composition /> inside a <Folder />, you can visually categorize it in your sidebar, should you have many compositions.
|
|
13
|
-
* @see [Documentation](https://www.remotion.dev/docs/folder)
|
|
14
|
-
*/
|
|
15
11
|
export declare const Folder: FC<{
|
|
16
12
|
readonly name: string;
|
|
17
13
|
readonly children: React.ReactNode;
|
package/dist/cjs/Folder.js
CHANGED
|
@@ -10,9 +10,9 @@ exports.FolderContext = (0, react_1.createContext)({
|
|
|
10
10
|
folderName: null,
|
|
11
11
|
parentName: null,
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
/*
|
|
14
14
|
* @description By wrapping a <Composition /> inside a <Folder />, you can visually categorize it in your sidebar, should you have many compositions.
|
|
15
|
-
* @see [Documentation](https://
|
|
15
|
+
* @see [Documentation](https://remotion.dev/docs/folder)
|
|
16
16
|
*/
|
|
17
17
|
const Folder = ({ name, children }) => {
|
|
18
18
|
const parent = (0, react_1.useContext)(exports.FolderContext);
|
package/dist/cjs/IFrame.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @description The <IFrame /> can be used like a regular <iframe> HTML tag.
|
|
4
|
-
* @see [Documentation](https://www.remotion.dev/docs/iframe)
|
|
5
|
-
*/
|
|
6
2
|
export declare const IFrame: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLIFrameElement> & React.IframeHTMLAttributes<HTMLIFrameElement> & {
|
|
7
3
|
readonly delayRenderRetries?: number;
|
|
8
4
|
readonly delayRenderTimeoutInMilliseconds?: number;
|
package/dist/cjs/IFrame.js
CHANGED
|
@@ -25,8 +25,8 @@ const IFrameRefForwarding = ({ onLoad, onError, delayRenderRetries, delayRenderT
|
|
|
25
25
|
}, [handle, onError]);
|
|
26
26
|
return (0, jsx_runtime_1.jsx)("iframe", { ...props, ref: ref, onError: didGetError, onLoad: didLoad });
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
/*
|
|
29
29
|
* @description The <IFrame /> can be used like a regular <iframe> HTML tag.
|
|
30
|
-
* @see [Documentation](https://
|
|
30
|
+
* @see [Documentation](https://remotion.dev/docs/iframe)
|
|
31
31
|
*/
|
|
32
32
|
exports.IFrame = (0, react_1.forwardRef)(IFrameRefForwarding);
|
package/dist/cjs/Img.d.ts
CHANGED
|
@@ -7,8 +7,4 @@ export type ImgProps = Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTML
|
|
|
7
7
|
readonly onImageFrame?: (imgelement: HTMLImageElement) => void;
|
|
8
8
|
readonly src: string;
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
11
|
-
* @description Works just like a regular HTML img tag. When you use the <Img> tag, Remotion will ensure that the image is loaded before rendering the frame.
|
|
12
|
-
* @see [Documentation](https://www.remotion.dev/docs/img)
|
|
13
|
-
*/
|
|
14
10
|
export declare const Img: React.ForwardRefExoticComponent<Omit<ImgProps, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
package/dist/cjs/Img.js
CHANGED
|
@@ -149,8 +149,8 @@ const ImgRefForwarding = ({ onError, maxRetries = 2, src, pauseWhenLoading, dela
|
|
|
149
149
|
// src gets set once we've loaded and decoded the image.
|
|
150
150
|
return (0, jsx_runtime_1.jsx)("img", { ...props, ref: imageRef, onError: didGetError });
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
/*
|
|
153
153
|
* @description Works just like a regular HTML img tag. When you use the <Img> tag, Remotion will ensure that the image is loaded before rendering the frame.
|
|
154
|
-
* @see [Documentation](https://
|
|
154
|
+
* @see [Documentation](https://remotion.dev/docs/img)
|
|
155
155
|
*/
|
|
156
156
|
exports.Img = (0, react_1.forwardRef)(ImgRefForwarding);
|
package/dist/cjs/Sequence.d.ts
CHANGED
|
@@ -36,8 +36,4 @@ export type SequencePropsWithoutDuration = {
|
|
|
36
36
|
export type SequenceProps = {
|
|
37
37
|
readonly durationInFrames?: number;
|
|
38
38
|
} & SequencePropsWithoutDuration;
|
|
39
|
-
/**
|
|
40
|
-
* @description A component that time-shifts its children and wraps them in an absolutely positioned <div>.
|
|
41
|
-
* @see [Documentation](https://www.remotion.dev/docs/sequence)
|
|
42
|
-
*/
|
|
43
39
|
export declare const Sequence: React.ForwardRefExoticComponent<SequenceProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/cjs/Sequence.js
CHANGED
|
@@ -173,7 +173,7 @@ const SequenceRefForwardingFunction = (props, ref) => {
|
|
|
173
173
|
}
|
|
174
174
|
return (0, jsx_runtime_1.jsx)(RegularSequence, { ...props, ref: ref });
|
|
175
175
|
};
|
|
176
|
-
|
|
176
|
+
/*
|
|
177
177
|
* @description A component that time-shifts its children and wraps them in an absolutely positioned <div>.
|
|
178
178
|
* @see [Documentation](https://www.remotion.dev/docs/sequence)
|
|
179
179
|
*/
|
package/dist/cjs/Still.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AnyZodObject } from 'zod';
|
|
3
3
|
import type { StillProps } from './Composition.js';
|
|
4
|
-
/**
|
|
5
|
-
* @description A `<Still />` is a `<Composition />` that is only 1 frame long.
|
|
6
|
-
* @see [Documentation](https://www.remotion.dev/docs/still)
|
|
7
|
-
*/
|
|
8
4
|
export declare const Still: <Schema extends AnyZodObject, Props extends Record<string, unknown>>(props: StillProps<Schema, Props>) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
package/dist/cjs/Still.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Still = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const Composition_js_1 = require("./Composition.js");
|
|
9
|
-
|
|
9
|
+
/*
|
|
10
10
|
* @description A `<Still />` is a `<Composition />` that is only 1 frame long.
|
|
11
11
|
* @see [Documentation](https://www.remotion.dev/docs/still)
|
|
12
12
|
*/
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RemotionMainAudioProps } from './props.js';
|
|
3
|
-
/**
|
|
4
|
-
* @description With this component, you can add audio to your video. All audio formats which are supported by Chromium are supported by the component.
|
|
5
|
-
* @see [Documentation](https://www.remotion.dev/docs/audio)
|
|
6
|
-
*/
|
|
7
3
|
export declare const Audio: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "nonce" | "onEnded" | "onResize" | "onResizeCapture" | "autoPlay" | "controls"> & {
|
|
8
4
|
name?: string;
|
|
9
5
|
volume?: import("../volume-prop.js").VolumeProp;
|
package/dist/cjs/audio/Audio.js
CHANGED
|
@@ -75,9 +75,9 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
75
75
|
// Proposal: Make this default to true in v5
|
|
76
76
|
pauseWhenBuffering: pauseWhenBuffering !== null && pauseWhenBuffering !== void 0 ? pauseWhenBuffering : false, _remotionInternalNeedsDurationCalculation: Boolean(loop), showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : true }));
|
|
77
77
|
};
|
|
78
|
-
|
|
78
|
+
/*
|
|
79
79
|
* @description With this component, you can add audio to your video. All audio formats which are supported by Chromium are supported by the component.
|
|
80
|
-
* @see [Documentation](https://
|
|
80
|
+
* @see [Documentation](https://remotion.dev/docs/audio)
|
|
81
81
|
*/
|
|
82
82
|
exports.Audio = (0, react_1.forwardRef)(AudioRefForwardingFunction);
|
|
83
83
|
(0, enable_sequence_stack_traces_js_1.addSequenceStackTraces)(exports.Audio);
|
|
@@ -29,9 +29,9 @@ const isErrorLike = (err) => {
|
|
|
29
29
|
}
|
|
30
30
|
return true;
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
* @description When you invoke this function, Remotion will stop rendering all the frames without any retries
|
|
34
|
-
* @see [Documentation](https://
|
|
32
|
+
/*
|
|
33
|
+
* @description When you invoke this function, Remotion will stop rendering all the frames without any retries.
|
|
34
|
+
* @see [Documentation](https://remotion.dev/docs/cancel-render)
|
|
35
35
|
*/
|
|
36
36
|
function cancelRender(err) {
|
|
37
37
|
let error;
|
|
@@ -5,16 +5,5 @@ export type DelayRenderOptions = {
|
|
|
5
5
|
timeoutInMilliseconds?: number;
|
|
6
6
|
retries?: number;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
9
|
-
* @description Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
10
|
-
* @param label _optional_ A label to identify the call in case it does time out.
|
|
11
|
-
* @returns {number} An identifier to be passed to continueRender().
|
|
12
|
-
* @see [Documentation](https://www.remotion.dev/docs/delay-render)
|
|
13
|
-
*/
|
|
14
8
|
export declare const delayRender: (label?: string, options?: DelayRenderOptions) => number;
|
|
15
|
-
/**
|
|
16
|
-
* @description Unblock a render that has been blocked by delayRender()
|
|
17
|
-
* @param handle The return value of delayRender().
|
|
18
|
-
* @see [Documentation](https://www.remotion.dev/docs/continue-render)
|
|
19
|
-
*/
|
|
20
9
|
export declare const continueRender: (handle: number) => void;
|
package/dist/cjs/delay-render.js
CHANGED
|
@@ -15,11 +15,9 @@ exports.DELAY_RENDER_CALLSTACK_TOKEN = 'The delayRender was called:';
|
|
|
15
15
|
exports.DELAY_RENDER_RETRIES_LEFT = 'Retries left: ';
|
|
16
16
|
exports.DELAY_RENDER_RETRY_TOKEN = '- Rendering the frame will be retried.';
|
|
17
17
|
const defaultTimeout = 30000;
|
|
18
|
-
|
|
19
|
-
* @description Call this function to
|
|
20
|
-
* @
|
|
21
|
-
* @returns {number} An identifier to be passed to continueRender().
|
|
22
|
-
* @see [Documentation](https://www.remotion.dev/docs/delay-render)
|
|
18
|
+
/*
|
|
19
|
+
* @description Call this function to signal that a frame should not be rendered until an asynchronous task (such as data fetching) is complete. Use continueRender(handle) to proceed with rendering once the task is complete.
|
|
20
|
+
* @see [Documentation](https://remotion.dev/docs/delay-render)
|
|
23
21
|
*/
|
|
24
22
|
const delayRender = (label, options) => {
|
|
25
23
|
var _a, _b, _c, _d, _e;
|
|
@@ -61,10 +59,9 @@ const delayRender = (label, options) => {
|
|
|
61
59
|
return handle;
|
|
62
60
|
};
|
|
63
61
|
exports.delayRender = delayRender;
|
|
64
|
-
|
|
65
|
-
* @description Unblock a render that has been blocked by delayRender()
|
|
66
|
-
* @
|
|
67
|
-
* @see [Documentation](https://www.remotion.dev/docs/continue-render)
|
|
62
|
+
/*
|
|
63
|
+
* @description Unblock a render that has been blocked by delayRender().
|
|
64
|
+
* @see [Documentation](https://remotion.dev/docs/continue-render)
|
|
68
65
|
*/
|
|
69
66
|
const continueRender = (handle) => {
|
|
70
67
|
if (typeof handle === 'undefined') {
|
package/dist/cjs/freeze.d.ts
CHANGED
|
@@ -4,9 +4,5 @@ type FreezeProps = {
|
|
|
4
4
|
readonly children: React.ReactNode;
|
|
5
5
|
readonly active?: boolean | ((f: number) => boolean);
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
8
|
-
* @description This method freezes all of its children to the frame that you specify as a prop
|
|
9
|
-
* @see [Documentation](https://www.remotion.dev/docs/freeze)
|
|
10
|
-
*/
|
|
11
7
|
export declare const Freeze: React.FC<FreezeProps>;
|
|
12
8
|
export {};
|
package/dist/cjs/freeze.js
CHANGED
|
@@ -7,9 +7,9 @@ const SequenceContext_js_1 = require("./SequenceContext.js");
|
|
|
7
7
|
const timeline_position_state_js_1 = require("./timeline-position-state.js");
|
|
8
8
|
const use_current_frame_js_1 = require("./use-current-frame.js");
|
|
9
9
|
const use_video_config_js_1 = require("./use-video-config.js");
|
|
10
|
-
|
|
11
|
-
* @description
|
|
12
|
-
* @see [Documentation](https://
|
|
10
|
+
/*
|
|
11
|
+
* @description Freezes its children at the specified frame when rendering videos.
|
|
12
|
+
* @see [Documentation](https://remotion.dev/docs/freeze)
|
|
13
13
|
*/
|
|
14
14
|
const Freeze = ({ frame: frameToFreeze, children, active = true, }) => {
|
|
15
15
|
var _a;
|
|
@@ -4,8 +4,4 @@ export type RemotionEnvironment = {
|
|
|
4
4
|
isPlayer: boolean;
|
|
5
5
|
isReadOnlyStudio: boolean;
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
8
|
-
* @description Provides information about the Remotion Environment
|
|
9
|
-
* @see [Documentation](https://www.remotion.dev/docs/get-remotion-environment)
|
|
10
|
-
*/
|
|
11
7
|
export declare const getRemotionEnvironment: () => RemotionEnvironment;
|
|
@@ -8,9 +8,9 @@ function getNodeEnvString() {
|
|
|
8
8
|
const getEnvString = () => {
|
|
9
9
|
return ['e', 'nv'].join('');
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
/*
|
|
12
12
|
* @description Provides information about the Remotion Environment
|
|
13
|
-
* @see [Documentation](https://
|
|
13
|
+
* @see [Documentation](https://remotion.dev/docs/get-remotion-environment)
|
|
14
14
|
*/
|
|
15
15
|
const getRemotionEnvironment = () => {
|
|
16
16
|
const isPlayer = typeof window !== 'undefined' && window.remotion_isPlayer;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description The function array containing all files in the public/ folder. You can reference them by using staticFile().
|
|
3
|
-
* @see [Documentation](https://www.remotion.dev/docs/getstaticfiles)
|
|
4
|
-
*/
|
|
5
1
|
export declare const getStaticFiles: () => StaticFile[];
|
|
6
2
|
export type StaticFile = {
|
|
7
3
|
/**
|
|
@@ -20,9 +20,9 @@ const warnPlayerOnce = () => {
|
|
|
20
20
|
// eslint-disable-next-line no-console
|
|
21
21
|
console.warn('Called getStaticFiles() while using the Remotion Player. The API is only available while using the Remotion Studio. An empty array was returned.');
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
* @description
|
|
25
|
-
* @see [Documentation](https://
|
|
23
|
+
/*
|
|
24
|
+
* @description Gets an array containing all files in the `public/` folder. You can reference them by using `staticFile()`.
|
|
25
|
+
* @see [Documentation](https://remotion.dev/docs/getstaticfiles)
|
|
26
26
|
*/
|
|
27
27
|
const getStaticFiles = () => {
|
|
28
28
|
if (v5_flag_1.ENABLE_V5_BREAKING_CHANGES) {
|
|
@@ -6,8 +6,4 @@ export declare const colorNames: {
|
|
|
6
6
|
[key: string]: number;
|
|
7
7
|
};
|
|
8
8
|
export declare function processColor(color: string): number;
|
|
9
|
-
/**
|
|
10
|
-
* @description This function allows you to map a range of values to colors using a concise syntax.
|
|
11
|
-
* @see [Documentation](https://www.remotion.dev/docs/interpolate-colors)
|
|
12
|
-
*/
|
|
13
9
|
export declare const interpolateColors: (input: number, inputRange: readonly number[], outputRange: readonly string[]) => string;
|
|
@@ -270,10 +270,11 @@ function normalizeColor(color) {
|
|
|
270
270
|
if ((match = matchers.rgb.exec(color))) {
|
|
271
271
|
return (
|
|
272
272
|
// b
|
|
273
|
+
// a
|
|
273
274
|
((parse255(match[1]) << 24) | // r
|
|
274
275
|
(parse255(match[2]) << 16) | // g
|
|
275
276
|
(parse255(match[3]) << 8) |
|
|
276
|
-
0x000000ff) >>>
|
|
277
|
+
0x000000ff) >>>
|
|
277
278
|
0);
|
|
278
279
|
}
|
|
279
280
|
}
|
|
@@ -281,10 +282,11 @@ function normalizeColor(color) {
|
|
|
281
282
|
if ((match = matchers.rgba.exec(color))) {
|
|
282
283
|
return (
|
|
283
284
|
// b
|
|
285
|
+
// a
|
|
284
286
|
((parse255(match[1]) << 24) | // r
|
|
285
287
|
(parse255(match[2]) << 16) | // g
|
|
286
288
|
(parse255(match[3]) << 8) |
|
|
287
|
-
parse1(match[4])) >>>
|
|
289
|
+
parse1(match[4])) >>>
|
|
288
290
|
0);
|
|
289
291
|
}
|
|
290
292
|
}
|
|
@@ -371,9 +373,9 @@ const interpolateColorsRGB = (value, inputRange, colors) => {
|
|
|
371
373
|
});
|
|
372
374
|
return rgbaColor(r, g, b, a);
|
|
373
375
|
};
|
|
374
|
-
|
|
375
|
-
* @description
|
|
376
|
-
* @see [Documentation](https://
|
|
376
|
+
/*
|
|
377
|
+
* @description Allows you to map a range of values to colors using a concise syntax.
|
|
378
|
+
* @see [Documentation](https://remotion.dev/docs/interpolate-colors)
|
|
377
379
|
*/
|
|
378
380
|
const interpolateColors = (input, inputRange, outputRange) => {
|
|
379
381
|
if (typeof input === 'undefined') {
|
|
@@ -9,15 +9,4 @@ export type InterpolateOptions = Partial<{
|
|
|
9
9
|
extrapolateLeft: ExtrapolateType;
|
|
10
10
|
extrapolateRight: ExtrapolateType;
|
|
11
11
|
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Map a value from an input range to an output range.
|
|
14
|
-
* @link https://www.remotion.dev/docs/interpolate
|
|
15
|
-
* @param {!number} input value to interpolate
|
|
16
|
-
* @param {!number[]} inputRange range of values that you expect the input to assume.
|
|
17
|
-
* @param {!number[]} outputRange range of output values that you want the input to map to.
|
|
18
|
-
* @param {?object} options
|
|
19
|
-
* @param {?Function} options.easing easing function which allows you to customize the input, for example to apply a certain easing function. By default, the input is left unmodified, resulting in a pure linear interpolation {@link https://www.remotion.dev/docs/easing}
|
|
20
|
-
* @param {string=} [options.extrapolateLeft="extend"] What should happen if the input value is outside left the input range, default: "extend" {@link https://www.remotion.dev/docs/interpolate#extrapolateleft}
|
|
21
|
-
* @param {string=} [options.extrapolateRight="extend"] Same as extrapolateLeft, except for values outside right the input range {@link https://www.remotion.dev/docs/interpolate#extrapolateright}
|
|
22
|
-
*/
|
|
23
12
|
export declare function interpolate(input: number, inputRange: readonly number[], outputRange: readonly number[], options?: InterpolateOptions): number;
|
package/dist/cjs/interpolate.js
CHANGED
|
@@ -77,16 +77,9 @@ function checkInfiniteRange(name, arr) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
*
|
|
82
|
-
* @
|
|
83
|
-
* @param {!number} input value to interpolate
|
|
84
|
-
* @param {!number[]} inputRange range of values that you expect the input to assume.
|
|
85
|
-
* @param {!number[]} outputRange range of output values that you want the input to map to.
|
|
86
|
-
* @param {?object} options
|
|
87
|
-
* @param {?Function} options.easing easing function which allows you to customize the input, for example to apply a certain easing function. By default, the input is left unmodified, resulting in a pure linear interpolation {@link https://www.remotion.dev/docs/easing}
|
|
88
|
-
* @param {string=} [options.extrapolateLeft="extend"] What should happen if the input value is outside left the input range, default: "extend" {@link https://www.remotion.dev/docs/interpolate#extrapolateleft}
|
|
89
|
-
* @param {string=} [options.extrapolateRight="extend"] Same as extrapolateLeft, except for values outside right the input range {@link https://www.remotion.dev/docs/interpolate#extrapolateright}
|
|
80
|
+
/*
|
|
81
|
+
* @description Allows you to map a range of values to another using a concise syntax.
|
|
82
|
+
* @see [Documentation](https://remotion.dev/docs/interpolate)
|
|
90
83
|
*/
|
|
91
84
|
function interpolate(input, inputRange, outputRange, options) {
|
|
92
85
|
var _a;
|
package/dist/cjs/loop/index.d.ts
CHANGED
|
@@ -11,10 +11,6 @@ type LoopContextType = {
|
|
|
11
11
|
durationInFrames: number;
|
|
12
12
|
};
|
|
13
13
|
declare const useLoop: () => LoopContextType | null;
|
|
14
|
-
/**
|
|
15
|
-
* @description This component allows you to quickly lay out an animation so it repeats itself.
|
|
16
|
-
* @see [Documentation](https://www.remotion.dev/docs/loop)
|
|
17
|
-
*/
|
|
18
14
|
export declare const Loop: React.FC<LoopProps> & {
|
|
19
15
|
useLoop: typeof useLoop;
|
|
20
16
|
};
|
package/dist/cjs/loop/index.js
CHANGED
|
@@ -34,9 +34,9 @@ const LoopContext = (0, react_1.createContext)(null);
|
|
|
34
34
|
const useLoop = () => {
|
|
35
35
|
return react_1.default.useContext(LoopContext);
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
/*
|
|
38
38
|
* @description This component allows you to quickly lay out an animation so it repeats itself.
|
|
39
|
-
* @see [Documentation](https://
|
|
39
|
+
* @see [Documentation](https://remotion.dev/docs/loop)
|
|
40
40
|
*/
|
|
41
41
|
const Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) => {
|
|
42
42
|
const currentFrame = (0, use_current_frame_js_1.useCurrentFrame)();
|
package/dist/cjs/prefetch.d.ts
CHANGED
|
@@ -7,10 +7,6 @@ export type PrefetchOnProgress = (options: {
|
|
|
7
7
|
totalBytes: number | null;
|
|
8
8
|
loadedBytes: number;
|
|
9
9
|
}) => void;
|
|
10
|
-
/**
|
|
11
|
-
* @description When you call the preFetch() function, an asset will be fetched and kept in memory so it is ready when you want to play it in a <Player>.
|
|
12
|
-
* @see [Documentation](https://www.remotion.dev/docs/prefetch)
|
|
13
|
-
*/
|
|
14
10
|
export declare const prefetch: (src: string, options?: {
|
|
15
11
|
method?: "blob-url" | "base64";
|
|
16
12
|
contentType?: string;
|
package/dist/cjs/prefetch.js
CHANGED
|
@@ -47,8 +47,8 @@ const getBlobFromReader = async ({ reader, contentType, contentLength, onProgres
|
|
|
47
47
|
type: contentType !== null && contentType !== void 0 ? contentType : undefined,
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
* @description When you call the
|
|
50
|
+
/*
|
|
51
|
+
* @description When you call the prefetch() function, an asset will be fetched and kept in memory so it is ready when you want to play it in a <Player>.
|
|
52
52
|
* @see [Documentation](https://www.remotion.dev/docs/prefetch)
|
|
53
53
|
*/
|
|
54
54
|
const prefetch = (src, options) => {
|
package/dist/cjs/random.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
export type RandomSeed = number | string | null;
|
|
2
|
-
/**
|
|
3
|
-
* @description A deterministic pseudo-random number generator. Pass in the same seed and get the same pseudorandom number.
|
|
4
|
-
* @see [Documentation](https://remotion.dev/docs/random)
|
|
5
|
-
*/
|
|
6
2
|
export declare const random: (seed: RandomSeed, dummy?: unknown) => number;
|
package/dist/cjs/random.js
CHANGED
|
@@ -18,9 +18,9 @@ function hashCode(str) {
|
|
|
18
18
|
}
|
|
19
19
|
return hash;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
/*
|
|
22
22
|
* @description A deterministic pseudo-random number generator. Pass in the same seed and get the same pseudorandom number.
|
|
23
|
-
* @see [Documentation](https://remotion.dev/docs/random)
|
|
23
|
+
* @see [Documentation](https://www.remotion.dev/docs/random)
|
|
24
24
|
*/
|
|
25
25
|
const random = (seed, dummy) => {
|
|
26
26
|
if (dummy !== undefined) {
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @description This function registers the root component of the Remotion project
|
|
4
|
-
* @see [Documentation](https://www.remotion.dev/docs/register-root)
|
|
5
|
-
*/
|
|
6
2
|
export declare const registerRoot: (comp: React.FC) => void;
|
|
7
3
|
export declare const getRoot: () => React.FC<{}> | null;
|
|
8
4
|
export declare const waitForRoot: (fn: (comp: React.FC) => void) => (() => void);
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.waitForRoot = exports.getRoot = exports.registerRoot = void 0;
|
|
4
4
|
let Root = null;
|
|
5
5
|
let listeners = [];
|
|
6
|
-
|
|
7
|
-
* @description
|
|
6
|
+
/*
|
|
7
|
+
* @description Registers the root component of the Remotion project.
|
|
8
8
|
* @see [Documentation](https://www.remotion.dev/docs/register-root)
|
|
9
9
|
*/
|
|
10
10
|
const registerRoot = (comp) => {
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import type { SpringConfig } from './spring-utils';
|
|
2
|
-
/**
|
|
3
|
-
* @description Calculates a position based on physical parameters, start and end value, and time.
|
|
4
|
-
* @see [Documentation](https://www.remotion.dev/docs/spring)
|
|
5
|
-
* @param {number} frame The current time value. Most of the time you want to pass in the return value of useCurrentFrame.
|
|
6
|
-
* @param {number} fps The framerate at which the animation runs. Pass in the value obtained by `useVideoConfig()`.
|
|
7
|
-
* @param {?boolean} reverse Whether the animation plays in reverse or not. Default `false`.
|
|
8
|
-
* @param {?Object} config optional object that allows you to customize the physical properties of the animation.
|
|
9
|
-
* @param {number} [config.mass=1] The weight of the spring. If you reduce the mass, the animation becomes faster!
|
|
10
|
-
* @param {number} [config.damping=10] How hard the animation decelerates.
|
|
11
|
-
* @param {number} [config.stiffness=100] Affects bounciness of the animation.
|
|
12
|
-
* @param {boolean} [config.overshootClamping=false] Whether to prevent the animation going beyond the target value.
|
|
13
|
-
* @param {?number} [config.from] The initial value of the animation. Default `0`
|
|
14
|
-
* @param {?number} [config.to] The end value of the animation. Default `1`
|
|
15
|
-
* @param {?number} [config.durationInFrames] Stretch the duration of an animation to a set value.. Default `undefined`
|
|
16
|
-
* @param {?number} [config.durationThreshold] How close to the end the animation is considered to be done. Default `0.005`
|
|
17
|
-
* @param {?number} [config.delay] Delay the animation for this amount of frames. Default `0`
|
|
18
|
-
*/
|
|
19
2
|
export declare function spring({ frame: passedFrame, fps, config, from, to, durationInFrames: passedDurationInFrames, durationRestThreshold, delay, reverse, }: {
|
|
20
3
|
frame: number;
|
|
21
4
|
fps: number;
|
package/dist/cjs/spring/index.js
CHANGED
|
@@ -8,22 +8,9 @@ const validate_fps_js_1 = require("../validation/validate-fps.js");
|
|
|
8
8
|
const validation_spring_duration_js_1 = require("../validation/validation-spring-duration.js");
|
|
9
9
|
const measure_spring_js_1 = require("./measure-spring.js");
|
|
10
10
|
const spring_utils_js_1 = require("./spring-utils.js");
|
|
11
|
-
|
|
11
|
+
/*
|
|
12
12
|
* @description Calculates a position based on physical parameters, start and end value, and time.
|
|
13
13
|
* @see [Documentation](https://www.remotion.dev/docs/spring)
|
|
14
|
-
* @param {number} frame The current time value. Most of the time you want to pass in the return value of useCurrentFrame.
|
|
15
|
-
* @param {number} fps The framerate at which the animation runs. Pass in the value obtained by `useVideoConfig()`.
|
|
16
|
-
* @param {?boolean} reverse Whether the animation plays in reverse or not. Default `false`.
|
|
17
|
-
* @param {?Object} config optional object that allows you to customize the physical properties of the animation.
|
|
18
|
-
* @param {number} [config.mass=1] The weight of the spring. If you reduce the mass, the animation becomes faster!
|
|
19
|
-
* @param {number} [config.damping=10] How hard the animation decelerates.
|
|
20
|
-
* @param {number} [config.stiffness=100] Affects bounciness of the animation.
|
|
21
|
-
* @param {boolean} [config.overshootClamping=false] Whether to prevent the animation going beyond the target value.
|
|
22
|
-
* @param {?number} [config.from] The initial value of the animation. Default `0`
|
|
23
|
-
* @param {?number} [config.to] The end value of the animation. Default `1`
|
|
24
|
-
* @param {?number} [config.durationInFrames] Stretch the duration of an animation to a set value.. Default `undefined`
|
|
25
|
-
* @param {?number} [config.durationThreshold] How close to the end the animation is considered to be done. Default `0.005`
|
|
26
|
-
* @param {?number} [config.delay] Delay the animation for this amount of frames. Default `0`
|
|
27
14
|
*/
|
|
28
15
|
function spring({ frame: passedFrame, fps, config = {}, from = 0, to = 1, durationInFrames: passedDurationInFrames, durationRestThreshold, delay = 0, reverse = false, }) {
|
|
29
16
|
(0, validation_spring_duration_js_1.validateSpringDuration)(passedDurationInFrames);
|
|
@@ -9,9 +9,5 @@ type MeasureSpringProps = {
|
|
|
9
9
|
config?: Partial<SpringConfig>;
|
|
10
10
|
threshold?: number;
|
|
11
11
|
} & (false extends typeof ENABLE_V5_BREAKING_CHANGES ? V4Props : {});
|
|
12
|
-
/**
|
|
13
|
-
* @description The function returns how long it takes for a spring animation to settle
|
|
14
|
-
* @see [Documentation](https://www.remotion.dev/docs/measure-spring)
|
|
15
|
-
*/
|
|
16
12
|
export declare function measureSpring({ fps, config, threshold, }: MeasureSpringProps): number;
|
|
17
13
|
export {};
|
|
@@ -4,9 +4,9 @@ exports.measureSpring = measureSpring;
|
|
|
4
4
|
const validate_fps_js_1 = require("../validation/validate-fps.js");
|
|
5
5
|
const spring_utils_js_1 = require("./spring-utils.js");
|
|
6
6
|
const cache = new Map();
|
|
7
|
-
|
|
8
|
-
* @description
|
|
9
|
-
* @see [Documentation](https://
|
|
7
|
+
/*
|
|
8
|
+
* @description Based on a spring() configuration and the frame rate, return how long it takes for a spring animation to settle.
|
|
9
|
+
* @see [Documentation](https://remotion.dev/docs/measure-spring)
|
|
10
10
|
*/
|
|
11
11
|
function measureSpring({ fps, config = {}, threshold = 0.005, }) {
|
|
12
12
|
if (typeof threshold !== 'number') {
|
|
@@ -25,9 +25,5 @@ export type HexInfo = {
|
|
|
25
25
|
hexCode: HexCode;
|
|
26
26
|
};
|
|
27
27
|
export declare const includesHexOfUnsafeChar: (path: string) => HexInfo;
|
|
28
|
-
/**
|
|
29
|
-
* @description Reference a file from the public/ folder. If the file does not appear in the autocomplete, type the path manually.
|
|
30
|
-
* @see [Documentation](https://www.remotion.dev/docs/staticfile)
|
|
31
|
-
*/
|
|
32
28
|
export declare const staticFile: (path: string) => string;
|
|
33
29
|
export {};
|
package/dist/cjs/static-file.js
CHANGED
|
@@ -61,7 +61,7 @@ const encodeBySplitting = (path) => {
|
|
|
61
61
|
const merged = encodedArray.join('/');
|
|
62
62
|
return merged;
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
/*
|
|
65
65
|
* @description Reference a file from the public/ folder. If the file does not appear in the autocomplete, type the path manually.
|
|
66
66
|
* @see [Documentation](https://www.remotion.dev/docs/staticfile)
|
|
67
67
|
*/
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Get the current frame of the video. Frames are 0-indexed, meaning the first frame is 0, the last frame is the duration of the composition in frames minus one.
|
|
3
|
-
* @see [Documentation](https://remotion.dev/docs/use-current-frame)
|
|
4
|
-
*/
|
|
5
1
|
export declare const useCurrentFrame: () => number;
|
|
@@ -6,9 +6,9 @@ const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
|
|
|
6
6
|
const SequenceContext_js_1 = require("./SequenceContext.js");
|
|
7
7
|
const get_remotion_environment_js_1 = require("./get-remotion-environment.js");
|
|
8
8
|
const timeline_position_state_js_1 = require("./timeline-position-state.js");
|
|
9
|
-
|
|
10
|
-
* @description
|
|
11
|
-
* @see [Documentation](https://remotion.dev/docs/use-current-frame)
|
|
9
|
+
/*
|
|
10
|
+
* @description Retrieves the current frame of the video within a component. Frames are 0-indexed, and if the component is wrapped in a `<Sequence>`, it returns the frame relative to when the Sequence starts.
|
|
11
|
+
* @see [Documentation](https://www.remotion.dev/docs/use-current-frame)
|
|
12
12
|
*/
|
|
13
13
|
const useCurrentFrame = () => {
|
|
14
14
|
const canUseRemotionHooks = (0, react_1.useContext)(CanUseRemotionHooks_js_1.CanUseRemotionHooks);
|
|
@@ -43,9 +43,5 @@ export declare const calculateScale: ({ canvasSize, compositionHeight, compositi
|
|
|
43
43
|
height: number;
|
|
44
44
|
};
|
|
45
45
|
}) => number;
|
|
46
|
-
/**
|
|
47
|
-
* Gets the current scale of the container in which the component is being rendered.
|
|
48
|
-
* Only works in the Remotion Studio and in the Remotion Player.
|
|
49
|
-
*/
|
|
50
46
|
export declare const useCurrentScale: (options?: Options) => number;
|
|
51
47
|
export {};
|
|
@@ -39,9 +39,9 @@ const calculateScale = ({ canvasSize, compositionHeight, compositionWidth, previ
|
|
|
39
39
|
return previewSize === 'auto' ? ratio : Number(previewSize);
|
|
40
40
|
};
|
|
41
41
|
exports.calculateScale = calculateScale;
|
|
42
|
-
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
/*
|
|
43
|
+
* @description Retrieves the current scale of the canvas within Remotion's Studio or Player context. In the Studio, it corresponds to the zoom level (1 equals no scaling, i.e., 100% zoom). In the Player, it indicates the scaling necessary to fit the video into the player. If called outside of a Remotion context, by default, it throws an error unless configured not to.
|
|
44
|
+
* @see [Documentation](https://www.remotion.dev/docs/use-current-scale)
|
|
45
45
|
*/
|
|
46
46
|
const useCurrentScale = (options) => {
|
|
47
47
|
const hasContext = react_1.default.useContext(exports.CurrentScaleContext);
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { VideoConfig } from './video-config.js';
|
|
2
|
-
/**
|
|
3
|
-
* @description Get some info about the context of the video that you are making.
|
|
4
|
-
* @see [Documentation](https://www.remotion.dev/docs/use-video-config)
|
|
5
|
-
* @returns Returns an object containing `fps`, `width`, `height`, `durationInFrames`, `id` and `defaultProps`.
|
|
6
|
-
*/
|
|
7
2
|
export declare const useVideoConfig: () => VideoConfig;
|
|
@@ -5,10 +5,9 @@ const react_1 = require("react");
|
|
|
5
5
|
const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
|
|
6
6
|
const is_player_js_1 = require("./is-player.js");
|
|
7
7
|
const use_unsafe_video_config_js_1 = require("./use-unsafe-video-config.js");
|
|
8
|
-
|
|
9
|
-
* @description
|
|
8
|
+
/*
|
|
9
|
+
* @description Retrieves information about the composition context in which it is used, including dimensions, frame rate, duration, and more.
|
|
10
10
|
* @see [Documentation](https://www.remotion.dev/docs/use-video-config)
|
|
11
|
-
* @returns Returns an object containing `fps`, `width`, `height`, `durationInFrames`, `id` and `defaultProps`.
|
|
12
11
|
*/
|
|
13
12
|
const useVideoConfig = () => {
|
|
14
13
|
const videoConfig = (0, use_unsafe_video_config_js_1.useUnsafeVideoConfig)();
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { OffthreadVideoProps } from './props.js';
|
|
3
|
-
/**
|
|
4
|
-
* @description This method imports and displays a video, similar to <Video />. During rendering, it extracts the exact frame from the video and displays it in an <img> tag
|
|
5
|
-
* @see [Documentation](https://www.remotion.dev/docs/offthreadvideo)
|
|
6
|
-
*/
|
|
7
3
|
export declare const OffthreadVideo: React.FC<OffthreadVideoProps>;
|
|
@@ -9,7 +9,7 @@ const validate_media_props_js_1 = require("../validate-media-props.js");
|
|
|
9
9
|
const validate_start_from_props_js_1 = require("../validate-start-from-props.js");
|
|
10
10
|
const OffthreadVideoForRendering_js_1 = require("./OffthreadVideoForRendering.js");
|
|
11
11
|
const VideoForPreview_js_1 = require("./VideoForPreview.js");
|
|
12
|
-
|
|
12
|
+
/*
|
|
13
13
|
* @description This method imports and displays a video, similar to <Video />. During rendering, it extracts the exact frame from the video and displays it in an <img> tag
|
|
14
14
|
* @see [Documentation](https://www.remotion.dev/docs/offthreadvideo)
|
|
15
15
|
*/
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RemotionMainVideoProps } from './props';
|
|
3
|
-
/**
|
|
4
|
-
* @description allows you to include a video file in your Remotion project. It wraps the native HTMLVideoElement.
|
|
5
|
-
* @see [Documentation](https://www.remotion.dev/docs/video)
|
|
6
|
-
*/
|
|
7
3
|
export declare const Video: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onError" | "onEnded" | "autoPlay" | "controls" | "disableRemotePlayback"> & {
|
|
8
4
|
name?: string;
|
|
9
5
|
volume?: import("../volume-prop.js").VolumeProp;
|
package/dist/cjs/video/Video.js
CHANGED
|
@@ -62,8 +62,8 @@ const VideoForwardingFunction = (props, ref) => {
|
|
|
62
62
|
// Proposal: Make this default to true in v5
|
|
63
63
|
pauseWhenBuffering: pauseWhenBuffering !== null && pauseWhenBuffering !== void 0 ? pauseWhenBuffering : false, onDuration: onDuration, _remotionInternalStack: stack !== null && stack !== void 0 ? stack : null, _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed !== null && _remotionInternalNativeLoopPassed !== void 0 ? _remotionInternalNativeLoopPassed : false, _remotionDebugSeeking: _remotionDebugSeeking !== null && _remotionDebugSeeking !== void 0 ? _remotionDebugSeeking : false, showInTimeline: showInTimeline !== null && showInTimeline !== void 0 ? showInTimeline : true, onAutoPlayError: onAutoPlayError !== null && onAutoPlayError !== void 0 ? onAutoPlayError : undefined }));
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
* @description
|
|
65
|
+
/*
|
|
66
|
+
* @description Wraps the native `<video>` element to include video in your component that is synchronized with Remotion's time.
|
|
67
67
|
* @see [Documentation](https://www.remotion.dev/docs/video)
|
|
68
68
|
*/
|
|
69
69
|
exports.Video = (0, react_1.forwardRef)(VideoForwardingFunction);
|
|
@@ -4,13 +4,6 @@ export declare const WATCH_REMOTION_STATIC_FILES = "remotion_staticFilesChanged"
|
|
|
4
4
|
export type WatchRemotionStaticFilesPayload = {
|
|
5
5
|
files: StaticFile[];
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
8
|
-
* @description Watch for changes in a specific static file.
|
|
9
|
-
* @param {string} fileName - The name of the static file to watch for changes.
|
|
10
|
-
* @param {WatcherCallback} callback - A callback function to be called when the file changes.
|
|
11
|
-
* @returns {{cancel: () => void}} A function that can be used to cancel the event listener.
|
|
12
|
-
* @see [Documentation](https://www.remotion.dev/docs/watchstaticfile)
|
|
13
|
-
*/
|
|
14
7
|
export declare const watchStaticFile: (fileName: string, callback: WatcherCallback) => {
|
|
15
8
|
cancel: () => void;
|
|
16
9
|
};
|
|
@@ -4,11 +4,8 @@ exports.watchStaticFile = exports.WATCH_REMOTION_STATIC_FILES = void 0;
|
|
|
4
4
|
const get_remotion_environment_1 = require("./get-remotion-environment");
|
|
5
5
|
const v5_flag_1 = require("./v5-flag");
|
|
6
6
|
exports.WATCH_REMOTION_STATIC_FILES = 'remotion_staticFilesChanged';
|
|
7
|
-
|
|
8
|
-
* @description
|
|
9
|
-
* @param {string} fileName - The name of the static file to watch for changes.
|
|
10
|
-
* @param {WatcherCallback} callback - A callback function to be called when the file changes.
|
|
11
|
-
* @returns {{cancel: () => void}} A function that can be used to cancel the event listener.
|
|
7
|
+
/*
|
|
8
|
+
* @description Watches for changes in a specific static file and invokes a callback function when the file changes, enabling dynamic updates in your Remotion projects.
|
|
12
9
|
* @see [Documentation](https://www.remotion.dev/docs/watchstaticfile)
|
|
13
10
|
*/
|
|
14
11
|
const watchStaticFile = (fileName, callback) => {
|
package/dist/esm/index.mjs
CHANGED
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
|
|
4
4
|
},
|
|
5
5
|
"name": "remotion",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.245",
|
|
7
7
|
"description": "Make videos programmatically",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"webpack": "5.96.1",
|
|
30
30
|
"zod": "3.22.3",
|
|
31
31
|
"eslint": "9.14.0",
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.245"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [
|
|
35
35
|
"remotion",
|