remotion 3.3.44 → 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/README.md +1 -1
- 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/{CompositionManager.js → cjs/CompositionManager.js} +14 -4
- 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.d.ts → cjs/Sequence.d.ts} +1 -0
- 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/cjs/config.d.ts +285 -0
- 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} +32 -31
- package/dist/{index.js → cjs/index.js} +45 -45
- package/dist/{internals.d.ts → cjs/internals.d.ts} +13 -15
- 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 +22 -11
- 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/config.d.ts +0 -291
- 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/{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/{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.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
|
@@ -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;
|
|
@@ -89,3 +89,4 @@ export declare const Experimental: {
|
|
|
89
89
|
Null: import("react").FC<{}>;
|
|
90
90
|
useIsPlayer: () => boolean;
|
|
91
91
|
};
|
|
92
|
+
export declare type WebpackOverrideFn = "The 'WebpackOverrideFn' has been moved to '@remotion/bundler'. Update your imports and install '@remotion/bundler' if necessary.";
|
|
@@ -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,14 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import type {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
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';
|
|
12
11
|
declare const Timeline: typeof TimelinePosition;
|
|
13
12
|
export declare const Internals: {
|
|
14
13
|
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
@@ -37,9 +36,9 @@ export declare const Internals: {
|
|
|
37
36
|
readonly _result: import("react").ComponentType<T>;
|
|
38
37
|
};
|
|
39
38
|
truthy: typeof truthy;
|
|
40
|
-
SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
|
|
39
|
+
SequenceContext: import("react").Context<import("./Sequence.js").SequenceContextType | null>;
|
|
41
40
|
useRemotionContexts: typeof useRemotionContexts;
|
|
42
|
-
RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
|
|
41
|
+
RemotionContextProvider: (props: import("./wrap-remotion-context.js").RemotionContextProviderProps) => JSX.Element;
|
|
43
42
|
CSSUtils: typeof CSSUtils;
|
|
44
43
|
setupEnvVariables: () => void;
|
|
45
44
|
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
@@ -95,7 +94,6 @@ export declare const Internals: {
|
|
|
95
94
|
}>;
|
|
96
95
|
useIsPlayer: () => boolean;
|
|
97
96
|
useRemotionEnvironment: () => RemotionEnvironment;
|
|
97
|
+
validateFrame: (frame: number, durationInFrames: number) => void;
|
|
98
98
|
};
|
|
99
|
-
|
|
100
|
-
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
101
|
-
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|
|
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
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Loading = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const AbsoluteFill_js_1 = require("./AbsoluteFill.js");
|
|
6
6
|
const rotate = {
|
|
7
7
|
transform: `rotate(90deg)`,
|
|
8
8
|
};
|
|
@@ -17,7 +17,7 @@ const container = {
|
|
|
17
17
|
alignItems: 'center',
|
|
18
18
|
};
|
|
19
19
|
const Loading = () => {
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(AbsoluteFill_js_1.AbsoluteFill, { style: container, id: "remotion-comp-loading", children: [(0, jsx_runtime_1.jsx)("style", { type: "text/css", children: `
|
|
21
21
|
@keyframes anim {
|
|
22
22
|
from {
|
|
23
23
|
opacity: 0
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Loop = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const Sequence_js_1 = require("../Sequence.js");
|
|
6
|
+
const use_video_config_js_1 = require("../use-video-config.js");
|
|
7
|
+
const validate_duration_in_frames_js_1 = require("../validation/validate-duration-in-frames.js");
|
|
8
8
|
const Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) => {
|
|
9
|
-
const { durationInFrames: compDuration } = (0,
|
|
10
|
-
(0,
|
|
9
|
+
const { durationInFrames: compDuration } = (0, use_video_config_js_1.useVideoConfig)();
|
|
10
|
+
(0, validate_duration_in_frames_js_1.validateDurationInFrames)(durationInFrames, 'of the <Loop /> component');
|
|
11
11
|
if (typeof times !== 'number') {
|
|
12
12
|
throw new TypeError(`You passed to "times" an argument of type ${typeof times}, but it must be a number.`);
|
|
13
13
|
}
|
|
@@ -21,7 +21,7 @@ const Loop = ({ durationInFrames, times = Infinity, children, name, ...props })
|
|
|
21
21
|
const actualTimes = Math.min(maxTimes, times);
|
|
22
22
|
const style = props.layout === 'none' ? undefined : props.style;
|
|
23
23
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: new Array(actualTimes).fill(true).map((_, i) => {
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(Sequence_js_1.Sequence
|
|
25
25
|
// eslint-disable-next-line react/no-array-index-key
|
|
26
26
|
, { durationInFrames: durationInFrames, from: i * durationInFrames, name: name, showLoopTimesInTimeline: actualTimes, showInTimeline: i === 0, layout: props.layout, style: style, children: children }, `loop-${i}`));
|
|
27
27
|
}) }));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkMultipleRemotionVersions = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const truthy_js_1 = require("./truthy.js");
|
|
5
|
+
const version_js_1 = require("./version.js");
|
|
6
6
|
const checkMultipleRemotionVersions = () => {
|
|
7
7
|
if (typeof globalThis === 'undefined') {
|
|
8
8
|
return;
|
|
@@ -10,23 +10,23 @@ const checkMultipleRemotionVersions = () => {
|
|
|
10
10
|
const alreadyImported = globalThis.remotion_imported ||
|
|
11
11
|
(typeof window !== 'undefined' && window.remotion_imported);
|
|
12
12
|
if (alreadyImported) {
|
|
13
|
-
if (typeof window === 'undefined' && alreadyImported ===
|
|
13
|
+
if (typeof window === 'undefined' && alreadyImported === version_js_1.VERSION) {
|
|
14
14
|
// Next.JS will reload the package and cause a server-side warning.
|
|
15
15
|
// It's okay if this happens during SSR in developement
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
throw new TypeError(`🚨 Multiple versions of Remotion detected: ${[
|
|
19
|
-
|
|
19
|
+
version_js_1.VERSION,
|
|
20
20
|
typeof alreadyImported === 'string'
|
|
21
21
|
? alreadyImported
|
|
22
22
|
: 'an older version',
|
|
23
23
|
]
|
|
24
|
-
.filter(
|
|
24
|
+
.filter(truthy_js_1.truthy)
|
|
25
25
|
.join(' and ')}. This will cause things to break in an unexpected way.\nCheck that all your Remotion packages are on the same version. If your dependencies depend on Remotion, make them peer dependencies. You can also run \`npx remotion versions\` from your terminal to see which versions are mismatching.`);
|
|
26
26
|
}
|
|
27
|
-
globalThis.remotion_imported =
|
|
27
|
+
globalThis.remotion_imported = version_js_1.VERSION;
|
|
28
28
|
if (typeof window !== 'undefined') {
|
|
29
|
-
window.remotion_imported =
|
|
29
|
+
window.remotion_imported = version_js_1.VERSION;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
exports.checkMultipleRemotionVersions = checkMultipleRemotionVersions;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prefetch = exports.usePreload = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const get_environment_js_1 = require("./get-environment.js");
|
|
6
|
+
const prefetch_state_js_1 = require("./prefetch-state.js");
|
|
7
7
|
const usePreload = (src) => {
|
|
8
8
|
var _a;
|
|
9
|
-
const preloads = (0, react_1.useContext)(
|
|
9
|
+
const preloads = (0, react_1.useContext)(prefetch_state_js_1.PreloadContext);
|
|
10
10
|
return (_a = preloads[src]) !== null && _a !== void 0 ? _a : src;
|
|
11
11
|
};
|
|
12
12
|
exports.usePreload = usePreload;
|
|
@@ -26,7 +26,7 @@ const blobToBase64 = function (blob) {
|
|
|
26
26
|
const prefetch = (src, options) => {
|
|
27
27
|
var _a;
|
|
28
28
|
const method = (_a = options === null || options === void 0 ? void 0 : options.method) !== null && _a !== void 0 ? _a : 'blob-url';
|
|
29
|
-
if ((0,
|
|
29
|
+
if ((0, get_environment_js_1.getRemotionEnvironment)() === 'rendering') {
|
|
30
30
|
return {
|
|
31
31
|
free: () => undefined,
|
|
32
32
|
waitUntilDone: () => Promise.resolve(src),
|
|
@@ -69,7 +69,7 @@ const prefetch = (src, options) => {
|
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
objectUrl = url;
|
|
72
|
-
(0,
|
|
72
|
+
(0, prefetch_state_js_1.setPreloads)((p) => ({
|
|
73
73
|
...p,
|
|
74
74
|
[src]: objectUrl,
|
|
75
75
|
}));
|
|
@@ -84,7 +84,7 @@ const prefetch = (src, options) => {
|
|
|
84
84
|
if (method === 'blob-url') {
|
|
85
85
|
URL.revokeObjectURL(objectUrl);
|
|
86
86
|
}
|
|
87
|
-
(0,
|
|
87
|
+
(0, prefetch_state_js_1.setPreloads)((p) => {
|
|
88
88
|
const copy = { ...p };
|
|
89
89
|
delete copy[src];
|
|
90
90
|
return copy;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import type { LayoutAndStyle, SequenceProps } from '../Sequence';
|
|
2
|
+
import type { LayoutAndStyle, SequenceProps } from '../Sequence.js';
|
|
3
3
|
declare type SeriesSequenceProps = PropsWithChildren<{
|
|
4
4
|
durationInFrames: number;
|
|
5
5
|
offset?: number;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Series = 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
|
|
6
|
+
const Sequence_js_1 = require("../Sequence.js");
|
|
7
|
+
const validate_duration_in_frames_js_1 = require("../validation/validate-duration-in-frames.js");
|
|
8
|
+
const flatten_children_js_1 = require("./flatten-children.js");
|
|
9
9
|
const SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
|
|
10
10
|
// Discard ref
|
|
11
11
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
@@ -15,7 +15,7 @@ const SeriesSequence = (0, react_1.forwardRef)(SeriesSequenceRefForwardingFuncti
|
|
|
15
15
|
const Series = ({ children }) => {
|
|
16
16
|
const childrenValue = (0, react_1.useMemo)(() => {
|
|
17
17
|
let startFrame = 0;
|
|
18
|
-
return react_1.Children.map((0,
|
|
18
|
+
return react_1.Children.map((0, flatten_children_js_1.flattenChildren)(children), (child, i) => {
|
|
19
19
|
var _a;
|
|
20
20
|
const castedChild = child;
|
|
21
21
|
if (typeof castedChild === 'string') {
|
|
@@ -34,7 +34,7 @@ const Series = ({ children }) => {
|
|
|
34
34
|
}
|
|
35
35
|
const durationInFramesProp = castedChild.props.durationInFrames;
|
|
36
36
|
const { durationInFrames, children: _children, ...passedProps } = castedChild.props;
|
|
37
|
-
(0,
|
|
37
|
+
(0, validate_duration_in_frames_js_1.validateDurationInFrames)(durationInFramesProp, `of a <Series.Sequence /> component`);
|
|
38
38
|
const offset = (_a = castedChild.props.offset) !== null && _a !== void 0 ? _a : 0;
|
|
39
39
|
if (Number.isNaN(offset)) {
|
|
40
40
|
throw new TypeError(`The "offset" property of a <Series.Sequence /> must not be NaN, but got NaN (${debugInfo}).`);
|
|
@@ -47,7 +47,7 @@ const Series = ({ children }) => {
|
|
|
47
47
|
}
|
|
48
48
|
const currentStartFrame = startFrame + offset;
|
|
49
49
|
startFrame += durationInFramesProp + offset;
|
|
50
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(Sequence_js_1.Sequence, { from: currentStartFrame, durationInFrames: durationInFramesProp, ...passedProps, ref: castedChild.ref, children: child }));
|
|
51
51
|
});
|
|
52
52
|
}, [children]);
|
|
53
53
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setupEnvVariables = exports.ENV_VARIABLES_ENV_NAME = void 0;
|
|
4
|
-
const
|
|
4
|
+
const get_environment_js_1 = require("./get-environment.js");
|
|
5
5
|
exports.ENV_VARIABLES_ENV_NAME = 'ENV_VARIABLES';
|
|
6
6
|
const getEnvVariables = () => {
|
|
7
|
-
if ((0,
|
|
7
|
+
if ((0, get_environment_js_1.getRemotionEnvironment)() === 'rendering') {
|
|
8
8
|
const param = window.remotion_envVariables;
|
|
9
9
|
if (!param) {
|
|
10
10
|
return {};
|
|
11
11
|
}
|
|
12
12
|
return { ...JSON.parse(param), NODE_ENV: process.env.NODE_ENV };
|
|
13
13
|
}
|
|
14
|
-
if ((0,
|
|
14
|
+
if ((0, get_environment_js_1.getRemotionEnvironment)() === 'preview') {
|
|
15
15
|
// Webpack will convert this to an object at compile time.
|
|
16
16
|
// Don't convert this syntax to a computed property.
|
|
17
17
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SpringConfig } from './spring-utils';
|
|
1
|
+
import type { SpringConfig } from './spring-utils.js';
|
|
2
2
|
/**
|
|
3
3
|
* Calculates a position based on physical parameters, start and end value, and time.
|
|
4
4
|
* @link https://www.remotion.dev/docs/spring
|
|
@@ -23,5 +23,5 @@ export declare function spring({ frame, fps, config, from, to, durationInFrames,
|
|
|
23
23
|
durationInFrames?: number;
|
|
24
24
|
durationRestThreshold?: number;
|
|
25
25
|
}): number;
|
|
26
|
-
export { measureSpring } from './measure-spring';
|
|
27
|
-
export { SpringConfig } from './spring-utils';
|
|
26
|
+
export { measureSpring } from './measure-spring.js';
|
|
27
|
+
export { SpringConfig } from './spring-utils.js';
|