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
package/dist/esm/internals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { enableLegacyRemotionConfig } from './config';
|
|
1
|
+
import { enableLegacyRemotionConfig } from './config.js';
|
|
2
2
|
import { SharedAudioContext, SharedAudioContextProvider, } from './audio/shared-audio-tags.js';
|
|
3
3
|
import { CanUseRemotionHooks, CanUseRemotionHooksProvider, } from './CanUseRemotionHooks.js';
|
|
4
4
|
import { CompositionManager, compositionsRef } from './CompositionManager.js';
|
|
@@ -11,7 +11,7 @@ import { portalNode } from './portal-node.js';
|
|
|
11
11
|
import { PrefetchProvider } from './prefetch-state.js';
|
|
12
12
|
import { getRoot, waitForRoot } from './register-root.js';
|
|
13
13
|
import { RemotionRoot } from './RemotionRoot.js';
|
|
14
|
-
import { SequenceContext } from './
|
|
14
|
+
import { SequenceContext } from './SequenceContext.js';
|
|
15
15
|
import { ENV_VARIABLES_ENV_NAME, setupEnvVariables, } from './setup-env-variables.js';
|
|
16
16
|
import * as TimelinePosition from './timeline-position-state.js';
|
|
17
17
|
import { truthy } from './truthy.js';
|
|
@@ -375,6 +375,10 @@ const interpolateColorsRGB = (value, inputRange, colors) => {
|
|
|
375
375
|
});
|
|
376
376
|
return rgbaColor(r, g, b, a);
|
|
377
377
|
};
|
|
378
|
+
/**
|
|
379
|
+
* @description This function allows you to map a range of values to colors using a concise syntax.
|
|
380
|
+
* @see [Documentation](https://www.remotion.dev/docs/interpolate-colors)
|
|
381
|
+
*/
|
|
378
382
|
export const interpolateColors = (input, inputRange, outputRange) => {
|
|
379
383
|
if (typeof input === 'undefined') {
|
|
380
384
|
throw new TypeError('input can not be undefined');
|
package/dist/esm/interpolate.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// Taken from https://github.com/facebook/react-native/blob/0b9ea60b4fee8cacc36e7160e31b91fc114dbc0d/Libraries/Animated/src/nodes/AnimatedInterpolation.js
|
|
2
|
+
/**
|
|
3
|
+
* @description This function allows you to map a range of values to another with a conside syntax
|
|
4
|
+
* @see [Documentation](https://www.remotion.dev/docs/interpolate)
|
|
5
|
+
*/
|
|
2
6
|
function interpolateFunction(input, inputRange, outputRange, options) {
|
|
3
7
|
const { extrapolateLeft, extrapolateRight, easing } = options;
|
|
4
8
|
let result = input;
|
package/dist/esm/loop/index.js
CHANGED
|
@@ -2,6 +2,10 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { Sequence } from '../Sequence.js';
|
|
3
3
|
import { useVideoConfig } from '../use-video-config.js';
|
|
4
4
|
import { validateDurationInFrames } from '../validation/validate-duration-in-frames.js';
|
|
5
|
+
/**
|
|
6
|
+
* @description This component allows you to quickly lay out an animation so it repeats itself.
|
|
7
|
+
* @see [Documentation](https://www.remotion.dev/docs/loop)
|
|
8
|
+
*/
|
|
5
9
|
export const Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) => {
|
|
6
10
|
const { durationInFrames: compDuration } = useVideoConfig();
|
|
7
11
|
validateDurationInFrames(durationInFrames, 'of the <Loop /> component');
|
package/dist/esm/prefetch.js
CHANGED
|
@@ -19,6 +19,10 @@ const blobToBase64 = function (blob) {
|
|
|
19
19
|
reader.readAsDataURL(blob);
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* @description When you call the preFetch() function, an asset will be fetched and kept in memory so it is ready when you want to play it in a <Player>.
|
|
24
|
+
* @see [Documentation](https://www.remotion.dev/docs/prefetch)
|
|
25
|
+
*/
|
|
22
26
|
export const prefetch = (src, options) => {
|
|
23
27
|
var _a;
|
|
24
28
|
const method = (_a = options === null || options === void 0 ? void 0 : options.method) !== null && _a !== void 0 ? _a : 'blob-url';
|
package/dist/esm/random.js
CHANGED
|
@@ -17,9 +17,8 @@ function hashCode(str) {
|
|
|
17
17
|
return hash;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* A deterministic pseudo-random number generator.
|
|
21
|
-
*
|
|
22
|
-
* See: https://remotion.dev/docs/random
|
|
20
|
+
* @description A deterministic pseudo-random number generator. Pass in the same seed and get the same pseudorandom number.
|
|
21
|
+
* @see [Documentation](https://remotion.dev/docs/random)
|
|
23
22
|
*/
|
|
24
23
|
export const random = (seed, dummy) => {
|
|
25
24
|
if (dummy !== undefined) {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
let Root = null;
|
|
2
2
|
let listeners = [];
|
|
3
|
+
/**
|
|
4
|
+
* @description This function registers the root component of the Remotion project
|
|
5
|
+
* @see [Documentation](https://www.remotion.dev/docs/register-root)
|
|
6
|
+
*/
|
|
3
7
|
export const registerRoot = (comp) => {
|
|
4
8
|
if (!comp) {
|
|
5
9
|
throw new Error(`You must pass a React component to registerRoot(), but ${JSON.stringify(comp)} was passed.`);
|
package/dist/esm/series/index.js
CHANGED
|
@@ -9,6 +9,10 @@ const SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
|
|
|
9
9
|
return _jsx(_Fragment, { children: children });
|
|
10
10
|
};
|
|
11
11
|
const SeriesSequence = forwardRef(SeriesSequenceRefForwardingFunction);
|
|
12
|
+
/**
|
|
13
|
+
* @description with this component, you can easily stitch together scenes that should play sequentially after another.
|
|
14
|
+
* @see [Documentation](https://www.remotion.dev/docs/series)
|
|
15
|
+
*/
|
|
12
16
|
const Series = ({ children }) => {
|
|
13
17
|
const childrenValue = useMemo(() => {
|
|
14
18
|
let startFrame = 0;
|
package/dist/esm/spring/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { validateSpringDuration } from '../validation/validation-spring-duration
|
|
|
4
4
|
import { measureSpring } from './measure-spring.js';
|
|
5
5
|
import { springCalculation } from './spring-utils.js';
|
|
6
6
|
/**
|
|
7
|
-
* Calculates a position based on physical parameters, start and end value, and time.
|
|
8
|
-
* @
|
|
7
|
+
* @description Calculates a position based on physical parameters, start and end value, and time.
|
|
8
|
+
* @see [Documentation](https://www.remotion.dev/docs/spring)
|
|
9
9
|
* @param {number} frame The current time value. Most of the time you want to pass in the return value of useCurrentFrame.
|
|
10
10
|
* @param {number} fps The framerate at which the animation runs. Pass in the value obtained by `useVideoConfig()`.
|
|
11
11
|
* @param {?Object} config optional object that allows you to customize the physical properties of the animation.
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { validateFps } from '../validation/validate-fps.js';
|
|
2
2
|
import { springCalculation } from './spring-utils.js';
|
|
3
|
+
/**
|
|
4
|
+
* @description The function returns how long it takes for a spring animation to settle
|
|
5
|
+
* @see [Documentation](https://www.remotion.dev/docs/measure-spring)
|
|
6
|
+
*/
|
|
3
7
|
export function measureSpring({ fps, config = {}, threshold = 0.005, from = 0, to = 1, }) {
|
|
4
8
|
if (typeof threshold !== 'number') {
|
|
5
9
|
throw new TypeError(`threshold must be a number, got ${threshold} of type ${typeof threshold}`);
|
package/dist/esm/static-file.js
CHANGED
|
@@ -11,8 +11,8 @@ const inner = (path) => {
|
|
|
11
11
|
return `/${trimLeadingSlash(path)}`;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Reference a file from the public/ folder.
|
|
15
|
-
*
|
|
14
|
+
* @description Reference a file from the public/ folder. If the file does not appear in the autocomplete, type the path manually.
|
|
15
|
+
* @see [Documentation](https://www.remotion.dev/docs/staticfile)
|
|
16
16
|
*/
|
|
17
17
|
export const staticFile = (path) => {
|
|
18
18
|
if (path.startsWith('http://') || path.startsWith('https://')) {
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { render } from '@testing-library/react';
|
|
6
6
|
import React, { useContext } from 'react';
|
|
7
7
|
import { describe, expect, test } from 'vitest';
|
|
8
|
-
import { Audio } from '../audio';
|
|
8
|
+
import { Audio } from '../audio/index.js';
|
|
9
9
|
import { CanUseRemotionHooksProvider } from '../CanUseRemotionHooks.js';
|
|
10
10
|
import { Internals } from '../internals.js';
|
|
11
11
|
const Wrapper = ({ children }) => {
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
*/
|
|
5
5
|
import { render } from '@testing-library/react';
|
|
6
6
|
import { describe, expect, test } from 'vitest';
|
|
7
|
-
import { Composition } from '
|
|
7
|
+
import { Composition } from '../Composition.js';
|
|
8
8
|
import { RemotionRoot } from '../RemotionRoot.js';
|
|
9
9
|
import { expectToThrow } from './expect-to-throw.js';
|
|
10
10
|
const AnyComp = () => null;
|
|
@@ -7,7 +7,7 @@ import React, { useContext } from 'react';
|
|
|
7
7
|
import { describe, expect, test } from 'vitest';
|
|
8
8
|
import { CanUseRemotionHooksProvider } from '../CanUseRemotionHooks.js';
|
|
9
9
|
import { CompositionManager } from '../CompositionManager.js';
|
|
10
|
-
import { Loop } from '../loop';
|
|
10
|
+
import { Loop } from '../loop/index.js';
|
|
11
11
|
import { RemotionRoot } from '../RemotionRoot.js';
|
|
12
12
|
import { expectToThrow } from './expect-to-throw.js';
|
|
13
13
|
const Wrapper = ({ children }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from 'vitest';
|
|
2
|
-
import { measureSpring, spring } from '../spring';
|
|
2
|
+
import { measureSpring, spring } from '../spring/index.js';
|
|
3
3
|
import { expectToThrow } from './expect-to-throw.js';
|
|
4
4
|
describe('Measure spring should work', () => {
|
|
5
5
|
const duration = measureSpring({
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { renderToString } from 'react-dom/server';
|
|
3
3
|
import { expect, test } from 'vitest';
|
|
4
4
|
import { CanUseRemotionHooksProvider } from '../CanUseRemotionHooks.js';
|
|
5
|
-
import { Series } from '../series';
|
|
5
|
+
import { Series } from '../series/index.js';
|
|
6
6
|
import { TimelineContext } from '../timeline-position-state.js';
|
|
7
7
|
import { useCurrentFrame } from '../use-current-frame.js';
|
|
8
8
|
import { WrapSequenceContext } from './wrap-sequence-context.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect, test } from 'vitest';
|
|
2
2
|
import { isApproximatelyTheSame } from '../is-approximately-the-same.js';
|
|
3
|
-
import { spring } from '../spring';
|
|
3
|
+
import { spring } from '../spring/index.js';
|
|
4
4
|
test('Basic spring to equal 0', () => {
|
|
5
5
|
expect(spring({
|
|
6
6
|
fps: 30,
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { afterAll, beforeAll, describe, expect, test, vitest } from 'vitest';
|
|
3
3
|
import * as useAudioFrameModule from '../audio/use-audio-frame.js';
|
|
4
4
|
import { useFrameForVolumeProp, useMediaStartsAt, } from '../audio/use-audio-frame.js';
|
|
5
|
-
import { SequenceContext } from '../
|
|
5
|
+
import { SequenceContext } from '../SequenceContext.js';
|
|
6
6
|
import * as useFrameModule from '../use-current-frame.js';
|
|
7
7
|
import { renderHook } from './render-hook.js';
|
|
8
8
|
test.skip('Media starts at 0 if it is outside a sequence', () => {
|
|
@@ -7,7 +7,7 @@ import React, { useContext } from 'react';
|
|
|
7
7
|
import { describe, expect, test } from 'vitest';
|
|
8
8
|
import { CanUseRemotionHooksProvider } from '../CanUseRemotionHooks.js';
|
|
9
9
|
import { Internals } from '../internals.js';
|
|
10
|
-
import { Video } from '../video';
|
|
10
|
+
import { Video } from '../video/index.js';
|
|
11
11
|
import { expectToThrow } from './expect-to-throw.js';
|
|
12
12
|
const Wrapper = ({ children }) => {
|
|
13
13
|
const compositions = useContext(Internals.CompositionManager);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
2
|
import { CanUseRemotionHooks } from './CanUseRemotionHooks.js';
|
|
3
|
-
import { SequenceContext } from './
|
|
3
|
+
import { SequenceContext } from './SequenceContext.js';
|
|
4
4
|
import { useTimelinePosition } from './timeline-position-state.js';
|
|
5
5
|
/**
|
|
6
|
-
* Get the current frame of the video.
|
|
7
|
-
*
|
|
8
|
-
* @link https://www.remotion.dev/docs/use-current-frame
|
|
6
|
+
* @description Get the current frame of the video. Frames are 0-indexed, meaning the first frame is 0, the last frame is the duration of the composition in frames minus one.
|
|
7
|
+
* @see [Documentation](https://remotion.dev/docs/use-current-frame)
|
|
9
8
|
*/
|
|
10
9
|
export const useCurrentFrame = () => {
|
|
11
10
|
const canUseRemotionHooks = useContext(CanUseRemotionHooks);
|
|
@@ -5,7 +5,7 @@ import { getAssetDisplayName } from './get-asset-file-name.js';
|
|
|
5
5
|
import { useRemotionEnvironment } from './get-environment.js';
|
|
6
6
|
import { useNonce } from './nonce.js';
|
|
7
7
|
import { playAndHandleNotAllowedError } from './play-and-handle-not-allowed-error.js';
|
|
8
|
-
import { SequenceContext } from './
|
|
8
|
+
import { SequenceContext } from './SequenceContext.js';
|
|
9
9
|
import { TimelineContext, usePlayingState } from './timeline-position-state.js';
|
|
10
10
|
import { useVideoConfig } from './use-video-config.js';
|
|
11
11
|
import { evaluateVolume } from './volume-prop.js';
|
|
@@ -3,9 +3,10 @@ import { CanUseRemotionHooks } from './CanUseRemotionHooks.js';
|
|
|
3
3
|
import { useIsPlayer } from './is-player.js';
|
|
4
4
|
import { useUnsafeVideoConfig } from './use-unsafe-video-config.js';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
6
|
+
* /**
|
|
7
|
+
* @description Get some info about the context of the video that you are making.
|
|
8
|
+
* @see [Documentation](https://www.remotion.dev/docs/use-video-config)
|
|
9
|
+
* @returns Returns an object containing `fps`, `width`, `height` and `durationInFrames`, all of type `number`.
|
|
9
10
|
*/
|
|
10
11
|
export const useVideoConfig = () => {
|
|
11
12
|
const videoConfig = useUnsafeVideoConfig();
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically generated on publish
|
|
2
|
-
export const VERSION = '3.3.
|
|
2
|
+
export const VERSION = '3.3.55';
|
|
@@ -7,6 +7,10 @@ import { validateStartFromProps } from '../validate-start-from-props.js';
|
|
|
7
7
|
import { validateOffthreadVideoImageFormat } from '../validation/validate-offthreadvideo-image-format.js';
|
|
8
8
|
import { OffthreadVideoForRendering } from './OffthreadVideoForRendering.js';
|
|
9
9
|
import { VideoForDevelopment } from './VideoForDevelopment.js';
|
|
10
|
+
/**
|
|
11
|
+
* @description This method imports and displays a video, similar to <Video />. During rendering, it extracts the exact frame from the video and displays it in an <img> tag
|
|
12
|
+
* @see [Documentation](https://www.remotion.dev/docs/offthreadvideo)
|
|
13
|
+
*/
|
|
10
14
|
export const OffthreadVideo = (props) => {
|
|
11
15
|
const { startFrom, endAt, ...otherProps } = props;
|
|
12
16
|
const environment = useRemotionEnvironment();
|
|
@@ -7,7 +7,7 @@ import { OFFTHREAD_VIDEO_CLASS_NAME } from '../default-css.js';
|
|
|
7
7
|
import { Img } from '../Img.js';
|
|
8
8
|
import { Internals } from '../internals.js';
|
|
9
9
|
import { random } from '../random.js';
|
|
10
|
-
import { SequenceContext } from '../
|
|
10
|
+
import { SequenceContext } from '../SequenceContext.js';
|
|
11
11
|
import { useTimelinePosition } from '../timeline-position-state.js';
|
|
12
12
|
import { useCurrentFrame } from '../use-current-frame.js';
|
|
13
13
|
import { useUnsafeVideoConfig } from '../use-unsafe-video-config.js';
|
package/dist/esm/video/Video.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';
|
|
@@ -44,4 +44,8 @@ const VideoForwardingFunction = (props, ref) => {
|
|
|
44
44
|
return (_jsx(VideoForDevelopment, { onlyWarnForMediaSeekingError: false, ...otherProps, ref: ref, onDuration: onDuration }));
|
|
45
45
|
};
|
|
46
46
|
const forward = forwardRef;
|
|
47
|
+
/**
|
|
48
|
+
* @description allows you to include a video file in your Remotion project. It wraps the native HTMLVideoElement.
|
|
49
|
+
* @see [Documentation](https://www.remotion.dev/docs/video)
|
|
50
|
+
*/
|
|
47
51
|
export const Video = forward(VideoForwardingFunction);
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useContext, useEffect, useImperativeHandle, useRef, } from 'react';
|
|
3
3
|
import { useFrameForVolumeProp } from '../audio/use-audio-frame.js';
|
|
4
4
|
import { usePreload } from '../prefetch.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';
|
|
@@ -7,7 +7,7 @@ import { continueRender, delayRender } from '../delay-render.js';
|
|
|
7
7
|
import { useRemotionEnvironment } from '../get-environment.js';
|
|
8
8
|
import { isApproximatelyTheSame } from '../is-approximately-the-same.js';
|
|
9
9
|
import { random } from '../random.js';
|
|
10
|
-
import { SequenceContext } from '../
|
|
10
|
+
import { SequenceContext } from '../SequenceContext.js';
|
|
11
11
|
import { useTimelinePosition } from '../timeline-position-state.js';
|
|
12
12
|
import { useCurrentFrame } from '../use-current-frame.js';
|
|
13
13
|
import { useUnsafeVideoConfig } from '../use-unsafe-video-config.js';
|
|
@@ -8,8 +8,8 @@ import { CompositionManager } from './CompositionManager.js';
|
|
|
8
8
|
import { NativeLayersContext } from './NativeLayers.js';
|
|
9
9
|
import { NonceContext } from './nonce.js';
|
|
10
10
|
import { PreloadContext } from './prefetch-state.js';
|
|
11
|
-
import { SequenceContext } from './
|
|
12
|
-
import { SetTimelineContext, TimelineContext } from './timeline-position-state.js';
|
|
11
|
+
import { SequenceContext } from './SequenceContext.js';
|
|
12
|
+
import { SetTimelineContext, TimelineContext, } from './timeline-position-state.js';
|
|
13
13
|
export function useRemotionContexts() {
|
|
14
14
|
const compositionManagerCtx = React.useContext(CompositionManager);
|
|
15
15
|
const timelineContext = React.useContext(TimelineContext);
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.55",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/cjs/index.d.ts",
|
|
7
|
-
"module": "dist/esm/index.
|
|
7
|
+
"module": "dist/esm/index.mjs",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"prepublishOnly": "node ensure-correct-version.js && cp ../../README.md .",
|
|
10
10
|
"lint": "eslint src --ext ts,tsx",
|
|
11
11
|
"test": "vitest --run",
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "rollup --config rollup-version.config.js && rollup --config rollup.config.js && tsc -d -p tsconfig-cjs.json",
|
|
13
13
|
"watch": "tsc -w"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"react-dom": ">=16.8.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@jonny/eslint-config": "3.0.
|
|
28
|
+
"@jonny/eslint-config": "3.0.273",
|
|
29
|
+
"@rollup/plugin-typescript": "^8.2.0",
|
|
29
30
|
"@testing-library/react": "14.0.0",
|
|
30
31
|
"@types/node": "^16.7.5",
|
|
31
32
|
"@types/react": "18.0.26",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"react": "^18.0.0",
|
|
41
42
|
"react-dom": "^18.0.0",
|
|
42
43
|
"rimraf": "^3.0.2",
|
|
44
|
+
"rollup": "^2.70.1",
|
|
43
45
|
"typescript": "^4.7.0",
|
|
44
46
|
"vitest": "0.24.3"
|
|
45
47
|
},
|
|
@@ -57,14 +59,14 @@
|
|
|
57
59
|
"./package.json": "./package.json",
|
|
58
60
|
".": {
|
|
59
61
|
"types": "./dist/cjs/index.d.ts",
|
|
60
|
-
"module": "./dist/esm/index.
|
|
61
|
-
"import": "./dist/esm/index.
|
|
62
|
+
"module": "./dist/esm/index.mjs",
|
|
63
|
+
"import": "./dist/esm/index.mjs",
|
|
62
64
|
"require": "./dist/cjs/index.js"
|
|
63
65
|
},
|
|
64
66
|
"./version": {
|
|
65
67
|
"types": "./dist/cjs/version.d.ts",
|
|
66
|
-
"module": "./dist/esm/version.
|
|
67
|
-
"import": "./dist/esm/version.
|
|
68
|
+
"module": "./dist/esm/version.mjs",
|
|
69
|
+
"import": "./dist/esm/version.mjs",
|
|
68
70
|
"require": "./dist/cjs/version.js"
|
|
69
71
|
}
|
|
70
72
|
},
|
|
@@ -75,5 +77,5 @@
|
|
|
75
77
|
]
|
|
76
78
|
}
|
|
77
79
|
},
|
|
78
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "4cecccc293e9c906c693f55fac65df8f1cfd2338"
|
|
79
81
|
}
|
package/version.js
ADDED
package/.prettierrc.js
DELETED
package/dist/AbsoluteFill.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* An absolutely positioned <div> element with 100% width, height, and a column flex style
|
|
4
|
-
* @link https://www.remotion.dev/docs/absolute-fill
|
|
5
|
-
*/
|
|
6
|
-
export declare const AbsoluteFill: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/AbsoluteFill.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbsoluteFill = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const AbsoluteFillRefForwarding = (props, ref) => {
|
|
7
|
-
const { style, ...other } = props;
|
|
8
|
-
const actualStyle = (0, react_1.useMemo)(() => {
|
|
9
|
-
return {
|
|
10
|
-
position: 'absolute',
|
|
11
|
-
top: 0,
|
|
12
|
-
left: 0,
|
|
13
|
-
right: 0,
|
|
14
|
-
bottom: 0,
|
|
15
|
-
width: '100%',
|
|
16
|
-
height: '100%',
|
|
17
|
-
display: 'flex',
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
...style,
|
|
20
|
-
};
|
|
21
|
-
}, [style]);
|
|
22
|
-
return (0, jsx_runtime_1.jsx)("div", { ref: ref, style: actualStyle, ...other });
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* An absolutely positioned <div> element with 100% width, height, and a column flex style
|
|
26
|
-
* @link https://www.remotion.dev/docs/absolute-fill
|
|
27
|
-
*/
|
|
28
|
-
exports.AbsoluteFill = (0, react_1.forwardRef)(AbsoluteFillRefForwarding);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CanUseRemotionHooksProvider = exports.CanUseRemotionHooks = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
exports.CanUseRemotionHooks = (0, react_1.createContext)(false);
|
|
7
|
-
const CanUseRemotionHooksProvider = ({ children }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(exports.CanUseRemotionHooks.Provider, { value: true, children: children }));
|
|
9
|
-
};
|
|
10
|
-
exports.CanUseRemotionHooksProvider = CanUseRemotionHooksProvider;
|
package/dist/Clipper.d.ts
DELETED
package/dist/Clipper.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Clipper = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const NativeLayers_1 = require("./NativeLayers");
|
|
6
|
-
const Clipper = ({ height, width, x, y }) => {
|
|
7
|
-
const { setClipRegion } = (0, react_1.useContext)(NativeLayers_1.NativeLayersContext);
|
|
8
|
-
(0, react_1.useEffect)(() => {
|
|
9
|
-
setClipRegion((c) => {
|
|
10
|
-
if (c === 'hide') {
|
|
11
|
-
throw new Error('Cannot render <Clipper>, because another <Null> is already rendered');
|
|
12
|
-
}
|
|
13
|
-
if (c === null) {
|
|
14
|
-
return { height, width, x, y };
|
|
15
|
-
}
|
|
16
|
-
throw new Error('Cannot render <Clipper>, because another component clipping the region was already rendered (most likely <Clipper>)');
|
|
17
|
-
});
|
|
18
|
-
return () => {
|
|
19
|
-
setClipRegion(null);
|
|
20
|
-
};
|
|
21
|
-
}, [height, setClipRegion, width, x, y]);
|
|
22
|
-
return null;
|
|
23
|
-
};
|
|
24
|
-
exports.Clipper = Clipper;
|
package/dist/Composition.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, PropsWithChildren } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare type LooseComponentType<T> = ComponentType<T> | ((props: T) => React.ReactNode);
|
|
4
|
-
export declare type CompProps<T> = {
|
|
5
|
-
lazyComponent: () => Promise<{
|
|
6
|
-
default: LooseComponentType<T>;
|
|
7
|
-
}>;
|
|
8
|
-
} | {
|
|
9
|
-
component: LooseComponentType<T>;
|
|
10
|
-
};
|
|
11
|
-
export declare type StillProps<T> = {
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
id: string;
|
|
15
|
-
defaultProps?: T;
|
|
16
|
-
} & CompProps<T>;
|
|
17
|
-
declare type CompositionProps<T> = StillProps<T> & {
|
|
18
|
-
fps: number;
|
|
19
|
-
durationInFrames: number;
|
|
20
|
-
};
|
|
21
|
-
export declare const Composition: <T>({ width, height, fps, durationInFrames, id, defaultProps, ...compProps }: CompositionProps<T>) => React.ReactPortal | null;
|
|
22
|
-
export declare const ClipComposition: React.FC<PropsWithChildren>;
|
|
23
|
-
export {};
|