remotion 3.3.45 → 3.3.52
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/Sequence.js +1 -1
- package/dist/Still.d.ts +0 -1
- package/dist/audio/Audio.d.ts +2 -2
- package/dist/audio/AudioForDevelopment.d.ts +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/cjs/AbsoluteFill.d.ts +6 -0
- package/dist/cjs/AbsoluteFill.js +28 -0
- package/dist/cjs/CanUseRemotionHooks.d.ts +5 -0
- package/dist/cjs/CanUseRemotionHooks.js +10 -0
- package/dist/cjs/Clipper.d.ts +7 -0
- package/dist/cjs/Clipper.js +24 -0
- package/dist/cjs/Composition.d.ts +23 -0
- package/dist/cjs/Composition.js +113 -0
- package/dist/cjs/CompositionManager.d.ts +82 -0
- package/dist/cjs/CompositionManager.js +164 -0
- package/dist/cjs/Folder.d.ts +15 -0
- package/dist/cjs/Folder.js +33 -0
- package/dist/cjs/IFrame.d.ts +2 -0
- package/dist/cjs/IFrame.js +24 -0
- package/dist/cjs/Img.d.ts +2 -0
- package/dist/cjs/Img.js +52 -0
- package/dist/cjs/NativeLayers.d.ts +13 -0
- package/dist/cjs/NativeLayers.js +29 -0
- package/dist/cjs/Null.d.ts +2 -0
- package/dist/cjs/Null.js +25 -0
- package/dist/cjs/RemotionRoot.d.ts +5 -0
- package/dist/cjs/RemotionRoot.js +73 -0
- package/dist/cjs/Sequence.d.ts +29 -0
- package/dist/cjs/Sequence.js +131 -0
- package/dist/cjs/Still.d.ts +3 -0
- package/dist/cjs/Still.js +9 -0
- package/dist/cjs/absolute-src.d.ts +1 -0
- package/dist/cjs/absolute-src.js +7 -0
- package/dist/cjs/asset-types.d.ts +50 -0
- package/dist/cjs/asset-types.js +1 -0
- package/dist/cjs/audio/Audio.d.ts +8 -0
- package/dist/cjs/audio/Audio.js +52 -0
- package/dist/cjs/audio/AudioForDevelopment.d.ts +11 -0
- package/dist/cjs/audio/AudioForDevelopment.js +94 -0
- package/dist/cjs/audio/AudioForRendering.d.ts +10 -0
- package/dist/cjs/audio/AudioForRendering.js +111 -0
- package/dist/cjs/audio/index.d.ts +2 -0
- package/dist/cjs/audio/index.js +18 -0
- package/dist/cjs/audio/props.d.ts +12 -0
- package/dist/cjs/audio/props.js +2 -0
- package/dist/cjs/audio/shared-audio-tags.d.ts +37 -0
- package/dist/cjs/audio/shared-audio-tags.js +222 -0
- package/dist/cjs/audio/use-audio-frame.d.ts +6 -0
- package/dist/cjs/audio/use-audio-frame.js +23 -0
- package/dist/cjs/bezier.d.ts +1 -0
- package/dist/cjs/bezier.js +114 -0
- package/dist/cjs/cancel-render.d.ts +1 -0
- package/dist/cjs/cancel-render.js +43 -0
- package/dist/cjs/config/input-props.d.ts +1 -0
- package/dist/cjs/config/input-props.js +31 -0
- package/dist/cjs/config.d.ts +285 -0
- package/dist/cjs/config.js +21 -0
- package/dist/cjs/default-css.d.ts +3 -0
- package/dist/cjs/default-css.js +49 -0
- package/dist/cjs/delay-render.d.ts +14 -0
- package/dist/cjs/delay-render.js +77 -0
- package/dist/cjs/easing.d.ts +19 -0
- package/dist/cjs/easing.js +77 -0
- package/dist/cjs/freeze.d.ts +7 -0
- package/dist/cjs/freeze.js +34 -0
- package/dist/cjs/get-asset-file-name.d.ts +1 -0
- package/dist/cjs/get-asset-file-name.js +14 -0
- package/dist/cjs/get-environment.d.ts +3 -0
- package/dist/cjs/get-environment.js +34 -0
- package/dist/cjs/get-preview-dom-element.d.ts +1 -0
- package/dist/cjs/get-preview-dom-element.js +7 -0
- package/dist/cjs/get-static-files.d.ts +17 -0
- package/dist/cjs/get-static-files.js +31 -0
- package/dist/cjs/get-timeline-clip-name.d.ts +1 -0
- package/dist/cjs/get-timeline-clip-name.js +25 -0
- package/dist/cjs/index.d.ts +92 -0
- package/dist/cjs/index.js +73 -0
- package/dist/cjs/internals.d.ts +99 -0
- package/dist/cjs/internals.js +101 -0
- package/dist/cjs/interpolate-colors.d.ts +5 -0
- package/dist/cjs/interpolate-colors.js +401 -0
- package/dist/cjs/interpolate.d.ts +18 -0
- package/dist/cjs/interpolate.js +123 -0
- package/dist/cjs/is-approximately-the-same.d.ts +1 -0
- package/dist/cjs/is-approximately-the-same.js +8 -0
- package/dist/cjs/is-player.d.ts +3 -0
- package/dist/cjs/is-player.js +14 -0
- package/dist/cjs/loading-indicator.d.ts +2 -0
- package/dist/cjs/loading-indicator.js +35 -0
- package/dist/cjs/loop/index.d.ts +9 -0
- package/dist/cjs/loop/index.js +29 -0
- package/dist/cjs/multiple-versions-warning.d.ts +1 -0
- package/dist/cjs/multiple-versions-warning.js +32 -0
- package/dist/cjs/nonce.d.ts +7 -0
- package/dist/cjs/nonce.js +17 -0
- package/dist/cjs/play-and-handle-not-allowed-error.d.ts +2 -0
- package/dist/cjs/play-and-handle-not-allowed-error.js +44 -0
- package/dist/cjs/portal-node.d.ts +1 -0
- package/dist/cjs/portal-node.js +23 -0
- package/dist/cjs/prefetch-state.d.ts +8 -0
- package/dist/cjs/prefetch-state.js +27 -0
- package/dist/cjs/prefetch.d.ts +9 -0
- package/dist/cjs/prefetch.js +108 -0
- package/dist/cjs/random.d.ts +7 -0
- package/dist/cjs/random.js +42 -0
- package/dist/cjs/register-root.d.ts +4 -0
- package/dist/cjs/register-root.js +33 -0
- package/dist/cjs/series/flatten-children.d.ts +2 -0
- package/dist/cjs/series/flatten-children.js +19 -0
- package/dist/cjs/series/index.d.ts +13 -0
- package/dist/cjs/series/index.js +60 -0
- package/dist/cjs/setup-env-variables.d.ts +2 -0
- package/dist/cjs/setup-env-variables.js +36 -0
- package/dist/cjs/spring/index.d.ts +27 -0
- package/dist/cjs/spring/index.js +55 -0
- package/dist/cjs/spring/measure-spring.d.ts +8 -0
- package/dist/cjs/spring/measure-spring.js +64 -0
- package/dist/cjs/spring/spring-utils.d.ts +21 -0
- package/dist/cjs/spring/spring-utils.js +103 -0
- package/dist/cjs/static-file.d.ts +5 -0
- package/dist/cjs/static-file.js +33 -0
- package/dist/cjs/test/Img.test.d.ts +1 -0
- package/dist/cjs/test/Img.test.js +25 -0
- package/dist/cjs/test/absolute-src.test.d.ts +1 -0
- package/dist/cjs/test/absolute-src.test.js +18 -0
- package/dist/cjs/test/audio-for-rendering.test.d.ts +1 -0
- package/dist/cjs/test/audio-for-rendering.test.js +88 -0
- package/dist/cjs/test/audio.test.d.ts +1 -0
- package/dist/cjs/test/audio.test.js +76 -0
- package/dist/cjs/test/bezier.test.d.ts +1 -0
- package/dist/cjs/test/bezier.test.js +52 -0
- package/dist/cjs/test/composition-rules.test.d.ts +1 -0
- package/dist/cjs/test/composition-rules.test.js +30 -0
- package/dist/cjs/test/composition-validation.test.d.ts +1 -0
- package/dist/cjs/test/composition-validation.test.js +99 -0
- package/dist/cjs/test/easing.test.d.ts +1 -0
- package/dist/cjs/test/easing.test.js +191 -0
- package/dist/cjs/test/expect-to-throw.d.ts +1 -0
- package/dist/cjs/test/expect-to-throw.js +15 -0
- package/dist/cjs/test/freeze.test.d.ts +1 -0
- package/dist/cjs/test/freeze.test.js +65 -0
- package/dist/cjs/test/get-asset-file-name.test.d.ts +1 -0
- package/dist/cjs/test/get-asset-file-name.test.js +14 -0
- package/dist/cjs/test/get-current-time.test.d.ts +1 -0
- package/dist/cjs/test/get-current-time.test.js +74 -0
- package/dist/cjs/test/input-props.test.d.ts +1 -0
- package/dist/cjs/test/input-props.test.js +31 -0
- package/dist/cjs/test/interpolate.test.d.ts +1 -0
- package/dist/cjs/test/interpolate.test.js +138 -0
- package/dist/cjs/test/interpolateColors.test.d.ts +1 -0
- package/dist/cjs/test/interpolateColors.test.js +63 -0
- package/dist/cjs/test/loop-validation.test.d.ts +1 -0
- package/dist/cjs/test/loop-validation.test.js +93 -0
- package/dist/cjs/test/measure-spring.test.d.ts +1 -0
- package/dist/cjs/test/measure-spring.test.js +45 -0
- package/dist/cjs/test/media-validation.test.d.ts +1 -0
- package/dist/cjs/test/media-validation.test.js +47 -0
- package/dist/cjs/test/nested-sequences.test.d.ts +1 -0
- package/dist/cjs/test/nested-sequences.test.js +132 -0
- package/dist/cjs/test/not-all-props-in-media-tags.test.d.ts +1 -0
- package/dist/cjs/test/not-all-props-in-media-tags.test.js +33 -0
- package/dist/cjs/test/random.test.d.ts +1 -0
- package/dist/cjs/test/random.test.js +60 -0
- package/dist/cjs/test/ready-manager.test.d.ts +1 -0
- package/dist/cjs/test/ready-manager.test.js +29 -0
- package/dist/cjs/test/render-hook.d.ts +23 -0
- package/dist/cjs/test/render-hook.js +27 -0
- package/dist/cjs/test/sequence-from-initial-offset.test.d.ts +4 -0
- package/dist/cjs/test/sequence-from-initial-offset.test.js +35 -0
- package/dist/cjs/test/sequence-validation.test.d.ts +1 -0
- package/dist/cjs/test/sequence-validation.test.js +47 -0
- package/dist/cjs/test/series.test.d.ts +1 -0
- package/dist/cjs/test/series.test.js +115 -0
- package/dist/cjs/test/spring.test.d.ts +1 -0
- package/dist/cjs/test/spring.test.js +38 -0
- package/dist/cjs/test/truthy.test.d.ts +1 -0
- package/dist/cjs/test/truthy.test.js +24 -0
- package/dist/cjs/test/use-audio-frame.test.d.ts +1 -0
- package/dist/cjs/test/use-audio-frame.test.js +78 -0
- package/dist/cjs/test/use-media-in-timeline.test.d.ts +1 -0
- package/dist/cjs/test/use-media-in-timeline.test.js +74 -0
- package/dist/cjs/test/use-media-tag-volume.test.d.ts +1 -0
- package/dist/cjs/test/use-media-tag-volume.test.js +49 -0
- package/dist/cjs/test/use-sync-volume-with-media-tag.test.d.ts +1 -0
- package/dist/cjs/test/use-sync-volume-with-media-tag.test.js +55 -0
- package/dist/cjs/test/validate-start-from-props.test.d.ts +1 -0
- package/dist/cjs/test/validate-start-from-props.test.js +39 -0
- package/dist/cjs/test/video.test.d.ts +1 -0
- package/dist/cjs/test/video.test.js +80 -0
- package/dist/cjs/test/volume-prop.test.d.ts +1 -0
- package/dist/cjs/test/volume-prop.test.js +95 -0
- package/dist/cjs/test/wrap-sequence-context.d.ts +6 -0
- package/dist/cjs/test/wrap-sequence-context.js +41 -0
- package/dist/cjs/timeline-position-state.d.ts +29 -0
- package/dist/cjs/timeline-position-state.js +41 -0
- package/dist/cjs/truthy.d.ts +3 -0
- package/dist/cjs/truthy.js +7 -0
- package/dist/cjs/use-current-frame.d.ts +6 -0
- package/dist/cjs/use-current-frame.js +28 -0
- package/dist/cjs/use-lazy-component.d.ts +7 -0
- package/dist/cjs/use-lazy-component.js +49 -0
- package/dist/cjs/use-media-in-timeline.d.ts +10 -0
- package/dist/cjs/use-media-in-timeline.js +129 -0
- package/dist/cjs/use-media-playback.d.ts +10 -0
- package/dist/cjs/use-media-playback.js +77 -0
- package/dist/cjs/use-media-tag-volume.d.ts +2 -0
- package/dist/cjs/use-media-tag-volume.js +31 -0
- package/dist/cjs/use-sync-volume-with-media-tag.d.ts +10 -0
- package/dist/cjs/use-sync-volume-with-media-tag.js +21 -0
- package/dist/cjs/use-unsafe-video-config.d.ts +2 -0
- package/dist/cjs/use-unsafe-video-config.js +27 -0
- package/dist/cjs/use-video-config.d.ts +7 -0
- package/dist/cjs/use-video-config.js +29 -0
- package/dist/cjs/use-video.d.ts +13 -0
- package/dist/cjs/use-video.js +28 -0
- package/dist/cjs/validate-frame.d.ts +1 -0
- package/dist/cjs/validate-frame.js +24 -0
- package/dist/cjs/validate-media-props.d.ts +4 -0
- package/dist/cjs/validate-media-props.js +24 -0
- package/dist/cjs/validate-start-from-props.d.ts +1 -0
- package/dist/cjs/validate-start-from-props.js +31 -0
- package/dist/cjs/validation/validate-composition-id.d.ts +3 -0
- package/dist/cjs/validation/validate-composition-id.js +13 -0
- package/dist/cjs/validation/validate-dimensions.d.ts +1 -0
- package/dist/cjs/validation/validate-dimensions.js +21 -0
- package/dist/cjs/validation/validate-duration-in-frames.d.ts +1 -0
- package/dist/cjs/validation/validate-duration-in-frames.js +15 -0
- package/dist/cjs/validation/validate-folder-name.d.ts +3 -0
- package/dist/cjs/validation/validate-folder-name.js +19 -0
- package/dist/cjs/validation/validate-fps.d.ts +1 -0
- package/dist/cjs/validation/validate-fps.js +21 -0
- package/dist/cjs/validation/validate-offthreadvideo-image-format.d.ts +1 -0
- package/dist/cjs/validation/validate-offthreadvideo-image-format.js +15 -0
- package/dist/cjs/validation/validation-spring-duration.d.ts +1 -0
- package/dist/cjs/validation/validation-spring-duration.js +21 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +5 -0
- package/dist/cjs/video/OffthreadVideo.d.ts +3 -0
- package/dist/cjs/video/OffthreadVideo.js +33 -0
- package/dist/cjs/video/OffthreadVideoForRendering.d.ts +3 -0
- package/dist/cjs/video/OffthreadVideoForRendering.js +104 -0
- package/dist/cjs/video/Video.d.ts +8 -0
- package/dist/cjs/video/Video.js +50 -0
- package/dist/cjs/video/VideoForDevelopment.d.ts +11 -0
- package/dist/cjs/video/VideoForDevelopment.js +113 -0
- package/dist/cjs/video/VideoForRendering.d.ts +10 -0
- package/dist/cjs/video/VideoForRendering.js +203 -0
- package/dist/cjs/video/duration-state.d.ts +17 -0
- package/dist/cjs/video/duration-state.js +34 -0
- package/dist/cjs/video/get-current-time.d.ts +13 -0
- package/dist/cjs/video/get-current-time.js +31 -0
- package/dist/cjs/video/index.d.ts +3 -0
- package/dist/cjs/video/index.js +7 -0
- package/dist/cjs/video/props.d.ts +25 -0
- package/dist/cjs/video/props.js +2 -0
- package/dist/cjs/video/video-fragment.d.ts +12 -0
- package/dist/cjs/video/video-fragment.js +60 -0
- package/dist/cjs/video-config.d.ts +8 -0
- package/dist/cjs/video-config.js +2 -0
- package/dist/cjs/volume-position-state.d.ts +19 -0
- package/dist/cjs/volume-position-state.js +32 -0
- package/dist/cjs/volume-prop.d.ts +7 -0
- package/dist/cjs/volume-prop.js +24 -0
- package/dist/cjs/warn-about-non-seekable-media.d.ts +1 -0
- package/dist/cjs/warn-about-non-seekable-media.js +34 -0
- package/dist/cjs/wrap-remotion-context.d.ts +18 -0
- package/dist/cjs/wrap-remotion-context.js +73 -0
- package/dist/esm/AbsoluteFill.d.ts +6 -0
- package/dist/esm/AbsoluteFill.js +25 -0
- package/dist/esm/CanUseRemotionHooks.d.ts +5 -0
- package/dist/esm/CanUseRemotionHooks.js +6 -0
- package/dist/esm/Clipper.d.ts +7 -0
- package/dist/esm/Clipper.js +20 -0
- package/dist/esm/Composition.d.ts +23 -0
- package/dist/esm/Composition.js +108 -0
- package/dist/esm/CompositionManager.d.ts +82 -0
- package/dist/esm/CompositionManager.js +137 -0
- package/dist/esm/Folder.d.ts +15 -0
- package/dist/esm/Folder.js +29 -0
- package/dist/esm/IFrame.d.ts +2 -0
- package/dist/esm/IFrame.js +21 -0
- package/dist/esm/Img.d.ts +2 -0
- package/dist/esm/Img.js +49 -0
- package/dist/esm/NativeLayers.d.ts +13 -0
- package/dist/esm/NativeLayers.js +25 -0
- package/dist/esm/Null.d.ts +2 -0
- package/dist/esm/Null.js +21 -0
- package/dist/esm/RemotionRoot.d.ts +5 -0
- package/dist/esm/RemotionRoot.js +69 -0
- package/dist/esm/Sequence.d.ts +29 -0
- package/dist/esm/Sequence.js +128 -0
- package/dist/esm/Still.d.ts +3 -0
- package/dist/esm/Still.js +5 -0
- package/dist/esm/absolute-src.d.ts +1 -0
- package/dist/esm/absolute-src.js +3 -0
- package/dist/esm/asset-types.d.ts +50 -0
- package/dist/esm/asset-types.js +1 -0
- package/dist/esm/audio/Audio.d.ts +8 -0
- package/dist/esm/audio/Audio.js +49 -0
- package/dist/esm/audio/AudioForDevelopment.d.ts +11 -0
- package/dist/esm/audio/AudioForDevelopment.js +91 -0
- package/dist/esm/audio/AudioForRendering.d.ts +10 -0
- package/dist/esm/audio/AudioForRendering.js +108 -0
- package/dist/esm/audio/index.d.ts +2 -0
- package/dist/esm/audio/index.js +2 -0
- package/dist/esm/audio/props.d.ts +12 -0
- package/dist/esm/audio/props.js +1 -0
- package/dist/esm/audio/shared-audio-tags.d.ts +37 -0
- package/dist/esm/audio/shared-audio-tags.js +194 -0
- package/dist/esm/audio/use-audio-frame.d.ts +6 -0
- package/dist/esm/audio/use-audio-frame.js +18 -0
- package/dist/esm/bezier.d.ts +1 -0
- package/dist/esm/bezier.js +110 -0
- package/dist/esm/cancel-render.d.ts +1 -0
- package/dist/esm/cancel-render.js +39 -0
- package/dist/esm/config/input-props.d.ts +1 -0
- package/dist/esm/config/input-props.js +27 -0
- package/dist/esm/config.d.ts +285 -0
- package/dist/esm/config.js +17 -0
- package/dist/esm/default-css.d.ts +3 -0
- package/dist/esm/default-css.js +44 -0
- package/dist/esm/delay-render.d.ts +14 -0
- package/dist/esm/delay-render.js +72 -0
- package/dist/esm/easing.d.ts +19 -0
- package/dist/esm/easing.js +73 -0
- package/dist/esm/freeze.d.ts +7 -0
- package/dist/esm/freeze.js +30 -0
- package/dist/esm/get-asset-file-name.d.ts +1 -0
- package/dist/esm/get-asset-file-name.js +10 -0
- package/dist/esm/get-environment.d.ts +3 -0
- package/dist/esm/get-environment.js +29 -0
- package/dist/esm/get-preview-dom-element.d.ts +1 -0
- package/dist/esm/get-preview-dom-element.js +3 -0
- package/dist/esm/get-static-files.d.ts +17 -0
- package/dist/esm/get-static-files.js +27 -0
- package/dist/esm/get-timeline-clip-name.d.ts +1 -0
- package/dist/esm/get-timeline-clip-name.js +21 -0
- package/dist/esm/index.d.ts +92 -0
- package/dist/esm/index.js +41 -0
- package/dist/esm/internals.d.ts +99 -0
- package/dist/esm/internals.js +75 -0
- package/dist/esm/interpolate-colors.d.ts +5 -0
- package/dist/esm/interpolate-colors.js +397 -0
- package/dist/esm/interpolate.d.ts +18 -0
- package/dist/esm/interpolate.js +119 -0
- package/dist/esm/is-approximately-the-same.d.ts +1 -0
- package/dist/esm/is-approximately-the-same.js +4 -0
- package/dist/esm/is-player.d.ts +3 -0
- package/dist/esm/is-player.js +9 -0
- package/dist/esm/loading-indicator.d.ts +2 -0
- package/dist/esm/loading-indicator.js +31 -0
- package/dist/esm/loop/index.d.ts +9 -0
- package/dist/esm/loop/index.js +25 -0
- package/dist/esm/multiple-versions-warning.d.ts +1 -0
- package/dist/esm/multiple-versions-warning.js +28 -0
- package/dist/esm/nonce.d.ts +7 -0
- package/dist/esm/nonce.js +13 -0
- package/dist/esm/play-and-handle-not-allowed-error.d.ts +2 -0
- package/dist/esm/play-and-handle-not-allowed-error.js +40 -0
- package/dist/esm/portal-node.d.ts +1 -0
- package/dist/esm/portal-node.js +19 -0
- package/dist/esm/prefetch-state.d.ts +8 -0
- package/dist/esm/prefetch-state.js +22 -0
- package/dist/esm/prefetch.d.ts +9 -0
- package/dist/esm/prefetch.js +103 -0
- package/dist/esm/random.d.ts +7 -0
- package/dist/esm/random.js +38 -0
- package/dist/esm/register-root.d.ts +4 -0
- package/dist/esm/register-root.js +27 -0
- package/dist/esm/series/flatten-children.d.ts +2 -0
- package/dist/esm/series/flatten-children.js +12 -0
- package/dist/esm/series/index.d.ts +13 -0
- package/dist/esm/series/index.js +57 -0
- package/dist/esm/setup-env-variables.d.ts +2 -0
- package/dist/esm/setup-env-variables.js +32 -0
- package/dist/esm/spring/index.d.ts +27 -0
- package/dist/esm/spring/index.js +50 -0
- package/dist/esm/spring/measure-spring.d.ts +8 -0
- package/dist/esm/spring/measure-spring.js +60 -0
- package/dist/esm/spring/spring-utils.d.ts +21 -0
- package/dist/esm/spring/spring-utils.js +99 -0
- package/dist/esm/static-file.d.ts +5 -0
- package/dist/esm/static-file.js +29 -0
- package/dist/esm/test/Img.test.d.ts +1 -0
- package/dist/esm/test/Img.test.js +20 -0
- package/dist/esm/test/absolute-src.test.d.ts +1 -0
- package/dist/esm/test/absolute-src.test.js +16 -0
- package/dist/esm/test/audio-for-rendering.test.d.ts +1 -0
- package/dist/esm/test/audio-for-rendering.test.js +83 -0
- package/dist/esm/test/audio.test.d.ts +1 -0
- package/dist/esm/test/audio.test.js +51 -0
- package/dist/esm/test/bezier.test.d.ts +1 -0
- package/dist/esm/test/bezier.test.js +50 -0
- package/dist/esm/test/composition-rules.test.d.ts +1 -0
- package/dist/esm/test/composition-rules.test.js +28 -0
- package/dist/esm/test/composition-validation.test.d.ts +1 -0
- package/dist/esm/test/composition-validation.test.js +97 -0
- package/dist/esm/test/easing.test.d.ts +1 -0
- package/dist/esm/test/easing.test.js +189 -0
- package/dist/esm/test/expect-to-throw.d.ts +1 -0
- package/dist/esm/test/expect-to-throw.js +11 -0
- package/dist/esm/test/freeze.test.d.ts +1 -0
- package/dist/esm/test/freeze.test.js +63 -0
- package/dist/esm/test/get-asset-file-name.test.d.ts +1 -0
- package/dist/esm/test/get-asset-file-name.test.js +12 -0
- package/dist/esm/test/get-current-time.test.d.ts +1 -0
- package/dist/esm/test/get-current-time.test.js +72 -0
- package/dist/esm/test/input-props.test.d.ts +1 -0
- package/dist/esm/test/input-props.test.js +29 -0
- package/dist/esm/test/interpolate.test.d.ts +1 -0
- package/dist/esm/test/interpolate.test.js +136 -0
- package/dist/esm/test/interpolateColors.test.d.ts +1 -0
- package/dist/esm/test/interpolateColors.test.js +61 -0
- package/dist/esm/test/loop-validation.test.d.ts +1 -0
- package/dist/esm/test/loop-validation.test.js +68 -0
- package/dist/esm/test/measure-spring.test.d.ts +1 -0
- package/dist/esm/test/measure-spring.test.js +43 -0
- package/dist/esm/test/media-validation.test.d.ts +1 -0
- package/dist/esm/test/media-validation.test.js +45 -0
- package/dist/esm/test/nested-sequences.test.d.ts +1 -0
- package/dist/esm/test/nested-sequences.test.js +130 -0
- package/dist/esm/test/not-all-props-in-media-tags.test.d.ts +1 -0
- package/dist/esm/test/not-all-props-in-media-tags.test.js +28 -0
- package/dist/esm/test/random.test.d.ts +1 -0
- package/dist/esm/test/random.test.js +58 -0
- package/dist/esm/test/ready-manager.test.d.ts +1 -0
- package/dist/esm/test/ready-manager.test.js +27 -0
- package/dist/esm/test/render-hook.d.ts +23 -0
- package/dist/esm/test/render-hook.js +20 -0
- package/dist/esm/test/sequence-from-initial-offset.test.d.ts +4 -0
- package/dist/esm/test/sequence-from-initial-offset.test.js +33 -0
- package/dist/esm/test/sequence-validation.test.d.ts +1 -0
- package/dist/esm/test/sequence-validation.test.js +45 -0
- package/dist/esm/test/series.test.d.ts +1 -0
- package/dist/esm/test/series.test.js +113 -0
- package/dist/esm/test/spring.test.d.ts +1 -0
- package/dist/esm/test/spring.test.js +36 -0
- package/dist/esm/test/truthy.test.d.ts +1 -0
- package/dist/esm/test/truthy.test.js +22 -0
- package/dist/esm/test/use-audio-frame.test.d.ts +1 -0
- package/dist/esm/test/use-audio-frame.test.js +53 -0
- package/dist/esm/test/use-media-in-timeline.test.d.ts +1 -0
- package/dist/esm/test/use-media-in-timeline.test.js +49 -0
- package/dist/esm/test/use-media-tag-volume.test.d.ts +1 -0
- package/dist/esm/test/use-media-tag-volume.test.js +44 -0
- package/dist/esm/test/use-sync-volume-with-media-tag.test.d.ts +1 -0
- package/dist/esm/test/use-sync-volume-with-media-tag.test.js +53 -0
- package/dist/esm/test/validate-start-from-props.test.d.ts +1 -0
- package/dist/esm/test/validate-start-from-props.test.js +37 -0
- package/dist/esm/test/video.test.d.ts +1 -0
- package/dist/esm/test/video.test.js +55 -0
- package/dist/esm/test/volume-prop.test.d.ts +1 -0
- package/dist/esm/test/volume-prop.test.js +93 -0
- package/dist/esm/test/wrap-sequence-context.d.ts +6 -0
- package/dist/esm/test/wrap-sequence-context.js +37 -0
- package/dist/esm/timeline-position-state.d.ts +29 -0
- package/dist/esm/timeline-position-state.js +35 -0
- package/dist/esm/truthy.d.ts +3 -0
- package/dist/esm/truthy.js +3 -0
- package/dist/esm/use-current-frame.d.ts +6 -0
- package/dist/esm/use-current-frame.js +24 -0
- package/dist/esm/use-lazy-component.d.ts +7 -0
- package/dist/esm/use-lazy-component.js +22 -0
- package/dist/esm/use-media-in-timeline.d.ts +10 -0
- package/dist/esm/use-media-in-timeline.js +125 -0
- package/dist/esm/use-media-playback.d.ts +10 -0
- package/dist/esm/use-media-playback.js +73 -0
- package/dist/esm/use-media-tag-volume.d.ts +2 -0
- package/dist/esm/use-media-tag-volume.js +27 -0
- package/dist/esm/use-sync-volume-with-media-tag.d.ts +10 -0
- package/dist/esm/use-sync-volume-with-media-tag.js +17 -0
- package/dist/esm/use-unsafe-video-config.d.ts +2 -0
- package/dist/esm/use-unsafe-video-config.js +23 -0
- package/dist/esm/use-video-config.d.ts +7 -0
- package/dist/esm/use-video-config.js +25 -0
- package/dist/esm/use-video.d.ts +13 -0
- package/dist/esm/use-video.js +24 -0
- package/dist/esm/validate-frame.d.ts +1 -0
- package/dist/esm/validate-frame.js +20 -0
- package/dist/esm/validate-media-props.d.ts +4 -0
- package/dist/esm/validate-media-props.js +20 -0
- package/dist/esm/validate-start-from-props.d.ts +1 -0
- package/dist/esm/validate-start-from-props.js +27 -0
- package/dist/esm/validation/validate-composition-id.d.ts +3 -0
- package/dist/esm/validation/validate-composition-id.js +8 -0
- package/dist/esm/validation/validate-dimensions.d.ts +1 -0
- package/dist/esm/validation/validate-dimensions.js +17 -0
- package/dist/esm/validation/validate-duration-in-frames.d.ts +1 -0
- package/dist/esm/validation/validate-duration-in-frames.js +11 -0
- package/dist/esm/validation/validate-folder-name.d.ts +3 -0
- package/dist/esm/validation/validate-folder-name.js +14 -0
- package/dist/esm/validation/validate-fps.d.ts +1 -0
- package/dist/esm/validation/validate-fps.js +17 -0
- package/dist/esm/validation/validate-offthreadvideo-image-format.d.ts +1 -0
- package/dist/esm/validation/validate-offthreadvideo-image-format.js +11 -0
- package/dist/esm/validation/validation-spring-duration.d.ts +1 -0
- package/dist/esm/validation/validation-spring-duration.js +17 -0
- package/dist/esm/version.d.ts +1 -0
- package/dist/esm/version.js +2 -0
- package/dist/esm/video/OffthreadVideo.d.ts +3 -0
- package/dist/esm/video/OffthreadVideo.js +29 -0
- package/dist/esm/video/OffthreadVideoForRendering.d.ts +3 -0
- package/dist/esm/video/OffthreadVideoForRendering.js +100 -0
- package/dist/esm/video/Video.d.ts +8 -0
- package/dist/esm/video/Video.js +47 -0
- package/dist/esm/video/VideoForDevelopment.d.ts +11 -0
- package/dist/esm/video/VideoForDevelopment.js +110 -0
- package/dist/esm/video/VideoForRendering.d.ts +10 -0
- package/dist/esm/video/VideoForRendering.js +200 -0
- package/dist/esm/video/duration-state.d.ts +17 -0
- package/dist/esm/video/duration-state.js +29 -0
- package/dist/esm/video/get-current-time.d.ts +13 -0
- package/dist/esm/video/get-current-time.js +26 -0
- package/dist/esm/video/index.d.ts +3 -0
- package/dist/esm/video/index.js +2 -0
- package/dist/esm/video/props.d.ts +25 -0
- package/dist/esm/video/props.js +1 -0
- package/dist/esm/video/video-fragment.d.ts +12 -0
- package/dist/esm/video/video-fragment.js +55 -0
- package/dist/esm/video-config.d.ts +8 -0
- package/dist/esm/video-config.js +1 -0
- package/dist/esm/volume-position-state.d.ts +19 -0
- package/dist/esm/volume-position-state.js +27 -0
- package/dist/esm/volume-prop.d.ts +7 -0
- package/dist/esm/volume-prop.js +20 -0
- package/dist/esm/warn-about-non-seekable-media.d.ts +1 -0
- package/dist/esm/warn-about-non-seekable-media.js +30 -0
- package/dist/esm/wrap-remotion-context.d.ts +18 -0
- package/dist/esm/wrap-remotion-context.js +45 -0
- package/dist/internals.d.ts +0 -1
- package/dist/series/index.js +5 -2
- package/dist/tsconfig-cjs.tsbuildinfo +1 -0
- package/dist/use-video.d.ts +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/video/Video.d.ts +1 -1
- package/dist/video/VideoForDevelopment.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/package.json +23 -12
- package/tsconfig-cjs.json +11 -0
- package/tsconfig.json +3 -3
- package/dist/LayerMaster.d.ts +0 -8
- package/dist/LayerMaster.js +0 -39
- package/dist/Satori.d.ts +0 -5
- package/dist/Satori.js +0 -92
- package/dist/get-compositions-from-markup.d.ts +0 -3
- package/dist/get-compositions-from-markup.js +0 -19
- package/dist/layers.d.ts +0 -24
- package/dist/layers.js +0 -149
- package/dist/video/NativeVideo.d.ts +0 -5
- package/dist/video/NativeVideo.js +0 -33
- package/dist/video/NativeVideoForRendering.d.ts +0 -8
- package/dist/video/NativeVideoForRendering.js +0 -14
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
let warnedServer = false;
|
|
2
|
+
let warnedPlayer = false;
|
|
3
|
+
const warnServerOnce = () => {
|
|
4
|
+
if (warnedServer) {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
warnedServer = true;
|
|
8
|
+
console.warn('Called getStaticFiles() on the server. The API is only available in the browser. An empty array was returned.');
|
|
9
|
+
};
|
|
10
|
+
const warnPlayerOnce = () => {
|
|
11
|
+
if (warnedPlayer) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
warnedPlayer = true;
|
|
15
|
+
console.warn('Called getStaticFiles() while using the Remotion Player. The API is only available while using the Remotion Preview. An empty array was returned.');
|
|
16
|
+
};
|
|
17
|
+
export const getStaticFiles = () => {
|
|
18
|
+
if (typeof document === 'undefined') {
|
|
19
|
+
warnServerOnce();
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
if (window.remotion_isPlayer) {
|
|
23
|
+
warnPlayerOnce();
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
return window.remotion_staticFiles;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTimelineClipName: (children: React.ReactNode) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Children, isValidElement } from 'react';
|
|
2
|
+
const HIDDEN_NAMES = ['__WEBPACK_DEFAULT_EXPORT__'];
|
|
3
|
+
export const getTimelineClipName = (children) => {
|
|
4
|
+
var _a;
|
|
5
|
+
const tree = (_a = Children.map(children, (ch) => {
|
|
6
|
+
if (!isValidElement(ch)) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
// Must be name, not ID
|
|
10
|
+
const name = typeof ch.type !== 'string' && ch.type.name;
|
|
11
|
+
if (name && !HIDDEN_NAMES.includes(name)) {
|
|
12
|
+
return name;
|
|
13
|
+
}
|
|
14
|
+
if (ch.props.children) {
|
|
15
|
+
const chName = getTimelineClipName(ch.props.children);
|
|
16
|
+
return chName;
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
})) === null || _a === void 0 ? void 0 : _a.filter(Boolean);
|
|
20
|
+
return (tree === null || tree === void 0 ? void 0 : tree.length) ? tree[0] : '';
|
|
21
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import './asset-types.js';
|
|
2
|
+
import type { TAsset, TCompMetadata } from './CompositionManager.js';
|
|
3
|
+
import type { StaticFile } from './get-static-files.js';
|
|
4
|
+
import type { ClipRegion } from './NativeLayers.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
ready: boolean;
|
|
8
|
+
remotion_cancelledError: string | undefined;
|
|
9
|
+
getStaticCompositions: () => TCompMetadata[];
|
|
10
|
+
setBundleMode: (bundleMode: BundleState) => void;
|
|
11
|
+
remotion_staticBase: string;
|
|
12
|
+
remotion_staticFiles: StaticFile[];
|
|
13
|
+
remotion_editorName: string | null;
|
|
14
|
+
remotion_numberOfAudioTags: number;
|
|
15
|
+
remotion_projectName: string;
|
|
16
|
+
remotion_cwd: string;
|
|
17
|
+
remotion_previewServerCommand: string;
|
|
18
|
+
remotion_setFrame: (frame: number) => void;
|
|
19
|
+
remotion_initialFrame: number;
|
|
20
|
+
remotion_proxyPort: number;
|
|
21
|
+
remotion_audioEnabled: boolean;
|
|
22
|
+
remotion_videoEnabled: boolean;
|
|
23
|
+
remotion_puppeteerTimeout: number;
|
|
24
|
+
remotion_inputProps: string;
|
|
25
|
+
remotion_envVariables: string;
|
|
26
|
+
remotion_collectAssets: () => TAsset[];
|
|
27
|
+
remotion_getClipRegion: () => ClipRegion | null;
|
|
28
|
+
remotion_isPlayer: boolean;
|
|
29
|
+
remotion_isBuilding: undefined | (() => void);
|
|
30
|
+
remotion_finishedBuilding: undefined | (() => void);
|
|
31
|
+
siteVersion: '4';
|
|
32
|
+
remotion_version: string;
|
|
33
|
+
remotion_imported: string | boolean;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export declare type BundleState = {
|
|
37
|
+
type: 'index';
|
|
38
|
+
} | {
|
|
39
|
+
type: 'evaluation';
|
|
40
|
+
} | {
|
|
41
|
+
type: 'composition';
|
|
42
|
+
compositionName: string;
|
|
43
|
+
compositionDefaultProps: unknown;
|
|
44
|
+
compositionHeight: number;
|
|
45
|
+
compositionDurationInFrames: number;
|
|
46
|
+
compositionWidth: number;
|
|
47
|
+
compositionFps: number;
|
|
48
|
+
};
|
|
49
|
+
export * from './AbsoluteFill.js';
|
|
50
|
+
export * from './audio';
|
|
51
|
+
export { cancelRender } from './cancel-render.js';
|
|
52
|
+
export * from './Composition.js';
|
|
53
|
+
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager.js';
|
|
54
|
+
export { Config, ConfigType } from './config';
|
|
55
|
+
export { getInputProps } from './config/input-props.js';
|
|
56
|
+
export { continueRender, delayRender } from './delay-render.js';
|
|
57
|
+
export * from './easing.js';
|
|
58
|
+
export * from './Folder.js';
|
|
59
|
+
export * from './freeze.js';
|
|
60
|
+
export { getStaticFiles, StaticFile } from './get-static-files.js';
|
|
61
|
+
export * from './IFrame.js';
|
|
62
|
+
export * from './Img.js';
|
|
63
|
+
export * from './internals.js';
|
|
64
|
+
export * from './interpolate.js';
|
|
65
|
+
export { interpolateColors } from './interpolate-colors.js';
|
|
66
|
+
export { Loop } from './loop';
|
|
67
|
+
export { ClipRegion } from './NativeLayers.js';
|
|
68
|
+
export { prefetch } from './prefetch.js';
|
|
69
|
+
export { random, RandomSeed } from './random.js';
|
|
70
|
+
export { registerRoot } from './register-root.js';
|
|
71
|
+
export { Sequence } from './Sequence.js';
|
|
72
|
+
export { Series } from './series';
|
|
73
|
+
export * from './spring';
|
|
74
|
+
export { staticFile } from './static-file.js';
|
|
75
|
+
export * from './Still.js';
|
|
76
|
+
export type { PlayableMediaTag } from './timeline-position-state.js';
|
|
77
|
+
export { useCurrentFrame } from './use-current-frame.js';
|
|
78
|
+
export * from './use-video-config.js';
|
|
79
|
+
export * from './version.js';
|
|
80
|
+
export * from './video';
|
|
81
|
+
export * from './video-config.js';
|
|
82
|
+
export declare const Experimental: {
|
|
83
|
+
Clipper: import("react").FC<{
|
|
84
|
+
width: number;
|
|
85
|
+
height: number;
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
}>;
|
|
89
|
+
Null: import("react").FC<{}>;
|
|
90
|
+
useIsPlayer: () => boolean;
|
|
91
|
+
};
|
|
92
|
+
export declare type WebpackOverrideFn = "The 'WebpackOverrideFn' has been moved to '@remotion/bundler'. Update your imports and install '@remotion/bundler' if necessary.";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import './asset-types.js';
|
|
2
|
+
import { Clipper } from './Clipper.js';
|
|
3
|
+
import { useIsPlayer } from './is-player.js';
|
|
4
|
+
import { checkMultipleRemotionVersions } from './multiple-versions-warning.js';
|
|
5
|
+
import { Null } from './Null.js';
|
|
6
|
+
checkMultipleRemotionVersions();
|
|
7
|
+
export * from './AbsoluteFill.js';
|
|
8
|
+
export * from './audio';
|
|
9
|
+
export { cancelRender } from './cancel-render.js';
|
|
10
|
+
export * from './Composition.js';
|
|
11
|
+
export { Config } from './config';
|
|
12
|
+
export { getInputProps } from './config/input-props.js';
|
|
13
|
+
export { continueRender, delayRender } from './delay-render.js';
|
|
14
|
+
export * from './easing.js';
|
|
15
|
+
export * from './Folder.js';
|
|
16
|
+
export * from './freeze.js';
|
|
17
|
+
export { getStaticFiles } from './get-static-files.js';
|
|
18
|
+
export * from './IFrame.js';
|
|
19
|
+
export * from './Img.js';
|
|
20
|
+
export * from './internals.js';
|
|
21
|
+
export * from './interpolate.js';
|
|
22
|
+
export { interpolateColors } from './interpolate-colors.js';
|
|
23
|
+
export { Loop } from './loop';
|
|
24
|
+
export { prefetch } from './prefetch.js';
|
|
25
|
+
export { random } from './random.js';
|
|
26
|
+
export { registerRoot } from './register-root.js';
|
|
27
|
+
export { Sequence } from './Sequence.js';
|
|
28
|
+
export { Series } from './series';
|
|
29
|
+
export * from './spring';
|
|
30
|
+
export { staticFile } from './static-file.js';
|
|
31
|
+
export * from './Still.js';
|
|
32
|
+
export { useCurrentFrame } from './use-current-frame.js';
|
|
33
|
+
export * from './use-video-config.js';
|
|
34
|
+
export * from './version.js';
|
|
35
|
+
export * from './video';
|
|
36
|
+
export * from './video-config.js';
|
|
37
|
+
export const Experimental = {
|
|
38
|
+
Clipper,
|
|
39
|
+
Null,
|
|
40
|
+
useIsPlayer,
|
|
41
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CompProps } from './Composition.js';
|
|
3
|
+
import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager.js';
|
|
4
|
+
import * as CSSUtils from './default-css.js';
|
|
5
|
+
import type { RemotionEnvironment } from './get-environment.js';
|
|
6
|
+
import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state.js';
|
|
7
|
+
import * as TimelinePosition from './timeline-position-state.js';
|
|
8
|
+
import { truthy } from './truthy.js';
|
|
9
|
+
import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state.js';
|
|
10
|
+
import { useRemotionContexts } from './wrap-remotion-context.js';
|
|
11
|
+
declare const Timeline: typeof TimelinePosition;
|
|
12
|
+
export declare const Internals: {
|
|
13
|
+
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
14
|
+
Timeline: typeof TimelinePosition;
|
|
15
|
+
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
16
|
+
RemotionRoot: import("react").FC<{
|
|
17
|
+
children: import("react").ReactNode;
|
|
18
|
+
numberOfAudioTags: number;
|
|
19
|
+
}>;
|
|
20
|
+
useVideo: () => {
|
|
21
|
+
height: number;
|
|
22
|
+
width: number;
|
|
23
|
+
fps: number;
|
|
24
|
+
durationInFrames: number;
|
|
25
|
+
defaultProps: unknown;
|
|
26
|
+
id: string;
|
|
27
|
+
folderName: string | null;
|
|
28
|
+
parentFolderName: string | null;
|
|
29
|
+
component: import("react").LazyExoticComponent<import("react").ComponentType<unknown>>;
|
|
30
|
+
nonce: number;
|
|
31
|
+
} | null;
|
|
32
|
+
getRoot: () => import("react").FC<{}> | null;
|
|
33
|
+
useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
34
|
+
useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
35
|
+
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>> & {
|
|
36
|
+
readonly _result: import("react").ComponentType<T>;
|
|
37
|
+
};
|
|
38
|
+
truthy: typeof truthy;
|
|
39
|
+
SequenceContext: import("react").Context<import("./Sequence.js").SequenceContextType | null>;
|
|
40
|
+
useRemotionContexts: typeof useRemotionContexts;
|
|
41
|
+
RemotionContextProvider: (props: import("./wrap-remotion-context.js").RemotionContextProviderProps) => JSX.Element;
|
|
42
|
+
CSSUtils: typeof CSSUtils;
|
|
43
|
+
setupEnvVariables: () => void;
|
|
44
|
+
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
45
|
+
MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
|
|
46
|
+
SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
|
|
47
|
+
validateDurationInFrames: (durationInFrames: number, component: string) => void;
|
|
48
|
+
validateFps: (fps: number, location: string, isGif: boolean) => void;
|
|
49
|
+
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
50
|
+
getRemotionEnvironment: () => RemotionEnvironment;
|
|
51
|
+
SharedAudioContext: import("react").Context<{
|
|
52
|
+
registerAudio: (aud: import("./audio").RemotionAudioProps, audioId: string) => {
|
|
53
|
+
id: number;
|
|
54
|
+
props: import("./audio").RemotionAudioProps;
|
|
55
|
+
el: import("react").RefObject<HTMLAudioElement>;
|
|
56
|
+
audioId: string;
|
|
57
|
+
};
|
|
58
|
+
unregisterAudio: (id: number) => void;
|
|
59
|
+
updateAudio: (options: {
|
|
60
|
+
id: number;
|
|
61
|
+
aud: import("./audio").RemotionAudioProps;
|
|
62
|
+
audioId: string;
|
|
63
|
+
}) => void;
|
|
64
|
+
playAllAudios: () => void;
|
|
65
|
+
numberOfAudioTags: number;
|
|
66
|
+
} | null>;
|
|
67
|
+
SharedAudioContextProvider: import("react").FC<{
|
|
68
|
+
numberOfAudioTags: number;
|
|
69
|
+
children: import("react").ReactNode;
|
|
70
|
+
}>;
|
|
71
|
+
invalidCompositionErrorMessage: string;
|
|
72
|
+
isCompositionIdValid: (id: string) => RegExpMatchArray | null;
|
|
73
|
+
getPreviewDomElement: () => HTMLElement | null;
|
|
74
|
+
compositionsRef: import("react").RefObject<{
|
|
75
|
+
getCompositions: () => TCompMetadata[];
|
|
76
|
+
}>;
|
|
77
|
+
DELAY_RENDER_CALLSTACK_TOKEN: string;
|
|
78
|
+
portalNode: () => HTMLElement;
|
|
79
|
+
waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
|
|
80
|
+
validateOffthreadVideoImageFormat: (input: unknown) => void;
|
|
81
|
+
CanUseRemotionHooksProvider: import("react").FC<{
|
|
82
|
+
children: import("react").ReactNode;
|
|
83
|
+
}>;
|
|
84
|
+
CanUseRemotionHooks: import("react").Context<boolean>;
|
|
85
|
+
enableLegacyRemotionConfig: () => void;
|
|
86
|
+
PrefetchProvider: import("react").FC<{
|
|
87
|
+
children: import("react").ReactNode;
|
|
88
|
+
}>;
|
|
89
|
+
DurationsContextProvider: import("react").FC<{
|
|
90
|
+
children: import("react").ReactNode;
|
|
91
|
+
}>;
|
|
92
|
+
IsPlayerContextProvider: import("react").FC<{
|
|
93
|
+
children?: import("react").ReactNode;
|
|
94
|
+
}>;
|
|
95
|
+
useIsPlayer: () => boolean;
|
|
96
|
+
useRemotionEnvironment: () => RemotionEnvironment;
|
|
97
|
+
validateFrame: (frame: number, durationInFrames: number) => void;
|
|
98
|
+
};
|
|
99
|
+
export type { TComposition, Timeline, TCompMetadata, TSequence, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { enableLegacyRemotionConfig } from './config';
|
|
2
|
+
import { SharedAudioContext, SharedAudioContextProvider, } from './audio/shared-audio-tags.js';
|
|
3
|
+
import { CanUseRemotionHooks, CanUseRemotionHooksProvider, } from './CanUseRemotionHooks.js';
|
|
4
|
+
import { CompositionManager, compositionsRef } from './CompositionManager.js';
|
|
5
|
+
import * as CSSUtils from './default-css.js';
|
|
6
|
+
import { DELAY_RENDER_CALLSTACK_TOKEN } from './delay-render.js';
|
|
7
|
+
import { getRemotionEnvironment, useRemotionEnvironment, } from './get-environment.js';
|
|
8
|
+
import { getPreviewDomElement } from './get-preview-dom-element.js';
|
|
9
|
+
import { IsPlayerContextProvider, useIsPlayer } from './is-player.js';
|
|
10
|
+
import { portalNode } from './portal-node.js';
|
|
11
|
+
import { PrefetchProvider } from './prefetch-state.js';
|
|
12
|
+
import { getRoot, waitForRoot } from './register-root.js';
|
|
13
|
+
import { RemotionRoot } from './RemotionRoot.js';
|
|
14
|
+
import { SequenceContext } from './Sequence.js';
|
|
15
|
+
import { ENV_VARIABLES_ENV_NAME, setupEnvVariables, } from './setup-env-variables.js';
|
|
16
|
+
import * as TimelinePosition from './timeline-position-state.js';
|
|
17
|
+
import { truthy } from './truthy.js';
|
|
18
|
+
import { useLazyComponent } from './use-lazy-component.js';
|
|
19
|
+
import { useUnsafeVideoConfig } from './use-unsafe-video-config.js';
|
|
20
|
+
import { useVideo } from './use-video.js';
|
|
21
|
+
import { validateFrame } from './validate-frame.js';
|
|
22
|
+
import { invalidCompositionErrorMessage, isCompositionIdValid, } from './validation/validate-composition-id.js';
|
|
23
|
+
import { validateDimension } from './validation/validate-dimensions.js';
|
|
24
|
+
import { validateDurationInFrames } from './validation/validate-duration-in-frames.js';
|
|
25
|
+
import { validateFps } from './validation/validate-fps.js';
|
|
26
|
+
import { validateOffthreadVideoImageFormat } from './validation/validate-offthreadvideo-image-format.js';
|
|
27
|
+
import { DurationsContextProvider } from './video/duration-state.js';
|
|
28
|
+
import { MediaVolumeContext, SetMediaVolumeContext, useMediaMutedState, useMediaVolumeState, } from './volume-position-state.js';
|
|
29
|
+
import { RemotionContextProvider, useRemotionContexts, } from './wrap-remotion-context.js';
|
|
30
|
+
const Timeline = TimelinePosition;
|
|
31
|
+
// Mark them as Internals so use don't assume this is public
|
|
32
|
+
// API and are less likely to use it
|
|
33
|
+
export const Internals = {
|
|
34
|
+
useUnsafeVideoConfig,
|
|
35
|
+
Timeline,
|
|
36
|
+
CompositionManager,
|
|
37
|
+
RemotionRoot,
|
|
38
|
+
useVideo,
|
|
39
|
+
getRoot,
|
|
40
|
+
useMediaVolumeState,
|
|
41
|
+
useMediaMutedState,
|
|
42
|
+
useLazyComponent,
|
|
43
|
+
truthy,
|
|
44
|
+
SequenceContext,
|
|
45
|
+
useRemotionContexts,
|
|
46
|
+
RemotionContextProvider,
|
|
47
|
+
CSSUtils,
|
|
48
|
+
setupEnvVariables,
|
|
49
|
+
ENV_VARIABLES_ENV_NAME,
|
|
50
|
+
MediaVolumeContext,
|
|
51
|
+
SetMediaVolumeContext,
|
|
52
|
+
validateDurationInFrames,
|
|
53
|
+
validateFps,
|
|
54
|
+
validateDimension,
|
|
55
|
+
getRemotionEnvironment,
|
|
56
|
+
SharedAudioContext,
|
|
57
|
+
SharedAudioContextProvider,
|
|
58
|
+
invalidCompositionErrorMessage,
|
|
59
|
+
isCompositionIdValid,
|
|
60
|
+
getPreviewDomElement,
|
|
61
|
+
compositionsRef,
|
|
62
|
+
DELAY_RENDER_CALLSTACK_TOKEN,
|
|
63
|
+
portalNode,
|
|
64
|
+
waitForRoot,
|
|
65
|
+
validateOffthreadVideoImageFormat,
|
|
66
|
+
CanUseRemotionHooksProvider,
|
|
67
|
+
CanUseRemotionHooks,
|
|
68
|
+
enableLegacyRemotionConfig,
|
|
69
|
+
PrefetchProvider,
|
|
70
|
+
DurationsContextProvider,
|
|
71
|
+
IsPlayerContextProvider,
|
|
72
|
+
useIsPlayer,
|
|
73
|
+
useRemotionEnvironment,
|
|
74
|
+
validateFrame,
|
|
75
|
+
};
|