remotion 3.3.53 → 3.3.55
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/AbsoluteFill.d.ts +2 -2
- package/dist/cjs/AbsoluteFill.js +2 -2
- package/dist/cjs/Composition.d.ts +4 -0
- package/dist/cjs/Composition.js +4 -0
- package/dist/cjs/Folder.d.ts +4 -0
- package/dist/cjs/Folder.js +4 -0
- package/dist/cjs/IFrame.d.ts +4 -0
- package/dist/cjs/IFrame.js +4 -0
- package/dist/cjs/Img.d.ts +4 -0
- package/dist/cjs/Img.js +4 -0
- package/dist/cjs/Sequence.d.ts +2 -10
- package/dist/cjs/Sequence.js +6 -6
- package/dist/cjs/SequenceContext.d.ts +9 -0
- package/dist/cjs/SequenceContext.js +5 -0
- package/dist/cjs/Still.d.ts +4 -0
- package/dist/cjs/Still.js +4 -0
- package/dist/cjs/audio/Audio.d.ts +4 -0
- package/dist/cjs/audio/Audio.js +6 -2
- package/dist/cjs/audio/AudioForDevelopment.js +2 -2
- package/dist/cjs/audio/AudioForRendering.js +2 -2
- package/dist/cjs/audio/use-audio-frame.js +2 -2
- package/dist/cjs/cancel-render.d.ts +4 -0
- package/dist/cjs/cancel-render.js +4 -0
- package/dist/cjs/delay-render.d.ts +4 -4
- package/dist/cjs/delay-render.js +4 -4
- package/dist/cjs/easing.d.ts +4 -0
- package/dist/cjs/easing.js +4 -0
- package/dist/cjs/freeze.d.ts +4 -0
- package/dist/cjs/freeze.js +6 -2
- package/dist/cjs/get-static-files.d.ts +4 -0
- package/dist/cjs/get-static-files.js +4 -0
- package/dist/cjs/index.d.ts +16 -8
- package/dist/cjs/index.js +18 -10
- package/dist/cjs/internals.d.ts +5 -5
- package/dist/cjs/internals.js +4 -4
- package/dist/cjs/interpolate-colors.d.ts +4 -0
- package/dist/cjs/interpolate-colors.js +4 -0
- package/dist/cjs/interpolate.js +4 -0
- package/dist/cjs/loop/index.d.ts +4 -0
- package/dist/cjs/loop/index.js +4 -0
- package/dist/cjs/prefetch.d.ts +4 -0
- package/dist/cjs/prefetch.js +4 -0
- package/dist/cjs/random.d.ts +2 -3
- package/dist/cjs/random.js +2 -3
- package/dist/cjs/register-root.d.ts +4 -0
- package/dist/cjs/register-root.js +4 -0
- package/dist/cjs/series/index.d.ts +4 -0
- package/dist/cjs/series/index.js +4 -0
- package/dist/cjs/spring/index.d.ts +2 -2
- package/dist/cjs/spring/index.js +2 -2
- package/dist/cjs/spring/measure-spring.d.ts +4 -0
- package/dist/cjs/spring/measure-spring.js +4 -0
- package/dist/cjs/static-file.d.ts +2 -2
- package/dist/cjs/static-file.js +2 -2
- package/dist/cjs/use-current-frame.d.ts +2 -3
- package/dist/cjs/use-current-frame.js +4 -5
- package/dist/cjs/use-media-in-timeline.js +2 -2
- package/dist/cjs/use-unsafe-video-config.js +2 -2
- package/dist/cjs/use-video-config.d.ts +4 -3
- package/dist/cjs/use-video-config.js +4 -3
- package/dist/cjs/validate-media-props.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/OffthreadVideo.d.ts +4 -0
- package/dist/cjs/video/OffthreadVideo.js +4 -0
- package/dist/cjs/video/OffthreadVideoForRendering.js +2 -2
- package/dist/cjs/video/Video.d.ts +4 -0
- package/dist/cjs/video/Video.js +6 -2
- package/dist/cjs/video/VideoForDevelopment.js +2 -2
- package/dist/cjs/video/VideoForRendering.js +2 -2
- package/dist/cjs/wrap-remotion-context.d.ts +1 -1
- package/dist/cjs/wrap-remotion-context.js +3 -3
- package/dist/esm/AbsoluteFill.js +2 -2
- package/dist/esm/Composition.js +4 -0
- package/dist/esm/Folder.js +4 -0
- package/dist/esm/IFrame.js +4 -0
- package/dist/esm/Img.js +4 -0
- package/dist/esm/Sequence.js +5 -5
- package/dist/esm/SequenceContext.js +2 -0
- package/dist/esm/Still.js +4 -0
- package/dist/esm/audio/Audio.js +5 -1
- package/dist/esm/audio/AudioForDevelopment.js +1 -1
- package/dist/esm/audio/AudioForRendering.js +1 -1
- package/dist/esm/audio/use-audio-frame.js +1 -1
- package/dist/esm/cancel-render.js +4 -0
- package/dist/esm/delay-render.js +4 -4
- package/dist/esm/easing.js +4 -0
- package/dist/esm/freeze.js +5 -1
- package/dist/esm/get-static-files.js +4 -0
- package/dist/esm/index.js +15 -7
- package/dist/esm/index.mjs +4070 -0
- package/dist/esm/internals.js +2 -2
- package/dist/esm/interpolate-colors.js +4 -0
- package/dist/esm/interpolate.js +4 -0
- package/dist/esm/loop/index.js +4 -0
- package/dist/esm/prefetch.js +4 -0
- package/dist/esm/random.js +2 -3
- package/dist/esm/register-root.js +4 -0
- package/dist/esm/series/index.js +4 -0
- package/dist/esm/spring/index.js +2 -2
- package/dist/esm/spring/measure-spring.js +4 -0
- package/dist/esm/static-file.js +2 -2
- package/dist/esm/test/audio.test.js +1 -1
- package/dist/esm/test/composition-validation.test.js +1 -1
- package/dist/esm/test/loop-validation.test.js +1 -1
- package/dist/esm/test/measure-spring.test.js +1 -1
- package/dist/esm/test/series.test.js +1 -1
- package/dist/esm/test/spring.test.js +1 -1
- package/dist/esm/test/use-audio-frame.test.js +1 -1
- package/dist/esm/test/video.test.js +1 -1
- package/dist/esm/use-current-frame.js +3 -4
- package/dist/esm/use-media-in-timeline.js +1 -1
- package/dist/esm/use-unsafe-video-config.js +1 -1
- package/dist/esm/use-video-config.js +4 -3
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.mjs +4 -0
- package/dist/esm/video/OffthreadVideo.js +4 -0
- package/dist/esm/video/OffthreadVideoForRendering.js +1 -1
- package/dist/esm/video/Video.js +5 -1
- package/dist/esm/video/VideoForDevelopment.js +1 -1
- package/dist/esm/video/VideoForRendering.js +1 -1
- package/dist/esm/wrap-remotion-context.js +2 -2
- package/package.json +11 -9
- package/version.js +2 -0
- package/.prettierrc.js +0 -14
- package/dist/cjs/test/Img.test.d.ts +0 -1
- package/dist/cjs/test/Img.test.js +0 -25
- package/dist/cjs/test/absolute-src.test.d.ts +0 -1
- package/dist/cjs/test/absolute-src.test.js +0 -18
- package/dist/cjs/test/audio-for-rendering.test.d.ts +0 -1
- package/dist/cjs/test/audio-for-rendering.test.js +0 -88
- package/dist/cjs/test/audio.test.d.ts +0 -1
- package/dist/cjs/test/audio.test.js +0 -76
- package/dist/cjs/test/bezier.test.d.ts +0 -1
- package/dist/cjs/test/bezier.test.js +0 -52
- package/dist/cjs/test/composition-rules.test.d.ts +0 -1
- package/dist/cjs/test/composition-rules.test.js +0 -30
- package/dist/cjs/test/composition-validation.test.d.ts +0 -1
- package/dist/cjs/test/composition-validation.test.js +0 -99
- package/dist/cjs/test/easing.test.d.ts +0 -1
- package/dist/cjs/test/easing.test.js +0 -191
- package/dist/cjs/test/expect-to-throw.d.ts +0 -1
- package/dist/cjs/test/expect-to-throw.js +0 -15
- package/dist/cjs/test/freeze.test.d.ts +0 -1
- package/dist/cjs/test/freeze.test.js +0 -65
- package/dist/cjs/test/get-asset-file-name.test.d.ts +0 -1
- package/dist/cjs/test/get-asset-file-name.test.js +0 -14
- package/dist/cjs/test/get-current-time.test.d.ts +0 -1
- package/dist/cjs/test/get-current-time.test.js +0 -74
- package/dist/cjs/test/input-props.test.d.ts +0 -1
- package/dist/cjs/test/input-props.test.js +0 -31
- package/dist/cjs/test/interpolate.test.d.ts +0 -1
- package/dist/cjs/test/interpolate.test.js +0 -138
- package/dist/cjs/test/interpolateColors.test.d.ts +0 -1
- package/dist/cjs/test/interpolateColors.test.js +0 -63
- package/dist/cjs/test/loop-validation.test.d.ts +0 -1
- package/dist/cjs/test/loop-validation.test.js +0 -93
- package/dist/cjs/test/measure-spring.test.d.ts +0 -1
- package/dist/cjs/test/measure-spring.test.js +0 -45
- package/dist/cjs/test/media-validation.test.d.ts +0 -1
- package/dist/cjs/test/media-validation.test.js +0 -47
- package/dist/cjs/test/nested-sequences.test.d.ts +0 -1
- package/dist/cjs/test/nested-sequences.test.js +0 -132
- package/dist/cjs/test/not-all-props-in-media-tags.test.d.ts +0 -1
- package/dist/cjs/test/not-all-props-in-media-tags.test.js +0 -33
- package/dist/cjs/test/random.test.d.ts +0 -1
- package/dist/cjs/test/random.test.js +0 -60
- package/dist/cjs/test/ready-manager.test.d.ts +0 -1
- package/dist/cjs/test/ready-manager.test.js +0 -29
- package/dist/cjs/test/render-hook.d.ts +0 -23
- package/dist/cjs/test/render-hook.js +0 -27
- package/dist/cjs/test/sequence-from-initial-offset.test.d.ts +0 -4
- package/dist/cjs/test/sequence-from-initial-offset.test.js +0 -35
- package/dist/cjs/test/sequence-validation.test.d.ts +0 -1
- package/dist/cjs/test/sequence-validation.test.js +0 -47
- package/dist/cjs/test/series.test.d.ts +0 -1
- package/dist/cjs/test/series.test.js +0 -115
- package/dist/cjs/test/spring.test.d.ts +0 -1
- package/dist/cjs/test/spring.test.js +0 -38
- package/dist/cjs/test/truthy.test.d.ts +0 -1
- package/dist/cjs/test/truthy.test.js +0 -24
- package/dist/cjs/test/use-audio-frame.test.d.ts +0 -1
- package/dist/cjs/test/use-audio-frame.test.js +0 -78
- package/dist/cjs/test/use-media-in-timeline.test.d.ts +0 -1
- package/dist/cjs/test/use-media-in-timeline.test.js +0 -74
- package/dist/cjs/test/use-media-tag-volume.test.d.ts +0 -1
- package/dist/cjs/test/use-media-tag-volume.test.js +0 -49
- package/dist/cjs/test/use-sync-volume-with-media-tag.test.d.ts +0 -1
- package/dist/cjs/test/use-sync-volume-with-media-tag.test.js +0 -55
- package/dist/cjs/test/validate-start-from-props.test.d.ts +0 -1
- package/dist/cjs/test/validate-start-from-props.test.js +0 -39
- package/dist/cjs/test/video.test.d.ts +0 -1
- package/dist/cjs/test/video.test.js +0 -80
- package/dist/cjs/test/volume-prop.test.d.ts +0 -1
- package/dist/cjs/test/volume-prop.test.js +0 -95
- package/dist/cjs/test/wrap-sequence-context.d.ts +0 -6
- package/dist/cjs/test/wrap-sequence-context.js +0 -41
- package/dist/esm/AbsoluteFill.d.ts +0 -6
- package/dist/esm/CanUseRemotionHooks.d.ts +0 -5
- package/dist/esm/Clipper.d.ts +0 -7
- package/dist/esm/Composition.d.ts +0 -23
- package/dist/esm/CompositionManager.d.ts +0 -82
- package/dist/esm/Folder.d.ts +0 -15
- package/dist/esm/IFrame.d.ts +0 -2
- package/dist/esm/Img.d.ts +0 -2
- package/dist/esm/NativeLayers.d.ts +0 -13
- package/dist/esm/Null.d.ts +0 -2
- package/dist/esm/RemotionRoot.d.ts +0 -5
- package/dist/esm/Sequence.d.ts +0 -29
- package/dist/esm/Still.d.ts +0 -3
- package/dist/esm/absolute-src.d.ts +0 -1
- package/dist/esm/asset-types.d.ts +0 -50
- package/dist/esm/audio/Audio.d.ts +0 -8
- package/dist/esm/audio/AudioForDevelopment.d.ts +0 -11
- package/dist/esm/audio/AudioForRendering.d.ts +0 -10
- package/dist/esm/audio/index.d.ts +0 -2
- package/dist/esm/audio/props.d.ts +0 -12
- package/dist/esm/audio/shared-audio-tags.d.ts +0 -37
- package/dist/esm/audio/use-audio-frame.d.ts +0 -6
- package/dist/esm/bezier.d.ts +0 -1
- package/dist/esm/cancel-render.d.ts +0 -1
- package/dist/esm/config/input-props.d.ts +0 -1
- package/dist/esm/config.d.ts +0 -285
- package/dist/esm/default-css.d.ts +0 -3
- package/dist/esm/delay-render.d.ts +0 -14
- package/dist/esm/easing.d.ts +0 -19
- package/dist/esm/freeze.d.ts +0 -7
- package/dist/esm/get-asset-file-name.d.ts +0 -1
- package/dist/esm/get-environment.d.ts +0 -3
- package/dist/esm/get-preview-dom-element.d.ts +0 -1
- package/dist/esm/get-static-files.d.ts +0 -17
- package/dist/esm/get-timeline-clip-name.d.ts +0 -1
- package/dist/esm/index.d.ts +0 -92
- package/dist/esm/internals.d.ts +0 -99
- package/dist/esm/interpolate-colors.d.ts +0 -5
- package/dist/esm/interpolate.d.ts +0 -18
- package/dist/esm/is-approximately-the-same.d.ts +0 -1
- package/dist/esm/is-player.d.ts +0 -3
- package/dist/esm/loading-indicator.d.ts +0 -2
- package/dist/esm/loop/index.d.ts +0 -9
- package/dist/esm/multiple-versions-warning.d.ts +0 -1
- package/dist/esm/nonce.d.ts +0 -7
- package/dist/esm/play-and-handle-not-allowed-error.d.ts +0 -2
- package/dist/esm/portal-node.d.ts +0 -1
- package/dist/esm/prefetch-state.d.ts +0 -8
- package/dist/esm/prefetch.d.ts +0 -9
- package/dist/esm/random.d.ts +0 -7
- package/dist/esm/register-root.d.ts +0 -4
- package/dist/esm/series/flatten-children.d.ts +0 -2
- package/dist/esm/series/index.d.ts +0 -13
- package/dist/esm/setup-env-variables.d.ts +0 -2
- package/dist/esm/spring/index.d.ts +0 -27
- package/dist/esm/spring/measure-spring.d.ts +0 -8
- package/dist/esm/spring/spring-utils.d.ts +0 -21
- package/dist/esm/static-file.d.ts +0 -5
- package/dist/esm/test/Img.test.d.ts +0 -1
- package/dist/esm/test/absolute-src.test.d.ts +0 -1
- package/dist/esm/test/audio-for-rendering.test.d.ts +0 -1
- package/dist/esm/test/audio.test.d.ts +0 -1
- package/dist/esm/test/bezier.test.d.ts +0 -1
- package/dist/esm/test/composition-rules.test.d.ts +0 -1
- package/dist/esm/test/composition-validation.test.d.ts +0 -1
- package/dist/esm/test/easing.test.d.ts +0 -1
- package/dist/esm/test/expect-to-throw.d.ts +0 -1
- package/dist/esm/test/freeze.test.d.ts +0 -1
- package/dist/esm/test/get-asset-file-name.test.d.ts +0 -1
- package/dist/esm/test/get-current-time.test.d.ts +0 -1
- package/dist/esm/test/input-props.test.d.ts +0 -1
- package/dist/esm/test/interpolate.test.d.ts +0 -1
- package/dist/esm/test/interpolateColors.test.d.ts +0 -1
- package/dist/esm/test/loop-validation.test.d.ts +0 -1
- package/dist/esm/test/measure-spring.test.d.ts +0 -1
- package/dist/esm/test/media-validation.test.d.ts +0 -1
- package/dist/esm/test/nested-sequences.test.d.ts +0 -1
- package/dist/esm/test/not-all-props-in-media-tags.test.d.ts +0 -1
- package/dist/esm/test/random.test.d.ts +0 -1
- package/dist/esm/test/ready-manager.test.d.ts +0 -1
- package/dist/esm/test/render-hook.d.ts +0 -23
- package/dist/esm/test/sequence-from-initial-offset.test.d.ts +0 -4
- package/dist/esm/test/sequence-validation.test.d.ts +0 -1
- package/dist/esm/test/series.test.d.ts +0 -1
- package/dist/esm/test/spring.test.d.ts +0 -1
- package/dist/esm/test/truthy.test.d.ts +0 -1
- package/dist/esm/test/use-audio-frame.test.d.ts +0 -1
- package/dist/esm/test/use-media-in-timeline.test.d.ts +0 -1
- package/dist/esm/test/use-media-tag-volume.test.d.ts +0 -1
- package/dist/esm/test/use-sync-volume-with-media-tag.test.d.ts +0 -1
- package/dist/esm/test/validate-start-from-props.test.d.ts +0 -1
- package/dist/esm/test/video.test.d.ts +0 -1
- package/dist/esm/test/volume-prop.test.d.ts +0 -1
- package/dist/esm/test/wrap-sequence-context.d.ts +0 -6
- package/dist/esm/timeline-position-state.d.ts +0 -29
- package/dist/esm/truthy.d.ts +0 -3
- package/dist/esm/use-current-frame.d.ts +0 -6
- package/dist/esm/use-lazy-component.d.ts +0 -7
- package/dist/esm/use-media-in-timeline.d.ts +0 -10
- package/dist/esm/use-media-playback.d.ts +0 -10
- package/dist/esm/use-media-tag-volume.d.ts +0 -2
- package/dist/esm/use-sync-volume-with-media-tag.d.ts +0 -10
- package/dist/esm/use-unsafe-video-config.d.ts +0 -2
- package/dist/esm/use-video-config.d.ts +0 -7
- package/dist/esm/use-video.d.ts +0 -13
- package/dist/esm/validate-frame.d.ts +0 -1
- package/dist/esm/validate-media-props.d.ts +0 -4
- package/dist/esm/validate-start-from-props.d.ts +0 -1
- package/dist/esm/validation/validate-composition-id.d.ts +0 -3
- package/dist/esm/validation/validate-dimensions.d.ts +0 -1
- package/dist/esm/validation/validate-duration-in-frames.d.ts +0 -1
- package/dist/esm/validation/validate-folder-name.d.ts +0 -3
- package/dist/esm/validation/validate-fps.d.ts +0 -1
- package/dist/esm/validation/validate-offthreadvideo-image-format.d.ts +0 -1
- package/dist/esm/validation/validation-spring-duration.d.ts +0 -1
- package/dist/esm/version.d.ts +0 -1
- package/dist/esm/video/OffthreadVideo.d.ts +0 -3
- package/dist/esm/video/OffthreadVideoForRendering.d.ts +0 -3
- package/dist/esm/video/Video.d.ts +0 -8
- package/dist/esm/video/VideoForDevelopment.d.ts +0 -11
- package/dist/esm/video/VideoForRendering.d.ts +0 -10
- package/dist/esm/video/duration-state.d.ts +0 -17
- package/dist/esm/video/get-current-time.d.ts +0 -13
- package/dist/esm/video/index.d.ts +0 -3
- package/dist/esm/video/props.d.ts +0 -25
- package/dist/esm/video/video-fragment.d.ts +0 -12
- package/dist/esm/video-config.d.ts +0 -8
- package/dist/esm/volume-position-state.d.ts +0 -19
- package/dist/esm/volume-prop.d.ts +0 -7
- package/dist/esm/warn-about-non-seekable-media.d.ts +0 -1
- package/dist/esm/wrap-remotion-context.d.ts +0 -18
- package/dist/tsconfig-cjs.tsbuildinfo +0 -1
- package/tsconfig-cjs.json +0 -11
- package/tsconfig.json +0 -12
package/dist/esm/Still.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Composition } from './Composition.js';
|
|
3
|
+
/**
|
|
4
|
+
* @description A <Still /> is a <Composition /> that is only 1 frame long.
|
|
5
|
+
* @see [Documentation](https://www.remotion.dev/docs/still)
|
|
6
|
+
*/
|
|
3
7
|
export const Still = (props) => {
|
|
4
8
|
return _jsx(Composition, { fps: 1, durationInFrames: 1, ...props });
|
|
5
9
|
};
|
package/dist/esm/audio/Audio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useContext } from 'react';
|
|
3
3
|
import { useRemotionEnvironment } from '../get-environment.js';
|
|
4
|
-
import { Loop } from '../loop';
|
|
4
|
+
import { Loop } from '../loop/index.js';
|
|
5
5
|
import { Sequence } from '../Sequence.js';
|
|
6
6
|
import { useVideoConfig } from '../use-video-config.js';
|
|
7
7
|
import { validateMediaProps } from '../validate-media-props.js';
|
|
@@ -46,4 +46,8 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
46
46
|
}
|
|
47
47
|
return (_jsx(AudioForDevelopment, { shouldPreMountAudioTags: audioContext !== null && audioContext.numberOfAudioTags > 0, ...props, ref: ref, onError: onError, onDuration: onDuration }));
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* @description With this component, you can add audio to your video. All audio formats which are supported by Chromium are supported by the component.
|
|
51
|
+
* @see [Documentation](https://www.remotion.dev/docs/audio)
|
|
52
|
+
*/
|
|
49
53
|
export const Audio = forwardRef(AudioRefForwardingFunction);
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState, } from 'react';
|
|
3
3
|
import { usePreload } from '../prefetch.js';
|
|
4
4
|
import { random } from '../random.js';
|
|
5
|
-
import { SequenceContext } from '../
|
|
5
|
+
import { SequenceContext } from '../SequenceContext.js';
|
|
6
6
|
import { useMediaInTimeline } from '../use-media-in-timeline.js';
|
|
7
7
|
import { DEFAULT_ACCEPTABLE_TIMESHIFT, useMediaPlayback, } from '../use-media-playback.js';
|
|
8
8
|
import { useMediaTagVolume } from '../use-media-tag-volume.js';
|
|
@@ -5,7 +5,7 @@ import { CompositionManager } from '../CompositionManager.js';
|
|
|
5
5
|
import { continueRender, delayRender } from '../delay-render.js';
|
|
6
6
|
import { useRemotionEnvironment } from '../get-environment.js';
|
|
7
7
|
import { random } from '../random.js';
|
|
8
|
-
import { SequenceContext } from '../
|
|
8
|
+
import { SequenceContext } from '../SequenceContext.js';
|
|
9
9
|
import { useTimelinePosition } from '../timeline-position-state.js';
|
|
10
10
|
import { useCurrentFrame } from '../use-current-frame.js';
|
|
11
11
|
import { evaluateVolume } from '../volume-prop.js';
|
|
@@ -23,6 +23,10 @@ const isErrorLike = (err) => {
|
|
|
23
23
|
}
|
|
24
24
|
return true;
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* @description When you invoke this function, Remotion will stop rendering all the frames without any retries
|
|
28
|
+
* @see [Documentation](https://www.remotion.dev/docs/cancel-render)
|
|
29
|
+
*/
|
|
26
30
|
export function cancelRender(err) {
|
|
27
31
|
let error;
|
|
28
32
|
if (isErrorLike(err)) {
|
package/dist/esm/delay-render.js
CHANGED
|
@@ -8,10 +8,10 @@ const timeouts = {};
|
|
|
8
8
|
export const DELAY_RENDER_CALLSTACK_TOKEN = 'The delayRender was called:';
|
|
9
9
|
const defaultTimeout = 30000;
|
|
10
10
|
/**
|
|
11
|
-
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
11
|
+
* @description Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
12
12
|
* @param label _optional_ A label to identify the call in case it does time out.
|
|
13
13
|
* @returns {number} An identifier to be passed to continueRender().
|
|
14
|
-
* @
|
|
14
|
+
* @see [Documentation](https://www.remotion.dev/docs/delay-render)
|
|
15
15
|
*/
|
|
16
16
|
export const delayRender = (label) => {
|
|
17
17
|
var _a, _b, _c;
|
|
@@ -45,9 +45,9 @@ export const delayRender = (label) => {
|
|
|
45
45
|
return handle;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
|
-
* Unblock a render that has been blocked by delayRender()
|
|
48
|
+
* @description Unblock a render that has been blocked by delayRender()
|
|
49
49
|
* @param handle The return value of delayRender().
|
|
50
|
-
* @
|
|
50
|
+
* @see [Documentation](https://www.remotion.dev/docs/continue-render)
|
|
51
51
|
*/
|
|
52
52
|
export const continueRender = (handle) => {
|
|
53
53
|
if (typeof handle === 'undefined') {
|
package/dist/esm/easing.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// Taken from https://github.com/facebook/react-native/blob/0b9ea60b4fee8cacc36e7160e31b91fc114dbc0d/Libraries/Animated/src/Easing.js
|
|
2
2
|
import { bezier } from './bezier.js';
|
|
3
|
+
/**
|
|
4
|
+
* @description The Easing module implements common easing functions. You can use it with the interpolate() API.
|
|
5
|
+
* @see [Documentation](https://www.remotion.dev/docs/easing)
|
|
6
|
+
*/
|
|
3
7
|
export class Easing {
|
|
4
8
|
static step0(n) {
|
|
5
9
|
return n > 0 ? 1 : 0;
|
package/dist/esm/freeze.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useMemo } from 'react';
|
|
3
|
-
import { SequenceContext } from './
|
|
3
|
+
import { SequenceContext } from './SequenceContext.js';
|
|
4
4
|
import { TimelineContext } from './timeline-position-state.js';
|
|
5
|
+
/**
|
|
6
|
+
* @description This method freezes all of its children to the frame that you specify as a prop
|
|
7
|
+
* @see [Documentation](https://www.remotion.dev/docs/freeze)
|
|
8
|
+
*/
|
|
5
9
|
export const Freeze = ({ frame, children }) => {
|
|
6
10
|
if (typeof frame === 'undefined') {
|
|
7
11
|
throw new Error(`The <Freeze /> component requires a 'frame' prop, but none was passed.`);
|
|
@@ -14,6 +14,10 @@ const warnPlayerOnce = () => {
|
|
|
14
14
|
warnedPlayer = true;
|
|
15
15
|
console.warn('Called getStaticFiles() while using the Remotion Player. The API is only available while using the Remotion Preview. An empty array was returned.');
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @description The function array containing all files in the public/ folder. You can reference them by using staticFile().
|
|
19
|
+
* @see [Documentation](https://www.remotion.dev/docs/getstaticfiles)
|
|
20
|
+
*/
|
|
17
21
|
export const getStaticFiles = () => {
|
|
18
22
|
if (typeof document === 'undefined') {
|
|
19
23
|
warnServerOnce();
|
package/dist/esm/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import { checkMultipleRemotionVersions } from './multiple-versions-warning.js';
|
|
|
5
5
|
import { Null } from './Null.js';
|
|
6
6
|
checkMultipleRemotionVersions();
|
|
7
7
|
export * from './AbsoluteFill.js';
|
|
8
|
-
export * from './audio';
|
|
8
|
+
export * from './audio/index.js';
|
|
9
9
|
export { cancelRender } from './cancel-render.js';
|
|
10
10
|
export * from './Composition.js';
|
|
11
|
-
export { Config } from './config';
|
|
11
|
+
export { Config } from './config.js';
|
|
12
12
|
export { getInputProps } from './config/input-props.js';
|
|
13
13
|
export { continueRender, delayRender } from './delay-render.js';
|
|
14
14
|
export * from './easing.js';
|
|
@@ -18,24 +18,32 @@ export { getStaticFiles } from './get-static-files.js';
|
|
|
18
18
|
export * from './IFrame.js';
|
|
19
19
|
export * from './Img.js';
|
|
20
20
|
export * from './internals.js';
|
|
21
|
-
export * from './interpolate.js';
|
|
22
21
|
export { interpolateColors } from './interpolate-colors.js';
|
|
23
|
-
export
|
|
22
|
+
export * from './interpolate.js';
|
|
23
|
+
export { Loop } from './loop/index.js';
|
|
24
24
|
export { prefetch } from './prefetch.js';
|
|
25
25
|
export { random } from './random.js';
|
|
26
26
|
export { registerRoot } from './register-root.js';
|
|
27
27
|
export { Sequence } from './Sequence.js';
|
|
28
|
-
export { Series } from './series';
|
|
29
|
-
export * from './spring';
|
|
28
|
+
export { Series } from './series/index.js';
|
|
29
|
+
export * from './spring/index.js';
|
|
30
30
|
export { staticFile } from './static-file.js';
|
|
31
31
|
export * from './Still.js';
|
|
32
32
|
export { useCurrentFrame } from './use-current-frame.js';
|
|
33
33
|
export * from './use-video-config.js';
|
|
34
34
|
export * from './version.js';
|
|
35
|
-
export * from './video';
|
|
36
35
|
export * from './video-config.js';
|
|
36
|
+
export * from './video/index.js';
|
|
37
37
|
export const Experimental = {
|
|
38
|
+
/**
|
|
39
|
+
* @description This is a special component that will cause Remotion to only partially capture the frame of the video.
|
|
40
|
+
* @see [Documentation](https://www.remotion.dev/docs/clipper)
|
|
41
|
+
*/
|
|
38
42
|
Clipper,
|
|
43
|
+
/**
|
|
44
|
+
* @description This is a special component, that, when rendered, will skip rendering the frame altogether.
|
|
45
|
+
* @see [Documentation](https://www.remotion.dev/docs/null)
|
|
46
|
+
*/
|
|
39
47
|
Null,
|
|
40
48
|
useIsPlayer,
|
|
41
49
|
};
|