remotion 4.0.0-lambda.1 → 4.0.0-newpathfunctions.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -8
- package/README.md +30 -19
- package/dist/AbsoluteFill.d.ts +2 -2
- package/dist/AbsoluteFill.js +7 -7
- package/dist/CanUseRemotionHooks.d.ts +5 -0
- package/dist/CanUseRemotionHooks.js +10 -0
- package/dist/Clipper.d.ts +7 -0
- package/dist/Clipper.js +24 -0
- package/dist/Composition.d.ts +3 -1
- package/dist/Composition.js +34 -10
- package/dist/CompositionManager.d.ts +9 -8
- package/dist/CompositionManager.js +9 -3
- package/dist/Folder.d.ts +1 -1
- package/dist/Folder.js +0 -0
- package/dist/IFrame.d.ts +0 -0
- package/dist/IFrame.js +0 -0
- package/dist/Img.d.ts +0 -0
- package/dist/Img.js +31 -21
- package/dist/LayerMaster.d.ts +8 -0
- package/dist/LayerMaster.js +39 -0
- package/dist/NativeLayers.d.ts +13 -0
- package/dist/NativeLayers.js +29 -0
- package/dist/Null.d.ts +2 -0
- package/dist/Null.js +25 -0
- package/dist/RemotionRoot.d.ts +1 -0
- package/dist/RemotionRoot.js +9 -6
- package/dist/Sequence.d.ts +13 -4
- package/dist/Sequence.js +38 -30
- package/dist/Still.d.ts +1 -1
- package/dist/Still.js +0 -0
- package/dist/absolute-src.d.ts +0 -0
- package/dist/absolute-src.js +0 -0
- package/dist/asset-types.d.ts +1 -4
- package/dist/asset-types.js +0 -0
- package/dist/audio/Audio.d.ts +5 -3
- package/dist/audio/Audio.js +24 -4
- package/dist/audio/AudioForDevelopment.d.ts +6 -2
- package/dist/audio/AudioForDevelopment.js +42 -6
- package/dist/audio/AudioForRendering.d.ts +9 -2
- package/dist/audio/AudioForRendering.js +48 -5
- package/dist/audio/index.d.ts +0 -0
- package/dist/audio/index.js +0 -0
- package/dist/audio/props.d.ts +4 -2
- package/dist/audio/props.js +0 -0
- package/dist/audio/shared-audio-tags.d.ts +9 -4
- package/dist/audio/shared-audio-tags.js +117 -45
- package/dist/audio/use-audio-frame.d.ts +0 -0
- package/dist/audio/use-audio-frame.js +0 -0
- package/dist/bezier.d.ts +0 -0
- package/dist/bezier.js +0 -0
- package/dist/config/input-props.d.ts +0 -0
- package/dist/config/input-props.js +12 -14
- package/dist/config.d.ts +285 -0
- package/dist/config.js +21 -0
- package/dist/default-css.d.ts +1 -0
- package/dist/default-css.js +9 -2
- package/dist/delay-render.d.ts +0 -0
- package/dist/delay-render.js +4 -4
- package/dist/easing.d.ts +0 -0
- package/dist/easing.js +0 -0
- package/dist/freeze.d.ts +0 -0
- package/dist/freeze.js +0 -0
- package/dist/get-asset-file-name.d.ts +0 -0
- package/dist/get-asset-file-name.js +0 -0
- package/dist/get-compositions-from-markup.d.ts +3 -0
- package/dist/get-compositions-from-markup.js +19 -0
- package/dist/get-environment.d.ts +1 -0
- package/dist/get-environment.js +14 -2
- package/dist/get-preview-dom-element.d.ts +0 -0
- package/dist/get-preview-dom-element.js +0 -0
- package/dist/get-static-files.d.ts +17 -0
- package/dist/get-static-files.js +31 -0
- package/dist/get-timeline-clip-name.d.ts +0 -0
- package/dist/get-timeline-clip-name.js +2 -1
- package/dist/index.d.ts +33 -5
- package/dist/index.js +18 -3
- package/dist/internals.d.ts +50 -101
- package/dist/internals.js +16 -91
- package/dist/interpolate-colors.d.ts +0 -0
- package/dist/interpolate-colors.js +0 -0
- package/dist/interpolate.d.ts +0 -0
- package/dist/interpolate.js +0 -0
- package/dist/is-approximately-the-same.d.ts +0 -0
- package/dist/is-approximately-the-same.js +0 -0
- package/dist/is-player.d.ts +3 -0
- package/dist/is-player.js +14 -0
- package/dist/layers.d.ts +24 -0
- package/dist/layers.js +149 -0
- package/dist/loading-indicator.d.ts +0 -0
- package/dist/loading-indicator.js +0 -0
- package/dist/loop/index.d.ts +2 -2
- package/dist/loop/index.js +7 -5
- package/dist/multiple-versions-warning.d.ts +0 -0
- package/dist/multiple-versions-warning.js +23 -4
- package/dist/nonce.d.ts +0 -0
- package/dist/nonce.js +0 -0
- package/dist/play-and-handle-not-allowed-error.d.ts +1 -1
- package/dist/play-and-handle-not-allowed-error.js +4 -0
- package/dist/portal-node.d.ts +0 -0
- package/dist/portal-node.js +0 -0
- package/dist/prefetch-state.d.ts +8 -0
- package/dist/prefetch-state.js +27 -0
- package/dist/prefetch.d.ts +9 -0
- package/dist/prefetch.js +108 -0
- package/dist/random.d.ts +2 -1
- package/dist/random.js +0 -0
- package/dist/register-root.d.ts +1 -1
- package/dist/register-root.js +3 -0
- package/dist/series/flatten-children.d.ts +1 -1
- package/dist/series/flatten-children.js +0 -0
- package/dist/series/index.d.ts +4 -4
- package/dist/series/index.js +4 -2
- package/dist/setup-env-variables.d.ts +0 -0
- package/dist/setup-env-variables.js +0 -0
- package/dist/spring/index.d.ts +8 -4
- package/dist/spring/index.js +21 -6
- package/dist/spring/measure-spring.d.ts +1 -1
- package/dist/spring/measure-spring.js +1 -1
- package/dist/spring/spring-utils.d.ts +0 -0
- package/dist/spring/spring-utils.js +0 -0
- package/dist/static-file.d.ts +4 -0
- package/dist/static-file.js +10 -0
- package/dist/timeline-position-state.d.ts +1 -1
- package/dist/timeline-position-state.js +0 -0
- package/dist/truthy.d.ts +0 -0
- package/dist/truthy.js +0 -0
- package/dist/use-current-frame.d.ts +0 -1
- package/dist/use-current-frame.js +10 -7
- package/dist/use-lazy-component.d.ts +3 -3
- package/dist/use-lazy-component.js +0 -0
- package/dist/use-media-in-timeline.d.ts +4 -3
- package/dist/use-media-in-timeline.js +13 -6
- package/dist/use-media-playback.d.ts +5 -2
- package/dist/use-media-playback.js +11 -6
- package/dist/use-media-tag-volume.d.ts +1 -1
- package/dist/use-media-tag-volume.js +0 -0
- package/dist/use-sync-volume-with-media-tag.d.ts +2 -2
- package/dist/use-sync-volume-with-media-tag.js +1 -0
- package/dist/use-unsafe-video-config.d.ts +1 -1
- package/dist/use-unsafe-video-config.js +0 -0
- package/dist/use-video-config.d.ts +1 -1
- package/dist/use-video-config.js +10 -1
- package/dist/use-video.d.ts +13 -1
- package/dist/use-video.js +16 -3
- package/dist/validate-media-props.d.ts +3 -3
- package/dist/validate-media-props.js +0 -0
- package/dist/validate-start-from-props.d.ts +0 -0
- package/dist/validate-start-from-props.js +0 -0
- package/dist/validation/validate-composition-id.d.ts +0 -0
- package/dist/validation/validate-composition-id.js +0 -0
- package/dist/validation/validate-dimensions.d.ts +0 -0
- package/dist/validation/validate-dimensions.js +0 -0
- package/dist/validation/validate-duration-in-frames.d.ts +0 -0
- package/dist/validation/validate-duration-in-frames.js +0 -0
- package/dist/validation/validate-folder-name.d.ts +0 -0
- package/dist/validation/validate-folder-name.js +0 -0
- package/dist/validation/validate-fps.d.ts +1 -1
- package/dist/validation/validate-fps.js +4 -1
- package/dist/validation/validate-offthreadvideo-image-format.d.ts +1 -0
- package/dist/validation/validate-offthreadvideo-image-format.js +15 -0
- package/dist/validation/validation-spring-duration.d.ts +1 -0
- package/dist/validation/validation-spring-duration.js +21 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +5 -0
- package/dist/video/NativeVideo.d.ts +5 -0
- package/dist/video/NativeVideo.js +33 -0
- package/dist/video/NativeVideoForRendering.d.ts +8 -0
- package/dist/video/NativeVideoForRendering.js +14 -0
- package/dist/video/OffthreadVideo.d.ts +2 -2
- package/dist/video/OffthreadVideo.js +10 -2
- package/dist/video/OffthreadVideoForRendering.d.ts +1 -1
- package/dist/video/OffthreadVideoForRendering.js +24 -13
- package/dist/video/Video.d.ts +5 -3
- package/dist/video/Video.js +25 -4
- package/dist/video/VideoForDevelopment.d.ts +10 -2
- package/dist/video/VideoForDevelopment.js +75 -7
- package/dist/video/VideoForRendering.d.ts +9 -2
- package/dist/video/VideoForRendering.js +80 -23
- package/dist/video/duration-state.d.ts +17 -0
- package/dist/video/duration-state.js +34 -0
- package/dist/video/get-current-time.d.ts +2 -1
- package/dist/video/get-current-time.js +7 -7
- package/dist/video/index.d.ts +1 -1
- package/dist/video/index.js +0 -0
- package/dist/video/props.d.ts +9 -3
- package/dist/video/props.js +0 -0
- package/dist/video/video-fragment.d.ts +12 -0
- package/dist/video/video-fragment.js +60 -0
- package/dist/video-config.d.ts +0 -0
- package/dist/video-config.js +0 -0
- package/dist/volume-position-state.d.ts +0 -0
- package/dist/volume-position-state.js +0 -0
- package/dist/volume-prop.d.ts +2 -1
- package/dist/volume-prop.js +4 -3
- package/dist/warn-about-non-seekable-media.d.ts +1 -1
- package/dist/warn-about-non-seekable-media.js +14 -2
- package/dist/wrap-remotion-context.d.ts +5 -0
- package/dist/wrap-remotion-context.js +13 -1
- package/package.json +26 -16
- package/.turbo/turbo-build.log +0 -5
- package/dist/AbsoluteFill.d.ts.map +0 -1
- package/dist/AbsoluteFill.js.map +0 -1
- package/dist/Composition.d.ts.map +0 -1
- package/dist/Composition.js.map +0 -1
- package/dist/CompositionManager.d.ts.map +0 -1
- package/dist/CompositionManager.js.map +0 -1
- package/dist/IFrame.d.ts.map +0 -1
- package/dist/IFrame.js.map +0 -1
- package/dist/Img.d.ts.map +0 -1
- package/dist/Img.js.map +0 -1
- package/dist/RemotionRoot.d.ts.map +0 -1
- package/dist/RemotionRoot.js.map +0 -1
- package/dist/Still.d.ts.map +0 -1
- package/dist/Still.js.map +0 -1
- package/dist/absolute-src.d.ts.map +0 -1
- package/dist/absolute-src.js.map +0 -1
- package/dist/asset-types.d.ts.map +0 -1
- package/dist/asset-types.js.map +0 -1
- package/dist/audio/Audio.d.ts.map +0 -1
- package/dist/audio/Audio.js.map +0 -1
- package/dist/audio/AudioForDevelopment.d.ts.map +0 -1
- package/dist/audio/AudioForDevelopment.js.map +0 -1
- package/dist/audio/AudioForRendering.d.ts.map +0 -1
- package/dist/audio/AudioForRendering.js.map +0 -1
- package/dist/audio/index.d.ts.map +0 -1
- package/dist/audio/index.js.map +0 -1
- package/dist/audio/props.d.ts.map +0 -1
- package/dist/audio/props.js.map +0 -1
- package/dist/audio/shared-audio-tags.d.ts.map +0 -1
- package/dist/audio/shared-audio-tags.js.map +0 -1
- package/dist/audio/use-audio-frame.d.ts.map +0 -1
- package/dist/audio/use-audio-frame.js.map +0 -1
- package/dist/bezier.d.ts.map +0 -1
- package/dist/bezier.js.map +0 -1
- package/dist/compress-assets.d.ts +0 -7
- package/dist/compress-assets.d.ts.map +0 -1
- package/dist/compress-assets.js +0 -25
- package/dist/compress-assets.js.map +0 -1
- package/dist/config/browser-executable.d.ts +0 -3
- package/dist/config/browser-executable.d.ts.map +0 -1
- package/dist/config/browser-executable.js +0 -12
- package/dist/config/browser-executable.js.map +0 -1
- package/dist/config/browser.d.ts +0 -4
- package/dist/config/browser.d.ts.map +0 -1
- package/dist/config/browser.js +0 -19
- package/dist/config/browser.js.map +0 -1
- package/dist/config/bundle-out-dir.d.ts +0 -2
- package/dist/config/bundle-out-dir.js +0 -12
- package/dist/config/chromium-flags.d.ts +0 -10
- package/dist/config/chromium-flags.d.ts.map +0 -1
- package/dist/config/chromium-flags.js +0 -34
- package/dist/config/chromium-flags.js.map +0 -1
- package/dist/config/codec.d.ts +0 -17
- package/dist/config/codec.d.ts.map +0 -1
- package/dist/config/codec.js +0 -103
- package/dist/config/codec.js.map +0 -1
- package/dist/config/concurrency.d.ts +0 -3
- package/dist/config/concurrency.d.ts.map +0 -1
- package/dist/config/concurrency.js +0 -15
- package/dist/config/concurrency.js.map +0 -1
- package/dist/config/crf.d.ts +0 -9
- package/dist/config/crf.d.ts.map +0 -1
- package/dist/config/crf.js +0 -83
- package/dist/config/crf.js.map +0 -1
- package/dist/config/env-file.d.ts +0 -2
- package/dist/config/env-file.d.ts.map +0 -1
- package/dist/config/env-file.js +0 -10
- package/dist/config/env-file.js.map +0 -1
- package/dist/config/every-nth-file.d.ts +0 -2
- package/dist/config/every-nth-file.js +0 -12
- package/dist/config/ffmpeg-executable.d.ts +0 -5
- package/dist/config/ffmpeg-executable.d.ts.map +0 -1
- package/dist/config/ffmpeg-executable.js +0 -21
- package/dist/config/ffmpeg-executable.js.map +0 -1
- package/dist/config/frame-range.d.ts +0 -5
- package/dist/config/frame-range.d.ts.map +0 -1
- package/dist/config/frame-range.js +0 -80
- package/dist/config/frame-range.js.map +0 -1
- package/dist/config/image-format.d.ts +0 -8
- package/dist/config/image-format.d.ts.map +0 -1
- package/dist/config/image-format.js +0 -37
- package/dist/config/image-format.js.map +0 -1
- package/dist/config/image-sequence.d.ts +0 -3
- package/dist/config/image-sequence.d.ts.map +0 -1
- package/dist/config/image-sequence.js +0 -15
- package/dist/config/image-sequence.js.map +0 -1
- package/dist/config/index.d.ts +0 -167
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -180
- package/dist/config/index.js.map +0 -1
- package/dist/config/input-props.d.ts.map +0 -1
- package/dist/config/input-props.js.map +0 -1
- package/dist/config/log.d.ts +0 -7
- package/dist/config/log.d.ts.map +0 -1
- package/dist/config/log.js +0 -25
- package/dist/config/log.js.map +0 -1
- package/dist/config/loop.d.ts +0 -3
- package/dist/config/loop.js +0 -15
- package/dist/config/max-timeline-tracks.d.ts +0 -2
- package/dist/config/max-timeline-tracks.d.ts.map +0 -1
- package/dist/config/max-timeline-tracks.js +0 -24
- package/dist/config/max-timeline-tracks.js.map +0 -1
- package/dist/config/override-webpack.d.ts +0 -6
- package/dist/config/override-webpack.d.ts.map +0 -1
- package/dist/config/override-webpack.js +0 -14
- package/dist/config/override-webpack.js.map +0 -1
- package/dist/config/overwrite.d.ts +0 -3
- package/dist/config/overwrite.d.ts.map +0 -1
- package/dist/config/overwrite.js +0 -14
- package/dist/config/overwrite.js.map +0 -1
- package/dist/config/pixel-format.d.ts +0 -8
- package/dist/config/pixel-format.d.ts.map +0 -1
- package/dist/config/pixel-format.js +0 -38
- package/dist/config/pixel-format.js.map +0 -1
- package/dist/config/preview-server.d.ts +0 -2
- package/dist/config/preview-server.d.ts.map +0 -1
- package/dist/config/preview-server.js +0 -20
- package/dist/config/preview-server.js.map +0 -1
- package/dist/config/prores-profile.d.ts +0 -7
- package/dist/config/prores-profile.d.ts.map +0 -1
- package/dist/config/prores-profile.js +0 -32
- package/dist/config/prores-profile.js.map +0 -1
- package/dist/config/public-path.d.ts +0 -2
- package/dist/config/public-path.js +0 -12
- package/dist/config/quality.d.ts +0 -2
- package/dist/config/quality.d.ts.map +0 -1
- package/dist/config/quality.js +0 -17
- package/dist/config/quality.js.map +0 -1
- package/dist/config/scale.d.ts +0 -3
- package/dist/config/scale.d.ts.map +0 -1
- package/dist/config/scale.js +0 -15
- package/dist/config/scale.js.map +0 -1
- package/dist/config/still-frame.d.ts +0 -2
- package/dist/config/still-frame.d.ts.map +0 -1
- package/dist/config/still-frame.js +0 -12
- package/dist/config/still-frame.js.map +0 -1
- package/dist/config/timeout.d.ts +0 -2
- package/dist/config/timeout.d.ts.map +0 -1
- package/dist/config/timeout.js +0 -17
- package/dist/config/timeout.js.map +0 -1
- package/dist/config/webpack-caching.d.ts +0 -3
- package/dist/config/webpack-caching.d.ts.map +0 -1
- package/dist/config/webpack-caching.js +0 -16
- package/dist/config/webpack-caching.js.map +0 -1
- package/dist/default-css.d.ts.map +0 -1
- package/dist/default-css.js.map +0 -1
- package/dist/delay-render.d.ts.map +0 -1
- package/dist/delay-render.js.map +0 -1
- package/dist/easing.d.ts.map +0 -1
- package/dist/easing.js.map +0 -1
- package/dist/feature-flags.d.ts +0 -1
- package/dist/feature-flags.d.ts.map +0 -1
- package/dist/feature-flags.js +0 -7
- package/dist/feature-flags.js.map +0 -1
- package/dist/freeze.d.ts.map +0 -1
- package/dist/freeze.js.map +0 -1
- package/dist/get-asset-file-name.d.ts.map +0 -1
- package/dist/get-asset-file-name.js.map +0 -1
- package/dist/get-environment.d.ts.map +0 -1
- package/dist/get-environment.js.map +0 -1
- package/dist/get-preview-dom-element.d.ts.map +0 -1
- package/dist/get-preview-dom-element.js.map +0 -1
- package/dist/get-timeline-clip-name.d.ts.map +0 -1
- package/dist/get-timeline-clip-name.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/initial-frame.d.ts +0 -2
- package/dist/initial-frame.d.ts.map +0 -1
- package/dist/initial-frame.js +0 -12
- package/dist/initial-frame.js.map +0 -1
- package/dist/internals.d.ts.map +0 -1
- package/dist/internals.js.map +0 -1
- package/dist/interpolate.d.ts.map +0 -1
- package/dist/interpolate.js.map +0 -1
- package/dist/interpolateColors.d.ts +0 -5
- package/dist/interpolateColors.d.ts.map +0 -1
- package/dist/interpolateColors.js +0 -401
- package/dist/interpolateColors.js.map +0 -1
- package/dist/is-approximately-the-same.d.ts.map +0 -1
- package/dist/is-approximately-the-same.js.map +0 -1
- package/dist/is-audio-codec.d.ts +0 -2
- package/dist/is-audio-codec.d.ts.map +0 -1
- package/dist/is-audio-codec.js +0 -7
- package/dist/is-audio-codec.js.map +0 -1
- package/dist/loop/index.d.ts.map +0 -1
- package/dist/loop/index.js.map +0 -1
- package/dist/multiple-versions-warning.d.ts.map +0 -1
- package/dist/multiple-versions-warning.js.map +0 -1
- package/dist/nonce.d.ts.map +0 -1
- package/dist/nonce.js.map +0 -1
- package/dist/perf/index.d.ts +0 -5
- package/dist/perf/index.d.ts.map +0 -1
- package/dist/perf/index.js +0 -35
- package/dist/perf/index.js.map +0 -1
- package/dist/play-and-handle-not-allowed-error.d.ts.map +0 -1
- package/dist/play-and-handle-not-allowed-error.js.map +0 -1
- package/dist/random.d.ts.map +0 -1
- package/dist/random.js.map +0 -1
- package/dist/register-root.d.ts.map +0 -1
- package/dist/register-root.js.map +0 -1
- package/dist/sequencing/index.d.ts +0 -19
- package/dist/sequencing/index.d.ts.map +0 -1
- package/dist/sequencing/index.js +0 -123
- package/dist/sequencing/index.js.map +0 -1
- package/dist/series/flatten-children.d.ts.map +0 -1
- package/dist/series/flatten-children.js.map +0 -1
- package/dist/series/index.d.ts.map +0 -1
- package/dist/series/index.js.map +0 -1
- package/dist/setup-env-variables.d.ts.map +0 -1
- package/dist/setup-env-variables.js.map +0 -1
- package/dist/spring/index.d.ts.map +0 -1
- package/dist/spring/index.js.map +0 -1
- package/dist/spring/measure-spring.d.ts.map +0 -1
- package/dist/spring/measure-spring.js.map +0 -1
- package/dist/spring/spring-utils.d.ts.map +0 -1
- package/dist/spring/spring-utils.js.map +0 -1
- package/dist/static-file.d.ts.map +0 -1
- package/dist/static-file.js.map +0 -1
- package/dist/timeline-inout-position-state.d.ts +0 -12
- package/dist/timeline-inout-position-state.d.ts.map +0 -1
- package/dist/timeline-inout-position-state.js +0 -23
- package/dist/timeline-inout-position-state.js.map +0 -1
- package/dist/timeline-position-state.d.ts.map +0 -1
- package/dist/timeline-position-state.js.map +0 -1
- package/dist/timeout.d.ts +0 -2
- package/dist/timeout.d.ts.map +0 -1
- package/dist/timeout.js +0 -12
- package/dist/timeout.js.map +0 -1
- package/dist/truthy.d.ts.map +0 -1
- package/dist/truthy.js.map +0 -1
- package/dist/use-frame.d.ts +0 -7
- package/dist/use-frame.d.ts.map +0 -1
- package/dist/use-frame.js +0 -25
- package/dist/use-frame.js.map +0 -1
- package/dist/use-lazy-component.d.ts.map +0 -1
- package/dist/use-lazy-component.js.map +0 -1
- package/dist/use-media-in-timeline.d.ts.map +0 -1
- package/dist/use-media-in-timeline.js.map +0 -1
- package/dist/use-media-playback.d.ts.map +0 -1
- package/dist/use-media-playback.js.map +0 -1
- package/dist/use-media-tag-volume.d.ts.map +0 -1
- package/dist/use-media-tag-volume.js.map +0 -1
- package/dist/use-sync-volume-with-media-tag.d.ts.map +0 -1
- package/dist/use-sync-volume-with-media-tag.js.map +0 -1
- package/dist/use-unsafe-video-config.d.ts.map +0 -1
- package/dist/use-unsafe-video-config.js.map +0 -1
- package/dist/use-video-config.d.ts.map +0 -1
- package/dist/use-video-config.js.map +0 -1
- package/dist/use-video.d.ts.map +0 -1
- package/dist/use-video.js.map +0 -1
- package/dist/validate-media-props.d.ts.map +0 -1
- package/dist/validate-media-props.js.map +0 -1
- package/dist/validate-start-from-props.d.ts.map +0 -1
- package/dist/validate-start-from-props.js.map +0 -1
- package/dist/validation/validate-composition-id.d.ts.map +0 -1
- package/dist/validation/validate-composition-id.js.map +0 -1
- package/dist/validation/validate-dimensions.d.ts.map +0 -1
- package/dist/validation/validate-dimensions.js.map +0 -1
- package/dist/validation/validate-duration-in-frames.d.ts.map +0 -1
- package/dist/validation/validate-duration-in-frames.js.map +0 -1
- package/dist/validation/validate-every-nth-frame.d.ts +0 -1
- package/dist/validation/validate-every-nth-frame.js +0 -21
- package/dist/validation/validate-folder-name.d.ts.map +0 -1
- package/dist/validation/validate-folder-name.js.map +0 -1
- package/dist/validation/validate-fps.d.ts.map +0 -1
- package/dist/validation/validate-fps.js.map +0 -1
- package/dist/validation/validate-frame.d.ts +0 -1
- package/dist/validation/validate-frame.d.ts.map +0 -1
- package/dist/validation/validate-frame.js +0 -24
- package/dist/validation/validate-frame.js.map +0 -1
- package/dist/validation/validate-image-format.d.ts +0 -2
- package/dist/validation/validate-image-format.d.ts.map +0 -1
- package/dist/validation/validate-image-format.js +0 -9
- package/dist/validation/validate-image-format.js.map +0 -1
- package/dist/validation/validate-opengl-renderer.d.ts +0 -4
- package/dist/validation/validate-opengl-renderer.d.ts.map +0 -1
- package/dist/validation/validate-opengl-renderer.js +0 -14
- package/dist/validation/validate-opengl-renderer.js.map +0 -1
- package/dist/validation/validate-quality.d.ts +0 -1
- package/dist/validation/validate-quality.d.ts.map +0 -1
- package/dist/validation/validate-quality.js +0 -21
- package/dist/validation/validate-quality.js.map +0 -1
- package/dist/video/Video.d.ts.map +0 -1
- package/dist/video/Video.js.map +0 -1
- package/dist/video/VideoForDevelopment.d.ts.map +0 -1
- package/dist/video/VideoForDevelopment.js.map +0 -1
- package/dist/video/VideoForRendering.d.ts.map +0 -1
- package/dist/video/VideoForRendering.js.map +0 -1
- package/dist/video/get-current-time.d.ts.map +0 -1
- package/dist/video/get-current-time.js.map +0 -1
- package/dist/video/index.d.ts.map +0 -1
- package/dist/video/index.js.map +0 -1
- package/dist/video/props.d.ts.map +0 -1
- package/dist/video/props.js.map +0 -1
- package/dist/video-config.d.ts.map +0 -1
- package/dist/video-config.js.map +0 -1
- package/dist/volume-position-state.d.ts.map +0 -1
- package/dist/volume-position-state.js.map +0 -1
- package/dist/volume-prop.d.ts.map +0 -1
- package/dist/volume-prop.js.map +0 -1
- package/dist/warn-about-non-seekable-media.d.ts.map +0 -1
- package/dist/warn-about-non-seekable-media.js.map +0 -1
- package/dist/wrap-remotion-context.d.ts.map +0 -1
- package/dist/wrap-remotion-context.js.map +0 -1
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCompositionsFromMarkup = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const server_1 = require("react-dom/server");
|
|
6
|
+
const Composition_1 = require("./Composition");
|
|
7
|
+
const getCompositionsFromMarkup = (Comp) => {
|
|
8
|
+
// TODO: Is this still necessary?
|
|
9
|
+
process.env.REMOTION_SERVER_RENDERING = 'true';
|
|
10
|
+
const str = (0, server_1.renderToString)((0, jsx_runtime_1.jsx)(Composition_1.GetCompositionsFromMarkupModeProvider, { children: (0, jsx_runtime_1.jsx)(Comp, {}) }));
|
|
11
|
+
const matches = str.matchAll(/<div>(.*?)<\/div>/g);
|
|
12
|
+
const metadata = [];
|
|
13
|
+
for (const match of matches) {
|
|
14
|
+
const json = JSON.parse(match[1]);
|
|
15
|
+
metadata.push(json);
|
|
16
|
+
}
|
|
17
|
+
return metadata;
|
|
18
|
+
};
|
|
19
|
+
exports.getCompositionsFromMarkup = getCompositionsFromMarkup;
|
package/dist/get-environment.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRemotionEnvironment = void 0;
|
|
3
|
+
exports.useRemotionEnvironment = exports.getRemotionEnvironment = void 0;
|
|
4
|
+
const is_player_1 = require("./is-player");
|
|
4
5
|
const getRemotionEnvironment = () => {
|
|
5
6
|
if (process.env.NODE_ENV === 'production') {
|
|
6
7
|
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
@@ -8,7 +9,7 @@ const getRemotionEnvironment = () => {
|
|
|
8
9
|
}
|
|
9
10
|
return 'rendering';
|
|
10
11
|
}
|
|
11
|
-
// The
|
|
12
|
+
// The Vitest framework sets NODE_ENV as test.
|
|
12
13
|
// Right now we don't need to treat it in a special
|
|
13
14
|
// way which is good - defaulting to `rendering`.
|
|
14
15
|
if (process.env.NODE_ENV === 'test') {
|
|
@@ -20,3 +21,14 @@ const getRemotionEnvironment = () => {
|
|
|
20
21
|
return 'preview';
|
|
21
22
|
};
|
|
22
23
|
exports.getRemotionEnvironment = getRemotionEnvironment;
|
|
24
|
+
const useRemotionEnvironment = () => {
|
|
25
|
+
const isPlayer = (0, is_player_1.useIsPlayer)();
|
|
26
|
+
if (isPlayer) {
|
|
27
|
+
if (process.env.NODE_ENV === 'production') {
|
|
28
|
+
return 'player-production';
|
|
29
|
+
}
|
|
30
|
+
return 'player-development';
|
|
31
|
+
}
|
|
32
|
+
return (0, exports.getRemotionEnvironment)();
|
|
33
|
+
};
|
|
34
|
+
exports.useRemotionEnvironment = useRemotionEnvironment;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const getStaticFiles: () => StaticFile[];
|
|
2
|
+
export declare type StaticFile = {
|
|
3
|
+
/**
|
|
4
|
+
* A string that you can pass to the `src` attribute of an `<Audio>`, `<Img>` and `<Video>` element.
|
|
5
|
+
*/
|
|
6
|
+
src: string;
|
|
7
|
+
/**
|
|
8
|
+
* The filepath of the file, relative to the public folder.
|
|
9
|
+
* Example: `subfolder/image.png`
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
sizeInBytes: number;
|
|
13
|
+
/**
|
|
14
|
+
* UNIX timestamp in milliseconds
|
|
15
|
+
*/
|
|
16
|
+
lastModified: number;
|
|
17
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStaticFiles = void 0;
|
|
4
|
+
let warnedServer = false;
|
|
5
|
+
let warnedPlayer = false;
|
|
6
|
+
const warnServerOnce = () => {
|
|
7
|
+
if (warnedServer) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
warnedServer = true;
|
|
11
|
+
console.warn('Called getStaticFiles() on the server. The API is only available in the browser. An empty array was returned.');
|
|
12
|
+
};
|
|
13
|
+
const warnPlayerOnce = () => {
|
|
14
|
+
if (warnedPlayer) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
warnedPlayer = true;
|
|
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
|
+
};
|
|
20
|
+
const getStaticFiles = () => {
|
|
21
|
+
if (typeof document === 'undefined') {
|
|
22
|
+
warnServerOnce();
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
if (window.remotion_isPlayer) {
|
|
26
|
+
warnPlayerOnce();
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
return window.remotion_staticFiles;
|
|
30
|
+
};
|
|
31
|
+
exports.getStaticFiles = getStaticFiles;
|
|
File without changes
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTimelineClipName = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
+
const HIDDEN_NAMES = ['__WEBPACK_DEFAULT_EXPORT__'];
|
|
5
6
|
const getTimelineClipName = (children) => {
|
|
6
7
|
var _a;
|
|
7
8
|
const tree = (_a = react_1.Children.map(children, (ch) => {
|
|
@@ -10,7 +11,7 @@ const getTimelineClipName = (children) => {
|
|
|
10
11
|
}
|
|
11
12
|
// Must be name, not ID
|
|
12
13
|
const name = typeof ch.type !== 'string' && ch.type.name;
|
|
13
|
-
if (name) {
|
|
14
|
+
if (name && !HIDDEN_NAMES.includes(name)) {
|
|
14
15
|
return name;
|
|
15
16
|
}
|
|
16
17
|
if (ch.props.children) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import './asset-types';
|
|
2
|
-
import { TAsset, TCompMetadata } from './CompositionManager';
|
|
2
|
+
import type { TAsset, TCompMetadata } from './CompositionManager';
|
|
3
|
+
import type { StaticFile } from './get-static-files';
|
|
4
|
+
import type { ClipRegion } from './NativeLayers';
|
|
3
5
|
declare global {
|
|
4
6
|
interface Window {
|
|
5
7
|
ready: boolean;
|
|
6
8
|
getStaticCompositions: () => TCompMetadata[];
|
|
7
9
|
setBundleMode: (bundleMode: BundleState) => void;
|
|
8
10
|
remotion_staticBase: string;
|
|
11
|
+
remotion_staticFiles: StaticFile[];
|
|
9
12
|
remotion_editorName: string | null;
|
|
13
|
+
remotion_numberOfAudioTags: number;
|
|
10
14
|
remotion_projectName: string;
|
|
11
15
|
remotion_cwd: string;
|
|
16
|
+
remotion_previewServerCommand: string;
|
|
12
17
|
remotion_setFrame: (frame: number) => void;
|
|
13
18
|
remotion_initialFrame: number;
|
|
14
19
|
remotion_proxyPort: number;
|
|
20
|
+
remotion_audioEnabled: boolean;
|
|
21
|
+
remotion_videoEnabled: boolean;
|
|
15
22
|
remotion_puppeteerTimeout: number;
|
|
16
23
|
remotion_inputProps: string;
|
|
17
24
|
remotion_envVariables: string;
|
|
18
25
|
remotion_collectAssets: () => TAsset[];
|
|
26
|
+
remotion_getClipRegion: () => ClipRegion | null;
|
|
19
27
|
remotion_isPlayer: boolean;
|
|
20
|
-
remotion_imported: boolean;
|
|
21
28
|
remotion_isBuilding: undefined | (() => void);
|
|
22
29
|
remotion_finishedBuilding: undefined | (() => void);
|
|
23
|
-
siteVersion: '
|
|
30
|
+
siteVersion: '4';
|
|
31
|
+
remotion_version: string;
|
|
32
|
+
remotion_imported: string | boolean;
|
|
24
33
|
}
|
|
25
34
|
}
|
|
26
35
|
export declare type BundleState = {
|
|
@@ -30,24 +39,32 @@ export declare type BundleState = {
|
|
|
30
39
|
} | {
|
|
31
40
|
type: 'composition';
|
|
32
41
|
compositionName: string;
|
|
42
|
+
compositionDefaultProps: unknown;
|
|
43
|
+
compositionHeight: number;
|
|
44
|
+
compositionDurationInFrames: number;
|
|
45
|
+
compositionWidth: number;
|
|
46
|
+
compositionFps: number;
|
|
33
47
|
};
|
|
34
48
|
export * from './AbsoluteFill';
|
|
35
49
|
export * from './audio';
|
|
36
50
|
export * from './Composition';
|
|
37
51
|
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
|
|
38
|
-
export
|
|
52
|
+
export { Config, ConfigType } from './config';
|
|
39
53
|
export { getInputProps } from './config/input-props';
|
|
40
54
|
export * from './delay-render';
|
|
41
55
|
export * from './easing';
|
|
42
56
|
export * from './Folder';
|
|
43
57
|
export * from './freeze';
|
|
58
|
+
export { getStaticFiles, StaticFile } from './get-static-files';
|
|
44
59
|
export * from './IFrame';
|
|
45
60
|
export * from './Img';
|
|
46
61
|
export * from './internals';
|
|
47
62
|
export * from './interpolate';
|
|
48
63
|
export { interpolateColors } from './interpolate-colors';
|
|
49
64
|
export { Loop } from './loop';
|
|
50
|
-
export
|
|
65
|
+
export { ClipRegion } from './NativeLayers';
|
|
66
|
+
export { prefetch } from './prefetch';
|
|
67
|
+
export { random, RandomSeed } from './random';
|
|
51
68
|
export { registerRoot } from './register-root';
|
|
52
69
|
export { Sequence } from './Sequence';
|
|
53
70
|
export { Series } from './series';
|
|
@@ -57,5 +74,16 @@ export * from './Still';
|
|
|
57
74
|
export type { PlayableMediaTag } from './timeline-position-state';
|
|
58
75
|
export { useCurrentFrame } from './use-current-frame';
|
|
59
76
|
export * from './use-video-config';
|
|
77
|
+
export * from './version';
|
|
60
78
|
export * from './video';
|
|
61
79
|
export * from './video-config';
|
|
80
|
+
export declare const Experimental: {
|
|
81
|
+
Clipper: import("react").FC<{
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
}>;
|
|
87
|
+
Null: import("react").FC<{}>;
|
|
88
|
+
useIsPlayer: () => boolean;
|
|
89
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -14,20 +14,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.Loop = exports.interpolateColors = exports.getInputProps = void 0;
|
|
17
|
+
exports.Experimental = exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.random = exports.prefetch = exports.Loop = exports.interpolateColors = exports.getStaticFiles = exports.getInputProps = exports.Config = void 0;
|
|
18
18
|
require("./asset-types");
|
|
19
|
+
const Clipper_1 = require("./Clipper");
|
|
20
|
+
const is_player_1 = require("./is-player");
|
|
19
21
|
const multiple_versions_warning_1 = require("./multiple-versions-warning");
|
|
22
|
+
const Null_1 = require("./Null");
|
|
20
23
|
(0, multiple_versions_warning_1.checkMultipleRemotionVersions)();
|
|
21
24
|
__exportStar(require("./AbsoluteFill"), exports);
|
|
22
25
|
__exportStar(require("./audio"), exports);
|
|
23
26
|
__exportStar(require("./Composition"), exports);
|
|
24
|
-
|
|
27
|
+
var config_1 = require("./config");
|
|
28
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
25
29
|
var input_props_1 = require("./config/input-props");
|
|
26
30
|
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_1.getInputProps; } });
|
|
27
31
|
__exportStar(require("./delay-render"), exports);
|
|
28
32
|
__exportStar(require("./easing"), exports);
|
|
29
33
|
__exportStar(require("./Folder"), exports);
|
|
30
34
|
__exportStar(require("./freeze"), exports);
|
|
35
|
+
var get_static_files_1 = require("./get-static-files");
|
|
36
|
+
Object.defineProperty(exports, "getStaticFiles", { enumerable: true, get: function () { return get_static_files_1.getStaticFiles; } });
|
|
31
37
|
__exportStar(require("./IFrame"), exports);
|
|
32
38
|
__exportStar(require("./Img"), exports);
|
|
33
39
|
__exportStar(require("./internals"), exports);
|
|
@@ -36,7 +42,10 @@ var interpolate_colors_1 = require("./interpolate-colors");
|
|
|
36
42
|
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolate_colors_1.interpolateColors; } });
|
|
37
43
|
var loop_1 = require("./loop");
|
|
38
44
|
Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return loop_1.Loop; } });
|
|
39
|
-
|
|
45
|
+
var prefetch_1 = require("./prefetch");
|
|
46
|
+
Object.defineProperty(exports, "prefetch", { enumerable: true, get: function () { return prefetch_1.prefetch; } });
|
|
47
|
+
var random_1 = require("./random");
|
|
48
|
+
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return random_1.random; } });
|
|
40
49
|
var register_root_1 = require("./register-root");
|
|
41
50
|
Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return register_root_1.registerRoot; } });
|
|
42
51
|
var Sequence_1 = require("./Sequence");
|
|
@@ -50,5 +59,11 @@ __exportStar(require("./Still"), exports);
|
|
|
50
59
|
var use_current_frame_1 = require("./use-current-frame");
|
|
51
60
|
Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return use_current_frame_1.useCurrentFrame; } });
|
|
52
61
|
__exportStar(require("./use-video-config"), exports);
|
|
62
|
+
__exportStar(require("./version"), exports);
|
|
53
63
|
__exportStar(require("./video"), exports);
|
|
54
64
|
__exportStar(require("./video-config"), exports);
|
|
65
|
+
exports.Experimental = {
|
|
66
|
+
Clipper: Clipper_1.Clipper,
|
|
67
|
+
Null: Null_1.Null,
|
|
68
|
+
useIsPlayer: is_player_1.useIsPlayer,
|
|
69
|
+
};
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,119 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { WebpackOverrideFn } from './config/override-webpack';
|
|
6
|
-
import { ProResProfile } from './config/prores-profile';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Configuration } from 'webpack';
|
|
3
|
+
import type { CompProps } from './Composition';
|
|
4
|
+
import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
7
5
|
import * as CSSUtils from './default-css';
|
|
8
|
-
import { RemotionEnvironment } from './get-environment';
|
|
9
|
-
import
|
|
10
|
-
import * as TimelineInOutPosition from './timeline-inout-position-state';
|
|
11
|
-
import { SetTimelineInOutContextValue, TimelineInOutContextValue } from './timeline-inout-position-state';
|
|
6
|
+
import type { RemotionEnvironment } from './get-environment';
|
|
7
|
+
import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
|
|
12
8
|
import * as TimelinePosition from './timeline-position-state';
|
|
13
|
-
import { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
|
|
14
9
|
import { truthy } from './truthy';
|
|
15
|
-
import {
|
|
16
|
-
import { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
|
|
10
|
+
import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
|
|
17
11
|
import { useRemotionContexts } from './wrap-remotion-context';
|
|
18
|
-
declare const Timeline:
|
|
19
|
-
TimelineInOutContext: import("react").Context<TimelineInOutPosition.TimelineInOutContextValue>;
|
|
20
|
-
SetTimelineInOutContext: import("react").Context<TimelineInOutPosition.SetTimelineInOutContextValue>;
|
|
21
|
-
useTimelineInOutFramePosition: () => TimelineInOutPosition.TimelineInOutContextValue;
|
|
22
|
-
useTimelineSetInOutFramePosition: () => TimelineInOutPosition.SetTimelineInOutContextValue;
|
|
23
|
-
TimelineContext: import("react").Context<TimelinePosition.TimelineContextValue>;
|
|
24
|
-
SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
|
|
25
|
-
useTimelinePosition: () => number;
|
|
26
|
-
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
27
|
-
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
|
|
28
|
-
};
|
|
12
|
+
declare const Timeline: typeof TimelinePosition;
|
|
29
13
|
export declare const Internals: {
|
|
30
|
-
perf: typeof perf;
|
|
31
14
|
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
32
|
-
Timeline:
|
|
33
|
-
TimelineInOutContext: import("react").Context<TimelineInOutPosition.TimelineInOutContextValue>;
|
|
34
|
-
SetTimelineInOutContext: import("react").Context<TimelineInOutPosition.SetTimelineInOutContextValue>;
|
|
35
|
-
useTimelineInOutFramePosition: () => TimelineInOutPosition.TimelineInOutContextValue;
|
|
36
|
-
useTimelineSetInOutFramePosition: () => TimelineInOutPosition.SetTimelineInOutContextValue;
|
|
37
|
-
TimelineContext: import("react").Context<TimelinePosition.TimelineContextValue>;
|
|
38
|
-
SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
|
|
39
|
-
useTimelinePosition: () => number;
|
|
40
|
-
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
41
|
-
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
|
|
42
|
-
};
|
|
15
|
+
Timeline: typeof TimelinePosition;
|
|
43
16
|
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
44
17
|
RemotionRoot: import("react").FC<{
|
|
45
18
|
children: import("react").ReactNode;
|
|
19
|
+
numberOfAudioTags: number;
|
|
46
20
|
}>;
|
|
47
|
-
useVideo: () =>
|
|
21
|
+
useVideo: () => {
|
|
22
|
+
height: number;
|
|
23
|
+
width: number;
|
|
24
|
+
fps: number;
|
|
25
|
+
durationInFrames: number;
|
|
26
|
+
defaultProps: unknown;
|
|
27
|
+
id: string;
|
|
28
|
+
folderName: string | null;
|
|
29
|
+
parentFolderName: string | null;
|
|
30
|
+
component: import("react").LazyExoticComponent<import("react").ComponentType<unknown>>;
|
|
31
|
+
nonce: number;
|
|
32
|
+
} | null;
|
|
48
33
|
getRoot: () => import("react").FC<{}> | null;
|
|
49
|
-
getBrowserExecutable: () => import("./config/browser-executable").BrowserExecutable;
|
|
50
|
-
getCustomFfmpegExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
|
|
51
|
-
getCustomFfprobeExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
|
|
52
|
-
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
53
|
-
getConcurrency: () => number | null;
|
|
54
|
-
getRange: () => import("./config/frame-range").FrameRange | null;
|
|
55
|
-
getShouldOverwrite: () => boolean;
|
|
56
|
-
getOutputCodecOrUndefined: () => import("./config/codec").CodecOrUndefined;
|
|
57
|
-
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
58
|
-
getQuality: () => number | undefined;
|
|
59
|
-
getScale: () => number;
|
|
60
|
-
getShouldOutputImageSequence: (frameRange: import("./config/frame-range").FrameRange | null) => boolean;
|
|
61
|
-
validateSelectedCrfAndCodecCombination: (crf: unknown, codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => void;
|
|
62
|
-
getFinalOutputCodec: ({ codec: inputCodec, fileExtension, emitWarning, isLambda, }: {
|
|
63
|
-
codec: import("./config/codec").CodecOrUndefined;
|
|
64
|
-
fileExtension: string | null;
|
|
65
|
-
emitWarning: boolean;
|
|
66
|
-
isLambda: boolean;
|
|
67
|
-
}) => "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv";
|
|
68
34
|
useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
69
35
|
useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
70
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv";
|
|
71
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
72
|
-
FEATURE_FLAG_FIREFOX_SUPPORT: boolean;
|
|
73
|
-
DEFAULT_WEBPACK_CACHE_ENABLED: boolean;
|
|
74
|
-
getBrowser: () => import("./config/browser").Browser | null;
|
|
75
|
-
DEFAULT_BROWSER: import("./config/browser").Browser;
|
|
76
|
-
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
|
|
77
|
-
getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
|
|
78
|
-
setFrameRangeFromCli: (newFrameRange: string | number) => void;
|
|
79
|
-
getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
80
|
-
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "none" | "png" | "jpeg") => "none" | "valid";
|
|
81
|
-
validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => void;
|
|
82
|
-
validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
|
|
83
|
-
validateNonNullImageFormat: (imageFormat: "none" | "png" | "jpeg") => void;
|
|
84
|
-
getWebpackCaching: () => boolean;
|
|
85
36
|
useLazyComponent: <T>(compProps: CompProps<T>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<T> & import("react").RefAttributes<import("react").Component<T, any, any>>) | import("react").PropsWithRef<T>> & {
|
|
86
37
|
readonly _result: import("react").ComponentType<T>;
|
|
87
38
|
};
|
|
88
39
|
truthy: typeof truthy;
|
|
89
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | undefined) => boolean;
|
|
90
|
-
Logging: typeof Logging;
|
|
91
40
|
SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
|
|
92
41
|
useRemotionContexts: typeof useRemotionContexts;
|
|
93
42
|
RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
|
|
94
43
|
CSSUtils: typeof CSSUtils;
|
|
95
44
|
setupEnvVariables: () => void;
|
|
96
45
|
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
97
|
-
getDotEnvLocation: () => string | null;
|
|
98
|
-
getServerPort: () => number | undefined;
|
|
99
46
|
MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
|
|
100
47
|
SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
|
|
101
48
|
validateDurationInFrames: (durationInFrames: number, component: string) => void;
|
|
102
|
-
validateFps: (fps: number, location: string) => void;
|
|
49
|
+
validateFps: (fps: number, location: string, isGif: boolean) => void;
|
|
103
50
|
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
104
51
|
getRemotionEnvironment: () => RemotionEnvironment;
|
|
105
|
-
getProResProfile: () => "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined;
|
|
106
|
-
setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
|
|
107
|
-
validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv", actualProResProfile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
|
|
108
|
-
getMaxTimelineTracks: () => number;
|
|
109
52
|
SharedAudioContext: import("react").Context<{
|
|
110
|
-
registerAudio: (aud: import("./audio").RemotionAudioProps) => {
|
|
53
|
+
registerAudio: (aud: import("./audio").RemotionAudioProps, audioId: string) => {
|
|
111
54
|
id: number;
|
|
112
55
|
props: import("./audio").RemotionAudioProps;
|
|
113
56
|
el: import("react").RefObject<HTMLAudioElement>;
|
|
57
|
+
audioId: string;
|
|
114
58
|
};
|
|
115
59
|
unregisterAudio: (id: number) => void;
|
|
116
|
-
updateAudio: (
|
|
60
|
+
updateAudio: (options: {
|
|
61
|
+
id: number;
|
|
62
|
+
aud: import("./audio").RemotionAudioProps;
|
|
63
|
+
audioId: string;
|
|
64
|
+
}) => void;
|
|
117
65
|
playAllAudios: () => void;
|
|
118
66
|
numberOfAudioTags: number;
|
|
119
67
|
} | null>;
|
|
@@ -121,32 +69,33 @@ export declare const Internals: {
|
|
|
121
69
|
numberOfAudioTags: number;
|
|
122
70
|
children: import("react").ReactNode;
|
|
123
71
|
}>;
|
|
124
|
-
validateQuality: (q: number | undefined) => void;
|
|
125
|
-
validateFrame: (frame: number, durationInFrames: number) => void;
|
|
126
|
-
setStillFrame: (frame: number) => void;
|
|
127
|
-
getStillFrame: () => number;
|
|
128
72
|
invalidCompositionErrorMessage: string;
|
|
129
73
|
isCompositionIdValid: (id: string) => RegExpMatchArray | null;
|
|
130
|
-
DEFAULT_OVERWRITE: boolean;
|
|
131
|
-
AssetCompression: typeof AssetCompression;
|
|
132
|
-
defaultOverrideFunction: WebpackOverrideFn;
|
|
133
|
-
DEFAULT_PUPPETEER_TIMEOUT: number;
|
|
134
|
-
setupPuppeteerTimeout: () => void;
|
|
135
|
-
setPuppeteerTimeout: (newPuppeteerTimeout: number) => void;
|
|
136
|
-
getCurrentPuppeteerTimeout: () => number;
|
|
137
|
-
getChromiumDisableWebSecurity: () => boolean;
|
|
138
|
-
getIgnoreCertificateErrors: () => boolean;
|
|
139
|
-
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
140
|
-
getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
141
|
-
getChromiumHeadlessMode: () => boolean;
|
|
142
|
-
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
143
74
|
getPreviewDomElement: () => HTMLElement | null;
|
|
144
75
|
compositionsRef: import("react").RefObject<{
|
|
145
76
|
getCompositions: () => TCompMetadata[];
|
|
146
77
|
}>;
|
|
147
78
|
DELAY_RENDER_CALLSTACK_TOKEN: string;
|
|
148
|
-
useAbsoluteCurrentFrame: () => number;
|
|
149
79
|
portalNode: () => HTMLElement;
|
|
150
80
|
waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
|
|
81
|
+
validateOffthreadVideoImageFormat: (input: unknown) => void;
|
|
82
|
+
CanUseRemotionHooksProvider: import("react").FC<{
|
|
83
|
+
children: import("react").ReactNode;
|
|
84
|
+
}>;
|
|
85
|
+
CanUseRemotionHooks: import("react").Context<boolean>;
|
|
86
|
+
enableLegacyRemotionConfig: () => void;
|
|
87
|
+
PrefetchProvider: import("react").FC<{
|
|
88
|
+
children: import("react").ReactNode;
|
|
89
|
+
}>;
|
|
90
|
+
DurationsContextProvider: import("react").FC<{
|
|
91
|
+
children: import("react").ReactNode;
|
|
92
|
+
}>;
|
|
93
|
+
IsPlayerContextProvider: import("react").FC<{
|
|
94
|
+
children?: import("react").ReactNode;
|
|
95
|
+
}>;
|
|
96
|
+
useIsPlayer: () => boolean;
|
|
97
|
+
useRemotionEnvironment: () => RemotionEnvironment;
|
|
151
98
|
};
|
|
152
|
-
|
|
99
|
+
declare type WebpackConfiguration = Configuration;
|
|
100
|
+
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
101
|
+
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|