remotion 3.3.45 → 3.3.51
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/{Clipper.js → cjs/Clipper.js} +2 -2
- package/dist/{Composition.js → cjs/Composition.js} +38 -38
- package/dist/{CompositionManager.d.ts → cjs/CompositionManager.d.ts} +1 -1
- package/dist/{Folder.js → cjs/Folder.js} +6 -6
- package/dist/{IFrame.js → cjs/IFrame.js} +4 -4
- package/dist/{Img.js → cjs/Img.js} +9 -9
- package/dist/{Null.js → cjs/Null.js} +2 -2
- package/dist/{RemotionRoot.js → cjs/RemotionRoot.js} +13 -13
- package/dist/{Sequence.js → cjs/Sequence.js} +15 -15
- package/dist/{Still.d.ts → cjs/Still.d.ts} +1 -1
- package/dist/{Still.js → cjs/Still.js} +2 -2
- package/dist/{audio → cjs/audio}/Audio.d.ts +2 -2
- package/dist/{audio → cjs/audio}/Audio.js +18 -18
- package/dist/{audio → cjs/audio}/AudioForDevelopment.d.ts +1 -1
- package/dist/{audio → cjs/audio}/AudioForDevelopment.js +22 -22
- package/dist/{audio → cjs/audio}/AudioForRendering.d.ts +1 -1
- package/dist/{audio → cjs/audio}/AudioForRendering.js +23 -23
- package/dist/cjs/audio/index.d.ts +2 -0
- package/dist/{audio → cjs/audio}/index.js +2 -2
- package/dist/{audio → cjs/audio}/props.d.ts +1 -1
- package/dist/{audio → cjs/audio}/shared-audio-tags.d.ts +1 -1
- package/dist/{audio → cjs/audio}/use-audio-frame.js +4 -4
- package/dist/{config → cjs/config}/input-props.js +3 -3
- package/dist/{delay-render.js → cjs/delay-render.js} +5 -5
- package/dist/{easing.js → cjs/easing.js} +2 -2
- package/dist/{freeze.js → cjs/freeze.js} +4 -4
- package/dist/{get-environment.js → cjs/get-environment.js} +2 -2
- package/dist/{index.d.ts → cjs/index.d.ts} +31 -31
- package/dist/{index.js → cjs/index.js} +45 -45
- package/dist/{internals.d.ts → cjs/internals.d.ts} +12 -11
- package/dist/cjs/internals.js +101 -0
- package/dist/{interpolate-colors.js → cjs/interpolate-colors.js} +2 -2
- package/dist/{loading-indicator.js → cjs/loading-indicator.js} +2 -2
- package/dist/{loop → cjs/loop}/index.d.ts +1 -1
- package/dist/{loop → cjs/loop}/index.js +6 -6
- package/dist/{multiple-versions-warning.js → cjs/multiple-versions-warning.js} +7 -7
- package/dist/{prefetch.js → cjs/prefetch.js} +6 -6
- package/dist/{random.js → cjs/random.js} +1 -0
- package/dist/{series → cjs/series}/index.d.ts +1 -1
- package/dist/{series → cjs/series}/index.js +6 -6
- package/dist/{setup-env-variables.js → cjs/setup-env-variables.js} +3 -3
- package/dist/{spring → cjs/spring}/index.d.ts +3 -3
- package/dist/{spring → cjs/spring}/index.js +12 -8
- package/dist/{spring → cjs/spring}/measure-spring.d.ts +1 -1
- package/dist/{spring → cjs/spring}/measure-spring.js +4 -4
- 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 +110 -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/{use-current-frame.js → cjs/use-current-frame.js} +6 -6
- package/dist/{use-lazy-component.d.ts → cjs/use-lazy-component.d.ts} +1 -1
- package/dist/{use-media-in-timeline.d.ts → cjs/use-media-in-timeline.d.ts} +1 -1
- package/dist/{use-media-in-timeline.js → cjs/use-media-in-timeline.js} +21 -21
- package/dist/{use-media-playback.js → cjs/use-media-playback.js} +16 -16
- package/dist/{use-sync-volume-with-media-tag.d.ts → cjs/use-sync-volume-with-media-tag.d.ts} +1 -1
- package/dist/{use-sync-volume-with-media-tag.js → cjs/use-sync-volume-with-media-tag.js} +4 -4
- package/dist/{use-unsafe-video-config.d.ts → cjs/use-unsafe-video-config.d.ts} +1 -1
- package/dist/{use-unsafe-video-config.js → cjs/use-unsafe-video-config.js} +4 -4
- package/dist/{use-video-config.d.ts → cjs/use-video-config.d.ts} +1 -1
- package/dist/{use-video-config.js → cjs/use-video-config.js} +6 -6
- package/dist/{use-video.js → cjs/use-video.js} +2 -2
- package/dist/cjs/validate-frame.d.ts +1 -0
- package/dist/cjs/validate-frame.js +24 -0
- package/dist/{validate-media-props.d.ts → cjs/validate-media-props.d.ts} +1 -1
- package/dist/cjs/version.d.ts +1 -0
- package/dist/{version.js → cjs/version.js} +1 -1
- package/dist/{video → cjs/video}/OffthreadVideo.d.ts +1 -1
- package/dist/cjs/video/OffthreadVideo.js +33 -0
- package/dist/{video → cjs/video}/OffthreadVideoForRendering.d.ts +1 -1
- package/dist/{video → cjs/video}/OffthreadVideoForRendering.js +28 -28
- package/dist/{video → cjs/video}/Video.d.ts +2 -2
- package/dist/{video → cjs/video}/Video.js +16 -16
- package/dist/{video → cjs/video}/VideoForDevelopment.d.ts +1 -1
- package/dist/{video → cjs/video}/VideoForDevelopment.js +22 -22
- package/dist/{video → cjs/video}/VideoForRendering.d.ts +1 -1
- package/dist/{video → cjs/video}/VideoForRendering.js +40 -40
- package/dist/{video → cjs/video}/get-current-time.js +2 -2
- package/dist/{video → cjs/video}/index.d.ts +3 -3
- package/dist/{video → cjs/video}/index.js +4 -4
- package/dist/{video → cjs/video}/props.d.ts +1 -1
- package/dist/cjs/wrap-remotion-context.d.ts +18 -0
- package/dist/{wrap-remotion-context.js → cjs/wrap-remotion-context.js} +16 -16
- 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 +54 -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 +108 -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/tsconfig-cjs.tsbuildinfo +1 -0
- package/package.json +21 -9
- 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/audio/index.d.ts +0 -2
- package/dist/get-compositions-from-markup.d.ts +0 -3
- package/dist/get-compositions-from-markup.js +0 -19
- package/dist/internals.js +0 -99
- package/dist/layers.d.ts +0 -24
- package/dist/layers.js +0 -149
- package/dist/version.d.ts +0 -1
- 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
- package/dist/video/OffthreadVideo.js +0 -33
- package/dist/wrap-remotion-context.d.ts +0 -18
- /package/dist/{AbsoluteFill.d.ts → cjs/AbsoluteFill.d.ts} +0 -0
- /package/dist/{AbsoluteFill.js → cjs/AbsoluteFill.js} +0 -0
- /package/dist/{CanUseRemotionHooks.d.ts → cjs/CanUseRemotionHooks.d.ts} +0 -0
- /package/dist/{CanUseRemotionHooks.js → cjs/CanUseRemotionHooks.js} +0 -0
- /package/dist/{Clipper.d.ts → cjs/Clipper.d.ts} +0 -0
- /package/dist/{Composition.d.ts → cjs/Composition.d.ts} +0 -0
- /package/dist/{CompositionManager.js → cjs/CompositionManager.js} +0 -0
- /package/dist/{Folder.d.ts → cjs/Folder.d.ts} +0 -0
- /package/dist/{IFrame.d.ts → cjs/IFrame.d.ts} +0 -0
- /package/dist/{Img.d.ts → cjs/Img.d.ts} +0 -0
- /package/dist/{NativeLayers.d.ts → cjs/NativeLayers.d.ts} +0 -0
- /package/dist/{NativeLayers.js → cjs/NativeLayers.js} +0 -0
- /package/dist/{Null.d.ts → cjs/Null.d.ts} +0 -0
- /package/dist/{RemotionRoot.d.ts → cjs/RemotionRoot.d.ts} +0 -0
- /package/dist/{Sequence.d.ts → cjs/Sequence.d.ts} +0 -0
- /package/dist/{absolute-src.d.ts → cjs/absolute-src.d.ts} +0 -0
- /package/dist/{absolute-src.js → cjs/absolute-src.js} +0 -0
- /package/dist/{asset-types.d.ts → cjs/asset-types.d.ts} +0 -0
- /package/dist/{asset-types.js → cjs/asset-types.js} +0 -0
- /package/dist/{audio → cjs/audio}/props.js +0 -0
- /package/dist/{audio → cjs/audio}/shared-audio-tags.js +0 -0
- /package/dist/{audio → cjs/audio}/use-audio-frame.d.ts +0 -0
- /package/dist/{bezier.d.ts → cjs/bezier.d.ts} +0 -0
- /package/dist/{bezier.js → cjs/bezier.js} +0 -0
- /package/dist/{cancel-render.d.ts → cjs/cancel-render.d.ts} +0 -0
- /package/dist/{cancel-render.js → cjs/cancel-render.js} +0 -0
- /package/dist/{config → cjs/config}/input-props.d.ts +0 -0
- /package/dist/{config.d.ts → cjs/config.d.ts} +0 -0
- /package/dist/{config.js → cjs/config.js} +0 -0
- /package/dist/{default-css.d.ts → cjs/default-css.d.ts} +0 -0
- /package/dist/{default-css.js → cjs/default-css.js} +0 -0
- /package/dist/{delay-render.d.ts → cjs/delay-render.d.ts} +0 -0
- /package/dist/{easing.d.ts → cjs/easing.d.ts} +0 -0
- /package/dist/{freeze.d.ts → cjs/freeze.d.ts} +0 -0
- /package/dist/{get-asset-file-name.d.ts → cjs/get-asset-file-name.d.ts} +0 -0
- /package/dist/{get-asset-file-name.js → cjs/get-asset-file-name.js} +0 -0
- /package/dist/{get-environment.d.ts → cjs/get-environment.d.ts} +0 -0
- /package/dist/{get-preview-dom-element.d.ts → cjs/get-preview-dom-element.d.ts} +0 -0
- /package/dist/{get-preview-dom-element.js → cjs/get-preview-dom-element.js} +0 -0
- /package/dist/{get-static-files.d.ts → cjs/get-static-files.d.ts} +0 -0
- /package/dist/{get-static-files.js → cjs/get-static-files.js} +0 -0
- /package/dist/{get-timeline-clip-name.d.ts → cjs/get-timeline-clip-name.d.ts} +0 -0
- /package/dist/{get-timeline-clip-name.js → cjs/get-timeline-clip-name.js} +0 -0
- /package/dist/{interpolate-colors.d.ts → cjs/interpolate-colors.d.ts} +0 -0
- /package/dist/{interpolate.d.ts → cjs/interpolate.d.ts} +0 -0
- /package/dist/{interpolate.js → cjs/interpolate.js} +0 -0
- /package/dist/{is-approximately-the-same.d.ts → cjs/is-approximately-the-same.d.ts} +0 -0
- /package/dist/{is-approximately-the-same.js → cjs/is-approximately-the-same.js} +0 -0
- /package/dist/{is-player.d.ts → cjs/is-player.d.ts} +0 -0
- /package/dist/{is-player.js → cjs/is-player.js} +0 -0
- /package/dist/{loading-indicator.d.ts → cjs/loading-indicator.d.ts} +0 -0
- /package/dist/{multiple-versions-warning.d.ts → cjs/multiple-versions-warning.d.ts} +0 -0
- /package/dist/{nonce.d.ts → cjs/nonce.d.ts} +0 -0
- /package/dist/{nonce.js → cjs/nonce.js} +0 -0
- /package/dist/{play-and-handle-not-allowed-error.d.ts → cjs/play-and-handle-not-allowed-error.d.ts} +0 -0
- /package/dist/{play-and-handle-not-allowed-error.js → cjs/play-and-handle-not-allowed-error.js} +0 -0
- /package/dist/{portal-node.d.ts → cjs/portal-node.d.ts} +0 -0
- /package/dist/{portal-node.js → cjs/portal-node.js} +0 -0
- /package/dist/{prefetch-state.d.ts → cjs/prefetch-state.d.ts} +0 -0
- /package/dist/{prefetch-state.js → cjs/prefetch-state.js} +0 -0
- /package/dist/{prefetch.d.ts → cjs/prefetch.d.ts} +0 -0
- /package/dist/{random.d.ts → cjs/random.d.ts} +0 -0
- /package/dist/{register-root.d.ts → cjs/register-root.d.ts} +0 -0
- /package/dist/{register-root.js → cjs/register-root.js} +0 -0
- /package/dist/{series → cjs/series}/flatten-children.d.ts +0 -0
- /package/dist/{series → cjs/series}/flatten-children.js +0 -0
- /package/dist/{setup-env-variables.d.ts → cjs/setup-env-variables.d.ts} +0 -0
- /package/dist/{spring → cjs/spring}/spring-utils.d.ts +0 -0
- /package/dist/{spring → cjs/spring}/spring-utils.js +0 -0
- /package/dist/{static-file.d.ts → cjs/static-file.d.ts} +0 -0
- /package/dist/{static-file.js → cjs/static-file.js} +0 -0
- /package/dist/{timeline-position-state.d.ts → cjs/timeline-position-state.d.ts} +0 -0
- /package/dist/{timeline-position-state.js → cjs/timeline-position-state.js} +0 -0
- /package/dist/{truthy.d.ts → cjs/truthy.d.ts} +0 -0
- /package/dist/{truthy.js → cjs/truthy.js} +0 -0
- /package/dist/{use-current-frame.d.ts → cjs/use-current-frame.d.ts} +0 -0
- /package/dist/{use-lazy-component.js → cjs/use-lazy-component.js} +0 -0
- /package/dist/{use-media-playback.d.ts → cjs/use-media-playback.d.ts} +0 -0
- /package/dist/{use-media-tag-volume.d.ts → cjs/use-media-tag-volume.d.ts} +0 -0
- /package/dist/{use-media-tag-volume.js → cjs/use-media-tag-volume.js} +0 -0
- /package/dist/{use-video.d.ts → cjs/use-video.d.ts} +0 -0
- /package/dist/{validate-media-props.js → cjs/validate-media-props.js} +0 -0
- /package/dist/{validate-start-from-props.d.ts → cjs/validate-start-from-props.d.ts} +0 -0
- /package/dist/{validate-start-from-props.js → cjs/validate-start-from-props.js} +0 -0
- /package/dist/{validation → cjs/validation}/validate-composition-id.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/validate-composition-id.js +0 -0
- /package/dist/{validation → cjs/validation}/validate-dimensions.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/validate-dimensions.js +0 -0
- /package/dist/{validation → cjs/validation}/validate-duration-in-frames.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/validate-duration-in-frames.js +0 -0
- /package/dist/{validation → cjs/validation}/validate-folder-name.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/validate-folder-name.js +0 -0
- /package/dist/{validation → cjs/validation}/validate-fps.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/validate-fps.js +0 -0
- /package/dist/{validation → cjs/validation}/validate-offthreadvideo-image-format.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/validate-offthreadvideo-image-format.js +0 -0
- /package/dist/{validation → cjs/validation}/validation-spring-duration.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/validation-spring-duration.js +0 -0
- /package/dist/{video → cjs/video}/duration-state.d.ts +0 -0
- /package/dist/{video → cjs/video}/duration-state.js +0 -0
- /package/dist/{video → cjs/video}/get-current-time.d.ts +0 -0
- /package/dist/{video → cjs/video}/props.js +0 -0
- /package/dist/{video → cjs/video}/video-fragment.d.ts +0 -0
- /package/dist/{video → cjs/video}/video-fragment.js +0 -0
- /package/dist/{video-config.d.ts → cjs/video-config.d.ts} +0 -0
- /package/dist/{video-config.js → cjs/video-config.js} +0 -0
- /package/dist/{volume-position-state.d.ts → cjs/volume-position-state.d.ts} +0 -0
- /package/dist/{volume-position-state.js → cjs/volume-position-state.js} +0 -0
- /package/dist/{volume-prop.d.ts → cjs/volume-prop.d.ts} +0 -0
- /package/dist/{volume-prop.js → cjs/volume-prop.js} +0 -0
- /package/dist/{warn-about-non-seekable-media.d.ts → cjs/warn-about-non-seekable-media.d.ts} +0 -0
- /package/dist/{warn-about-non-seekable-media.js → cjs/warn-about-non-seekable-media.js} +0 -0
|
@@ -3,32 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AudioForRendering = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
6
|
+
const absolute_src_js_1 = require("../absolute-src.js");
|
|
7
|
+
const CompositionManager_js_1 = require("../CompositionManager.js");
|
|
8
|
+
const delay_render_js_1 = require("../delay-render.js");
|
|
9
|
+
const get_environment_js_1 = require("../get-environment.js");
|
|
10
|
+
const random_js_1 = require("../random.js");
|
|
11
|
+
const Sequence_js_1 = require("../Sequence.js");
|
|
12
|
+
const timeline_position_state_js_1 = require("../timeline-position-state.js");
|
|
13
|
+
const use_current_frame_js_1 = require("../use-current-frame.js");
|
|
14
|
+
const volume_prop_js_1 = require("../volume-prop.js");
|
|
15
|
+
const use_audio_frame_js_1 = require("./use-audio-frame.js");
|
|
16
16
|
const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
17
17
|
const audioRef = (0, react_1.useRef)(null);
|
|
18
|
-
const absoluteFrame = (0,
|
|
19
|
-
const volumePropFrame = (0,
|
|
20
|
-
const frame = (0,
|
|
21
|
-
const sequenceContext = (0, react_1.useContext)(
|
|
22
|
-
const { registerAsset, unregisterAsset } = (0, react_1.useContext)(
|
|
23
|
-
const environment = (0,
|
|
18
|
+
const absoluteFrame = (0, timeline_position_state_js_1.useTimelinePosition)();
|
|
19
|
+
const volumePropFrame = (0, use_audio_frame_js_1.useFrameForVolumeProp)();
|
|
20
|
+
const frame = (0, use_current_frame_js_1.useCurrentFrame)();
|
|
21
|
+
const sequenceContext = (0, react_1.useContext)(Sequence_js_1.SequenceContext);
|
|
22
|
+
const { registerAsset, unregisterAsset } = (0, react_1.useContext)(CompositionManager_js_1.CompositionManager);
|
|
23
|
+
const environment = (0, get_environment_js_1.useRemotionEnvironment)();
|
|
24
24
|
// Generate a string that's as unique as possible for this asset
|
|
25
25
|
// but at the same time the same on all threads
|
|
26
26
|
const id = (0, react_1.useMemo)(() => {
|
|
27
27
|
var _a;
|
|
28
|
-
return `audio-${(0,
|
|
28
|
+
return `audio-${(0, random_js_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}`;
|
|
29
29
|
}, [props.src, sequenceContext]);
|
|
30
30
|
const { volume: volumeProp, playbackRate, allowAmplificationDuringRender, onDuration, ...nativeProps } = props;
|
|
31
|
-
const volume = (0,
|
|
31
|
+
const volume = (0, volume_prop_js_1.evaluateVolume)({
|
|
32
32
|
volume: volumeProp,
|
|
33
33
|
frame: volumePropFrame,
|
|
34
34
|
mediaVolume: 1,
|
|
@@ -53,7 +53,7 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
53
53
|
}
|
|
54
54
|
registerAsset({
|
|
55
55
|
type: 'audio',
|
|
56
|
-
src: (0,
|
|
56
|
+
src: (0, absolute_src_js_1.getAbsoluteSrc)(props.src),
|
|
57
57
|
id,
|
|
58
58
|
frame: absoluteFrame,
|
|
59
59
|
volume,
|
|
@@ -84,17 +84,17 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
84
84
|
if (process.env.NODE_ENV === 'test') {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
const newHandle = (0,
|
|
87
|
+
const newHandle = (0, delay_render_js_1.delayRender)('Loading <Audio> duration with src=' + src);
|
|
88
88
|
const { current } = audioRef;
|
|
89
89
|
const didLoad = () => {
|
|
90
90
|
if (current === null || current === void 0 ? void 0 : current.duration) {
|
|
91
91
|
onDuration(src, current.duration);
|
|
92
92
|
}
|
|
93
|
-
(0,
|
|
93
|
+
(0, delay_render_js_1.continueRender)(newHandle);
|
|
94
94
|
};
|
|
95
95
|
if (current === null || current === void 0 ? void 0 : current.duration) {
|
|
96
96
|
onDuration(src, current.duration);
|
|
97
|
-
(0,
|
|
97
|
+
(0, delay_render_js_1.continueRender)(newHandle);
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
current === null || current === void 0 ? void 0 : current.addEventListener('loadedmetadata', didLoad, { once: true });
|
|
@@ -102,7 +102,7 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
102
102
|
// If tag gets unmounted, clear pending handles because video metadata is not going to load
|
|
103
103
|
return () => {
|
|
104
104
|
current === null || current === void 0 ? void 0 : current.removeEventListener('loadedmetadata', didLoad);
|
|
105
|
-
(0,
|
|
105
|
+
(0, delay_render_js_1.continueRender)(newHandle);
|
|
106
106
|
};
|
|
107
107
|
}, [src, onDuration]);
|
|
108
108
|
}
|
|
@@ -14,5 +14,5 @@ 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
|
-
__exportStar(require("./Audio"), exports);
|
|
18
|
-
__exportStar(require("./props"), exports);
|
|
17
|
+
__exportStar(require("./Audio.js"), exports);
|
|
18
|
+
__exportStar(require("./props.js"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { RemotionAudioProps } from './props';
|
|
2
|
+
import type { RemotionAudioProps } from './props.js';
|
|
3
3
|
/**
|
|
4
4
|
* This functionality of Remotion will keep a certain amount
|
|
5
5
|
* of <audio> tags pre-mounted and by default filled with an empty audio track.
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useFrameForVolumeProp = exports.useMediaStartsAt = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const Sequence_js_1 = require("../Sequence.js");
|
|
6
|
+
const use_current_frame_js_1 = require("../use-current-frame.js");
|
|
7
7
|
const useMediaStartsAt = () => {
|
|
8
8
|
var _a;
|
|
9
|
-
const parentSequence = (0, react_1.useContext)(
|
|
9
|
+
const parentSequence = (0, react_1.useContext)(Sequence_js_1.SequenceContext);
|
|
10
10
|
const startsAt = Math.min(0, (_a = parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.relativeFrom) !== null && _a !== void 0 ? _a : 0);
|
|
11
11
|
return startsAt;
|
|
12
12
|
};
|
|
@@ -16,7 +16,7 @@ exports.useMediaStartsAt = useMediaStartsAt;
|
|
|
16
16
|
* we calculate the way more intuitive value for currentFrame
|
|
17
17
|
*/
|
|
18
18
|
const useFrameForVolumeProp = () => {
|
|
19
|
-
const frame = (0,
|
|
19
|
+
const frame = (0, use_current_frame_js_1.useCurrentFrame)();
|
|
20
20
|
const startsAt = (0, exports.useMediaStartsAt)();
|
|
21
21
|
return frame + startsAt;
|
|
22
22
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInputProps = void 0;
|
|
4
|
-
const
|
|
4
|
+
const get_environment_js_1 = require("../get-environment.js");
|
|
5
5
|
let didWarnSSRImport = false;
|
|
6
6
|
const warnOnceSSRImport = () => {
|
|
7
7
|
if (didWarnSSRImport) {
|
|
@@ -17,8 +17,8 @@ const getInputProps = () => {
|
|
|
17
17
|
warnOnceSSRImport();
|
|
18
18
|
return {};
|
|
19
19
|
}
|
|
20
|
-
if ((0,
|
|
21
|
-
(0,
|
|
20
|
+
if ((0, get_environment_js_1.getRemotionEnvironment)() === 'player-development' ||
|
|
21
|
+
(0, get_environment_js_1.getRemotionEnvironment)() === 'player-production') {
|
|
22
22
|
throw new Error('You cannot call `getInputProps()` from a <Player>. Instead, the props are available as React props from component that you passed as `component` prop.');
|
|
23
23
|
}
|
|
24
24
|
const param = window.remotion_inputProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.continueRender = exports.delayRender = exports.DELAY_RENDER_CALLSTACK_TOKEN = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const get_environment_js_1 = require("./get-environment.js");
|
|
5
|
+
const truthy_js_1 = require("./truthy.js");
|
|
6
6
|
if (typeof window !== 'undefined') {
|
|
7
7
|
window.ready = false;
|
|
8
8
|
}
|
|
@@ -25,7 +25,7 @@ const delayRender = (label) => {
|
|
|
25
25
|
const handle = Math.random();
|
|
26
26
|
handles.push(handle);
|
|
27
27
|
const called = (_b = (_a = Error().stack) === null || _a === void 0 ? void 0 : _a.replace(/^Error/g, '')) !== null && _b !== void 0 ? _b : '';
|
|
28
|
-
if ((0,
|
|
28
|
+
if ((0, get_environment_js_1.getRemotionEnvironment)() === 'rendering') {
|
|
29
29
|
const timeoutToUse = typeof window === 'undefined'
|
|
30
30
|
? defaultTimeout
|
|
31
31
|
: ((_c = window.remotion_puppeteerTimeout) !== null && _c !== void 0 ? _c : defaultTimeout) - 2000;
|
|
@@ -37,7 +37,7 @@ const delayRender = (label) => {
|
|
|
37
37
|
exports.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
38
38
|
called,
|
|
39
39
|
]
|
|
40
|
-
.filter(
|
|
40
|
+
.filter(truthy_js_1.truthy)
|
|
41
41
|
.join(' ');
|
|
42
42
|
throw new Error(message);
|
|
43
43
|
}, timeoutToUse);
|
|
@@ -63,7 +63,7 @@ const continueRender = (handle) => {
|
|
|
63
63
|
}
|
|
64
64
|
handles = handles.filter((h) => {
|
|
65
65
|
if (h === handle) {
|
|
66
|
-
if ((0,
|
|
66
|
+
if ((0, get_environment_js_1.getRemotionEnvironment)() === 'rendering') {
|
|
67
67
|
clearTimeout(timeouts[handle]);
|
|
68
68
|
}
|
|
69
69
|
return false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Taken from https://github.com/facebook/react-native/blob/0b9ea60b4fee8cacc36e7160e31b91fc114dbc0d/Libraries/Animated/src/Easing.js
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Easing = void 0;
|
|
5
|
-
const
|
|
5
|
+
const bezier_js_1 = require("./bezier.js");
|
|
6
6
|
class Easing {
|
|
7
7
|
static step0(n) {
|
|
8
8
|
return n > 0 ? 1 : 0;
|
|
@@ -57,7 +57,7 @@ class Easing {
|
|
|
57
57
|
return 7.5625 * t2 * t2 + 0.984375;
|
|
58
58
|
}
|
|
59
59
|
static bezier(x1, y1, x2, y2) {
|
|
60
|
-
return (0,
|
|
60
|
+
return (0, bezier_js_1.bezier)(x1, y1, x2, y2);
|
|
61
61
|
}
|
|
62
62
|
static in(easing) {
|
|
63
63
|
return easing;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Freeze = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const Sequence_js_1 = require("./Sequence.js");
|
|
7
|
+
const timeline_position_state_js_1 = require("./timeline-position-state.js");
|
|
8
8
|
const Freeze = ({ frame, children }) => {
|
|
9
9
|
if (typeof frame === 'undefined') {
|
|
10
10
|
throw new Error(`The <Freeze /> component requires a 'frame' prop, but none was passed.`);
|
|
@@ -18,7 +18,7 @@ const Freeze = ({ frame, children }) => {
|
|
|
18
18
|
if (!Number.isFinite(frame)) {
|
|
19
19
|
throw new Error(`The 'frame' prop of <Freeze /> must be a finite number, but it is ${frame}.`);
|
|
20
20
|
}
|
|
21
|
-
const context = (0, react_1.useContext)(
|
|
21
|
+
const context = (0, react_1.useContext)(timeline_position_state_js_1.TimelineContext);
|
|
22
22
|
const value = (0, react_1.useMemo)(() => {
|
|
23
23
|
return {
|
|
24
24
|
...context,
|
|
@@ -29,6 +29,6 @@ const Freeze = ({ frame, children }) => {
|
|
|
29
29
|
frame,
|
|
30
30
|
};
|
|
31
31
|
}, [context, frame]);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(timeline_position_state_js_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(Sequence_js_1.SequenceContext.Provider, { value: null, children: children }) }));
|
|
33
33
|
};
|
|
34
34
|
exports.Freeze = Freeze;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useRemotionEnvironment = exports.getRemotionEnvironment = void 0;
|
|
4
|
-
const
|
|
4
|
+
const is_player_js_1 = require("./is-player.js");
|
|
5
5
|
const getRemotionEnvironment = () => {
|
|
6
6
|
if (process.env.NODE_ENV === 'production') {
|
|
7
7
|
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
@@ -22,7 +22,7 @@ const getRemotionEnvironment = () => {
|
|
|
22
22
|
};
|
|
23
23
|
exports.getRemotionEnvironment = getRemotionEnvironment;
|
|
24
24
|
const useRemotionEnvironment = () => {
|
|
25
|
-
const isPlayer = (0,
|
|
25
|
+
const isPlayer = (0, is_player_js_1.useIsPlayer)();
|
|
26
26
|
if (isPlayer) {
|
|
27
27
|
if (process.env.NODE_ENV === 'production') {
|
|
28
28
|
return 'player-production';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import './asset-types';
|
|
2
|
-
import type { TAsset, TCompMetadata } from './CompositionManager';
|
|
3
|
-
import type { StaticFile } from './get-static-files';
|
|
4
|
-
import type { ClipRegion } from './NativeLayers';
|
|
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
5
|
declare global {
|
|
6
6
|
interface Window {
|
|
7
7
|
ready: boolean;
|
|
@@ -46,39 +46,39 @@ export declare type BundleState = {
|
|
|
46
46
|
compositionWidth: number;
|
|
47
47
|
compositionFps: number;
|
|
48
48
|
};
|
|
49
|
-
export * from './AbsoluteFill';
|
|
49
|
+
export * from './AbsoluteFill.js';
|
|
50
50
|
export * from './audio';
|
|
51
|
-
export { cancelRender } from './cancel-render';
|
|
52
|
-
export * from './Composition';
|
|
53
|
-
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
|
|
51
|
+
export { cancelRender } from './cancel-render.js';
|
|
52
|
+
export * from './Composition.js';
|
|
53
|
+
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager.js';
|
|
54
54
|
export { Config, ConfigType } from './config';
|
|
55
|
-
export { getInputProps } from './config/input-props';
|
|
56
|
-
export { continueRender, delayRender } from './delay-render';
|
|
57
|
-
export * from './easing';
|
|
58
|
-
export * from './Folder';
|
|
59
|
-
export * from './freeze';
|
|
60
|
-
export { getStaticFiles, StaticFile } from './get-static-files';
|
|
61
|
-
export * from './IFrame';
|
|
62
|
-
export * from './Img';
|
|
63
|
-
export * from './internals';
|
|
64
|
-
export * from './interpolate';
|
|
65
|
-
export { interpolateColors } from './interpolate-colors';
|
|
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
66
|
export { Loop } from './loop';
|
|
67
|
-
export { ClipRegion } from './NativeLayers';
|
|
68
|
-
export { prefetch } from './prefetch';
|
|
69
|
-
export { random, RandomSeed } from './random';
|
|
70
|
-
export { registerRoot } from './register-root';
|
|
71
|
-
export { Sequence } from './Sequence';
|
|
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
72
|
export { Series } from './series';
|
|
73
73
|
export * from './spring';
|
|
74
|
-
export { staticFile } from './static-file';
|
|
75
|
-
export * from './Still';
|
|
76
|
-
export type { PlayableMediaTag } from './timeline-position-state';
|
|
77
|
-
export { useCurrentFrame } from './use-current-frame';
|
|
78
|
-
export * from './use-video-config';
|
|
79
|
-
export * from './version';
|
|
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
80
|
export * from './video';
|
|
81
|
-
export * from './video-config';
|
|
81
|
+
export * from './video-config.js';
|
|
82
82
|
export declare const Experimental: {
|
|
83
83
|
Clipper: import("react").FC<{
|
|
84
84
|
width: number;
|
|
@@ -15,59 +15,59 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.Experimental = exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.random = exports.prefetch = exports.Loop = exports.interpolateColors = exports.getStaticFiles = exports.delayRender = exports.continueRender = exports.getInputProps = exports.Config = exports.cancelRender = void 0;
|
|
18
|
-
require("./asset-types");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
(0,
|
|
24
|
-
__exportStar(require("./AbsoluteFill"), exports);
|
|
18
|
+
require("./asset-types.js");
|
|
19
|
+
const Clipper_js_1 = require("./Clipper.js");
|
|
20
|
+
const is_player_js_1 = require("./is-player.js");
|
|
21
|
+
const multiple_versions_warning_js_1 = require("./multiple-versions-warning.js");
|
|
22
|
+
const Null_js_1 = require("./Null.js");
|
|
23
|
+
(0, multiple_versions_warning_js_1.checkMultipleRemotionVersions)();
|
|
24
|
+
__exportStar(require("./AbsoluteFill.js"), exports);
|
|
25
25
|
__exportStar(require("./audio"), exports);
|
|
26
|
-
var
|
|
27
|
-
Object.defineProperty(exports, "cancelRender", { enumerable: true, get: function () { return
|
|
28
|
-
__exportStar(require("./Composition"), exports);
|
|
26
|
+
var cancel_render_js_1 = require("./cancel-render.js");
|
|
27
|
+
Object.defineProperty(exports, "cancelRender", { enumerable: true, get: function () { return cancel_render_js_1.cancelRender; } });
|
|
28
|
+
__exportStar(require("./Composition.js"), exports);
|
|
29
29
|
var config_1 = require("./config");
|
|
30
30
|
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
31
|
-
var
|
|
32
|
-
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return
|
|
33
|
-
var
|
|
34
|
-
Object.defineProperty(exports, "continueRender", { enumerable: true, get: function () { return
|
|
35
|
-
Object.defineProperty(exports, "delayRender", { enumerable: true, get: function () { return
|
|
36
|
-
__exportStar(require("./easing"), exports);
|
|
37
|
-
__exportStar(require("./Folder"), exports);
|
|
38
|
-
__exportStar(require("./freeze"), exports);
|
|
39
|
-
var
|
|
40
|
-
Object.defineProperty(exports, "getStaticFiles", { enumerable: true, get: function () { return
|
|
41
|
-
__exportStar(require("./IFrame"), exports);
|
|
42
|
-
__exportStar(require("./Img"), exports);
|
|
43
|
-
__exportStar(require("./internals"), exports);
|
|
44
|
-
__exportStar(require("./interpolate"), exports);
|
|
45
|
-
var
|
|
46
|
-
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return
|
|
31
|
+
var input_props_js_1 = require("./config/input-props.js");
|
|
32
|
+
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_js_1.getInputProps; } });
|
|
33
|
+
var delay_render_js_1 = require("./delay-render.js");
|
|
34
|
+
Object.defineProperty(exports, "continueRender", { enumerable: true, get: function () { return delay_render_js_1.continueRender; } });
|
|
35
|
+
Object.defineProperty(exports, "delayRender", { enumerable: true, get: function () { return delay_render_js_1.delayRender; } });
|
|
36
|
+
__exportStar(require("./easing.js"), exports);
|
|
37
|
+
__exportStar(require("./Folder.js"), exports);
|
|
38
|
+
__exportStar(require("./freeze.js"), exports);
|
|
39
|
+
var get_static_files_js_1 = require("./get-static-files.js");
|
|
40
|
+
Object.defineProperty(exports, "getStaticFiles", { enumerable: true, get: function () { return get_static_files_js_1.getStaticFiles; } });
|
|
41
|
+
__exportStar(require("./IFrame.js"), exports);
|
|
42
|
+
__exportStar(require("./Img.js"), exports);
|
|
43
|
+
__exportStar(require("./internals.js"), exports);
|
|
44
|
+
__exportStar(require("./interpolate.js"), exports);
|
|
45
|
+
var interpolate_colors_js_1 = require("./interpolate-colors.js");
|
|
46
|
+
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolate_colors_js_1.interpolateColors; } });
|
|
47
47
|
var loop_1 = require("./loop");
|
|
48
48
|
Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return loop_1.Loop; } });
|
|
49
|
-
var
|
|
50
|
-
Object.defineProperty(exports, "prefetch", { enumerable: true, get: function () { return
|
|
51
|
-
var
|
|
52
|
-
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return
|
|
53
|
-
var
|
|
54
|
-
Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return
|
|
55
|
-
var
|
|
56
|
-
Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return
|
|
49
|
+
var prefetch_js_1 = require("./prefetch.js");
|
|
50
|
+
Object.defineProperty(exports, "prefetch", { enumerable: true, get: function () { return prefetch_js_1.prefetch; } });
|
|
51
|
+
var random_js_1 = require("./random.js");
|
|
52
|
+
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return random_js_1.random; } });
|
|
53
|
+
var register_root_js_1 = require("./register-root.js");
|
|
54
|
+
Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return register_root_js_1.registerRoot; } });
|
|
55
|
+
var Sequence_js_1 = require("./Sequence.js");
|
|
56
|
+
Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return Sequence_js_1.Sequence; } });
|
|
57
57
|
var series_1 = require("./series");
|
|
58
58
|
Object.defineProperty(exports, "Series", { enumerable: true, get: function () { return series_1.Series; } });
|
|
59
59
|
__exportStar(require("./spring"), exports);
|
|
60
|
-
var
|
|
61
|
-
Object.defineProperty(exports, "staticFile", { enumerable: true, get: function () { return
|
|
62
|
-
__exportStar(require("./Still"), exports);
|
|
63
|
-
var
|
|
64
|
-
Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return
|
|
65
|
-
__exportStar(require("./use-video-config"), exports);
|
|
66
|
-
__exportStar(require("./version"), exports);
|
|
60
|
+
var static_file_js_1 = require("./static-file.js");
|
|
61
|
+
Object.defineProperty(exports, "staticFile", { enumerable: true, get: function () { return static_file_js_1.staticFile; } });
|
|
62
|
+
__exportStar(require("./Still.js"), exports);
|
|
63
|
+
var use_current_frame_js_1 = require("./use-current-frame.js");
|
|
64
|
+
Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return use_current_frame_js_1.useCurrentFrame; } });
|
|
65
|
+
__exportStar(require("./use-video-config.js"), exports);
|
|
66
|
+
__exportStar(require("./version.js"), exports);
|
|
67
67
|
__exportStar(require("./video"), exports);
|
|
68
|
-
__exportStar(require("./video-config"), exports);
|
|
68
|
+
__exportStar(require("./video-config.js"), exports);
|
|
69
69
|
exports.Experimental = {
|
|
70
|
-
Clipper:
|
|
71
|
-
Null:
|
|
72
|
-
useIsPlayer:
|
|
70
|
+
Clipper: Clipper_js_1.Clipper,
|
|
71
|
+
Null: Null_js_1.Null,
|
|
72
|
+
useIsPlayer: is_player_js_1.useIsPlayer,
|
|
73
73
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CompProps } from './Composition';
|
|
3
|
-
import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
4
|
-
import * as CSSUtils from './default-css';
|
|
5
|
-
import type { RemotionEnvironment } from './get-environment';
|
|
6
|
-
import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
|
|
7
|
-
import * as TimelinePosition from './timeline-position-state';
|
|
8
|
-
import { truthy } from './truthy';
|
|
9
|
-
import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
|
|
10
|
-
import { useRemotionContexts } from './wrap-remotion-context';
|
|
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
11
|
declare const Timeline: typeof TimelinePosition;
|
|
12
12
|
export declare const Internals: {
|
|
13
13
|
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
@@ -36,9 +36,9 @@ export declare const Internals: {
|
|
|
36
36
|
readonly _result: import("react").ComponentType<T>;
|
|
37
37
|
};
|
|
38
38
|
truthy: typeof truthy;
|
|
39
|
-
SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
|
|
39
|
+
SequenceContext: import("react").Context<import("./Sequence.js").SequenceContextType | null>;
|
|
40
40
|
useRemotionContexts: typeof useRemotionContexts;
|
|
41
|
-
RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
|
|
41
|
+
RemotionContextProvider: (props: import("./wrap-remotion-context.js").RemotionContextProviderProps) => JSX.Element;
|
|
42
42
|
CSSUtils: typeof CSSUtils;
|
|
43
43
|
setupEnvVariables: () => void;
|
|
44
44
|
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
@@ -94,5 +94,6 @@ export declare const Internals: {
|
|
|
94
94
|
}>;
|
|
95
95
|
useIsPlayer: () => boolean;
|
|
96
96
|
useRemotionEnvironment: () => RemotionEnvironment;
|
|
97
|
+
validateFrame: (frame: number, durationInFrames: number) => void;
|
|
97
98
|
};
|
|
98
99
|
export type { TComposition, Timeline, TCompMetadata, TSequence, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Internals = void 0;
|
|
27
|
+
const config_1 = require("./config");
|
|
28
|
+
const shared_audio_tags_js_1 = require("./audio/shared-audio-tags.js");
|
|
29
|
+
const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
|
|
30
|
+
const CompositionManager_js_1 = require("./CompositionManager.js");
|
|
31
|
+
const CSSUtils = __importStar(require("./default-css.js"));
|
|
32
|
+
const delay_render_js_1 = require("./delay-render.js");
|
|
33
|
+
const get_environment_js_1 = require("./get-environment.js");
|
|
34
|
+
const get_preview_dom_element_js_1 = require("./get-preview-dom-element.js");
|
|
35
|
+
const is_player_js_1 = require("./is-player.js");
|
|
36
|
+
const portal_node_js_1 = require("./portal-node.js");
|
|
37
|
+
const prefetch_state_js_1 = require("./prefetch-state.js");
|
|
38
|
+
const register_root_js_1 = require("./register-root.js");
|
|
39
|
+
const RemotionRoot_js_1 = require("./RemotionRoot.js");
|
|
40
|
+
const Sequence_js_1 = require("./Sequence.js");
|
|
41
|
+
const setup_env_variables_js_1 = require("./setup-env-variables.js");
|
|
42
|
+
const TimelinePosition = __importStar(require("./timeline-position-state.js"));
|
|
43
|
+
const truthy_js_1 = require("./truthy.js");
|
|
44
|
+
const use_lazy_component_js_1 = require("./use-lazy-component.js");
|
|
45
|
+
const use_unsafe_video_config_js_1 = require("./use-unsafe-video-config.js");
|
|
46
|
+
const use_video_js_1 = require("./use-video.js");
|
|
47
|
+
const validate_frame_js_1 = require("./validate-frame.js");
|
|
48
|
+
const validate_composition_id_js_1 = require("./validation/validate-composition-id.js");
|
|
49
|
+
const validate_dimensions_js_1 = require("./validation/validate-dimensions.js");
|
|
50
|
+
const validate_duration_in_frames_js_1 = require("./validation/validate-duration-in-frames.js");
|
|
51
|
+
const validate_fps_js_1 = require("./validation/validate-fps.js");
|
|
52
|
+
const validate_offthreadvideo_image_format_js_1 = require("./validation/validate-offthreadvideo-image-format.js");
|
|
53
|
+
const duration_state_js_1 = require("./video/duration-state.js");
|
|
54
|
+
const volume_position_state_js_1 = require("./volume-position-state.js");
|
|
55
|
+
const wrap_remotion_context_js_1 = require("./wrap-remotion-context.js");
|
|
56
|
+
const Timeline = TimelinePosition;
|
|
57
|
+
// Mark them as Internals so use don't assume this is public
|
|
58
|
+
// API and are less likely to use it
|
|
59
|
+
exports.Internals = {
|
|
60
|
+
useUnsafeVideoConfig: use_unsafe_video_config_js_1.useUnsafeVideoConfig,
|
|
61
|
+
Timeline,
|
|
62
|
+
CompositionManager: CompositionManager_js_1.CompositionManager,
|
|
63
|
+
RemotionRoot: RemotionRoot_js_1.RemotionRoot,
|
|
64
|
+
useVideo: use_video_js_1.useVideo,
|
|
65
|
+
getRoot: register_root_js_1.getRoot,
|
|
66
|
+
useMediaVolumeState: volume_position_state_js_1.useMediaVolumeState,
|
|
67
|
+
useMediaMutedState: volume_position_state_js_1.useMediaMutedState,
|
|
68
|
+
useLazyComponent: use_lazy_component_js_1.useLazyComponent,
|
|
69
|
+
truthy: truthy_js_1.truthy,
|
|
70
|
+
SequenceContext: Sequence_js_1.SequenceContext,
|
|
71
|
+
useRemotionContexts: wrap_remotion_context_js_1.useRemotionContexts,
|
|
72
|
+
RemotionContextProvider: wrap_remotion_context_js_1.RemotionContextProvider,
|
|
73
|
+
CSSUtils,
|
|
74
|
+
setupEnvVariables: setup_env_variables_js_1.setupEnvVariables,
|
|
75
|
+
ENV_VARIABLES_ENV_NAME: setup_env_variables_js_1.ENV_VARIABLES_ENV_NAME,
|
|
76
|
+
MediaVolumeContext: volume_position_state_js_1.MediaVolumeContext,
|
|
77
|
+
SetMediaVolumeContext: volume_position_state_js_1.SetMediaVolumeContext,
|
|
78
|
+
validateDurationInFrames: validate_duration_in_frames_js_1.validateDurationInFrames,
|
|
79
|
+
validateFps: validate_fps_js_1.validateFps,
|
|
80
|
+
validateDimension: validate_dimensions_js_1.validateDimension,
|
|
81
|
+
getRemotionEnvironment: get_environment_js_1.getRemotionEnvironment,
|
|
82
|
+
SharedAudioContext: shared_audio_tags_js_1.SharedAudioContext,
|
|
83
|
+
SharedAudioContextProvider: shared_audio_tags_js_1.SharedAudioContextProvider,
|
|
84
|
+
invalidCompositionErrorMessage: validate_composition_id_js_1.invalidCompositionErrorMessage,
|
|
85
|
+
isCompositionIdValid: validate_composition_id_js_1.isCompositionIdValid,
|
|
86
|
+
getPreviewDomElement: get_preview_dom_element_js_1.getPreviewDomElement,
|
|
87
|
+
compositionsRef: CompositionManager_js_1.compositionsRef,
|
|
88
|
+
DELAY_RENDER_CALLSTACK_TOKEN: delay_render_js_1.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
89
|
+
portalNode: portal_node_js_1.portalNode,
|
|
90
|
+
waitForRoot: register_root_js_1.waitForRoot,
|
|
91
|
+
validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_js_1.validateOffthreadVideoImageFormat,
|
|
92
|
+
CanUseRemotionHooksProvider: CanUseRemotionHooks_js_1.CanUseRemotionHooksProvider,
|
|
93
|
+
CanUseRemotionHooks: CanUseRemotionHooks_js_1.CanUseRemotionHooks,
|
|
94
|
+
enableLegacyRemotionConfig: config_1.enableLegacyRemotionConfig,
|
|
95
|
+
PrefetchProvider: prefetch_state_js_1.PrefetchProvider,
|
|
96
|
+
DurationsContextProvider: duration_state_js_1.DurationsContextProvider,
|
|
97
|
+
IsPlayerContextProvider: is_player_js_1.IsPlayerContextProvider,
|
|
98
|
+
useIsPlayer: is_player_js_1.useIsPlayer,
|
|
99
|
+
useRemotionEnvironment: get_environment_js_1.useRemotionEnvironment,
|
|
100
|
+
validateFrame: validate_frame_js_1.validateFrame,
|
|
101
|
+
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.interpolateColors = void 0;
|
|
8
8
|
/* eslint no-bitwise: 0 */
|
|
9
|
-
const
|
|
9
|
+
const interpolate_js_1 = require("./interpolate.js");
|
|
10
10
|
// var INTEGER = '[-+]?\\d+';
|
|
11
11
|
const NUMBER = '[-+]?\\d*\\.?\\d+';
|
|
12
12
|
const PERCENTAGE = NUMBER + '%';
|
|
@@ -367,7 +367,7 @@ function processColor(color) {
|
|
|
367
367
|
}
|
|
368
368
|
const interpolateColorsRGB = (value, inputRange, colors) => {
|
|
369
369
|
const [r, g, b, a] = [red, green, blue, opacity].map((f) => {
|
|
370
|
-
const unrounded = (0,
|
|
370
|
+
const unrounded = (0, interpolate_js_1.interpolate)(value, inputRange, colors.map((c) => f(c)), {
|
|
371
371
|
extrapolateLeft: 'clamp',
|
|
372
372
|
extrapolateRight: 'clamp',
|
|
373
373
|
});
|