remotion 4.0.0-fastlambda.8 → 4.0.0-lambda.1
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/.turbo/turbo-build.log +5 -5
- package/dist/AbsoluteFill.d.ts +4 -0
- package/dist/AbsoluteFill.js +5 -1
- package/dist/Composition.d.ts +2 -6
- package/dist/Composition.js +30 -27
- package/dist/CompositionManager.d.ts +2 -5
- package/dist/CompositionManager.js +6 -2
- package/dist/Folder.d.ts +15 -0
- package/dist/Folder.js +33 -0
- package/dist/IFrame.js +1 -1
- package/dist/Img.js +26 -21
- package/dist/RemotionRoot.js +1 -1
- package/dist/Sequence.d.ts +19 -0
- package/dist/Sequence.js +123 -0
- package/dist/Still.js +1 -1
- package/dist/audio/Audio.d.ts +1 -1
- package/dist/audio/Audio.js +4 -4
- package/dist/audio/AudioForDevelopment.d.ts +1 -1
- package/dist/audio/AudioForDevelopment.js +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/audio/AudioForRendering.js +6 -6
- package/dist/audio/index.js +5 -1
- package/dist/audio/shared-audio-tags.js +6 -2
- package/dist/audio/use-audio-frame.js +4 -4
- package/dist/config/bundle-out-dir.d.ts +2 -0
- package/dist/config/bundle-out-dir.js +12 -0
- package/dist/config/chromium-flags.d.ts +1 -1
- package/dist/config/every-nth-file.d.ts +2 -0
- package/dist/config/every-nth-file.js +12 -0
- package/dist/config/ffmpeg-executable.d.ts +2 -0
- package/dist/config/ffmpeg-executable.js +10 -1
- package/dist/config/index.d.ts +9 -4
- package/dist/config/index.js +7 -2
- package/dist/config/log.d.ts +1 -1
- package/dist/config/loop.d.ts +3 -0
- package/dist/config/loop.js +15 -0
- package/dist/config/override-webpack.d.ts +1 -7
- package/dist/config/public-path.d.ts +2 -0
- package/dist/config/public-path.js +12 -0
- package/dist/delay-render.d.ts +1 -1
- package/dist/freeze.d.ts +2 -2
- package/dist/freeze.js +2 -2
- package/dist/index.d.ts +9 -5
- package/dist/index.js +13 -7
- package/dist/internals.d.ts +8 -7
- package/dist/internals.js +13 -6
- package/dist/interpolate-colors.d.ts +5 -0
- package/dist/interpolate-colors.js +401 -0
- package/dist/loading-indicator.d.ts +2 -0
- package/dist/loading-indicator.js +35 -0
- package/dist/loop/index.js +1 -1
- package/dist/perf/index.d.ts +1 -1
- package/dist/perf/index.js +2 -0
- package/dist/portal-node.d.ts +1 -0
- package/dist/portal-node.js +23 -0
- package/dist/register-root.d.ts +1 -0
- package/dist/register-root.js +20 -5
- package/dist/sequencing/index.js +1 -1
- package/dist/series/index.d.ts +1 -1
- package/dist/series/index.js +4 -4
- package/dist/use-current-frame.d.ts +7 -0
- package/dist/use-current-frame.js +25 -0
- package/dist/use-lazy-component.js +5 -1
- package/dist/use-media-in-timeline.js +2 -2
- package/dist/use-media-playback.js +3 -3
- package/dist/use-unsafe-video-config.js +2 -2
- package/dist/validate-media-props.d.ts +2 -1
- package/dist/validation/validate-every-nth-frame.d.ts +1 -0
- package/dist/validation/validate-every-nth-frame.js +21 -0
- package/dist/validation/validate-opengl-renderer.d.ts +1 -1
- package/dist/validation/validate-opengl-renderer.js +1 -1
- package/dist/video/OffthreadVideo.d.ts +3 -0
- package/dist/video/OffthreadVideo.js +25 -0
- package/dist/video/OffthreadVideoForRendering.d.ts +3 -0
- package/dist/video/OffthreadVideoForRendering.js +93 -0
- package/dist/video/Video.d.ts +1 -1
- package/dist/video/Video.js +4 -4
- package/dist/video/VideoForDevelopment.d.ts +1 -1
- package/dist/video/VideoForDevelopment.js +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/dist/video/VideoForRendering.js +10 -6
- package/dist/video/get-current-time.d.ts +5 -0
- package/dist/video/get-current-time.js +10 -2
- package/dist/video/index.d.ts +3 -2
- package/dist/video/index.js +5 -12
- package/dist/video/props.d.ts +10 -1
- package/dist/wrap-remotion-context.d.ts +1 -1
- package/dist/wrap-remotion-context.js +8 -4
- package/package.json +3 -3
- package/.turbo/turbo-lint.log +0 -11
- package/.turbo/turbo-test.log +0 -78
|
@@ -6,16 +6,16 @@ const react_1 = require("react");
|
|
|
6
6
|
const absolute_src_1 = require("../absolute-src");
|
|
7
7
|
const CompositionManager_1 = require("../CompositionManager");
|
|
8
8
|
const random_1 = require("../random");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const Sequence_1 = require("../Sequence");
|
|
10
|
+
const use_current_frame_1 = require("../use-current-frame");
|
|
11
11
|
const volume_prop_1 = require("../volume-prop");
|
|
12
12
|
const use_audio_frame_1 = require("./use-audio-frame");
|
|
13
13
|
const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
14
14
|
const audioRef = (0, react_1.useRef)(null);
|
|
15
|
-
const absoluteFrame = (0,
|
|
15
|
+
const absoluteFrame = (0, use_current_frame_1.useAbsoluteCurrentFrame)();
|
|
16
16
|
const volumePropFrame = (0, use_audio_frame_1.useFrameForVolumeProp)();
|
|
17
|
-
const frame = (0,
|
|
18
|
-
const sequenceContext = (0, react_1.useContext)(
|
|
17
|
+
const frame = (0, use_current_frame_1.useCurrentFrame)();
|
|
18
|
+
const sequenceContext = (0, react_1.useContext)(Sequence_1.SequenceContext);
|
|
19
19
|
const { registerAsset, unregisterAsset } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
20
20
|
// Generate a string that's as unique as possible for this asset
|
|
21
21
|
// but at the same time the same on all threads
|
|
@@ -63,6 +63,6 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
63
63
|
playbackRate,
|
|
64
64
|
props.playbackRate,
|
|
65
65
|
]);
|
|
66
|
-
return (0, jsx_runtime_1.jsx)("audio", { ref: audioRef, ...nativeProps }
|
|
66
|
+
return (0, jsx_runtime_1.jsx)("audio", { ref: audioRef, ...nativeProps });
|
|
67
67
|
};
|
|
68
68
|
exports.AudioForRendering = (0, react_1.forwardRef)(AudioForRenderingRefForwardingFunction);
|
package/dist/audio/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -114,7 +118,7 @@ const SharedAudioContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
114
118
|
throw new TypeError('Expected audio data to be there');
|
|
115
119
|
}
|
|
116
120
|
return (0, jsx_runtime_1.jsx)("audio", { ref: ref, ...data.props }, id);
|
|
117
|
-
}), children] }
|
|
121
|
+
}), children] }));
|
|
118
122
|
};
|
|
119
123
|
exports.SharedAudioContextProvider = SharedAudioContextProvider;
|
|
120
124
|
const useSharedAudio = (aud) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useFrameForVolumeProp = exports.useMediaStartsAt = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const Sequence_1 = require("../Sequence");
|
|
6
|
+
const use_current_frame_1 = require("../use-current-frame");
|
|
7
7
|
const useMediaStartsAt = () => {
|
|
8
8
|
var _a;
|
|
9
|
-
const parentSequence = (0, react_1.useContext)(
|
|
9
|
+
const parentSequence = (0, react_1.useContext)(Sequence_1.SequenceContext);
|
|
10
10
|
const startsAt = Math.min(0, (_a = parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.relativeFrom) !== null && _a !== void 0 ? _a : 0);
|
|
11
11
|
return startsAt;
|
|
12
12
|
};
|
|
@@ -16,7 +16,7 @@ exports.useMediaStartsAt = useMediaStartsAt;
|
|
|
16
16
|
* we calculate the way more intuitive value for currentFrame
|
|
17
17
|
*/
|
|
18
18
|
const useFrameForVolumeProp = () => {
|
|
19
|
-
const frame = (0,
|
|
19
|
+
const frame = (0, use_current_frame_1.useCurrentFrame)();
|
|
20
20
|
const startsAt = (0, exports.useMediaStartsAt)();
|
|
21
21
|
return frame + startsAt;
|
|
22
22
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setBundleOutDir = exports.getBundleOutDir = void 0;
|
|
4
|
+
let bundleOutDir = null;
|
|
5
|
+
const getBundleOutDir = () => {
|
|
6
|
+
return bundleOutDir;
|
|
7
|
+
};
|
|
8
|
+
exports.getBundleOutDir = getBundleOutDir;
|
|
9
|
+
const setBundleOutDir = (path) => {
|
|
10
|
+
bundleOutDir = path;
|
|
11
|
+
};
|
|
12
|
+
exports.setBundleOutDir = setBundleOutDir;
|
|
@@ -4,7 +4,7 @@ export declare const getChromiumDisableWebSecurity: () => boolean;
|
|
|
4
4
|
export declare const setChromiumDisableWebSecurity: (should: boolean) => void;
|
|
5
5
|
export declare const getIgnoreCertificateErrors: () => boolean;
|
|
6
6
|
export declare const setChromiumIgnoreCertificateErrors: (should: boolean) => void;
|
|
7
|
-
export declare const getChromiumOpenGlRenderer: () => "angle" | "egl" | "swiftshader" | null;
|
|
7
|
+
export declare const getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
8
8
|
export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
|
|
9
9
|
export declare const getChromiumHeadlessMode: () => boolean;
|
|
10
10
|
export declare const setChromiumHeadlessMode: (should: boolean) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEveryNthFrame = exports.setEveryNthFrame = void 0;
|
|
4
|
+
const validate_every_nth_frame_1 = require("../validation/validate-every-nth-frame");
|
|
5
|
+
let everyNthFrame = 1;
|
|
6
|
+
const setEveryNthFrame = (frame) => {
|
|
7
|
+
(0, validate_every_nth_frame_1.validateEveryNthFrame)(frame);
|
|
8
|
+
everyNthFrame = frame;
|
|
9
|
+
};
|
|
10
|
+
exports.setEveryNthFrame = setEveryNthFrame;
|
|
11
|
+
const getEveryNthFrame = () => everyNthFrame;
|
|
12
|
+
exports.getEveryNthFrame = getEveryNthFrame;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare type FfmpegExecutable = string | null;
|
|
2
2
|
export declare const setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
|
|
3
3
|
export declare const getCustomFfmpegExecutable: () => FfmpegExecutable;
|
|
4
|
+
export declare const setFfprobeExecutable: (ffprobePath: FfmpegExecutable) => void;
|
|
5
|
+
export declare const getCustomFfprobeExecutable: () => FfmpegExecutable;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCustomFfmpegExecutable = exports.setFfmpegExecutable = void 0;
|
|
3
|
+
exports.getCustomFfprobeExecutable = exports.setFfprobeExecutable = exports.getCustomFfmpegExecutable = exports.setFfmpegExecutable = void 0;
|
|
4
4
|
let currentFfmpegExecutablePath = null;
|
|
5
|
+
let currentFfprobeExecutablePath = null;
|
|
5
6
|
const setFfmpegExecutable = (ffmpegPath) => {
|
|
6
7
|
currentFfmpegExecutablePath = ffmpegPath;
|
|
7
8
|
};
|
|
@@ -10,3 +11,11 @@ const getCustomFfmpegExecutable = () => {
|
|
|
10
11
|
return currentFfmpegExecutablePath;
|
|
11
12
|
};
|
|
12
13
|
exports.getCustomFfmpegExecutable = getCustomFfmpegExecutable;
|
|
14
|
+
const setFfprobeExecutable = (ffprobePath) => {
|
|
15
|
+
currentFfprobeExecutablePath = ffprobePath;
|
|
16
|
+
};
|
|
17
|
+
exports.setFfprobeExecutable = setFfprobeExecutable;
|
|
18
|
+
const getCustomFfprobeExecutable = () => {
|
|
19
|
+
return currentFfprobeExecutablePath;
|
|
20
|
+
};
|
|
21
|
+
exports.getCustomFfprobeExecutable = getCustomFfprobeExecutable;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare const Config: {
|
|
|
44
44
|
*
|
|
45
45
|
* Set this to 'verbose' to get browser logs and other IO.
|
|
46
46
|
*/
|
|
47
|
-
readonly setLevel: (newLogLevel: "
|
|
47
|
+
readonly setLevel: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
48
48
|
};
|
|
49
49
|
readonly Puppeteer: {
|
|
50
50
|
/**
|
|
@@ -73,10 +73,10 @@ export declare const Config: {
|
|
|
73
73
|
*/
|
|
74
74
|
readonly setChromiumHeadlessMode: (should: boolean) => void;
|
|
75
75
|
/**
|
|
76
|
-
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle' and '
|
|
77
|
-
* Default: '
|
|
76
|
+
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
|
|
77
|
+
* Default: 'swangle' in Lambda, null elsewhere.
|
|
78
78
|
*/
|
|
79
|
-
readonly setChromiumOpenGlRenderer: (renderer: "angle" | "egl" | "swiftshader") => void;
|
|
79
|
+
readonly setChromiumOpenGlRenderer: (renderer: "swangle" | "angle" | "egl" | "swiftshader") => void;
|
|
80
80
|
};
|
|
81
81
|
readonly Rendering: {
|
|
82
82
|
/**
|
|
@@ -112,6 +112,11 @@ export declare const Config: {
|
|
|
112
112
|
* Default: null, which will use ffmpeg available in PATH.
|
|
113
113
|
*/
|
|
114
114
|
readonly setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Specify local ffprobe executable.
|
|
117
|
+
* Default: null, which will use ffprobe available in PATH.
|
|
118
|
+
*/
|
|
119
|
+
readonly setFfprobeExecutable: (ffprobePath: FfmpegExecutable) => void;
|
|
115
120
|
/**
|
|
116
121
|
* Scales the output dimensions by a factor.
|
|
117
122
|
* Default: 1.
|
package/dist/config/index.js
CHANGED
|
@@ -87,8 +87,8 @@ exports.Config = {
|
|
|
87
87
|
*/
|
|
88
88
|
setChromiumHeadlessMode: chromium_flags_1.setChromiumHeadlessMode,
|
|
89
89
|
/**
|
|
90
|
-
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle' and '
|
|
91
|
-
* Default: '
|
|
90
|
+
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
|
|
91
|
+
* Default: 'swangle' in Lambda, null elsewhere.
|
|
92
92
|
*/
|
|
93
93
|
setChromiumOpenGlRenderer: chromium_flags_1.setChromiumOpenGlRenderer,
|
|
94
94
|
},
|
|
@@ -126,6 +126,11 @@ exports.Config = {
|
|
|
126
126
|
* Default: null, which will use ffmpeg available in PATH.
|
|
127
127
|
*/
|
|
128
128
|
setFfmpegExecutable: ffmpeg_executable_1.setFfmpegExecutable,
|
|
129
|
+
/**
|
|
130
|
+
* Specify local ffprobe executable.
|
|
131
|
+
* Default: null, which will use ffprobe available in PATH.
|
|
132
|
+
*/
|
|
133
|
+
setFfprobeExecutable: ffmpeg_executable_1.setFfprobeExecutable,
|
|
129
134
|
/**
|
|
130
135
|
* Scales the output dimensions by a factor.
|
|
131
136
|
* Default: 1.
|
package/dist/config/log.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
2
2
|
export declare type LogLevel = typeof logLevels[number];
|
|
3
3
|
export declare const DEFAULT_LOG_LEVEL: LogLevel;
|
|
4
|
-
export declare const getLogLevel: () => "
|
|
4
|
+
export declare const getLogLevel: () => "error" | "verbose" | "info" | "warn";
|
|
5
5
|
export declare const setLogLevel: (newLogLevel: LogLevel) => void;
|
|
6
6
|
export declare const isValidLogLevel: (level: string) => boolean;
|
|
7
7
|
export declare const isEqualOrBelowLogLevel: (currentLevel: LogLevel, level: LogLevel) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLoop = exports.setLoop = void 0;
|
|
4
|
+
let currentLoop = null;
|
|
5
|
+
const setLoop = (newLoop) => {
|
|
6
|
+
if (typeof newLoop !== 'number') {
|
|
7
|
+
throw new Error('--loop flag must be a number.');
|
|
8
|
+
}
|
|
9
|
+
currentLoop = newLoop;
|
|
10
|
+
};
|
|
11
|
+
exports.setLoop = setLoop;
|
|
12
|
+
const getLoop = () => {
|
|
13
|
+
return currentLoop;
|
|
14
|
+
};
|
|
15
|
+
exports.getLoop = getLoop;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
|
-
export declare type WebpackConfiguration = Configuration
|
|
3
|
-
devServer: {
|
|
4
|
-
contentBase: string;
|
|
5
|
-
historyApiFallback: boolean;
|
|
6
|
-
hot: true;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
2
|
+
export declare type WebpackConfiguration = Configuration;
|
|
9
3
|
export declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
10
4
|
export declare const defaultOverrideFunction: WebpackOverrideFn;
|
|
11
5
|
export declare const getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setPublicPath = exports.getPublicPath = void 0;
|
|
4
|
+
let publicPath = null;
|
|
5
|
+
const getPublicPath = () => {
|
|
6
|
+
return publicPath;
|
|
7
|
+
};
|
|
8
|
+
exports.getPublicPath = getPublicPath;
|
|
9
|
+
const setPublicPath = (path) => {
|
|
10
|
+
publicPath = path;
|
|
11
|
+
};
|
|
12
|
+
exports.setPublicPath = setPublicPath;
|
package/dist/delay-render.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:
|
|
|
5
5
|
* @returns {number} An identifier to be passed to continueRender().
|
|
6
6
|
* @link https://www.remotion.dev/docs/delay-render
|
|
7
7
|
*/
|
|
8
|
-
export declare const delayRender: (label?: string
|
|
8
|
+
export declare const delayRender: (label?: string) => number;
|
|
9
9
|
/**
|
|
10
10
|
* Unblock a render that has been blocked by delayRender()
|
|
11
11
|
* @param handle The return value of delayRender().
|
package/dist/freeze.d.ts
CHANGED
package/dist/freeze.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Freeze = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const
|
|
6
|
+
const Sequence_1 = require("./Sequence");
|
|
7
7
|
const timeline_position_state_1 = require("./timeline-position-state");
|
|
8
8
|
const Freeze = ({ frame, children }) => {
|
|
9
9
|
if (typeof frame === 'undefined') {
|
|
@@ -29,6 +29,6 @@ const Freeze = ({ frame, children }) => {
|
|
|
29
29
|
frame,
|
|
30
30
|
};
|
|
31
31
|
}, [context, frame]);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(Sequence_1.SequenceContext.Provider, { value: null, children: children }) }));
|
|
33
33
|
};
|
|
34
34
|
exports.Freeze = Freeze;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,13 +11,16 @@ declare global {
|
|
|
11
11
|
remotion_cwd: string;
|
|
12
12
|
remotion_setFrame: (frame: number) => void;
|
|
13
13
|
remotion_initialFrame: number;
|
|
14
|
+
remotion_proxyPort: number;
|
|
14
15
|
remotion_puppeteerTimeout: number;
|
|
15
16
|
remotion_inputProps: string;
|
|
16
17
|
remotion_envVariables: string;
|
|
17
18
|
remotion_collectAssets: () => TAsset[];
|
|
18
19
|
remotion_isPlayer: boolean;
|
|
19
20
|
remotion_imported: boolean;
|
|
20
|
-
|
|
21
|
+
remotion_isBuilding: undefined | (() => void);
|
|
22
|
+
remotion_finishedBuilding: undefined | (() => void);
|
|
23
|
+
siteVersion: '3';
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
export declare type BundleState = {
|
|
@@ -31,27 +34,28 @@ export declare type BundleState = {
|
|
|
31
34
|
export * from './AbsoluteFill';
|
|
32
35
|
export * from './audio';
|
|
33
36
|
export * from './Composition';
|
|
34
|
-
export { SmallTCompMetadata, TAsset, TCompMetadata
|
|
37
|
+
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
|
|
35
38
|
export * from './config';
|
|
36
39
|
export { getInputProps } from './config/input-props';
|
|
37
40
|
export * from './delay-render';
|
|
38
41
|
export * from './easing';
|
|
42
|
+
export * from './Folder';
|
|
39
43
|
export * from './freeze';
|
|
40
44
|
export * from './IFrame';
|
|
41
45
|
export * from './Img';
|
|
42
46
|
export * from './internals';
|
|
43
47
|
export * from './interpolate';
|
|
44
|
-
export { interpolateColors } from './
|
|
48
|
+
export { interpolateColors } from './interpolate-colors';
|
|
45
49
|
export { Loop } from './loop';
|
|
46
50
|
export * from './random';
|
|
47
51
|
export { registerRoot } from './register-root';
|
|
48
|
-
export { Sequence } from './
|
|
52
|
+
export { Sequence } from './Sequence';
|
|
49
53
|
export { Series } from './series';
|
|
50
54
|
export * from './spring';
|
|
51
55
|
export { staticFile } from './static-file';
|
|
52
56
|
export * from './Still';
|
|
53
57
|
export type { PlayableMediaTag } from './timeline-position-state';
|
|
54
|
-
export
|
|
58
|
+
export { useCurrentFrame } from './use-current-frame';
|
|
55
59
|
export * from './use-video-config';
|
|
56
60
|
export * from './video';
|
|
57
61
|
export * from './video-config';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -10,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
15
|
};
|
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.Loop = exports.interpolateColors = exports.getInputProps = void 0;
|
|
17
|
+
exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.Loop = exports.interpolateColors = exports.getInputProps = void 0;
|
|
14
18
|
require("./asset-types");
|
|
15
19
|
const multiple_versions_warning_1 = require("./multiple-versions-warning");
|
|
16
20
|
(0, multiple_versions_warning_1.checkMultipleRemotionVersions)();
|
|
@@ -22,27 +26,29 @@ var input_props_1 = require("./config/input-props");
|
|
|
22
26
|
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_1.getInputProps; } });
|
|
23
27
|
__exportStar(require("./delay-render"), exports);
|
|
24
28
|
__exportStar(require("./easing"), exports);
|
|
29
|
+
__exportStar(require("./Folder"), exports);
|
|
25
30
|
__exportStar(require("./freeze"), exports);
|
|
26
31
|
__exportStar(require("./IFrame"), exports);
|
|
27
32
|
__exportStar(require("./Img"), exports);
|
|
28
33
|
__exportStar(require("./internals"), exports);
|
|
29
34
|
__exportStar(require("./interpolate"), exports);
|
|
30
|
-
var
|
|
31
|
-
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return
|
|
35
|
+
var interpolate_colors_1 = require("./interpolate-colors");
|
|
36
|
+
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolate_colors_1.interpolateColors; } });
|
|
32
37
|
var loop_1 = require("./loop");
|
|
33
38
|
Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return loop_1.Loop; } });
|
|
34
39
|
__exportStar(require("./random"), exports);
|
|
35
40
|
var register_root_1 = require("./register-root");
|
|
36
41
|
Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return register_root_1.registerRoot; } });
|
|
37
|
-
var
|
|
38
|
-
Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return
|
|
42
|
+
var Sequence_1 = require("./Sequence");
|
|
43
|
+
Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return Sequence_1.Sequence; } });
|
|
39
44
|
var series_1 = require("./series");
|
|
40
45
|
Object.defineProperty(exports, "Series", { enumerable: true, get: function () { return series_1.Series; } });
|
|
41
46
|
__exportStar(require("./spring"), exports);
|
|
42
47
|
var static_file_1 = require("./static-file");
|
|
43
48
|
Object.defineProperty(exports, "staticFile", { enumerable: true, get: function () { return static_file_1.staticFile; } });
|
|
44
49
|
__exportStar(require("./Still"), exports);
|
|
45
|
-
|
|
50
|
+
var use_current_frame_1 = require("./use-current-frame");
|
|
51
|
+
Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return use_current_frame_1.useCurrentFrame; } });
|
|
46
52
|
__exportStar(require("./use-video-config"), exports);
|
|
47
53
|
__exportStar(require("./video"), exports);
|
|
48
54
|
__exportStar(require("./video-config"), exports);
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CompProps } from './Composition';
|
|
3
2
|
import { CompositionManagerContext, RenderAssetInfo, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
4
3
|
import * as AssetCompression from './compress-assets';
|
|
@@ -49,6 +48,7 @@ export declare const Internals: {
|
|
|
49
48
|
getRoot: () => import("react").FC<{}> | null;
|
|
50
49
|
getBrowserExecutable: () => import("./config/browser-executable").BrowserExecutable;
|
|
51
50
|
getCustomFfmpegExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
|
|
51
|
+
getCustomFfprobeExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
|
|
52
52
|
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
53
53
|
getConcurrency: () => number | null;
|
|
54
54
|
getRange: () => import("./config/frame-range").FrameRange | null;
|
|
@@ -88,14 +88,12 @@ export declare const Internals: {
|
|
|
88
88
|
truthy: typeof truthy;
|
|
89
89
|
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | undefined) => boolean;
|
|
90
90
|
Logging: typeof Logging;
|
|
91
|
-
SequenceContext: import("react").Context<import("./
|
|
91
|
+
SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
|
|
92
92
|
useRemotionContexts: typeof useRemotionContexts;
|
|
93
93
|
RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
|
|
94
94
|
CSSUtils: typeof CSSUtils;
|
|
95
95
|
setupEnvVariables: () => void;
|
|
96
|
-
setupInitialFrame: () => void;
|
|
97
96
|
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
98
|
-
INITIAL_FRAME_LOCAL_STORAGE_KEY: string;
|
|
99
97
|
getDotEnvLocation: () => string | null;
|
|
100
98
|
getServerPort: () => number | undefined;
|
|
101
99
|
MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
|
|
@@ -138,14 +136,17 @@ export declare const Internals: {
|
|
|
138
136
|
getCurrentPuppeteerTimeout: () => number;
|
|
139
137
|
getChromiumDisableWebSecurity: () => boolean;
|
|
140
138
|
getIgnoreCertificateErrors: () => boolean;
|
|
141
|
-
validateOpenGlRenderer: (option: "angle" | "egl" | "swiftshader" | null) => "angle" | "egl" | "swiftshader" | null;
|
|
142
|
-
getChromiumOpenGlRenderer: () => "angle" | "egl" | "swiftshader" | null;
|
|
139
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
140
|
+
getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
143
141
|
getChromiumHeadlessMode: () => boolean;
|
|
144
|
-
DEFAULT_OPENGL_RENDERER: "angle" | "egl" | "swiftshader" | null;
|
|
142
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
145
143
|
getPreviewDomElement: () => HTMLElement | null;
|
|
146
144
|
compositionsRef: import("react").RefObject<{
|
|
147
145
|
getCompositions: () => TCompMetadata[];
|
|
148
146
|
}>;
|
|
149
147
|
DELAY_RENDER_CALLSTACK_TOKEN: string;
|
|
148
|
+
useAbsoluteCurrentFrame: () => number;
|
|
149
|
+
portalNode: () => HTMLElement;
|
|
150
|
+
waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
|
|
150
151
|
};
|
|
151
152
|
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, TAsset, RenderAssetInfo, TimelineContextValue, SetTimelineContextValue, TimelineInOutContextValue, SetTimelineInOutContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, ProResProfile, OpenGlRenderer, };
|
package/dist/internals.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -51,17 +55,18 @@ const delay_render_1 = require("./delay-render");
|
|
|
51
55
|
const feature_flags_1 = require("./feature-flags");
|
|
52
56
|
const get_environment_1 = require("./get-environment");
|
|
53
57
|
const get_preview_dom_element_1 = require("./get-preview-dom-element");
|
|
54
|
-
const initial_frame_1 = require("./initial-frame");
|
|
55
58
|
const is_audio_codec_1 = require("./is-audio-codec");
|
|
56
59
|
const perf = __importStar(require("./perf"));
|
|
60
|
+
const portal_node_1 = require("./portal-node");
|
|
57
61
|
const register_root_1 = require("./register-root");
|
|
58
62
|
const RemotionRoot_1 = require("./RemotionRoot");
|
|
59
|
-
const
|
|
63
|
+
const Sequence_1 = require("./Sequence");
|
|
60
64
|
const setup_env_variables_1 = require("./setup-env-variables");
|
|
61
65
|
const TimelineInOutPosition = __importStar(require("./timeline-inout-position-state"));
|
|
62
66
|
const TimelinePosition = __importStar(require("./timeline-position-state"));
|
|
63
67
|
const timeout_2 = require("./timeout");
|
|
64
68
|
const truthy_1 = require("./truthy");
|
|
69
|
+
const use_current_frame_1 = require("./use-current-frame");
|
|
65
70
|
const use_lazy_component_1 = require("./use-lazy-component");
|
|
66
71
|
const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
|
|
67
72
|
const use_video_1 = require("./use-video");
|
|
@@ -88,6 +93,7 @@ exports.Internals = {
|
|
|
88
93
|
getRoot: register_root_1.getRoot,
|
|
89
94
|
getBrowserExecutable: browser_executable_1.getBrowserExecutable,
|
|
90
95
|
getCustomFfmpegExecutable: ffmpeg_executable_1.getCustomFfmpegExecutable,
|
|
96
|
+
getCustomFfprobeExecutable: ffmpeg_executable_1.getCustomFfprobeExecutable,
|
|
91
97
|
getPixelFormat: pixel_format_1.getPixelFormat,
|
|
92
98
|
getConcurrency: concurrency_1.getConcurrency,
|
|
93
99
|
getRange: frame_range_1.getRange,
|
|
@@ -120,14 +126,12 @@ exports.Internals = {
|
|
|
120
126
|
truthy: truthy_1.truthy,
|
|
121
127
|
isAudioCodec: is_audio_codec_1.isAudioCodec,
|
|
122
128
|
Logging,
|
|
123
|
-
SequenceContext:
|
|
129
|
+
SequenceContext: Sequence_1.SequenceContext,
|
|
124
130
|
useRemotionContexts: wrap_remotion_context_1.useRemotionContexts,
|
|
125
131
|
RemotionContextProvider: wrap_remotion_context_1.RemotionContextProvider,
|
|
126
132
|
CSSUtils,
|
|
127
133
|
setupEnvVariables: setup_env_variables_1.setupEnvVariables,
|
|
128
|
-
setupInitialFrame: initial_frame_1.setupInitialFrame,
|
|
129
134
|
ENV_VARIABLES_ENV_NAME: setup_env_variables_1.ENV_VARIABLES_ENV_NAME,
|
|
130
|
-
INITIAL_FRAME_LOCAL_STORAGE_KEY: initial_frame_1.INITIAL_FRAME_LOCAL_STORAGE_KEY,
|
|
131
135
|
getDotEnvLocation: env_file_1.getDotEnvLocation,
|
|
132
136
|
getServerPort: preview_server_1.getServerPort,
|
|
133
137
|
MediaVolumeContext: volume_position_state_1.MediaVolumeContext,
|
|
@@ -164,4 +168,7 @@ exports.Internals = {
|
|
|
164
168
|
getPreviewDomElement: get_preview_dom_element_1.getPreviewDomElement,
|
|
165
169
|
compositionsRef: CompositionManager_1.compositionsRef,
|
|
166
170
|
DELAY_RENDER_CALLSTACK_TOKEN: delay_render_1.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
171
|
+
useAbsoluteCurrentFrame: use_current_frame_1.useAbsoluteCurrentFrame,
|
|
172
|
+
portalNode: portal_node_1.portalNode,
|
|
173
|
+
waitForRoot: register_root_1.waitForRoot,
|
|
167
174
|
};
|