remotion 3.3.54 → 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/AbsoluteFill.d.ts +0 -6
- package/dist/AbsoluteFill.js +0 -28
- package/dist/CanUseRemotionHooks.d.ts +0 -5
- package/dist/CanUseRemotionHooks.js +0 -10
- package/dist/Clipper.d.ts +0 -7
- package/dist/Clipper.js +0 -24
- package/dist/Composition.d.ts +0 -23
- package/dist/Composition.js +0 -113
- package/dist/CompositionManager.d.ts +0 -82
- package/dist/CompositionManager.js +0 -154
- package/dist/Folder.d.ts +0 -15
- package/dist/Folder.js +0 -33
- package/dist/IFrame.d.ts +0 -2
- package/dist/IFrame.js +0 -24
- package/dist/Img.d.ts +0 -2
- package/dist/Img.js +0 -52
- package/dist/NativeLayers.d.ts +0 -13
- package/dist/NativeLayers.js +0 -29
- package/dist/Null.d.ts +0 -2
- package/dist/Null.js +0 -25
- package/dist/RemotionRoot.d.ts +0 -5
- package/dist/RemotionRoot.js +0 -73
- package/dist/Sequence.d.ts +0 -28
- package/dist/Sequence.js +0 -131
- package/dist/Still.d.ts +0 -2
- package/dist/Still.js +0 -9
- package/dist/absolute-src.d.ts +0 -1
- package/dist/absolute-src.js +0 -7
- package/dist/asset-types.d.ts +0 -50
- package/dist/asset-types.js +0 -1
- package/dist/audio/Audio.d.ts +0 -8
- package/dist/audio/Audio.js +0 -52
- package/dist/audio/AudioForDevelopment.d.ts +0 -11
- package/dist/audio/AudioForDevelopment.js +0 -94
- package/dist/audio/AudioForRendering.d.ts +0 -10
- package/dist/audio/AudioForRendering.js +0 -111
- package/dist/audio/index.d.ts +0 -2
- package/dist/audio/index.js +0 -18
- package/dist/audio/props.d.ts +0 -12
- package/dist/audio/props.js +0 -2
- package/dist/audio/shared-audio-tags.d.ts +0 -37
- package/dist/audio/shared-audio-tags.js +0 -222
- package/dist/audio/use-audio-frame.d.ts +0 -6
- package/dist/audio/use-audio-frame.js +0 -23
- package/dist/bezier.d.ts +0 -1
- package/dist/bezier.js +0 -114
- 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/config/input-props.d.ts +0 -1
- package/dist/config/input-props.js +0 -31
- package/dist/config.d.ts +0 -291
- package/dist/config.js +0 -21
- package/dist/default-css.d.ts +0 -3
- package/dist/default-css.js +0 -49
- package/dist/delay-render.d.ts +0 -14
- package/dist/delay-render.js +0 -77
- package/dist/easing.d.ts +0 -19
- package/dist/easing.js +0 -77
- 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/freeze.d.ts +0 -7
- package/dist/freeze.js +0 -34
- package/dist/get-asset-file-name.d.ts +0 -1
- package/dist/get-asset-file-name.js +0 -14
- package/dist/get-environment.d.ts +0 -3
- package/dist/get-environment.js +0 -34
- package/dist/get-preview-dom-element.d.ts +0 -1
- package/dist/get-preview-dom-element.js +0 -7
- package/dist/get-static-files.d.ts +0 -17
- package/dist/get-static-files.js +0 -31
- package/dist/get-timeline-clip-name.d.ts +0 -1
- package/dist/get-timeline-clip-name.js +0 -25
- package/dist/index.d.ts +0 -89
- package/dist/index.js +0 -69
- package/dist/internals.d.ts +0 -100
- package/dist/internals.js +0 -99
- package/dist/interpolate-colors.d.ts +0 -5
- package/dist/interpolate-colors.js +0 -401
- package/dist/interpolate.d.ts +0 -18
- package/dist/interpolate.js +0 -123
- package/dist/is-approximately-the-same.d.ts +0 -1
- package/dist/is-approximately-the-same.js +0 -8
- package/dist/is-player.d.ts +0 -3
- package/dist/is-player.js +0 -14
- package/dist/loading-indicator.d.ts +0 -2
- package/dist/loading-indicator.js +0 -35
- package/dist/loop/index.d.ts +0 -9
- package/dist/loop/index.js +0 -29
- package/dist/multiple-versions-warning.d.ts +0 -1
- package/dist/multiple-versions-warning.js +0 -32
- package/dist/nonce.d.ts +0 -7
- package/dist/nonce.js +0 -17
- package/dist/play-and-handle-not-allowed-error.d.ts +0 -2
- package/dist/play-and-handle-not-allowed-error.js +0 -44
- package/dist/portal-node.d.ts +0 -1
- package/dist/portal-node.js +0 -23
- package/dist/prefetch-state.d.ts +0 -8
- package/dist/prefetch-state.js +0 -27
- package/dist/prefetch.d.ts +0 -9
- package/dist/prefetch.js +0 -108
- package/dist/random.d.ts +0 -7
- package/dist/random.js +0 -41
- package/dist/register-root.d.ts +0 -4
- package/dist/register-root.js +0 -33
- package/dist/series/flatten-children.d.ts +0 -2
- package/dist/series/flatten-children.js +0 -19
- package/dist/series/index.d.ts +0 -13
- package/dist/series/index.js +0 -57
- package/dist/setup-env-variables.d.ts +0 -2
- package/dist/setup-env-variables.js +0 -36
- package/dist/spring/index.d.ts +0 -27
- package/dist/spring/index.js +0 -51
- package/dist/spring/measure-spring.d.ts +0 -8
- package/dist/spring/measure-spring.js +0 -64
- package/dist/spring/spring-utils.d.ts +0 -21
- package/dist/spring/spring-utils.js +0 -103
- package/dist/static-file.d.ts +0 -5
- package/dist/static-file.js +0 -33
- package/dist/timeline-position-state.d.ts +0 -29
- package/dist/timeline-position-state.js +0 -41
- package/dist/truthy.d.ts +0 -3
- package/dist/truthy.js +0 -7
- package/dist/tsconfig-cjs.tsbuildinfo +0 -1
- package/dist/use-current-frame.d.ts +0 -6
- package/dist/use-current-frame.js +0 -28
- package/dist/use-lazy-component.d.ts +0 -7
- package/dist/use-lazy-component.js +0 -49
- package/dist/use-media-in-timeline.d.ts +0 -10
- package/dist/use-media-in-timeline.js +0 -129
- package/dist/use-media-playback.d.ts +0 -10
- package/dist/use-media-playback.js +0 -77
- package/dist/use-media-tag-volume.d.ts +0 -2
- package/dist/use-media-tag-volume.js +0 -31
- package/dist/use-sync-volume-with-media-tag.d.ts +0 -10
- package/dist/use-sync-volume-with-media-tag.js +0 -21
- package/dist/use-unsafe-video-config.d.ts +0 -2
- package/dist/use-unsafe-video-config.js +0 -27
- package/dist/use-video-config.d.ts +0 -7
- package/dist/use-video-config.js +0 -29
- package/dist/use-video.d.ts +0 -12
- package/dist/use-video.js +0 -28
- package/dist/validate-media-props.d.ts +0 -4
- package/dist/validate-media-props.js +0 -24
- package/dist/validate-start-from-props.d.ts +0 -1
- package/dist/validate-start-from-props.js +0 -31
- package/dist/validation/validate-composition-id.d.ts +0 -3
- package/dist/validation/validate-composition-id.js +0 -13
- package/dist/validation/validate-dimensions.d.ts +0 -1
- package/dist/validation/validate-dimensions.js +0 -21
- package/dist/validation/validate-duration-in-frames.d.ts +0 -1
- package/dist/validation/validate-duration-in-frames.js +0 -15
- package/dist/validation/validate-folder-name.d.ts +0 -3
- package/dist/validation/validate-folder-name.js +0 -19
- package/dist/validation/validate-fps.d.ts +0 -1
- package/dist/validation/validate-fps.js +0 -21
- package/dist/validation/validate-offthreadvideo-image-format.d.ts +0 -1
- package/dist/validation/validate-offthreadvideo-image-format.js +0 -15
- package/dist/validation/validation-spring-duration.d.ts +0 -1
- package/dist/validation/validation-spring-duration.js +0 -21
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -5
- package/dist/video/OffthreadVideo.d.ts +0 -3
- package/dist/video/OffthreadVideo.js +0 -33
- package/dist/video/OffthreadVideoForRendering.d.ts +0 -3
- package/dist/video/OffthreadVideoForRendering.js +0 -104
- package/dist/video/Video.d.ts +0 -8
- package/dist/video/Video.js +0 -50
- package/dist/video/VideoForDevelopment.d.ts +0 -11
- package/dist/video/VideoForDevelopment.js +0 -113
- package/dist/video/VideoForRendering.d.ts +0 -10
- package/dist/video/VideoForRendering.js +0 -203
- package/dist/video/duration-state.d.ts +0 -17
- package/dist/video/duration-state.js +0 -34
- package/dist/video/get-current-time.d.ts +0 -13
- package/dist/video/get-current-time.js +0 -31
- package/dist/video/index.d.ts +0 -3
- package/dist/video/index.js +0 -7
- package/dist/video/props.d.ts +0 -25
- package/dist/video/props.js +0 -2
- package/dist/video/video-fragment.d.ts +0 -12
- package/dist/video/video-fragment.js +0 -60
- package/dist/video-config.d.ts +0 -8
- package/dist/video-config.js +0 -2
- package/dist/volume-position-state.d.ts +0 -19
- package/dist/volume-position-state.js +0 -32
- package/dist/volume-prop.d.ts +0 -7
- package/dist/volume-prop.js +0 -24
- package/dist/warn-about-non-seekable-media.d.ts +0 -1
- package/dist/warn-about-non-seekable-media.js +0 -34
- package/dist/wrap-remotion-context.d.ts +0 -18
- package/dist/wrap-remotion-context.js +0 -73
- package/tsconfig-cjs.json +0 -11
- package/tsconfig.json +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* An absolutely positioned <div> element with 100% width, height, and a column flex style
|
|
4
|
-
* @
|
|
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
5
|
*/
|
|
6
6
|
export declare const AbsoluteFill: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/cjs/AbsoluteFill.js
CHANGED
|
@@ -22,7 +22,7 @@ const AbsoluteFillRefForwarding = (props, ref) => {
|
|
|
22
22
|
return (0, jsx_runtime_1.jsx)("div", { ref: ref, style: actualStyle, ...other });
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
* An absolutely positioned <div> element with 100% width, height, and a column flex style
|
|
26
|
-
* @
|
|
25
|
+
* @description An absolutely positioned <div> element with 100% width, height, and a column flex style
|
|
26
|
+
* @see [Documentation](https://www.remotion.dev/docs/absolute-fill)
|
|
27
27
|
*/
|
|
28
28
|
exports.AbsoluteFill = (0, react_1.forwardRef)(AbsoluteFillRefForwarding);
|
|
@@ -18,6 +18,10 @@ declare type CompositionProps<T> = StillProps<T> & {
|
|
|
18
18
|
fps: number;
|
|
19
19
|
durationInFrames: number;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @description This component is used to register a video to make it renderable and make it show in the sidebar, in dev mode.
|
|
23
|
+
* @see [Documentation](https://www.remotion.dev/docs/composition)
|
|
24
|
+
*/
|
|
21
25
|
export declare const Composition: <T>({ width, height, fps, durationInFrames, id, defaultProps, ...compProps }: CompositionProps<T>) => React.ReactPortal | null;
|
|
22
26
|
export declare const ClipComposition: React.FC<PropsWithChildren>;
|
|
23
27
|
export {};
|
package/dist/cjs/Composition.js
CHANGED
|
@@ -29,6 +29,10 @@ const Fallback = () => {
|
|
|
29
29
|
}, []);
|
|
30
30
|
return null;
|
|
31
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* @description This component is used to register a video to make it renderable and make it show in the sidebar, in dev mode.
|
|
34
|
+
* @see [Documentation](https://www.remotion.dev/docs/composition)
|
|
35
|
+
*/
|
|
32
36
|
const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, ...compProps }) => {
|
|
33
37
|
const { registerComposition, unregisterComposition } = (0, react_1.useContext)(CompositionManager_js_1.CompositionManager);
|
|
34
38
|
const video = (0, use_video_js_1.useVideo)();
|
package/dist/cjs/Folder.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ declare 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
|
+
*/
|
|
11
15
|
export declare const Folder: FC<{
|
|
12
16
|
name: string;
|
|
13
17
|
children: React.ReactNode;
|
package/dist/cjs/Folder.js
CHANGED
|
@@ -10,6 +10,10 @@ exports.FolderContext = (0, react_1.createContext)({
|
|
|
10
10
|
folderName: null,
|
|
11
11
|
parentName: null,
|
|
12
12
|
});
|
|
13
|
+
/**
|
|
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://www.remotion.dev/docs/folder)
|
|
16
|
+
*/
|
|
13
17
|
const Folder = ({ name, children, }) => {
|
|
14
18
|
const parent = (0, react_1.useContext)(exports.FolderContext);
|
|
15
19
|
const { registerFolder, unregisterFolder } = (0, react_1.useContext)(CompositionManager_js_1.CompositionManager);
|
package/dist/cjs/IFrame.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
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
|
+
*/
|
|
2
6
|
export declare const IFrame: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, "key" | keyof React.IframeHTMLAttributes<HTMLIFrameElement>> & React.RefAttributes<HTMLIFrameElement>>;
|
package/dist/cjs/IFrame.js
CHANGED
|
@@ -21,4 +21,8 @@ const IFrameRefForwarding = ({ onLoad, onError, ...props }, ref) => {
|
|
|
21
21
|
}, [handle, onError]);
|
|
22
22
|
return (0, jsx_runtime_1.jsx)("iframe", { ...props, ref: ref, onError: didGetError, onLoad: didLoad });
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @description The <IFrame /> can be used like a regular <iframe> HTML tag.
|
|
26
|
+
* @see [Documentation](https://www.remotion.dev/docs/iframe)
|
|
27
|
+
*/
|
|
24
28
|
exports.IFrame = (0, react_1.forwardRef)(IFrameRefForwarding);
|
package/dist/cjs/Img.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @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.
|
|
4
|
+
* @see [Documentation](https://www.remotion.dev/docs/img)
|
|
5
|
+
*/
|
|
2
6
|
export declare const Img: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "key" | keyof React.ImgHTMLAttributes<HTMLImageElement>> & React.RefAttributes<HTMLImageElement>>;
|
package/dist/cjs/Img.js
CHANGED
|
@@ -49,4 +49,8 @@ const ImgRefForwarding = ({ onError, src, ...props }, ref) => {
|
|
|
49
49
|
}
|
|
50
50
|
return ((0, jsx_runtime_1.jsx)("img", { ...props, ref: imageRef, src: actualSrc, onError: didGetError }));
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* @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.
|
|
54
|
+
* @see [Documentation](https://www.remotion.dev/docs/img)
|
|
55
|
+
*/
|
|
52
56
|
exports.Img = (0, react_1.forwardRef)(ImgRefForwarding);
|
package/dist/cjs/Sequence.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare type SequenceContextType = {
|
|
3
|
-
cumulatedFrom: number;
|
|
4
|
-
relativeFrom: number;
|
|
5
|
-
parentFrom: number;
|
|
6
|
-
durationInFrames: number;
|
|
7
|
-
id: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const SequenceContext: React.Context<SequenceContextType | null>;
|
|
10
2
|
export declare type LayoutAndStyle = {
|
|
11
3
|
layout: 'none';
|
|
12
4
|
} | {
|
|
@@ -23,7 +15,7 @@ export declare type SequenceProps = {
|
|
|
23
15
|
showLoopTimesInTimeline?: number;
|
|
24
16
|
} & LayoutAndStyle;
|
|
25
17
|
/**
|
|
26
|
-
* A component that time-shifts its children and wraps them in an absolutely positioned <div>.
|
|
27
|
-
* @
|
|
18
|
+
* @description A component that time-shifts its children and wraps them in an absolutely positioned <div>.
|
|
19
|
+
* @see [Documentation](https://www.remotion.dev/docs/sequence]
|
|
28
20
|
*/
|
|
29
21
|
export declare const Sequence: React.ForwardRefExoticComponent<SequenceProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/cjs/Sequence.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Sequence =
|
|
3
|
+
exports.Sequence = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const AbsoluteFill_js_1 = require("./AbsoluteFill.js");
|
|
@@ -8,13 +8,13 @@ const CompositionManager_js_1 = require("./CompositionManager.js");
|
|
|
8
8
|
const get_environment_js_1 = require("./get-environment.js");
|
|
9
9
|
const get_timeline_clip_name_js_1 = require("./get-timeline-clip-name.js");
|
|
10
10
|
const nonce_js_1 = require("./nonce.js");
|
|
11
|
+
const SequenceContext_js_1 = require("./SequenceContext.js");
|
|
11
12
|
const timeline_position_state_js_1 = require("./timeline-position-state.js");
|
|
12
13
|
const use_video_config_js_1 = require("./use-video-config.js");
|
|
13
|
-
exports.SequenceContext = (0, react_1.createContext)(null);
|
|
14
14
|
const SequenceRefForwardingFunction = ({ from = 0, durationInFrames = Infinity, children, name, showInTimeline = true, showLoopTimesInTimeline, ...other }, ref) => {
|
|
15
15
|
const { layout = 'absolute-fill' } = other;
|
|
16
16
|
const [id] = (0, react_1.useState)(() => String(Math.random()));
|
|
17
|
-
const parentSequence = (0, react_1.useContext)(
|
|
17
|
+
const parentSequence = (0, react_1.useContext)(SequenceContext_js_1.SequenceContext);
|
|
18
18
|
const { rootId } = (0, react_1.useContext)(timeline_position_state_js_1.TimelineContext);
|
|
19
19
|
const cumulatedFrom = parentSequence
|
|
20
20
|
? parentSequence.cumulatedFrom + parentSequence.relativeFrom
|
|
@@ -122,10 +122,10 @@ const SequenceRefForwardingFunction = ({ from = 0, durationInFrames = Infinity,
|
|
|
122
122
|
if (ref !== null && layout === 'none') {
|
|
123
123
|
throw new TypeError('It is not supported to pass both a `ref` and `layout="none"` to <Sequence />.');
|
|
124
124
|
}
|
|
125
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
125
|
+
return ((0, jsx_runtime_1.jsx)(SequenceContext_js_1.SequenceContext.Provider, { value: contextValue, children: content === null ? null : other.layout === 'none' ? (content) : ((0, jsx_runtime_1.jsx)(AbsoluteFill_js_1.AbsoluteFill, { ref: ref, style: defaultStyle, className: other.className, children: content })) }));
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
|
-
* A component that time-shifts its children and wraps them in an absolutely positioned <div>.
|
|
129
|
-
* @
|
|
128
|
+
* @description A component that time-shifts its children and wraps them in an absolutely positioned <div>.
|
|
129
|
+
* @see [Documentation](https://www.remotion.dev/docs/sequence]
|
|
130
130
|
*/
|
|
131
131
|
exports.Sequence = (0, react_1.forwardRef)(SequenceRefForwardingFunction);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SequenceContext: import("react").Context<SequenceContextType | null>;
|
|
3
|
+
export declare type SequenceContextType = {
|
|
4
|
+
cumulatedFrom: number;
|
|
5
|
+
relativeFrom: number;
|
|
6
|
+
parentFrom: number;
|
|
7
|
+
durationInFrames: number;
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
package/dist/cjs/Still.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { StillProps } 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 declare const Still: <T>(props: StillProps<T>) => JSX.Element;
|
package/dist/cjs/Still.js
CHANGED
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Still = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Composition_js_1 = require("./Composition.js");
|
|
6
|
+
/**
|
|
7
|
+
* @description A <Still /> is a <Composition /> that is only 1 frame long.
|
|
8
|
+
* @see [Documentation](https://www.remotion.dev/docs/still)
|
|
9
|
+
*/
|
|
6
10
|
const Still = (props) => {
|
|
7
11
|
return (0, jsx_runtime_1.jsx)(Composition_js_1.Composition, { fps: 1, durationInFrames: 1, ...props });
|
|
8
12
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
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
|
+
*/
|
|
3
7
|
export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "nonce" | "onEnded" | "onResize" | "onResizeCapture" | "autoPlay" | "controls"> & {
|
|
4
8
|
volume?: import("../volume-prop.js").VolumeProp | undefined;
|
|
5
9
|
playbackRate?: number | undefined;
|
package/dist/cjs/audio/Audio.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.Audio = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const get_environment_js_1 = require("../get-environment.js");
|
|
7
|
-
const
|
|
7
|
+
const index_js_1 = require("../loop/index.js");
|
|
8
8
|
const Sequence_js_1 = require("../Sequence.js");
|
|
9
9
|
const use_video_config_js_1 = require("../use-video-config.js");
|
|
10
10
|
const validate_media_props_js_1 = require("../validate-media-props.js");
|
|
@@ -35,7 +35,7 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
35
35
|
const duration = Math.floor(durations[props.src] * fps);
|
|
36
36
|
const playbackRate = (_a = props.playbackRate) !== null && _a !== void 0 ? _a : 1;
|
|
37
37
|
const actualDuration = duration / playbackRate;
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(index_js_1.Loop, { layout: "none", durationInFrames: Math.floor(actualDuration), children: (0, jsx_runtime_1.jsx)(exports.Audio, { ...propsOtherThanLoop, ref: ref }) }));
|
|
39
39
|
}
|
|
40
40
|
if (typeof startFrom !== 'undefined' || typeof endAt !== 'undefined') {
|
|
41
41
|
(0, validate_start_from_props_js_1.validateStartFromProps)(startFrom, endAt);
|
|
@@ -49,4 +49,8 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
49
49
|
}
|
|
50
50
|
return ((0, jsx_runtime_1.jsx)(AudioForDevelopment_js_1.AudioForDevelopment, { shouldPreMountAudioTags: audioContext !== null && audioContext.numberOfAudioTags > 0, ...props, ref: ref, onError: onError, onDuration: onDuration }));
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* @description With this component, you can add audio to your video. All audio formats which are supported by Chromium are supported by the component.
|
|
54
|
+
* @see [Documentation](https://www.remotion.dev/docs/audio)
|
|
55
|
+
*/
|
|
52
56
|
exports.Audio = (0, react_1.forwardRef)(AudioRefForwardingFunction);
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const prefetch_js_1 = require("../prefetch.js");
|
|
7
7
|
const random_js_1 = require("../random.js");
|
|
8
|
-
const
|
|
8
|
+
const SequenceContext_js_1 = require("../SequenceContext.js");
|
|
9
9
|
const use_media_in_timeline_js_1 = require("../use-media-in-timeline.js");
|
|
10
10
|
const use_media_playback_js_1 = require("../use-media-playback.js");
|
|
11
11
|
const use_media_tag_volume_js_1 = require("../use-media-tag-volume.js");
|
|
@@ -33,7 +33,7 @@ const AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
33
33
|
...nativeProps,
|
|
34
34
|
};
|
|
35
35
|
}, [mediaMuted, muted, nativeProps, preloadedSrc]);
|
|
36
|
-
const sequenceContext = (0, react_1.useContext)(
|
|
36
|
+
const sequenceContext = (0, react_1.useContext)(SequenceContext_js_1.SequenceContext);
|
|
37
37
|
// Generate a string that's as unique as possible for this asset
|
|
38
38
|
// but at the same time deterministic. We use it to combat strict mode issues.
|
|
39
39
|
const id = (0, react_1.useMemo)(() => `audio-${(0, random_js_1.random)(src !== null && src !== void 0 ? src : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${props.muted}`, [props.muted, src, sequenceContext]);
|
|
@@ -8,7 +8,7 @@ const CompositionManager_js_1 = require("../CompositionManager.js");
|
|
|
8
8
|
const delay_render_js_1 = require("../delay-render.js");
|
|
9
9
|
const get_environment_js_1 = require("../get-environment.js");
|
|
10
10
|
const random_js_1 = require("../random.js");
|
|
11
|
-
const
|
|
11
|
+
const SequenceContext_js_1 = require("../SequenceContext.js");
|
|
12
12
|
const timeline_position_state_js_1 = require("../timeline-position-state.js");
|
|
13
13
|
const use_current_frame_js_1 = require("../use-current-frame.js");
|
|
14
14
|
const volume_prop_js_1 = require("../volume-prop.js");
|
|
@@ -18,7 +18,7 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
18
18
|
const absoluteFrame = (0, timeline_position_state_js_1.useTimelinePosition)();
|
|
19
19
|
const volumePropFrame = (0, use_audio_frame_js_1.useFrameForVolumeProp)();
|
|
20
20
|
const frame = (0, use_current_frame_js_1.useCurrentFrame)();
|
|
21
|
-
const sequenceContext = (0, react_1.useContext)(
|
|
21
|
+
const sequenceContext = (0, react_1.useContext)(SequenceContext_js_1.SequenceContext);
|
|
22
22
|
const { registerAsset, unregisterAsset } = (0, react_1.useContext)(CompositionManager_js_1.CompositionManager);
|
|
23
23
|
const environment = (0, get_environment_js_1.useRemotionEnvironment)();
|
|
24
24
|
// Generate a string that's as unique as possible for this asset
|
|
@@ -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
|
|
5
|
+
const SequenceContext_js_1 = require("../SequenceContext.js");
|
|
6
6
|
const use_current_frame_js_1 = require("../use-current-frame.js");
|
|
7
7
|
const useMediaStartsAt = () => {
|
|
8
8
|
var _a;
|
|
9
|
-
const parentSequence = (0, react_1.useContext)(
|
|
9
|
+
const parentSequence = (0, react_1.useContext)(SequenceContext_js_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
|
};
|
|
@@ -26,6 +26,10 @@ const isErrorLike = (err) => {
|
|
|
26
26
|
}
|
|
27
27
|
return true;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @description When you invoke this function, Remotion will stop rendering all the frames without any retries
|
|
31
|
+
* @see [Documentation](https://www.remotion.dev/docs/cancel-render)
|
|
32
|
+
*/
|
|
29
33
|
function cancelRender(err) {
|
|
30
34
|
let error;
|
|
31
35
|
if (isErrorLike(err)) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
2
2
|
/**
|
|
3
|
-
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
3
|
+
* @description Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
4
4
|
* @param label _optional_ A label to identify the call in case it does time out.
|
|
5
5
|
* @returns {number} An identifier to be passed to continueRender().
|
|
6
|
-
* @
|
|
6
|
+
* @see [Documentation](https://www.remotion.dev/docs/delay-render)
|
|
7
7
|
*/
|
|
8
8
|
export declare const delayRender: (label?: string) => number;
|
|
9
9
|
/**
|
|
10
|
-
* Unblock a render that has been blocked by delayRender()
|
|
10
|
+
* @description Unblock a render that has been blocked by delayRender()
|
|
11
11
|
* @param handle The return value of delayRender().
|
|
12
|
-
* @
|
|
12
|
+
* @see [Documentation](https://www.remotion.dev/docs/continue-render)
|
|
13
13
|
*/
|
|
14
14
|
export declare const continueRender: (handle: number) => void;
|
package/dist/cjs/delay-render.js
CHANGED
|
@@ -11,10 +11,10 @@ const timeouts = {};
|
|
|
11
11
|
exports.DELAY_RENDER_CALLSTACK_TOKEN = 'The delayRender was called:';
|
|
12
12
|
const defaultTimeout = 30000;
|
|
13
13
|
/**
|
|
14
|
-
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
14
|
+
* @description Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
15
15
|
* @param label _optional_ A label to identify the call in case it does time out.
|
|
16
16
|
* @returns {number} An identifier to be passed to continueRender().
|
|
17
|
-
* @
|
|
17
|
+
* @see [Documentation](https://www.remotion.dev/docs/delay-render)
|
|
18
18
|
*/
|
|
19
19
|
const delayRender = (label) => {
|
|
20
20
|
var _a, _b, _c;
|
|
@@ -49,9 +49,9 @@ const delayRender = (label) => {
|
|
|
49
49
|
};
|
|
50
50
|
exports.delayRender = delayRender;
|
|
51
51
|
/**
|
|
52
|
-
* Unblock a render that has been blocked by delayRender()
|
|
52
|
+
* @description Unblock a render that has been blocked by delayRender()
|
|
53
53
|
* @param handle The return value of delayRender().
|
|
54
|
-
* @
|
|
54
|
+
* @see [Documentation](https://www.remotion.dev/docs/continue-render)
|
|
55
55
|
*/
|
|
56
56
|
const continueRender = (handle) => {
|
|
57
57
|
if (typeof handle === 'undefined') {
|
package/dist/cjs/easing.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description The Easing module implements common easing functions. You can use it with the interpolate() API.
|
|
3
|
+
* @see [Documentation](https://www.remotion.dev/docs/easing)
|
|
4
|
+
*/
|
|
1
5
|
export declare class Easing {
|
|
2
6
|
static step0(n: number): number;
|
|
3
7
|
static step1(n: number): number;
|
package/dist/cjs/easing.js
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Easing = void 0;
|
|
5
5
|
const bezier_js_1 = require("./bezier.js");
|
|
6
|
+
/**
|
|
7
|
+
* @description The Easing module implements common easing functions. You can use it with the interpolate() API.
|
|
8
|
+
* @see [Documentation](https://www.remotion.dev/docs/easing)
|
|
9
|
+
*/
|
|
6
10
|
class Easing {
|
|
7
11
|
static step0(n) {
|
|
8
12
|
return n > 0 ? 1 : 0;
|
package/dist/cjs/freeze.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ declare type FreezeProps = {
|
|
|
3
3
|
frame: number;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* @description This method freezes all of its children to the frame that you specify as a prop
|
|
8
|
+
* @see [Documentation](https://www.remotion.dev/docs/freeze)
|
|
9
|
+
*/
|
|
6
10
|
export declare const Freeze: React.FC<FreezeProps>;
|
|
7
11
|
export {};
|
package/dist/cjs/freeze.js
CHANGED
|
@@ -3,8 +3,12 @@ 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 SequenceContext_js_1 = require("./SequenceContext.js");
|
|
7
7
|
const timeline_position_state_js_1 = require("./timeline-position-state.js");
|
|
8
|
+
/**
|
|
9
|
+
* @description This method freezes all of its children to the frame that you specify as a prop
|
|
10
|
+
* @see [Documentation](https://www.remotion.dev/docs/freeze)
|
|
11
|
+
*/
|
|
8
12
|
const Freeze = ({ frame, children }) => {
|
|
9
13
|
if (typeof frame === 'undefined') {
|
|
10
14
|
throw new Error(`The <Freeze /> component requires a 'frame' prop, but none was passed.`);
|
|
@@ -29,6 +33,6 @@ const Freeze = ({ frame, children }) => {
|
|
|
29
33
|
frame,
|
|
30
34
|
};
|
|
31
35
|
}, [context, frame]);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(timeline_position_state_js_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(timeline_position_state_js_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(SequenceContext_js_1.SequenceContext.Provider, { value: null, children: children }) }));
|
|
33
37
|
};
|
|
34
38
|
exports.Freeze = Freeze;
|
|
@@ -1,3 +1,7 @@
|
|
|
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
|
+
*/
|
|
1
5
|
export declare const getStaticFiles: () => StaticFile[];
|
|
2
6
|
export declare type StaticFile = {
|
|
3
7
|
/**
|
|
@@ -17,6 +17,10 @@ const warnPlayerOnce = () => {
|
|
|
17
17
|
warnedPlayer = true;
|
|
18
18
|
console.warn('Called getStaticFiles() while using the Remotion Player. The API is only available while using the Remotion Preview. An empty array was returned.');
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @description The function array containing all files in the public/ folder. You can reference them by using staticFile().
|
|
22
|
+
* @see [Documentation](https://www.remotion.dev/docs/getstaticfiles)
|
|
23
|
+
*/
|
|
20
24
|
const getStaticFiles = () => {
|
|
21
25
|
if (typeof document === 'undefined') {
|
|
22
26
|
warnServerOnce();
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -47,11 +47,11 @@ export declare type BundleState = {
|
|
|
47
47
|
compositionFps: number;
|
|
48
48
|
};
|
|
49
49
|
export * from './AbsoluteFill.js';
|
|
50
|
-
export * from './audio';
|
|
50
|
+
export * from './audio/index.js';
|
|
51
51
|
export { cancelRender } from './cancel-render.js';
|
|
52
52
|
export * from './Composition.js';
|
|
53
|
-
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager.js';
|
|
54
|
-
export { Config, ConfigType } from './config';
|
|
53
|
+
export { SmallTCompMetadata, TAsset, TCompMetadata, } from './CompositionManager.js';
|
|
54
|
+
export { Config, ConfigType } from './config.js';
|
|
55
55
|
export { getInputProps } from './config/input-props.js';
|
|
56
56
|
export { continueRender, delayRender } from './delay-render.js';
|
|
57
57
|
export * from './easing.js';
|
|
@@ -61,31 +61,39 @@ export { getStaticFiles, StaticFile } from './get-static-files.js';
|
|
|
61
61
|
export * from './IFrame.js';
|
|
62
62
|
export * from './Img.js';
|
|
63
63
|
export * from './internals.js';
|
|
64
|
-
export * from './interpolate.js';
|
|
65
64
|
export { interpolateColors } from './interpolate-colors.js';
|
|
66
|
-
export
|
|
65
|
+
export * from './interpolate.js';
|
|
66
|
+
export { Loop } from './loop/index.js';
|
|
67
67
|
export { ClipRegion } from './NativeLayers.js';
|
|
68
68
|
export { prefetch } from './prefetch.js';
|
|
69
69
|
export { random, RandomSeed } from './random.js';
|
|
70
70
|
export { registerRoot } from './register-root.js';
|
|
71
71
|
export { Sequence } from './Sequence.js';
|
|
72
|
-
export { Series } from './series';
|
|
73
|
-
export * from './spring';
|
|
72
|
+
export { Series } from './series/index.js';
|
|
73
|
+
export * from './spring/index.js';
|
|
74
74
|
export { staticFile } from './static-file.js';
|
|
75
75
|
export * from './Still.js';
|
|
76
76
|
export type { PlayableMediaTag } from './timeline-position-state.js';
|
|
77
77
|
export { useCurrentFrame } from './use-current-frame.js';
|
|
78
78
|
export * from './use-video-config.js';
|
|
79
79
|
export * from './version.js';
|
|
80
|
-
export * from './video';
|
|
81
80
|
export * from './video-config.js';
|
|
81
|
+
export * from './video/index.js';
|
|
82
82
|
export declare const Experimental: {
|
|
83
|
+
/**
|
|
84
|
+
* @description This is a special component that will cause Remotion to only partially capture the frame of the video.
|
|
85
|
+
* @see [Documentation](https://www.remotion.dev/docs/clipper)
|
|
86
|
+
*/
|
|
83
87
|
Clipper: import("react").FC<{
|
|
84
88
|
width: number;
|
|
85
89
|
height: number;
|
|
86
90
|
x: number;
|
|
87
91
|
y: number;
|
|
88
92
|
}>;
|
|
93
|
+
/**
|
|
94
|
+
* @description This is a special component, that, when rendered, will skip rendering the frame altogether.
|
|
95
|
+
* @see [Documentation](https://www.remotion.dev/docs/null)
|
|
96
|
+
*/
|
|
89
97
|
Null: import("react").FC<{}>;
|
|
90
98
|
useIsPlayer: () => boolean;
|
|
91
99
|
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -22,12 +22,12 @@ const multiple_versions_warning_js_1 = require("./multiple-versions-warning.js")
|
|
|
22
22
|
const Null_js_1 = require("./Null.js");
|
|
23
23
|
(0, multiple_versions_warning_js_1.checkMultipleRemotionVersions)();
|
|
24
24
|
__exportStar(require("./AbsoluteFill.js"), exports);
|
|
25
|
-
__exportStar(require("./audio"), exports);
|
|
25
|
+
__exportStar(require("./audio/index.js"), exports);
|
|
26
26
|
var cancel_render_js_1 = require("./cancel-render.js");
|
|
27
27
|
Object.defineProperty(exports, "cancelRender", { enumerable: true, get: function () { return cancel_render_js_1.cancelRender; } });
|
|
28
28
|
__exportStar(require("./Composition.js"), exports);
|
|
29
|
-
var
|
|
30
|
-
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return
|
|
29
|
+
var config_js_1 = require("./config.js");
|
|
30
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_js_1.Config; } });
|
|
31
31
|
var input_props_js_1 = require("./config/input-props.js");
|
|
32
32
|
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_js_1.getInputProps; } });
|
|
33
33
|
var delay_render_js_1 = require("./delay-render.js");
|
|
@@ -41,11 +41,11 @@ Object.defineProperty(exports, "getStaticFiles", { enumerable: true, get: functi
|
|
|
41
41
|
__exportStar(require("./IFrame.js"), exports);
|
|
42
42
|
__exportStar(require("./Img.js"), exports);
|
|
43
43
|
__exportStar(require("./internals.js"), exports);
|
|
44
|
-
__exportStar(require("./interpolate.js"), exports);
|
|
45
44
|
var interpolate_colors_js_1 = require("./interpolate-colors.js");
|
|
46
45
|
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolate_colors_js_1.interpolateColors; } });
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
__exportStar(require("./interpolate.js"), exports);
|
|
47
|
+
var index_js_1 = require("./loop/index.js");
|
|
48
|
+
Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return index_js_1.Loop; } });
|
|
49
49
|
var prefetch_js_1 = require("./prefetch.js");
|
|
50
50
|
Object.defineProperty(exports, "prefetch", { enumerable: true, get: function () { return prefetch_js_1.prefetch; } });
|
|
51
51
|
var random_js_1 = require("./random.js");
|
|
@@ -54,9 +54,9 @@ var register_root_js_1 = require("./register-root.js");
|
|
|
54
54
|
Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return register_root_js_1.registerRoot; } });
|
|
55
55
|
var Sequence_js_1 = require("./Sequence.js");
|
|
56
56
|
Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return Sequence_js_1.Sequence; } });
|
|
57
|
-
var
|
|
58
|
-
Object.defineProperty(exports, "Series", { enumerable: true, get: function () { return
|
|
59
|
-
__exportStar(require("./spring"), exports);
|
|
57
|
+
var index_js_2 = require("./series/index.js");
|
|
58
|
+
Object.defineProperty(exports, "Series", { enumerable: true, get: function () { return index_js_2.Series; } });
|
|
59
|
+
__exportStar(require("./spring/index.js"), exports);
|
|
60
60
|
var static_file_js_1 = require("./static-file.js");
|
|
61
61
|
Object.defineProperty(exports, "staticFile", { enumerable: true, get: function () { return static_file_js_1.staticFile; } });
|
|
62
62
|
__exportStar(require("./Still.js"), exports);
|
|
@@ -64,10 +64,18 @@ var use_current_frame_js_1 = require("./use-current-frame.js");
|
|
|
64
64
|
Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return use_current_frame_js_1.useCurrentFrame; } });
|
|
65
65
|
__exportStar(require("./use-video-config.js"), exports);
|
|
66
66
|
__exportStar(require("./version.js"), exports);
|
|
67
|
-
__exportStar(require("./video"), exports);
|
|
68
67
|
__exportStar(require("./video-config.js"), exports);
|
|
68
|
+
__exportStar(require("./video/index.js"), exports);
|
|
69
69
|
exports.Experimental = {
|
|
70
|
+
/**
|
|
71
|
+
* @description This is a special component that will cause Remotion to only partially capture the frame of the video.
|
|
72
|
+
* @see [Documentation](https://www.remotion.dev/docs/clipper)
|
|
73
|
+
*/
|
|
70
74
|
Clipper: Clipper_js_1.Clipper,
|
|
75
|
+
/**
|
|
76
|
+
* @description This is a special component, that, when rendered, will skip rendering the frame altogether.
|
|
77
|
+
* @see [Documentation](https://www.remotion.dev/docs/null)
|
|
78
|
+
*/
|
|
71
79
|
Null: Null_js_1.Null,
|
|
72
80
|
useIsPlayer: is_player_js_1.useIsPlayer,
|
|
73
81
|
};
|
package/dist/cjs/internals.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volu
|
|
|
10
10
|
import { useRemotionContexts } from './wrap-remotion-context.js';
|
|
11
11
|
declare const Timeline: typeof TimelinePosition;
|
|
12
12
|
export declare const Internals: {
|
|
13
|
-
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
13
|
+
useUnsafeVideoConfig: () => import("./video-config.js").VideoConfig | null;
|
|
14
14
|
Timeline: typeof TimelinePosition;
|
|
15
15
|
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
16
16
|
RemotionRoot: import("react").FC<{
|
|
@@ -36,7 +36,7 @@ export declare const Internals: {
|
|
|
36
36
|
readonly _result: import("react").ComponentType<T>;
|
|
37
37
|
};
|
|
38
38
|
truthy: typeof truthy;
|
|
39
|
-
SequenceContext: import("react").Context<import("./
|
|
39
|
+
SequenceContext: import("react").Context<import("./SequenceContext.js").SequenceContextType | null>;
|
|
40
40
|
useRemotionContexts: typeof useRemotionContexts;
|
|
41
41
|
RemotionContextProvider: (props: import("./wrap-remotion-context.js").RemotionContextProviderProps) => JSX.Element;
|
|
42
42
|
CSSUtils: typeof CSSUtils;
|
|
@@ -49,16 +49,16 @@ export declare const Internals: {
|
|
|
49
49
|
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
50
50
|
getRemotionEnvironment: () => RemotionEnvironment;
|
|
51
51
|
SharedAudioContext: import("react").Context<{
|
|
52
|
-
registerAudio: (aud: import("./
|
|
52
|
+
registerAudio: (aud: import("./index.js").RemotionAudioProps, audioId: string) => {
|
|
53
53
|
id: number;
|
|
54
|
-
props: import("./
|
|
54
|
+
props: import("./index.js").RemotionAudioProps;
|
|
55
55
|
el: import("react").RefObject<HTMLAudioElement>;
|
|
56
56
|
audioId: string;
|
|
57
57
|
};
|
|
58
58
|
unregisterAudio: (id: number) => void;
|
|
59
59
|
updateAudio: (options: {
|
|
60
60
|
id: number;
|
|
61
|
-
aud: import("./
|
|
61
|
+
aud: import("./index.js").RemotionAudioProps;
|
|
62
62
|
audioId: string;
|
|
63
63
|
}) => void;
|
|
64
64
|
playAllAudios: () => void;
|