@remotion/cli 3.0.29 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chalk/symbols.d.ts +111 -0
- package/dist/chalk/symbols.js +75 -0
- package/dist/chalk/utilities.d.ts +2 -0
- package/dist/chalk/utilities.js +37 -0
- package/dist/compositions.js +10 -4
- package/dist/editor/components/CompositionManager.d.ts +4 -0
- package/dist/editor/components/CompositionManager.js +60 -0
- package/dist/editor/components/CopyButton.js +1 -1
- package/dist/editor/components/Editor.js +2 -1
- package/dist/editor/components/GlobalKeybindings.js +26 -11
- package/dist/editor/components/KeyboardShortcutsModal.js +1 -1
- package/dist/editor/components/Menu/MenuItem.d.ts +1 -1
- package/dist/editor/components/MenuToolbar.js +24 -2
- package/dist/editor/components/NewComposition/MenuContent.js +42 -7
- package/dist/editor/components/Notifications/ColorDot.d.ts +4 -0
- package/dist/editor/components/Notifications/ColorDot.js +22 -0
- package/dist/editor/components/Notifications/Notification.d.ts +8 -0
- package/dist/editor/components/Notifications/Notification.js +31 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +13 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +39 -0
- package/dist/editor/components/PlayPause.js +53 -7
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +18 -3
- package/dist/editor/components/TimelineInOutToggle.js +21 -6
- package/dist/editor/components/UpdateModal/UpdateModal.js +1 -1
- package/dist/editor/helpers/copy-text.d.ts +1 -1
- package/dist/editor/helpers/copy-text.js +5 -4
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +36 -0
- package/dist/editor/helpers/use-keybinding.d.ts +6 -1
- package/dist/editor/helpers/use-keybinding.js +10 -5
- package/dist/editor/state/keybindings.js +3 -1
- package/dist/editor/state/z-index.js +6 -1
- package/dist/get-cli-options.d.ts +3 -1
- package/dist/get-cli-options.js +7 -1
- package/dist/image-formats.js +2 -1
- package/dist/index.d.ts +3 -1
- package/dist/parse-command-line.d.ts +2 -0
- package/dist/parse-command-line.js +9 -3
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +20 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +4 -4
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +5 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +67 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +5 -9
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +20 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +8 -7
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +20 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +4 -2
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +19 -0
- package/dist/preview-server/fast-refresh/helpers.d.ts +39 -0
- package/dist/preview-server/fast-refresh/helpers.js +145 -0
- package/dist/preview-server/fast-refresh/index.d.ts +30 -0
- package/dist/preview-server/fast-refresh/index.js +86 -0
- package/dist/preview-server/fast-refresh/loader.d.ts +35 -0
- package/dist/preview-server/fast-refresh/loader.js +81 -0
- package/dist/preview-server/fast-refresh/runtime.d.ts +35 -0
- package/dist/preview-server/fast-refresh/runtime.js +32 -0
- package/dist/preview-server/static-preview.d.ts +1 -0
- package/dist/preview-server/static-preview.js +40 -0
- package/dist/preview-server/webpack-cache.d.ts +12 -0
- package/dist/preview-server/webpack-cache.js +66 -0
- package/dist/progress-bar.d.ts +3 -1
- package/dist/progress-bar.js +4 -3
- package/dist/render.js +13 -14
- package/dist/setup-cache.d.ts +4 -1
- package/dist/setup-cache.js +1 -1
- package/dist/still.js +1 -1
- package/package.json +10 -12
- package/tsconfig.json +2 -1
- package/vitest.config.ts +9 -0
- package/dist/ansi/ansi-diff.d.ts.map +0 -1
- package/dist/ansi/ansi-diff.js.map +0 -1
- package/dist/ansi/ansi-regex.d.ts.map +0 -1
- package/dist/ansi/ansi-regex.js.map +0 -1
- package/dist/ansi/ansi-split.d.ts.map +0 -1
- package/dist/ansi/ansi-split.js.map +0 -1
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js.map +0 -1
- package/dist/code-frame.d.ts.map +0 -1
- package/dist/code-frame.js.map +0 -1
- package/dist/compositions.d.ts.map +0 -1
- package/dist/compositions.js.map +0 -1
- package/dist/download-progress.d.ts.map +0 -1
- package/dist/download-progress.js.map +0 -1
- package/dist/editor/components/AudioWaveform.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveform.js.map +0 -1
- package/dist/editor/components/AudioWaveformBar.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveformBar.js.map +0 -1
- package/dist/editor/components/Canvas.d.ts.map +0 -1
- package/dist/editor/components/Canvas.js.map +0 -1
- package/dist/editor/components/CheckboardToggle.d.ts.map +0 -1
- package/dist/editor/components/CheckboardToggle.js.map +0 -1
- package/dist/editor/components/ClipboardIcon.d.ts.map +0 -1
- package/dist/editor/components/ClipboardIcon.js.map +0 -1
- package/dist/editor/components/CompositionSelector.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelector.js.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.js.map +0 -1
- package/dist/editor/components/ControlButton.d.ts.map +0 -1
- package/dist/editor/components/ControlButton.js.map +0 -1
- package/dist/editor/components/CopyButton.d.ts.map +0 -1
- package/dist/editor/components/CopyButton.js.map +0 -1
- package/dist/editor/components/CurrentComposition.d.ts.map +0 -1
- package/dist/editor/components/CurrentComposition.js.map +0 -1
- package/dist/editor/components/Editor.d.ts.map +0 -1
- package/dist/editor/components/Editor.js.map +0 -1
- package/dist/editor/components/EditorContent.d.ts.map +0 -1
- package/dist/editor/components/EditorContent.js.map +0 -1
- package/dist/editor/components/FpsCounter.d.ts.map +0 -1
- package/dist/editor/components/FpsCounter.js.map +0 -1
- package/dist/editor/components/FramePersistor.d.ts.map +0 -1
- package/dist/editor/components/FramePersistor.js.map +0 -1
- package/dist/editor/components/GlobalKeybindings.d.ts.map +0 -1
- package/dist/editor/components/GlobalKeybindings.js.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
- package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/editor/components/LoadingIndicator.js.map +0 -1
- package/dist/editor/components/LoopToggle.d.ts.map +0 -1
- package/dist/editor/components/LoopToggle.js.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.js.map +0 -1
- package/dist/editor/components/Menu/MenuItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuItem.js.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.js.map +0 -1
- package/dist/editor/components/Menu/SubMenu.d.ts.map +0 -1
- package/dist/editor/components/Menu/SubMenu.js.map +0 -1
- package/dist/editor/components/Menu/portals.d.ts.map +0 -1
- package/dist/editor/components/Menu/portals.js.map +0 -1
- package/dist/editor/components/Menu/styles.d.ts.map +0 -1
- package/dist/editor/components/Menu/styles.js.map +0 -1
- package/dist/editor/components/MenuToolbar.d.ts.map +0 -1
- package/dist/editor/components/MenuToolbar.js.map +0 -1
- package/dist/editor/components/ModalContainer.d.ts.map +0 -1
- package/dist/editor/components/ModalContainer.js.map +0 -1
- package/dist/editor/components/ModalHeader.d.ts.map +0 -1
- package/dist/editor/components/ModalHeader.js.map +0 -1
- package/dist/editor/components/MuteToggle.d.ts.map +0 -1
- package/dist/editor/components/MuteToggle.js.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.js.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.js.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.js.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.js.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.js.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.js.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.js.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.js.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.js.map +0 -1
- package/dist/editor/components/PlayPause.d.ts.map +0 -1
- package/dist/editor/components/PlayPause.js.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.js.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.js.map +0 -1
- package/dist/editor/components/Preview.d.ts.map +0 -1
- package/dist/editor/components/Preview.js.map +0 -1
- package/dist/editor/components/PreviewToolbar.d.ts.map +0 -1
- package/dist/editor/components/PreviewToolbar.js.map +0 -1
- package/dist/editor/components/RichTimelineToggle.d.ts.map +0 -1
- package/dist/editor/components/RichTimelineToggle.js.map +0 -1
- package/dist/editor/components/SizeSelector.d.ts.map +0 -1
- package/dist/editor/components/SizeSelector.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.js.map +0 -1
- package/dist/editor/components/Thumbnail.d.ts.map +0 -1
- package/dist/editor/components/Thumbnail.js.map +0 -1
- package/dist/editor/components/TimeValue.d.ts.map +0 -1
- package/dist/editor/components/TimeValue.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/Timeline.d.ts.map +0 -1
- package/dist/editor/components/Timeline/Timeline.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.js.map +0 -1
- package/dist/editor/components/Timeline/is-collapsed.d.ts.map +0 -1
- package/dist/editor/components/Timeline/is-collapsed.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.js.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.d.ts.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.js.map +0 -1
- package/dist/editor/components/TopPanel.d.ts.map +0 -1
- package/dist/editor/components/TopPanel.js.map +0 -1
- package/dist/editor/components/UpdateCheck.d.ts.map +0 -1
- package/dist/editor/components/UpdateCheck.js.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js.map +0 -1
- package/dist/editor/components/layout.d.ts.map +0 -1
- package/dist/editor/components/layout.js.map +0 -1
- package/dist/editor/helpers/calculate-timeline.d.ts.map +0 -1
- package/dist/editor/helpers/calculate-timeline.js.map +0 -1
- package/dist/editor/helpers/checkerboard-background.d.ts.map +0 -1
- package/dist/editor/helpers/checkerboard-background.js.map +0 -1
- package/dist/editor/helpers/colors.d.ts.map +0 -1
- package/dist/editor/helpers/colors.js.map +0 -1
- package/dist/editor/helpers/copy-text.d.ts.map +0 -1
- package/dist/editor/helpers/copy-text.js.map +0 -1
- package/dist/editor/helpers/create-folder-tree.d.ts.map +0 -1
- package/dist/editor/helpers/create-folder-tree.js.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.js.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.d.ts.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.js.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js.map +0 -1
- package/dist/editor/helpers/is-composition-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-composition-still.js.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.js.map +0 -1
- package/dist/editor/helpers/noop.d.ts.map +0 -1
- package/dist/editor/helpers/noop.js.map +0 -1
- package/dist/editor/helpers/persist-open-folders.d.ts.map +0 -1
- package/dist/editor/helpers/persist-open-folders.js.map +0 -1
- package/dist/editor/helpers/timeline-layout.d.ts.map +0 -1
- package/dist/editor/helpers/timeline-layout.js.map +0 -1
- package/dist/editor/helpers/use-keybinding.d.ts.map +0 -1
- package/dist/editor/helpers/use-keybinding.js.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.d.ts.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.js.map +0 -1
- package/dist/editor/icons/Checkmark.d.ts.map +0 -1
- package/dist/editor/icons/Checkmark.js.map +0 -1
- package/dist/editor/icons/caret.d.ts.map +0 -1
- package/dist/editor/icons/caret.js.map +0 -1
- package/dist/editor/icons/film.d.ts.map +0 -1
- package/dist/editor/icons/film.js.map +0 -1
- package/dist/editor/icons/folder.d.ts.map +0 -1
- package/dist/editor/icons/folder.js.map +0 -1
- package/dist/editor/icons/keys.d.ts.map +0 -1
- package/dist/editor/icons/keys.js.map +0 -1
- package/dist/editor/icons/lock.d.ts.map +0 -1
- package/dist/editor/icons/lock.js.map +0 -1
- package/dist/editor/icons/media-volume.d.ts.map +0 -1
- package/dist/editor/icons/media-volume.js.map +0 -1
- package/dist/editor/icons/pause.d.ts.map +0 -1
- package/dist/editor/icons/pause.js.map +0 -1
- package/dist/editor/icons/play.d.ts.map +0 -1
- package/dist/editor/icons/play.js.map +0 -1
- package/dist/editor/icons/step-back.d.ts.map +0 -1
- package/dist/editor/icons/step-back.js.map +0 -1
- package/dist/editor/icons/step-forward.d.ts.map +0 -1
- package/dist/editor/icons/step-forward.js.map +0 -1
- package/dist/editor/icons/still.d.ts.map +0 -1
- package/dist/editor/icons/still.js.map +0 -1
- package/dist/editor/icons/timeline.d.ts.map +0 -1
- package/dist/editor/icons/timeline.js.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.js.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.d.ts.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.js.map +0 -1
- package/dist/editor/state/checkerboard.d.ts.map +0 -1
- package/dist/editor/state/checkerboard.js.map +0 -1
- package/dist/editor/state/highest-z-index.d.ts.map +0 -1
- package/dist/editor/state/highest-z-index.js.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.d.ts.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.js.map +0 -1
- package/dist/editor/state/keybindings.d.ts.map +0 -1
- package/dist/editor/state/keybindings.js.map +0 -1
- package/dist/editor/state/loop.d.ts.map +0 -1
- package/dist/editor/state/loop.js.map +0 -1
- package/dist/editor/state/marks.d.ts.map +0 -1
- package/dist/editor/state/marks.js.map +0 -1
- package/dist/editor/state/modals.d.ts.map +0 -1
- package/dist/editor/state/modals.js.map +0 -1
- package/dist/editor/state/mute.d.ts.map +0 -1
- package/dist/editor/state/mute.js.map +0 -1
- package/dist/editor/state/playbackrate.d.ts.map +0 -1
- package/dist/editor/state/playbackrate.js.map +0 -1
- package/dist/editor/state/preview-size.d.ts.map +0 -1
- package/dist/editor/state/preview-size.js.map +0 -1
- package/dist/editor/state/render-frame.d.ts.map +0 -1
- package/dist/editor/state/render-frame.js.map +0 -1
- package/dist/editor/state/rich-timeline.d.ts.map +0 -1
- package/dist/editor/state/rich-timeline.js.map +0 -1
- package/dist/editor/state/timeline-ref.d.ts.map +0 -1
- package/dist/editor/state/timeline-ref.js.map +0 -1
- package/dist/editor/state/timeline.d.ts.map +0 -1
- package/dist/editor/state/timeline.js.map +0 -1
- package/dist/editor/state/z-index.d.ts.map +0 -1
- package/dist/editor/state/z-index.js.map +0 -1
- package/dist/get-cli-options.d.ts.map +0 -1
- package/dist/get-cli-options.js.map +0 -1
- package/dist/get-composition-id.d.ts.map +0 -1
- package/dist/get-composition-id.js.map +0 -1
- package/dist/get-config-file-name.d.ts.map +0 -1
- package/dist/get-config-file-name.js.map +0 -1
- package/dist/get-env.d.ts.map +0 -1
- package/dist/get-env.js.map +0 -1
- package/dist/get-filename.d.ts.map +0 -1
- package/dist/get-filename.js.map +0 -1
- package/dist/get-input-props.d.ts.map +0 -1
- package/dist/get-input-props.js.map +0 -1
- package/dist/handle-common-errors.d.ts.map +0 -1
- package/dist/handle-common-errors.js.map +0 -1
- package/dist/image-formats.d.ts.map +0 -1
- package/dist/image-formats.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/initialize-render-cli.d.ts.map +0 -1
- package/dist/initialize-render-cli.js.map +0 -1
- package/dist/is-javascript.d.ts.map +0 -1
- package/dist/is-javascript.js.map +0 -1
- package/dist/lambda-command.d.ts.map +0 -1
- package/dist/lambda-command.js.map +0 -1
- package/dist/load-config.d.ts.map +0 -1
- package/dist/load-config.js.map +0 -1
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js.map +0 -1
- package/dist/make-progress-bar.d.ts.map +0 -1
- package/dist/make-progress-bar.js.map +0 -1
- package/dist/parse-command-line.d.ts.map +0 -1
- package/dist/parse-command-line.js.map +0 -1
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js.map +0 -1
- package/dist/previewEntry.d.ts.map +0 -1
- package/dist/previewEntry.js.map +0 -1
- package/dist/print-error.d.ts.map +0 -1
- package/dist/print-error.js.map +0 -1
- package/dist/print-help.d.ts.map +0 -1
- package/dist/print-help.js.map +0 -1
- package/dist/progress-bar.d.ts.map +0 -1
- package/dist/progress-bar.js.map +0 -1
- package/dist/render.d.ts.map +0 -1
- package/dist/render.js.map +0 -1
- package/dist/resolve-from.d.ts.map +0 -1
- package/dist/resolve-from.js.map +0 -1
- package/dist/setup-cache.d.ts.map +0 -1
- package/dist/setup-cache.js.map +0 -1
- package/dist/step.d.ts.map +0 -1
- package/dist/step.js.map +0 -1
- package/dist/still.d.ts.map +0 -1
- package/dist/still.js.map +0 -1
- package/dist/upgrade.d.ts.map +0 -1
- package/dist/upgrade.js.map +0 -1
- package/dist/user-passed-output-location.d.ts.map +0 -1
- package/dist/user-passed-output-location.js.map +0 -1
- package/dist/validate-ffmpeg-version.d.ts.map +0 -1
- package/dist/validate-ffmpeg-version.js.map +0 -1
- package/dist/versions.d.ts.map +0 -1
- package/dist/versions.js.map +0 -1
- package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
- package/dist/warn-about-ffmpeg-version.js.map +0 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReactFreshWebpackPlugin = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* The MIT License (MIT)
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
11
|
+
*
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
* in the Software without restriction, including without limitation the rights
|
|
15
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
* furnished to do so, subject to the following conditions:
|
|
18
|
+
*
|
|
19
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
* copies or substantial portions of the Software.
|
|
21
|
+
*
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
* SOFTWARE.
|
|
29
|
+
*/
|
|
30
|
+
// This file is copied from the @vercel/next.js, with removed TS annotations
|
|
31
|
+
// minor tweaks, and removed all webpack v4-related functionality
|
|
32
|
+
//
|
|
33
|
+
// https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/ReactRefreshWebpackPlugin.ts
|
|
34
|
+
const webpack_1 = require("webpack");
|
|
35
|
+
class ReactRefreshRuntimeModule extends webpack_1.RuntimeModule {
|
|
36
|
+
constructor() {
|
|
37
|
+
super('react refresh', 5);
|
|
38
|
+
}
|
|
39
|
+
generate() {
|
|
40
|
+
const { runtimeTemplate } = this.compilation;
|
|
41
|
+
return webpack_1.Template.asString([
|
|
42
|
+
`${webpack_1.RuntimeGlobals.interceptModuleExecution}.push(${runtimeTemplate.basicFunction('options', [
|
|
43
|
+
`const originalFactory = options.factory;`,
|
|
44
|
+
`options.factory = ${runtimeTemplate.basicFunction('moduleObject, moduleExports, webpackRequire', [
|
|
45
|
+
// Legacy CSS implementations will `eval` browser code in a Node.js
|
|
46
|
+
// context to extract CSS. For backwards compatibility, we need to check
|
|
47
|
+
// we're in a browser context before continuing.
|
|
48
|
+
`const hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;`,
|
|
49
|
+
`const cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : () => {};`,
|
|
50
|
+
'try {',
|
|
51
|
+
webpack_1.Template.indent('originalFactory.call(this, moduleObject, moduleExports, webpackRequire);'),
|
|
52
|
+
'} finally {',
|
|
53
|
+
webpack_1.Template.indent(`cleanup();`),
|
|
54
|
+
'}',
|
|
55
|
+
])}`,
|
|
56
|
+
])})`,
|
|
57
|
+
]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
class ReactFreshWebpackPlugin {
|
|
61
|
+
apply(compiler) {
|
|
62
|
+
const webpackMajorVersion = parseInt(webpack_1.version !== null && webpack_1.version !== void 0 ? webpack_1.version : '', 10);
|
|
63
|
+
if (webpackMajorVersion < 5) {
|
|
64
|
+
throw new Error(`ReactFreshWebpackPlugin does not support webpack v${webpackMajorVersion}.`);
|
|
65
|
+
}
|
|
66
|
+
compiler.hooks.compilation.tap(this.constructor.name, (compilation) => {
|
|
67
|
+
compilation.mainTemplate.hooks.localVars.tap(this.constructor.name, (source) => webpack_1.Template.asString([
|
|
68
|
+
source,
|
|
69
|
+
'',
|
|
70
|
+
'// noop fns to prevent runtime errors during initialization',
|
|
71
|
+
'if (typeof self !== "undefined") {',
|
|
72
|
+
webpack_1.Template.indent('self.$RefreshReg$ = function () {};'),
|
|
73
|
+
webpack_1.Template.indent('self.$RefreshSig$ = function () {'),
|
|
74
|
+
webpack_1.Template.indent(webpack_1.Template.indent('return function (type) {')),
|
|
75
|
+
webpack_1.Template.indent(webpack_1.Template.indent(webpack_1.Template.indent('return type;'))),
|
|
76
|
+
webpack_1.Template.indent(webpack_1.Template.indent('};')),
|
|
77
|
+
webpack_1.Template.indent('};'),
|
|
78
|
+
'}',
|
|
79
|
+
]));
|
|
80
|
+
compilation.hooks.additionalTreeRuntimeRequirements.tap(this.constructor.name, (chunk) => {
|
|
81
|
+
compilation.addRuntimeModule(chunk, new ReactRefreshRuntimeModule());
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.ReactFreshWebpackPlugin = ReactFreshWebpackPlugin;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ⚠️ Be careful when refactoring this file!
|
|
3
|
+
* This gets injected into every file of the browser.
|
|
4
|
+
* You cannot have returns, optional chains, inverse the if statement etc.
|
|
5
|
+
* Check the Typescript output in dist/ to see that no extra `var` statements were produced
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The MIT License (MIT)
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
14
|
+
*
|
|
15
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
* in the Software without restriction, including without limitation the rights
|
|
18
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
* furnished to do so, subject to the following conditions:
|
|
21
|
+
*
|
|
22
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
* copies or substantial portions of the Software.
|
|
24
|
+
*
|
|
25
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
* SOFTWARE.
|
|
32
|
+
*/
|
|
33
|
+
import { LoaderDefinition } from 'webpack';
|
|
34
|
+
declare const ReactRefreshLoader: LoaderDefinition;
|
|
35
|
+
export default ReactRefreshLoader;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ⚠️ Be careful when refactoring this file!
|
|
4
|
+
* This gets injected into every file of the browser.
|
|
5
|
+
* You cannot have returns, optional chains, inverse the if statement etc.
|
|
6
|
+
* Check the Typescript output in dist/ to see that no extra `var` statements were produced
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
// This file is copied from the @vercel/next.js, with removed TS annotations
|
|
10
|
+
//
|
|
11
|
+
// https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/loader.ts
|
|
12
|
+
// This function gets unwrapped into global scope, which is why we don't invert
|
|
13
|
+
// if-blocks. Also, you cannot use `return`.
|
|
14
|
+
function RefreshModuleRuntime() {
|
|
15
|
+
// Legacy CSS implementations will `eval` browser code in a Node.js context
|
|
16
|
+
// to extract CSS. For backwards compatibility, we need to check we're in a
|
|
17
|
+
// browser context before continuing.
|
|
18
|
+
if (typeof self !== 'undefined' &&
|
|
19
|
+
// AMP / No-JS mode does not inject these helpers:
|
|
20
|
+
'$RefreshHelpers$' in self) {
|
|
21
|
+
// @ts-expect-error
|
|
22
|
+
// eslint-disable-next-line no-proto
|
|
23
|
+
const currentExports = module.__proto__.exports;
|
|
24
|
+
let prevExports = null;
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
26
|
+
if (module.hot && module.hot.data && module.hot.data.prevExports) {
|
|
27
|
+
prevExports = module.hot.data.prevExports;
|
|
28
|
+
}
|
|
29
|
+
// This cannot happen in MainTemplate because the exports mismatch between
|
|
30
|
+
// templating and execution.
|
|
31
|
+
self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);
|
|
32
|
+
// A module can be accepted automatically based on its exports, e.g. when
|
|
33
|
+
// it is a Refresh Boundary.
|
|
34
|
+
if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {
|
|
35
|
+
// Save the previous exports on update so we can compare the boundary
|
|
36
|
+
// signatures.
|
|
37
|
+
module.hot.dispose((data) => {
|
|
38
|
+
data.prevExports = currentExports;
|
|
39
|
+
});
|
|
40
|
+
// Unconditionally accept an update to this module, we'll check if it's
|
|
41
|
+
// still a Refresh Boundary later.
|
|
42
|
+
module.hot.accept();
|
|
43
|
+
// This field is set when the previous version of this module was a
|
|
44
|
+
// Refresh Boundary, letting us know we need to check for invalidation or
|
|
45
|
+
// enqueue an update.
|
|
46
|
+
if (prevExports !== null) {
|
|
47
|
+
// A boundary can become ineligible if its exports are incompatible
|
|
48
|
+
// with the previous exports.
|
|
49
|
+
//
|
|
50
|
+
// For example, if you add/remove/change exports, we'll want to
|
|
51
|
+
// re-execute the importing modules, and force those components to
|
|
52
|
+
// re-render. Similarly, if you convert a class component to a
|
|
53
|
+
// function, we want to invalidate the boundary.
|
|
54
|
+
if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports)) {
|
|
55
|
+
// @ts-expect-error
|
|
56
|
+
module.hot.invalidate();
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
self.$RefreshHelpers$.scheduleUpdate();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
// Since we just executed the code for the module, it's possible that the
|
|
65
|
+
// new exports made it ineligible for being a boundary.
|
|
66
|
+
// We only care about the case when we were _previously_ a boundary,
|
|
67
|
+
// because we already accepted this update (accidental side effect).
|
|
68
|
+
const isNoLongerABoundary = prevExports !== null;
|
|
69
|
+
if (isNoLongerABoundary) {
|
|
70
|
+
// @ts-expect-error
|
|
71
|
+
module.hot.invalidate();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
let refreshModuleRuntime = RefreshModuleRuntime.toString();
|
|
77
|
+
refreshModuleRuntime = refreshModuleRuntime.slice(refreshModuleRuntime.indexOf('{') + 1, refreshModuleRuntime.lastIndexOf('}'));
|
|
78
|
+
const ReactRefreshLoader = function (source, inputSourceMap) {
|
|
79
|
+
this.callback(null, `${source}\n\n;${refreshModuleRuntime}`, inputSourceMap);
|
|
80
|
+
};
|
|
81
|
+
exports.default = ReactRefreshLoader;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The MIT License (MIT)
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
26
|
+
*/
|
|
27
|
+
declare global {
|
|
28
|
+
interface Window {
|
|
29
|
+
$RefreshReg$: (type: string, id?: string) => void;
|
|
30
|
+
$RefreshSig$: () => (type: string) => unknown;
|
|
31
|
+
$RefreshHelpers$: typeof RefreshHelpers;
|
|
32
|
+
$RefreshInterceptModuleExecution$: (webpackId: unknown) => () => void;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
import RefreshHelpers from './helpers';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
|
|
4
|
+
*/
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const RefreshRuntime = require('react-refresh/runtime');
|
|
10
|
+
const helpers_1 = __importDefault(require("./helpers"));
|
|
11
|
+
// Hook into ReactDOM initialization
|
|
12
|
+
RefreshRuntime.injectIntoGlobalHook(self);
|
|
13
|
+
// noop fns to prevent runtime errors during initialization
|
|
14
|
+
self.$RefreshReg$ = () => undefined;
|
|
15
|
+
self.$RefreshSig$ = () => (type) => type;
|
|
16
|
+
// Register global helpers
|
|
17
|
+
self.$RefreshHelpers$ = helpers_1.default;
|
|
18
|
+
// Register a helper for module execution interception
|
|
19
|
+
self.$RefreshInterceptModuleExecution$ = function (webpackModuleId) {
|
|
20
|
+
const prevRefreshReg = self.$RefreshReg$;
|
|
21
|
+
const prevRefreshSig = self.$RefreshSig$;
|
|
22
|
+
self.$RefreshReg$ = (type, id) => {
|
|
23
|
+
RefreshRuntime.register(type, webpackModuleId + ' ' + id);
|
|
24
|
+
};
|
|
25
|
+
self.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
|
|
26
|
+
// Modeled after `useEffect` cleanup pattern:
|
|
27
|
+
// https://reactjs.org/docs/hooks-effect.html#effects-with-cleanup
|
|
28
|
+
return () => {
|
|
29
|
+
self.$RefreshReg$ = prevRefreshReg;
|
|
30
|
+
self.$RefreshSig$ = prevRefreshSig;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const indexHtml: (staticHash: string, baseDir: string, editorName: string | null) => string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.indexHtml = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const indexHtml = (staticHash, baseDir, editorName) => `
|
|
9
|
+
<!DOCTYPE html>
|
|
10
|
+
<html lang="en">
|
|
11
|
+
<head>
|
|
12
|
+
<meta charset="UTF-8" />
|
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
14
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
15
|
+
<link rel="icon" type="image/png" href="/remotion.png" />
|
|
16
|
+
<title>Remotion Preview</title>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<script>window.remotion_staticBase = "${staticHash}";</script>
|
|
20
|
+
<div id="video-container"></div>
|
|
21
|
+
<div id="explainer-container"></div>
|
|
22
|
+
${editorName
|
|
23
|
+
? `<script>window.remotion_editorName = "${editorName}";</script>`
|
|
24
|
+
: '<script>window.remotion_editorName = null;</script>'}
|
|
25
|
+
<script>window.remotion_projectName = ${JSON.stringify(path_1.default.basename(process.cwd()))};</script>
|
|
26
|
+
<script>window.remotion_cwd = ${JSON.stringify(process.cwd())};</script>
|
|
27
|
+
|
|
28
|
+
<div id="container"></div>
|
|
29
|
+
<div id="menuportal-0"></div>
|
|
30
|
+
<div id="menuportal-1"></div>
|
|
31
|
+
<div id="menuportal-2"></div>
|
|
32
|
+
<div id="menuportal-3"></div>
|
|
33
|
+
<div id="menuportal-4"></div>
|
|
34
|
+
<div id="menuportal-5"></div>
|
|
35
|
+
<div id="remotion-error-overlay"></div>
|
|
36
|
+
<script src="${baseDir}bundle.js"></script>
|
|
37
|
+
</body>
|
|
38
|
+
</html>
|
|
39
|
+
`.trim();
|
|
40
|
+
exports.indexHtml = indexHtml;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare type Environment = 'development' | 'production';
|
|
2
|
+
declare global {
|
|
3
|
+
namespace NodeJS {
|
|
4
|
+
interface ProcessVersions {
|
|
5
|
+
pnp?: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const clearCache: (environment: Environment, inputProps: object | null) => Promise<void>;
|
|
10
|
+
export declare const getWebpackCacheName: (environment: Environment, inputProps: object | null) => string;
|
|
11
|
+
export declare const cacheExists: (environment: Environment, inputProps: object | null) => boolean;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.cacheExists = exports.getWebpackCacheName = exports.clearCache = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const remotion_1 = require("remotion");
|
|
10
|
+
// Inlined from https://github.com/webpack/webpack/blob/4c2ee7a4ddb8db2362ca83b6c4190523387ba7ee/lib/config/defaults.js#L265
|
|
11
|
+
// An algorithm to determine where Webpack will cache the depencies
|
|
12
|
+
const getWebpackCacheDir = () => {
|
|
13
|
+
const cwd = process.cwd();
|
|
14
|
+
let dir = cwd;
|
|
15
|
+
for (;;) {
|
|
16
|
+
try {
|
|
17
|
+
if (fs_1.default.statSync(path_1.default.join(dir, 'package.json')).isFile()) {
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
// eslint-disable-next-line no-empty
|
|
21
|
+
}
|
|
22
|
+
catch (e) { }
|
|
23
|
+
const parent = path_1.default.dirname(dir);
|
|
24
|
+
if (dir === parent) {
|
|
25
|
+
dir = undefined;
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
dir = parent;
|
|
29
|
+
}
|
|
30
|
+
if (!dir) {
|
|
31
|
+
return path_1.default.resolve(cwd, '.cache/webpack');
|
|
32
|
+
}
|
|
33
|
+
if (process.versions.pnp === '1') {
|
|
34
|
+
return path_1.default.resolve(dir, '.pnp/.cache/webpack');
|
|
35
|
+
}
|
|
36
|
+
if (process.versions.pnp === '3') {
|
|
37
|
+
return path_1.default.resolve(dir, '.yarn/.cache/webpack');
|
|
38
|
+
}
|
|
39
|
+
return path_1.default.resolve(dir, 'node_modules/.cache/webpack');
|
|
40
|
+
};
|
|
41
|
+
const remotionCacheLocation = (environment, inputProps) => {
|
|
42
|
+
return path_1.default.join(getWebpackCacheDir(), (0, exports.getWebpackCacheName)(environment, inputProps));
|
|
43
|
+
};
|
|
44
|
+
const clearCache = (environment, inputProps) => {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((_a = fs_1.default.promises.rm) !== null && _a !== void 0 ? _a : fs_1.default.promises.rmdir)(remotionCacheLocation(environment, inputProps), {
|
|
47
|
+
recursive: true,
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
exports.clearCache = clearCache;
|
|
51
|
+
const getWebpackCacheName = (environment, inputProps) => {
|
|
52
|
+
// In development, let's reset the cache when input props
|
|
53
|
+
// are changing, because they are injected using Webpack and if changed,
|
|
54
|
+
// it will get the cached version
|
|
55
|
+
if (environment === 'development') {
|
|
56
|
+
return `remotion-v3-${environment}-${(0, remotion_1.random)(JSON.stringify(inputProps))}`;
|
|
57
|
+
}
|
|
58
|
+
// In production, the cache is independent from input props because
|
|
59
|
+
// they are passed over URL params. Speed is mostly important in production.
|
|
60
|
+
return `remotion-v3-${environment}`;
|
|
61
|
+
};
|
|
62
|
+
exports.getWebpackCacheName = getWebpackCacheName;
|
|
63
|
+
const cacheExists = (environment, inputProps) => {
|
|
64
|
+
return fs_1.default.existsSync(remotionCacheLocation(environment, inputProps));
|
|
65
|
+
};
|
|
66
|
+
exports.cacheExists = cacheExists;
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { StitchingState } from '@remotion/renderer';
|
|
2
|
+
import type { Codec } from 'remotion';
|
|
2
3
|
import type { RenderStep } from './step';
|
|
3
4
|
export declare const createProgressBar: (quiet: boolean) => {
|
|
4
5
|
update: (str: string) => boolean;
|
|
@@ -25,8 +26,9 @@ declare type StitchingProgressInput = {
|
|
|
25
26
|
steps: RenderStep[];
|
|
26
27
|
doneIn: number | null;
|
|
27
28
|
stage: StitchingState;
|
|
29
|
+
codec: Codec;
|
|
28
30
|
};
|
|
29
|
-
export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, }: StitchingProgressInput) => string;
|
|
31
|
+
export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, codec, }: StitchingProgressInput) => string;
|
|
30
32
|
export declare type DownloadProgress = {
|
|
31
33
|
name: string;
|
|
32
34
|
id: number;
|
package/dist/progress-bar.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeRenderingAndStitchingProgress = exports.makeStitchingProgress = exports.makeRenderingProgress = exports.makeBundlingProgress = exports.createOverwriteableCliOutput = exports.createProgressBar = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
4
5
|
const remotion_1 = require("remotion");
|
|
5
6
|
const ansi_diff_1 = require("./ansi/ansi-diff");
|
|
6
7
|
const chalk_1 = require("./chalk");
|
|
@@ -46,14 +47,14 @@ const makeRenderingProgress = ({ frames, totalFrames, steps, concurrency, doneIn
|
|
|
46
47
|
].join(' ');
|
|
47
48
|
};
|
|
48
49
|
exports.makeRenderingProgress = makeRenderingProgress;
|
|
49
|
-
const makeStitchingProgress = ({ frames, totalFrames, steps, doneIn, stage, }) => {
|
|
50
|
+
const makeStitchingProgress = ({ frames, totalFrames, steps, doneIn, stage, codec, }) => {
|
|
50
51
|
const progress = frames / totalFrames;
|
|
51
52
|
return [
|
|
52
53
|
`(${steps.indexOf('stitching') + 1}/${steps.length})`,
|
|
53
54
|
(0, make_progress_bar_1.makeProgressBar)(progress),
|
|
54
|
-
stage === 'muxing'
|
|
55
|
+
stage === 'muxing' && renderer_1.RenderInternals.canUseParallelEncoding(codec)
|
|
55
56
|
? `${doneIn ? 'Muxed' : 'Muxing'} audio`
|
|
56
|
-
: `${doneIn ? 'Encoded' : 'Encoding'} video`,
|
|
57
|
+
: `${doneIn ? 'Encoded' : 'Encoding'} ${codec === 'gif' ? 'GIF' : 'video'}`,
|
|
57
58
|
doneIn === null ? `${frames}/${totalFrames}` : chalk_1.chalk.gray(`${doneIn}ms`),
|
|
58
59
|
].join(' ');
|
|
59
60
|
};
|
package/dist/render.js
CHANGED
|
@@ -31,7 +31,7 @@ const render = async () => {
|
|
|
31
31
|
? file
|
|
32
32
|
: path_1.default.join(process.cwd(), file);
|
|
33
33
|
await (0, initialize_render_cli_1.initializeRenderCli)('sequence');
|
|
34
|
-
const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
|
|
34
|
+
const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
|
|
35
35
|
if (!absoluteOutputFile) {
|
|
36
36
|
throw new Error('assertion error - expected absoluteOutputFile to not be null');
|
|
37
37
|
}
|
|
@@ -52,7 +52,7 @@ const render = async () => {
|
|
|
52
52
|
].filter(remotion_1.Internals.truthy);
|
|
53
53
|
const urlOrBundle = renderer_1.RenderInternals.isServeUrl(fullPath)
|
|
54
54
|
? fullPath
|
|
55
|
-
: await (0, setup_cache_1.bundleOnCli)(fullPath, steps);
|
|
55
|
+
: await (0, setup_cache_1.bundleOnCli)({ fullPath, steps });
|
|
56
56
|
const onDownload = (src) => {
|
|
57
57
|
const id = Math.random();
|
|
58
58
|
const download = {
|
|
@@ -96,7 +96,8 @@ const render = async () => {
|
|
|
96
96
|
: await fs_1.default.promises.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'react-motion-render'));
|
|
97
97
|
log_1.Log.verbose('Output dir', outputDir);
|
|
98
98
|
const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
|
|
99
|
-
|
|
99
|
+
const realFrameRange = renderer_1.RenderInternals.getRealFrameRange(config.durationInFrames, frameRange);
|
|
100
|
+
const totalFrames = renderer_1.RenderInternals.getFramesToRender(realFrameRange, everyNthFrame);
|
|
100
101
|
let encodedFrames = 0;
|
|
101
102
|
let renderedFrames = 0;
|
|
102
103
|
let encodedDoneIn = null;
|
|
@@ -104,13 +105,13 @@ const render = async () => {
|
|
|
104
105
|
let stitchStage = 'encoding';
|
|
105
106
|
const downloads = [];
|
|
106
107
|
const updateRenderProgress = () => {
|
|
107
|
-
if (totalFrames ===
|
|
108
|
+
if (totalFrames.length === 0) {
|
|
108
109
|
throw new Error('totalFrames should not be 0');
|
|
109
110
|
}
|
|
110
111
|
return renderProgress.update((0, progress_bar_1.makeRenderingAndStitchingProgress)({
|
|
111
112
|
rendering: {
|
|
112
113
|
frames: renderedFrames,
|
|
113
|
-
totalFrames,
|
|
114
|
+
totalFrames: totalFrames.length,
|
|
114
115
|
concurrency: renderer_1.RenderInternals.getActualConcurrency(parallelism),
|
|
115
116
|
doneIn: renderedDoneIn,
|
|
116
117
|
steps,
|
|
@@ -122,7 +123,8 @@ const render = async () => {
|
|
|
122
123
|
frames: encodedFrames,
|
|
123
124
|
stage: stitchStage,
|
|
124
125
|
steps,
|
|
125
|
-
totalFrames,
|
|
126
|
+
totalFrames: totalFrames.length,
|
|
127
|
+
codec,
|
|
126
128
|
},
|
|
127
129
|
downloads,
|
|
128
130
|
}));
|
|
@@ -144,10 +146,7 @@ const render = async () => {
|
|
|
144
146
|
renderedFrames = rendered;
|
|
145
147
|
updateRenderProgress();
|
|
146
148
|
},
|
|
147
|
-
onStart: (
|
|
148
|
-
totalFrames = frameCount;
|
|
149
|
-
return updateRenderProgress();
|
|
150
|
-
},
|
|
149
|
+
onStart: () => undefined,
|
|
151
150
|
onDownload: (src) => {
|
|
152
151
|
if (src.startsWith('data:')) {
|
|
153
152
|
log_1.Log.info('\nWriting Data URL to file: ', src.substring(0, 30) + '...');
|
|
@@ -159,6 +158,7 @@ const render = async () => {
|
|
|
159
158
|
outputDir,
|
|
160
159
|
serveUrl: urlOrBundle,
|
|
161
160
|
dumpBrowserLogs: remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose'),
|
|
161
|
+
everyNthFrame,
|
|
162
162
|
envVariables,
|
|
163
163
|
frameRange,
|
|
164
164
|
parallelism,
|
|
@@ -207,13 +207,12 @@ const render = async () => {
|
|
|
207
207
|
serveUrl: urlOrBundle,
|
|
208
208
|
onDownload,
|
|
209
209
|
dumpBrowserLogs: remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose'),
|
|
210
|
-
onStart: ({ frameCount }) => {
|
|
211
|
-
totalFrames = frameCount;
|
|
212
|
-
},
|
|
213
210
|
chromiumOptions,
|
|
214
211
|
timeoutInMilliseconds: remotion_1.Internals.getCurrentPuppeteerTimeout(),
|
|
215
212
|
scale,
|
|
216
213
|
port,
|
|
214
|
+
numberOfGifLoops,
|
|
215
|
+
everyNthFrame,
|
|
217
216
|
});
|
|
218
217
|
log_1.Log.info();
|
|
219
218
|
log_1.Log.info();
|
|
@@ -234,7 +233,7 @@ const render = async () => {
|
|
|
234
233
|
log_1.Log.warn(err);
|
|
235
234
|
log_1.Log.warn('Do you have minimum required Node.js version?');
|
|
236
235
|
}
|
|
237
|
-
log_1.Log.info(chalk_1.chalk.green(
|
|
236
|
+
log_1.Log.info(chalk_1.chalk.green(`\nYour ${codec === 'gif' ? 'GIF' : 'video'} is ready!`));
|
|
238
237
|
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose')) {
|
|
239
238
|
remotion_1.Internals.perf.logPerf();
|
|
240
239
|
}
|
package/dist/setup-cache.d.ts
CHANGED
package/dist/setup-cache.js
CHANGED
|
@@ -6,7 +6,7 @@ const remotion_1 = require("remotion");
|
|
|
6
6
|
const log_1 = require("./log");
|
|
7
7
|
const parse_command_line_1 = require("./parse-command-line");
|
|
8
8
|
const progress_bar_1 = require("./progress-bar");
|
|
9
|
-
const bundleOnCli = async (fullPath, steps) => {
|
|
9
|
+
const bundleOnCli = async ({ fullPath, steps, }) => {
|
|
10
10
|
var _a;
|
|
11
11
|
const shouldCache = remotion_1.Internals.getWebpackCaching();
|
|
12
12
|
const cacheExistedBefore = bundler_1.BundlerInternals.cacheExists('production');
|
package/dist/still.js
CHANGED
|
@@ -62,7 +62,7 @@ const still = async () => {
|
|
|
62
62
|
].filter(remotion_1.Internals.truthy);
|
|
63
63
|
const urlOrBundle = renderer_1.RenderInternals.isServeUrl(fullPath)
|
|
64
64
|
? Promise.resolve(fullPath)
|
|
65
|
-
: await (0, setup_cache_1.bundleOnCli)(fullPath, steps);
|
|
65
|
+
: await (0, setup_cache_1.bundleOnCli)({ fullPath, steps });
|
|
66
66
|
const puppeteerInstance = await browserInstance;
|
|
67
67
|
const comps = await (0, renderer_1.getCompositions)(await urlOrBundle, {
|
|
68
68
|
inputProps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "true",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"lint": "eslint src --ext ts,tsx",
|
|
13
|
-
"test": "
|
|
13
|
+
"test": "vitest --run",
|
|
14
14
|
"build": "tsc -d",
|
|
15
15
|
"watch": "tsc -w"
|
|
16
16
|
},
|
|
@@ -23,17 +23,18 @@
|
|
|
23
23
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/bundler": "3.0
|
|
27
|
-
"@remotion/media-utils": "3.0
|
|
28
|
-
"@remotion/player": "3.0
|
|
29
|
-
"@remotion/renderer": "3.0
|
|
26
|
+
"@remotion/bundler": "3.1.0",
|
|
27
|
+
"@remotion/media-utils": "3.1.0",
|
|
28
|
+
"@remotion/player": "3.1.0",
|
|
29
|
+
"@remotion/renderer": "3.1.0",
|
|
30
30
|
"better-opn": "2.1.1",
|
|
31
31
|
"dotenv": "9.0.2",
|
|
32
32
|
"memfs": "3.4.3",
|
|
33
33
|
"minimist": "1.2.6",
|
|
34
|
-
"remotion": "3.0
|
|
34
|
+
"remotion": "3.1.0",
|
|
35
35
|
"semver": "7.3.5",
|
|
36
|
-
"source-map": "0.6.1"
|
|
36
|
+
"source-map": "0.6.1",
|
|
37
|
+
"vitest": "^0.18.0"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"react": ">=16.8.0",
|
|
@@ -41,7 +42,6 @@
|
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@jonny/eslint-config": "3.0.266",
|
|
44
|
-
"@types/jest": "^27.4.0",
|
|
45
45
|
"@types/minimist": "^1.2.2",
|
|
46
46
|
"@types/node": "^16.7.5",
|
|
47
47
|
"@types/react": "18.0.1",
|
|
@@ -54,12 +54,10 @@
|
|
|
54
54
|
"eslint-plugin-10x": "1.5.2",
|
|
55
55
|
"eslint-plugin-react": "7.29.4",
|
|
56
56
|
"eslint-plugin-react-hooks": "4.4.0",
|
|
57
|
-
"jest": "^27.2.4",
|
|
58
57
|
"prettier": "^2.0.5",
|
|
59
58
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
60
59
|
"react": "^18.0.0",
|
|
61
60
|
"react-dom": "^18.0.0",
|
|
62
|
-
"ts-jest": "^27.0.5",
|
|
63
61
|
"typescript": "^4.7.0"
|
|
64
62
|
},
|
|
65
63
|
"keywords": [
|
|
@@ -73,5 +71,5 @@
|
|
|
73
71
|
"publishConfig": {
|
|
74
72
|
"access": "public"
|
|
75
73
|
},
|
|
76
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "482c66127662171577aa427f10fe265fa1bc933b"
|
|
77
75
|
}
|
package/tsconfig.json
CHANGED