@remotion/cli 4.0.0-prefetch.10 → 4.0.0-prefetch.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +7 -7
- package/dist/ansi/ansi-diff.d.ts +0 -0
- package/dist/ansi/ansi-diff.js +0 -0
- package/dist/ansi/ansi-regex.d.ts +0 -0
- package/dist/ansi/ansi-regex.js +0 -0
- package/dist/ansi/ansi-split.d.ts +0 -0
- package/dist/ansi/ansi-split.js +0 -0
- package/dist/benchmark.d.ts +1 -0
- package/dist/benchmark.js +180 -0
- package/dist/chalk/index.d.ts +0 -0
- package/dist/chalk/index.js +0 -0
- package/dist/check-version.d.ts +0 -0
- package/dist/check-version.js +0 -0
- package/dist/code-frame.d.ts +0 -0
- package/dist/code-frame.js +0 -0
- package/dist/compositions.d.ts +0 -0
- package/dist/compositions.js +2 -1
- package/dist/config/bitrate.d.ts +4 -0
- package/dist/config/bitrate.js +21 -0
- package/dist/config/browser-executable.d.ts +0 -0
- package/dist/config/browser-executable.js +0 -0
- package/dist/config/browser.d.ts +0 -0
- package/dist/config/browser.js +0 -0
- package/dist/config/chromium-flags.d.ts +0 -0
- package/dist/config/chromium-flags.js +0 -0
- package/dist/config/codec.d.ts +0 -0
- package/dist/config/codec.js +0 -0
- package/dist/config/concurrency.d.ts +0 -0
- package/dist/config/concurrency.js +0 -0
- package/dist/config/crf.d.ts +1 -2
- package/dist/config/crf.js +1 -9
- package/dist/config/enforce-audio-track.d.ts +0 -0
- package/dist/config/enforce-audio-track.js +0 -0
- package/dist/config/env-file.d.ts +0 -0
- package/dist/config/env-file.js +0 -0
- package/dist/config/every-nth-frame.d.ts +0 -0
- package/dist/config/every-nth-frame.js +0 -0
- package/dist/config/ffmpeg-executable.d.ts +0 -0
- package/dist/config/ffmpeg-executable.js +0 -0
- package/dist/config/ffmpeg-override.d.ts +3 -0
- package/dist/config/ffmpeg-override.js +12 -0
- package/dist/config/frame-range.d.ts +0 -0
- package/dist/config/frame-range.js +0 -0
- package/dist/config/image-format.d.ts +0 -0
- package/dist/config/image-format.js +8 -1
- package/dist/config/image-sequence.d.ts +0 -0
- package/dist/config/image-sequence.js +0 -0
- package/dist/config/index.d.ts +7 -2
- package/dist/config/index.js +11 -4
- package/dist/config/keyboard-shortcuts.d.ts +0 -0
- package/dist/config/keyboard-shortcuts.js +0 -0
- package/dist/config/log.d.ts +0 -0
- package/dist/config/log.js +0 -0
- package/dist/config/max-timeline-tracks.d.ts +0 -0
- package/dist/config/max-timeline-tracks.js +0 -0
- package/dist/config/muted.d.ts +0 -0
- package/dist/config/muted.js +0 -0
- package/dist/config/number-of-gif-loops.d.ts +0 -0
- package/dist/config/number-of-gif-loops.js +0 -0
- package/dist/config/output-location.d.ts +0 -0
- package/dist/config/output-location.js +0 -0
- package/dist/config/override-webpack.d.ts +0 -0
- package/dist/config/override-webpack.js +0 -0
- package/dist/config/overwrite.d.ts +3 -1
- package/dist/config/overwrite.js +2 -3
- package/dist/config/pixel-format.d.ts +0 -0
- package/dist/config/pixel-format.js +0 -0
- package/dist/config/preview-server.d.ts +0 -0
- package/dist/config/preview-server.js +0 -0
- package/dist/config/prores-profile.d.ts +0 -0
- package/dist/config/prores-profile.js +0 -0
- package/dist/config/public-dir.d.ts +0 -0
- package/dist/config/public-dir.js +0 -0
- package/dist/config/quality.d.ts +0 -0
- package/dist/config/quality.js +0 -0
- package/dist/config/scale.d.ts +0 -0
- package/dist/config/scale.js +0 -0
- package/dist/config/still-frame.d.ts +0 -0
- package/dist/config/still-frame.js +0 -0
- package/dist/config/timeout.d.ts +0 -0
- package/dist/config/timeout.js +0 -0
- package/dist/config/webpack-caching.d.ts +0 -0
- package/dist/config/webpack-caching.js +0 -0
- package/dist/determine-image-format.d.ts +11 -0
- package/dist/determine-image-format.js +48 -0
- package/dist/download-progress.d.ts +0 -0
- package/dist/download-progress.js +0 -0
- package/dist/editor/components/AudioWaveform.d.ts +0 -0
- package/dist/editor/components/AudioWaveform.js +0 -0
- package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
- package/dist/editor/components/AudioWaveformBar.js +0 -0
- package/dist/editor/components/Canvas.d.ts +0 -0
- package/dist/editor/components/Canvas.js +6 -2
- package/dist/editor/components/CheckboardToggle.d.ts +0 -0
- package/dist/editor/components/CheckboardToggle.js +0 -0
- package/dist/editor/components/ClipboardIcon.d.ts +0 -0
- package/dist/editor/components/ClipboardIcon.js +0 -0
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -0
- package/dist/editor/components/CollapsedCompositionSelector.js +0 -0
- package/dist/editor/components/CompositionSelector.d.ts +0 -0
- package/dist/editor/components/CompositionSelector.js +0 -0
- package/dist/editor/components/CompositionSelectorItem.d.ts +0 -0
- package/dist/editor/components/CompositionSelectorItem.js +0 -0
- package/dist/editor/components/ControlButton.d.ts +0 -0
- package/dist/editor/components/ControlButton.js +0 -0
- package/dist/editor/components/CopyButton.d.ts +0 -0
- package/dist/editor/components/CopyButton.js +0 -0
- package/dist/editor/components/CurrentComposition.d.ts +0 -0
- package/dist/editor/components/CurrentComposition.js +0 -0
- package/dist/editor/components/Editor.d.ts +0 -0
- package/dist/editor/components/Editor.js +0 -0
- package/dist/editor/components/EditorContent.d.ts +0 -0
- package/dist/editor/components/EditorContent.js +0 -0
- package/dist/editor/components/EditorContexts.d.ts +0 -0
- package/dist/editor/components/EditorContexts.js +0 -0
- package/dist/editor/components/FpsCounter.d.ts +0 -0
- package/dist/editor/components/FpsCounter.js +0 -0
- package/dist/editor/components/FramePersistor.d.ts +0 -0
- package/dist/editor/components/FramePersistor.js +0 -0
- package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
- package/dist/editor/components/GlobalKeybindings.js +0 -0
- package/dist/editor/components/InitialCompositionLoader.d.ts +0 -0
- package/dist/editor/components/InitialCompositionLoader.js +0 -0
- package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -0
- package/dist/editor/components/KeyboardShortcutsModal.js +0 -0
- package/dist/editor/components/LoopToggle.d.ts +0 -0
- package/dist/editor/components/LoopToggle.js +0 -0
- package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
- package/dist/editor/components/Menu/MenuDivider.js +0 -0
- package/dist/editor/components/Menu/MenuItem.d.ts +0 -0
- package/dist/editor/components/Menu/MenuItem.js +0 -0
- package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
- package/dist/editor/components/Menu/MenuSubItem.js +0 -0
- package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
- package/dist/editor/components/Menu/SubMenu.js +0 -0
- package/dist/editor/components/Menu/portals.d.ts +0 -0
- package/dist/editor/components/Menu/portals.js +0 -0
- package/dist/editor/components/Menu/styles.d.ts +0 -0
- package/dist/editor/components/Menu/styles.js +0 -0
- package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
- package/dist/editor/components/MenuBuildIndicator.js +0 -0
- package/dist/editor/components/MenuToolbar.d.ts +0 -0
- package/dist/editor/components/MenuToolbar.js +0 -0
- package/dist/editor/components/ModalContainer.d.ts +0 -0
- package/dist/editor/components/ModalContainer.js +0 -0
- package/dist/editor/components/ModalHeader.d.ts +0 -0
- package/dist/editor/components/ModalHeader.js +0 -0
- package/dist/editor/components/MuteToggle.d.ts +0 -0
- package/dist/editor/components/MuteToggle.js +0 -0
- package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
- package/dist/editor/components/NewComposition/CancelButton.js +0 -0
- package/dist/editor/components/NewComposition/ComboBox.d.ts +0 -0
- package/dist/editor/components/NewComposition/ComboBox.js +0 -0
- package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
- package/dist/editor/components/NewComposition/CopyHint.js +0 -0
- package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -0
- package/dist/editor/components/NewComposition/InputDragger.js +0 -0
- package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
- package/dist/editor/components/NewComposition/MenuContent.js +0 -0
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.js +0 -0
- package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewComposition.js +0 -0
- package/dist/editor/components/NewComposition/RemInput.d.ts +0 -0
- package/dist/editor/components/NewComposition/RemInput.js +1 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +0 -0
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
- package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
- package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
- package/dist/editor/components/NoRegisterRoot.js +0 -0
- package/dist/editor/components/Notifications/ColorDot.d.ts +0 -0
- package/dist/editor/components/Notifications/ColorDot.js +0 -0
- package/dist/editor/components/Notifications/Notification.d.ts +0 -0
- package/dist/editor/components/Notifications/Notification.js +0 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +1 -1
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +0 -0
- package/dist/editor/components/PlayPause.d.ts +0 -0
- package/dist/editor/components/PlayPause.js +0 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +0 -0
- package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
- package/dist/editor/components/PlaybackRatePersistor.js +0 -0
- package/dist/editor/components/PlaybackRateSelector.d.ts +0 -0
- package/dist/editor/components/PlaybackRateSelector.js +0 -0
- package/dist/editor/components/Preview.d.ts +0 -0
- package/dist/editor/components/Preview.js +0 -0
- package/dist/editor/components/PreviewToolbar.d.ts +0 -0
- package/dist/editor/components/PreviewToolbar.js +0 -0
- package/dist/editor/components/RichTimelineToggle.d.ts +0 -0
- package/dist/editor/components/RichTimelineToggle.js +0 -0
- package/dist/editor/components/SizeSelector.d.ts +0 -0
- package/dist/editor/components/SizeSelector.js +1 -1
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterContainer.js +0 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterContext.js +0 -0
- package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterElement.js +0 -0
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterHandle.js +0 -0
- package/dist/editor/components/Thumbnail.d.ts +0 -0
- package/dist/editor/components/Thumbnail.js +0 -0
- package/dist/editor/components/TimeValue.d.ts +0 -0
- package/dist/editor/components/TimeValue.js +0 -0
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedIndicator.js +0 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +0 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +0 -0
- package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
- package/dist/editor/components/Timeline/Timeline.js +1 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +0 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.js +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
- package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineList.js +0 -0
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineListItem.js +0 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -0
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +0 -0
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSequence.js +0 -0
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +0 -0
- package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +1 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -0
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineTracks.js +0 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +0 -0
- package/dist/editor/components/Timeline/imperative-state.d.ts +0 -0
- package/dist/editor/components/Timeline/imperative-state.js +0 -0
- package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
- package/dist/editor/components/Timeline/is-collapsed.js +0 -0
- package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
- package/dist/editor/components/Timeline/timeline-refs.js +0 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +0 -0
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -0
- package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +0 -0
- package/dist/editor/components/TimelineInOutToggle.js +1 -1
- package/dist/editor/components/TopPanel.d.ts +0 -0
- package/dist/editor/components/TopPanel.js +0 -0
- package/dist/editor/components/UpdateCheck.d.ts +0 -0
- package/dist/editor/components/UpdateCheck.js +0 -0
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
- package/dist/editor/components/UpdateModal/UpdateModal.js +0 -0
- package/dist/editor/components/ZoomPersistor.d.ts +0 -0
- package/dist/editor/components/ZoomPersistor.js +0 -0
- package/dist/editor/components/layout.d.ts +0 -0
- package/dist/editor/components/layout.js +0 -0
- package/dist/editor/helpers/calculate-timeline.d.ts +0 -0
- package/dist/editor/helpers/calculate-timeline.js +0 -0
- package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
- package/dist/editor/helpers/checkerboard-background.js +0 -0
- package/dist/editor/helpers/colors.d.ts +0 -0
- package/dist/editor/helpers/colors.js +0 -0
- package/dist/editor/helpers/copy-text.d.ts +0 -0
- package/dist/editor/helpers/copy-text.js +0 -0
- package/dist/editor/helpers/create-folder-tree.d.ts +0 -0
- package/dist/editor/helpers/create-folder-tree.js +0 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.js +0 -0
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
- package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-sequence-layout.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
- package/dist/editor/helpers/is-composition-still.d.ts +0 -0
- package/dist/editor/helpers/is-composition-still.js +0 -0
- package/dist/editor/helpers/is-current-selected-still.d.ts +0 -0
- package/dist/editor/helpers/is-current-selected-still.js +0 -0
- package/dist/editor/helpers/noop.d.ts +0 -0
- package/dist/editor/helpers/noop.js +0 -0
- package/dist/editor/helpers/persist-open-folders.d.ts +0 -0
- package/dist/editor/helpers/persist-open-folders.js +0 -0
- package/dist/editor/helpers/pick-color.d.ts +0 -0
- package/dist/editor/helpers/pick-color.js +0 -0
- package/dist/editor/helpers/timeline-layout.d.ts +0 -0
- package/dist/editor/helpers/timeline-layout.js +0 -0
- package/dist/editor/helpers/use-compact-ui.d.ts +0 -0
- package/dist/editor/helpers/use-compact-ui.js +0 -0
- package/dist/editor/helpers/use-keybinding.d.ts +0 -0
- package/dist/editor/helpers/use-keybinding.js +0 -0
- package/dist/editor/helpers/validate-new-comp-data.d.ts +0 -0
- package/dist/editor/helpers/validate-new-comp-data.js +0 -0
- package/dist/editor/icons/Checkmark.d.ts +0 -0
- package/dist/editor/icons/Checkmark.js +0 -0
- package/dist/editor/icons/caret.d.ts +0 -0
- package/dist/editor/icons/caret.js +0 -0
- package/dist/editor/icons/film.d.ts +0 -0
- package/dist/editor/icons/film.js +0 -0
- package/dist/editor/icons/folder.d.ts +0 -0
- package/dist/editor/icons/folder.js +0 -0
- package/dist/editor/icons/jump-to-start.d.ts +0 -0
- package/dist/editor/icons/jump-to-start.js +0 -0
- package/dist/editor/icons/keys.d.ts +0 -0
- package/dist/editor/icons/keys.js +0 -0
- package/dist/editor/icons/lock.d.ts +0 -0
- package/dist/editor/icons/lock.js +0 -0
- package/dist/editor/icons/media-volume.d.ts +0 -0
- package/dist/editor/icons/media-volume.js +0 -0
- package/dist/editor/icons/minus.d.ts +0 -0
- package/dist/editor/icons/minus.js +0 -0
- package/dist/editor/icons/pause.d.ts +0 -0
- package/dist/editor/icons/pause.js +0 -0
- package/dist/editor/icons/play.d.ts +0 -0
- package/dist/editor/icons/play.js +0 -0
- package/dist/editor/icons/plus.d.ts +0 -0
- package/dist/editor/icons/plus.js +0 -0
- package/dist/editor/icons/step-back.d.ts +0 -0
- package/dist/editor/icons/step-back.js +0 -0
- package/dist/editor/icons/step-forward.d.ts +0 -0
- package/dist/editor/icons/step-forward.js +0 -0
- package/dist/editor/icons/still.d.ts +0 -0
- package/dist/editor/icons/still.js +0 -0
- package/dist/editor/icons/timeline.d.ts +0 -0
- package/dist/editor/icons/timeline.js +0 -0
- package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
- package/dist/editor/icons/timelineInOutPointer.js +0 -0
- package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
- package/dist/editor/state/aspect-ratio-locked.js +0 -0
- package/dist/editor/state/checkerboard.d.ts +0 -0
- package/dist/editor/state/checkerboard.js +0 -0
- package/dist/editor/state/folders.d.ts +0 -0
- package/dist/editor/state/folders.js +0 -0
- package/dist/editor/state/highest-z-index.d.ts +0 -0
- package/dist/editor/state/highest-z-index.js +0 -0
- package/dist/editor/state/in-out.d.ts +0 -0
- package/dist/editor/state/in-out.js +0 -0
- package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
- package/dist/editor/state/input-dragger-click-lock.js +0 -0
- package/dist/editor/state/keybindings.d.ts +0 -0
- package/dist/editor/state/keybindings.js +0 -0
- package/dist/editor/state/loop.d.ts +0 -0
- package/dist/editor/state/loop.js +0 -0
- package/dist/editor/state/marks.d.ts +0 -0
- package/dist/editor/state/marks.js +0 -0
- package/dist/editor/state/modals.d.ts +0 -0
- package/dist/editor/state/modals.js +0 -0
- package/dist/editor/state/mute.d.ts +0 -0
- package/dist/editor/state/mute.js +0 -0
- package/dist/editor/state/playbackrate.d.ts +0 -0
- package/dist/editor/state/playbackrate.js +0 -0
- package/dist/editor/state/preview-size.d.ts +0 -0
- package/dist/editor/state/preview-size.js +0 -0
- package/dist/editor/state/render-frame.d.ts +0 -0
- package/dist/editor/state/render-frame.js +0 -0
- package/dist/editor/state/rich-timeline.d.ts +0 -0
- package/dist/editor/state/rich-timeline.js +0 -0
- package/dist/editor/state/sidebar.d.ts +0 -0
- package/dist/editor/state/sidebar.js +0 -0
- package/dist/editor/state/timeline-ref.d.ts +0 -0
- package/dist/editor/state/timeline-ref.js +0 -0
- package/dist/editor/state/timeline-zoom.d.ts +0 -0
- package/dist/editor/state/timeline-zoom.js +0 -0
- package/dist/editor/state/timeline.d.ts +0 -0
- package/dist/editor/state/timeline.js +0 -0
- package/dist/editor/state/z-index.d.ts +0 -0
- package/dist/editor/state/z-index.js +0 -0
- package/dist/event-source-events.d.ts +3 -0
- package/dist/event-source-events.js +0 -0
- package/dist/event-source.d.ts +0 -0
- package/dist/event-source.js +12 -10
- package/dist/find-closest-package-json.d.ts +0 -0
- package/dist/find-closest-package-json.js +0 -0
- package/dist/format-bytes.d.ts +0 -0
- package/dist/format-bytes.js +0 -0
- package/dist/get-cli-options.d.ts +15 -5
- package/dist/get-cli-options.js +40 -40
- package/dist/get-composition-id.d.ts +0 -0
- package/dist/get-composition-id.js +0 -0
- package/dist/get-config-file-name.d.ts +0 -0
- package/dist/get-config-file-name.js +0 -0
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +58 -6
- package/dist/get-filename.d.ts +0 -0
- package/dist/get-filename.js +0 -0
- package/dist/get-final-output-codec.d.ts +9 -5
- package/dist/get-final-output-codec.js +51 -48
- package/dist/get-input-props.d.ts +0 -0
- package/dist/get-input-props.js +0 -0
- package/dist/get-latest-remotion-version.d.ts +0 -0
- package/dist/get-latest-remotion-version.js +0 -0
- package/dist/get-network-address.d.ts +1 -0
- package/dist/get-network-address.js +16 -0
- package/dist/get-render-media-options.d.ts +7 -0
- package/dist/get-render-media-options.js +46 -0
- package/dist/handle-common-errors.d.ts +0 -0
- package/dist/handle-common-errors.js +0 -0
- package/dist/image-formats.d.ts +0 -0
- package/dist/image-formats.js +0 -0
- package/dist/index.d.ts +28 -8
- package/dist/index.js +19 -7
- package/dist/initialize-cli.d.ts +1 -0
- package/dist/{initialize-render-cli.js → initialize-cli.js} +4 -4
- package/dist/is-javascript.d.ts +0 -0
- package/dist/is-javascript.js +0 -0
- package/dist/lambda-command.d.ts +0 -0
- package/dist/lambda-command.js +1 -3
- package/dist/list-of-remotion-packages.d.ts +0 -0
- package/dist/list-of-remotion-packages.js +2 -0
- package/dist/load-config.d.ts +0 -0
- package/dist/load-config.js +0 -0
- package/dist/log.d.ts +0 -0
- package/dist/log.js +0 -0
- package/dist/make-progress-bar.d.ts +0 -0
- package/dist/make-progress-bar.js +0 -0
- package/dist/parse-command-line.d.ts +2 -1
- package/dist/parse-command-line.js +7 -12
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +0 -0
- package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +0 -0
- package/dist/preview-server/dev-middleware/get-paths.js +0 -0
- package/dist/preview-server/dev-middleware/index.d.ts +0 -0
- package/dist/preview-server/dev-middleware/index.js +0 -0
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +0 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +0 -0
- package/dist/preview-server/dev-middleware/middleware.js +0 -0
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/dist/preview-server/dev-middleware/range-parser.js +0 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +0 -0
- package/dist/preview-server/dev-middleware/ready.js +0 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -0
- package/dist/preview-server/dev-middleware/setup-hooks.js +15 -4
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
- package/dist/preview-server/dev-middleware/types.d.ts +0 -0
- package/dist/preview-server/dev-middleware/types.js +0 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
- package/dist/preview-server/error-overlay/entry-basic.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -0
- package/dist/preview-server/get-package-manager.d.ts +1 -1
- package/dist/preview-server/get-package-manager.js +10 -1
- package/dist/preview-server/hot-middleware/client.d.ts +0 -0
- package/dist/preview-server/hot-middleware/client.js +0 -0
- package/dist/preview-server/hot-middleware/index.d.ts +0 -0
- package/dist/preview-server/hot-middleware/index.js +1 -2
- package/dist/preview-server/hot-middleware/process-update.d.ts +0 -0
- package/dist/preview-server/hot-middleware/process-update.js +0 -0
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +0 -0
- package/dist/preview-server/hot-middleware/types.d.ts +0 -0
- package/dist/preview-server/hot-middleware/types.js +0 -0
- package/dist/preview-server/live-events.d.ts +0 -0
- package/dist/preview-server/live-events.js +0 -0
- package/dist/preview-server/project-info.d.ts +0 -0
- package/dist/preview-server/project-info.js +0 -0
- package/dist/preview-server/routes.d.ts +2 -1
- package/dist/preview-server/routes.js +5 -3
- package/dist/preview-server/serve-static.d.ts +0 -0
- package/dist/preview-server/serve-static.js +0 -0
- package/dist/preview-server/start-server.d.ts +1 -1
- package/dist/preview-server/start-server.js +4 -1
- package/dist/preview-server/update-available.d.ts +0 -0
- package/dist/preview-server/update-available.js +2 -2
- package/dist/preview.d.ts +0 -0
- package/dist/preview.js +19 -5
- package/dist/previewEntry.d.ts +0 -0
- package/dist/previewEntry.js +0 -0
- package/dist/print-error.d.ts +0 -0
- package/dist/print-error.js +0 -0
- package/dist/print-help.d.ts +0 -0
- package/dist/print-help.js +14 -3
- package/dist/progress-bar.d.ts +0 -0
- package/dist/progress-bar.js +3 -1
- package/dist/render.d.ts +0 -0
- package/dist/render.js +34 -35
- package/dist/resolve-from.d.ts +0 -0
- package/dist/resolve-from.js +0 -0
- package/dist/setup-cache.d.ts +0 -0
- package/dist/setup-cache.js +12 -8
- package/dist/step.d.ts +0 -0
- package/dist/step.js +0 -0
- package/dist/still.d.ts +0 -0
- package/dist/still.js +15 -25
- package/dist/truthy.d.ts +0 -0
- package/dist/truthy.js +0 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +2 -2
- package/dist/user-passed-output-location.d.ts +0 -0
- package/dist/user-passed-output-location.js +0 -0
- package/dist/validate-ffmpeg-version.d.ts +0 -0
- package/dist/validate-ffmpeg-version.js +0 -0
- package/dist/versions.d.ts +0 -0
- package/dist/versions.js +1 -1
- package/dist/warn-about-ffmpeg-version.d.ts +0 -0
- package/dist/warn-about-ffmpeg-version.js +0 -0
- package/package.json +10 -11
- package/dist/bundle.d.ts +0 -1
- package/dist/bundle.js +0 -32
- package/dist/config/bundle-out-dir.d.ts +0 -2
- package/dist/config/bundle-out-dir.js +0 -12
- package/dist/config/get-public-path.d.ts +0 -2
- package/dist/config/get-public-path.js +0 -12
- package/dist/editor/components/Button.d.ts +0 -4
- package/dist/editor/components/Button.js +0 -24
- package/dist/editor/components/PreviewZoomControls.d.ts +0 -2
- package/dist/editor/components/PreviewZoomControls.js +0 -67
- package/dist/editor/helpers/normalize-wheel.d.ts +0 -5
- package/dist/editor/helpers/normalize-wheel.js +0 -20
- package/dist/editor/helpers/normalize-zoom.d.ts +0 -1
- package/dist/editor/helpers/normalize-zoom.js +0 -16
- package/dist/initialize-render-cli.d.ts +0 -1
- package/dist/prepare-entry-point.d.ts +0 -12
- package/dist/prepare-entry-point.js +0 -37
- package/vitest.config.ts +0 -9
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,5 +11,5 @@ declare type Range = {
|
|
|
11
11
|
declare type Ranges = Range[] & {
|
|
12
12
|
type?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare function parseRange(size: number, str: string | string[]): -
|
|
14
|
+
export declare function parseRange(size: number, str: string | string[]): -2 | -1 | Ranges;
|
|
15
15
|
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setupHooks = void 0;
|
|
4
4
|
const log_1 = require("../../log");
|
|
5
|
+
const truthy_1 = require("../../truthy");
|
|
5
6
|
const is_color_supported_1 = require("./is-color-supported");
|
|
6
7
|
function setupHooks(context) {
|
|
7
8
|
function invalid() {
|
|
@@ -21,13 +22,23 @@ function setupHooks(context) {
|
|
|
21
22
|
}
|
|
22
23
|
logger.log('Compilation finished');
|
|
23
24
|
const statsOptions = {
|
|
24
|
-
preset: '
|
|
25
|
+
preset: 'errors-warnings',
|
|
25
26
|
colors: is_color_supported_1.isColorSupported,
|
|
26
27
|
};
|
|
27
28
|
const printedStats = stats.toString(statsOptions);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const lines = printedStats
|
|
30
|
+
.split('\n')
|
|
31
|
+
.map((a) => a.trimEnd())
|
|
32
|
+
.filter(truthy_1.truthy)
|
|
33
|
+
.map((a) => {
|
|
34
|
+
if (a.startsWith('webpack compiled')) {
|
|
35
|
+
return `Built in ${stats.endTime - stats.startTime}ms`;
|
|
36
|
+
}
|
|
37
|
+
return a;
|
|
38
|
+
})
|
|
39
|
+
.join('\n');
|
|
40
|
+
if (lines) {
|
|
41
|
+
log_1.Log.info(lines);
|
|
31
42
|
}
|
|
32
43
|
context.callbacks = [];
|
|
33
44
|
callbacks.forEach((callback) => {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,5 +6,5 @@ declare type LockfilePath = {
|
|
|
6
6
|
startCommand: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const lockFilePaths: LockfilePath[];
|
|
9
|
-
export declare const getPackageManager: (remotionRoot: string) => LockfilePath | 'unknown';
|
|
9
|
+
export declare const getPackageManager: (remotionRoot: string, packageManager: string | undefined) => LockfilePath | 'unknown';
|
|
10
10
|
export {};
|
|
@@ -26,7 +26,16 @@ exports.lockFilePaths = [
|
|
|
26
26
|
startCommand: 'pnpm start',
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
|
-
const getPackageManager = (remotionRoot) => {
|
|
29
|
+
const getPackageManager = (remotionRoot, packageManager) => {
|
|
30
|
+
if (packageManager) {
|
|
31
|
+
const manager = exports.lockFilePaths.find((p) => p.manager === packageManager);
|
|
32
|
+
if (!manager) {
|
|
33
|
+
throw new Error(`The package manager ${packageManager} is not supported. Supported package managers are ${exports.lockFilePaths
|
|
34
|
+
.map((p) => p.manager)
|
|
35
|
+
.join(', ')}`);
|
|
36
|
+
}
|
|
37
|
+
return manager;
|
|
38
|
+
}
|
|
30
39
|
const existingPkgManagers = exports.lockFilePaths.filter((p) => fs_1.default.existsSync(path_1.default.join(remotionRoot, p.path)));
|
|
31
40
|
if (existingPkgManagers.length === 0) {
|
|
32
41
|
return 'unknown';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -24,7 +24,7 @@ const webpackHotMiddleware = (compiler) => {
|
|
|
24
24
|
compiler.hooks.done.tap('remotion', onDone);
|
|
25
25
|
function onInvalid() {
|
|
26
26
|
latestStats = null;
|
|
27
|
-
log_1.Log.info('
|
|
27
|
+
log_1.Log.info('Building...');
|
|
28
28
|
eventStream === null || eventStream === void 0 ? void 0 : eventStream.publish({
|
|
29
29
|
action: 'building',
|
|
30
30
|
});
|
|
@@ -114,7 +114,6 @@ function publishStats(action, statsResult, eventStream) {
|
|
|
114
114
|
if (bundles.length === 1 && !name && statsResult.compilation) {
|
|
115
115
|
name = statsResult.compilation.name || '';
|
|
116
116
|
}
|
|
117
|
-
log_1.Log.info(`webpack built in ${_stats.time}ms`);
|
|
118
117
|
eventStream === null || eventStream === void 0 ? void 0 : eventStream.publish({
|
|
119
118
|
name,
|
|
120
119
|
action,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
2
2
|
import type { LiveEventsServer } from './live-events';
|
|
3
|
-
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, remotionRoot, userPassedPublicDir, }: {
|
|
3
|
+
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, userPassedPublicDir, }: {
|
|
4
4
|
hash: string;
|
|
5
5
|
hashPrefix: string;
|
|
6
6
|
request: IncomingMessage;
|
|
7
7
|
response: ServerResponse;
|
|
8
8
|
liveEventsServer: LiveEventsServer;
|
|
9
9
|
getCurrentInputProps: () => object;
|
|
10
|
+
getEnvVariables: () => Record<string, string>;
|
|
10
11
|
remotionRoot: string;
|
|
11
12
|
userPassedPublicDir: string | null;
|
|
12
13
|
}) => void | Promise<void>;
|
|
@@ -25,16 +25,17 @@ const static404 = (response) => {
|
|
|
25
25
|
response.writeHead(404);
|
|
26
26
|
response.end('The static/ prefix has been changed, this URL is no longer valid.');
|
|
27
27
|
};
|
|
28
|
-
const handleFallback = async ({ remotionRoot, hash, response, getCurrentInputProps, }) => {
|
|
28
|
+
const handleFallback = async ({ remotionRoot, hash, response, getCurrentInputProps, getEnvVariables, }) => {
|
|
29
29
|
const [edit] = await editorGuess;
|
|
30
30
|
const displayName = (0, open_in_editor_1.getDisplayNameForEditor)(edit ? edit.command : null);
|
|
31
31
|
response.setHeader('content-type', 'text/html');
|
|
32
32
|
response.writeHead(200);
|
|
33
|
-
const packageManager = (0, get_package_manager_1.getPackageManager)(remotionRoot);
|
|
33
|
+
const packageManager = (0, get_package_manager_1.getPackageManager)(remotionRoot, undefined);
|
|
34
34
|
response.end(bundler_1.BundlerInternals.indexHtml({
|
|
35
35
|
staticHash: hash,
|
|
36
36
|
baseDir: '/',
|
|
37
37
|
editorName: displayName,
|
|
38
|
+
envVariables: getEnvVariables(),
|
|
38
39
|
inputProps: getCurrentInputProps(),
|
|
39
40
|
remotionRoot,
|
|
40
41
|
previewServerCommand: packageManager === 'unknown' ? null : packageManager.startCommand,
|
|
@@ -117,7 +118,7 @@ const handleFavicon = (_, response) => {
|
|
|
117
118
|
const readStream = (0, fs_1.createReadStream)(filePath);
|
|
118
119
|
readStream.pipe(response);
|
|
119
120
|
};
|
|
120
|
-
const handleRoutes = ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, remotionRoot, userPassedPublicDir, }) => {
|
|
121
|
+
const handleRoutes = ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, userPassedPublicDir, }) => {
|
|
121
122
|
const url = new URL(request.url, 'http://localhost');
|
|
122
123
|
if (url.pathname === '/api/update') {
|
|
123
124
|
return handleUpdate(remotionRoot, request, response);
|
|
@@ -156,6 +157,7 @@ const handleRoutes = ({ hash, hashPrefix, request, response, liveEventsServer, g
|
|
|
156
157
|
hash,
|
|
157
158
|
response,
|
|
158
159
|
getCurrentInputProps,
|
|
160
|
+
getEnvVariables,
|
|
159
161
|
});
|
|
160
162
|
};
|
|
161
163
|
exports.handleRoutes = handleRoutes;
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import type { LiveEventsServer } from './live-events';
|
|
|
3
3
|
export declare const startServer: (entry: string, userDefinedComponent: string, options: {
|
|
4
4
|
webpackOverride: WebpackOverrideFn;
|
|
5
5
|
getCurrentInputProps: () => object;
|
|
6
|
-
|
|
6
|
+
getEnvVariables: () => Record<string, string>;
|
|
7
7
|
port: number | null;
|
|
8
8
|
maxTimelineTracks?: number;
|
|
9
9
|
remotionRoot: string;
|
|
@@ -12,6 +12,7 @@ const http_1 = __importDefault(require("http"));
|
|
|
12
12
|
const os_1 = __importDefault(require("os"));
|
|
13
13
|
const path_1 = __importDefault(require("path"));
|
|
14
14
|
const config_1 = require("../config");
|
|
15
|
+
const log_1 = require("../log");
|
|
15
16
|
const dev_middleware_1 = require("./dev-middleware");
|
|
16
17
|
const hot_middleware_1 = require("./hot-middleware");
|
|
17
18
|
const live_events_1 = require("./live-events");
|
|
@@ -25,7 +26,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
|
|
|
25
26
|
outDir: tmpDir,
|
|
26
27
|
environment: 'development',
|
|
27
28
|
webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : config_1.ConfigInternals.getWebpackOverrideFn(),
|
|
28
|
-
envVariables: (_b = options === null || options === void 0 ? void 0 : options.
|
|
29
|
+
envVariables: (_b = options === null || options === void 0 ? void 0 : options.getEnvVariables()) !== null && _b !== void 0 ? _b : {},
|
|
29
30
|
maxTimelineTracks: (_c = options === null || options === void 0 ? void 0 : options.maxTimelineTracks) !== null && _c !== void 0 ? _c : 15,
|
|
30
31
|
entryPoints: [
|
|
31
32
|
require.resolve('./hot-middleware/client'),
|
|
@@ -61,6 +62,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
|
|
|
61
62
|
response,
|
|
62
63
|
liveEventsServer,
|
|
63
64
|
getCurrentInputProps: options.getCurrentInputProps,
|
|
65
|
+
getEnvVariables: options.getEnvVariables,
|
|
64
66
|
remotionRoot: options.remotionRoot,
|
|
65
67
|
userPassedPublicDir: options.userPassedPublicDir,
|
|
66
68
|
});
|
|
@@ -68,6 +70,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
|
|
|
68
70
|
.catch((err) => {
|
|
69
71
|
response.setHeader('content-type', 'application/json');
|
|
70
72
|
response.writeHead(500);
|
|
73
|
+
log_1.Log.error(`Error while calling ${request.url}`, err);
|
|
71
74
|
response.end(JSON.stringify({
|
|
72
75
|
err: err.message,
|
|
73
76
|
}));
|
|
File without changes
|
|
@@ -9,7 +9,7 @@ const get_latest_remotion_version_1 = require("../get-latest-remotion-version");
|
|
|
9
9
|
const get_package_manager_1 = require("./get-package-manager");
|
|
10
10
|
const isUpdateAvailable = async ({ remotionRoot, currentVersion, }) => {
|
|
11
11
|
const latest = await (0, get_latest_remotion_version_1.getLatestRemotionVersion)();
|
|
12
|
-
const pkgManager = (0, get_package_manager_1.getPackageManager)(remotionRoot);
|
|
12
|
+
const pkgManager = (0, get_package_manager_1.getPackageManager)(remotionRoot, undefined);
|
|
13
13
|
return {
|
|
14
14
|
updateAvailable: semver_1.default.lt(currentVersion, latest),
|
|
15
15
|
currentVersion,
|
|
@@ -28,7 +28,7 @@ exports.getRemotionVersion = getRemotionVersion;
|
|
|
28
28
|
const isUpdateAvailableWithTimeout = (remotionRoot) => {
|
|
29
29
|
const version = (0, exports.getRemotionVersion)();
|
|
30
30
|
const threeSecTimeout = new Promise((resolve) => {
|
|
31
|
-
const pkgManager = (0, get_package_manager_1.getPackageManager)(remotionRoot);
|
|
31
|
+
const pkgManager = (0, get_package_manager_1.getPackageManager)(remotionRoot, undefined);
|
|
32
32
|
setTimeout(() => {
|
|
33
33
|
resolve({
|
|
34
34
|
currentVersion: version,
|
package/dist/preview.d.ts
CHANGED
|
File without changes
|
package/dist/preview.js
CHANGED
|
@@ -6,10 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.previewCommand = void 0;
|
|
7
7
|
const better_opn_1 = __importDefault(require("better-opn"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const chalk_1 = require("./chalk");
|
|
9
10
|
const config_1 = require("./config");
|
|
10
11
|
const get_env_1 = require("./get-env");
|
|
11
12
|
const get_input_props_1 = require("./get-input-props");
|
|
12
|
-
const
|
|
13
|
+
const get_network_address_1 = require("./get-network-address");
|
|
13
14
|
const log_1 = require("./log");
|
|
14
15
|
const parse_command_line_1 = require("./parse-command-line");
|
|
15
16
|
const start_server_1 = require("./preview-server/start-server");
|
|
@@ -40,7 +41,6 @@ const previewCommand = async (remotionRoot) => {
|
|
|
40
41
|
}
|
|
41
42
|
const { port: desiredPort } = parse_command_line_1.parsedCli;
|
|
42
43
|
const fullPath = path_1.default.join(process.cwd(), file);
|
|
43
|
-
await (0, initialize_render_cli_1.initializeRenderCli)(remotionRoot, 'preview');
|
|
44
44
|
let inputProps = (0, get_input_props_1.getInputProps)((newProps) => {
|
|
45
45
|
waitForLiveEventsListener().then((listener) => {
|
|
46
46
|
inputProps = newProps;
|
|
@@ -50,10 +50,18 @@ const previewCommand = async (remotionRoot) => {
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
|
|
53
|
+
let envVariables = await (0, get_env_1.getEnvironmentVariables)((newEnvVariables) => {
|
|
54
|
+
waitForLiveEventsListener().then((listener) => {
|
|
55
|
+
envVariables = newEnvVariables;
|
|
56
|
+
listener.sendEventToClient({
|
|
57
|
+
type: 'new-env-variables',
|
|
58
|
+
newEnvVariables,
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
});
|
|
54
62
|
const { port, liveEventsServer } = await (0, start_server_1.startServer)(path_1.default.resolve(__dirname, 'previewEntry.js'), fullPath, {
|
|
55
63
|
getCurrentInputProps: () => inputProps,
|
|
56
|
-
envVariables,
|
|
64
|
+
getEnvVariables: () => envVariables,
|
|
57
65
|
port: desiredPort,
|
|
58
66
|
maxTimelineTracks: config_1.ConfigInternals.getMaxTimelineTracks(),
|
|
59
67
|
remotionRoot,
|
|
@@ -62,7 +70,13 @@ const previewCommand = async (remotionRoot) => {
|
|
|
62
70
|
webpackOverride: config_1.ConfigInternals.getWebpackOverrideFn(),
|
|
63
71
|
});
|
|
64
72
|
setLiveEventsListener(liveEventsServer);
|
|
65
|
-
|
|
73
|
+
const networkAddress = (0, get_network_address_1.getNetworkAddress)();
|
|
74
|
+
if (networkAddress) {
|
|
75
|
+
log_1.Log.info(`Server ready - Local: ${chalk_1.chalk.underline(`http://localhost:${port}`)}, Network: ${chalk_1.chalk.underline(`http://${networkAddress}:${port}`)}`);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
log_1.Log.info(`Running on http://localhost:${port}`);
|
|
79
|
+
}
|
|
66
80
|
(0, better_opn_1.default)(`http://localhost:${port}`);
|
|
67
81
|
await new Promise(noop);
|
|
68
82
|
};
|
package/dist/previewEntry.d.ts
CHANGED
|
File without changes
|
package/dist/previewEntry.js
CHANGED
|
File without changes
|
package/dist/print-error.d.ts
CHANGED
|
File without changes
|
package/dist/print-error.js
CHANGED
|
File without changes
|
package/dist/print-help.d.ts
CHANGED
|
File without changes
|
package/dist/print-help.js
CHANGED
|
@@ -11,7 +11,7 @@ const printFlags = (flags) => {
|
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
const printHelp = () => {
|
|
14
|
-
log_1.Log.info(`@remotion/cli ${packagejson.version} © ${new Date().getFullYear()}
|
|
14
|
+
log_1.Log.info(`@remotion/cli ${packagejson.version} © ${new Date().getFullYear()} The Remotion developers`);
|
|
15
15
|
log_1.Log.info();
|
|
16
16
|
log_1.Log.info('Available commands:');
|
|
17
17
|
log_1.Log.info('');
|
|
@@ -19,7 +19,7 @@ const printHelp = () => {
|
|
|
19
19
|
log_1.Log.info(chalk_1.chalk.gray('Start the preview server.'));
|
|
20
20
|
printFlags([['--props', 'Pass input props as filename or as JSON']]);
|
|
21
21
|
log_1.Log.info();
|
|
22
|
-
log_1.Log.info('remotion render <entry-point.ts> <comp-
|
|
22
|
+
log_1.Log.info('remotion render <entry-point.ts> <comp-id> <output-file.mp4>');
|
|
23
23
|
log_1.Log.info(chalk_1.chalk.gray('Render video, audio or an image sequence.'));
|
|
24
24
|
printFlags([
|
|
25
25
|
['--props', 'Pass input props as filename or as JSON'],
|
|
@@ -31,6 +31,8 @@ const printHelp = () => {
|
|
|
31
31
|
['--overwrite', 'Overwrite if file exists, default true'],
|
|
32
32
|
['--sequence', 'Output as an image sequence'],
|
|
33
33
|
['--codec', 'Video of audio codec'],
|
|
34
|
+
['--audio-bitrate', 'Customize the output audio bitrate'],
|
|
35
|
+
['--video-bitrate', 'Customize the output video bitrate'],
|
|
34
36
|
['--crf', 'FFMPEG CRF value, controls quality, see docs for info'],
|
|
35
37
|
['--browser-executable', 'Custom path for browser executable'],
|
|
36
38
|
['--frames', 'Render a portion or a still of a video'],
|
|
@@ -40,7 +42,7 @@ const printHelp = () => {
|
|
|
40
42
|
['--env-file', 'Specify a location for a dotenv file'],
|
|
41
43
|
]);
|
|
42
44
|
log_1.Log.info();
|
|
43
|
-
log_1.Log.info('remotion still <entry-point.ts> <comp-
|
|
45
|
+
log_1.Log.info('remotion still <entry-point.ts> <comp-id> <still.png>');
|
|
44
46
|
log_1.Log.info(chalk_1.chalk.gray('Render a still frame and save it as an image.'));
|
|
45
47
|
printFlags([
|
|
46
48
|
['--frame', 'Which frame to render (default 0)'],
|
|
@@ -59,11 +61,20 @@ const printHelp = () => {
|
|
|
59
61
|
log_1.Log.info('remotion compositions <index-file.ts>');
|
|
60
62
|
log_1.Log.info(chalk_1.chalk.gray('Prints the available compositions.'));
|
|
61
63
|
log_1.Log.info();
|
|
64
|
+
log_1.Log.info('remotion benchmark <index-file.ts> <list-of-compositions>');
|
|
65
|
+
log_1.Log.info(chalk_1.chalk.gray('Benchmarks rendering a composition. Same options as for render.'));
|
|
66
|
+
log_1.Log.info();
|
|
62
67
|
log_1.Log.info('remotion ' + versions_1.VERSIONS_COMMAND);
|
|
63
68
|
log_1.Log.info(chalk_1.chalk.gray('Prints and validates versions of all Remotion packages.'));
|
|
64
69
|
log_1.Log.info();
|
|
65
70
|
log_1.Log.info('remotion upgrade');
|
|
66
71
|
log_1.Log.info(chalk_1.chalk.gray('Ensure Remotion is on the newest version.'));
|
|
72
|
+
printFlags([
|
|
73
|
+
[
|
|
74
|
+
'--package-manager',
|
|
75
|
+
'Force a specific package manager, defaults to use from lockfile',
|
|
76
|
+
],
|
|
77
|
+
]);
|
|
67
78
|
log_1.Log.info();
|
|
68
79
|
log_1.Log.info('Visit https://www.remotion.dev/docs/cli for browsable CLI documentation.');
|
|
69
80
|
};
|
package/dist/progress-bar.d.ts
CHANGED
|
File without changes
|