@remotion/cli 4.0.0-alpha.4 → 4.0.0-alpha4
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 +8 -8
- 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 +182 -0
- package/dist/better-opn/index.d.ts +6 -0
- package/dist/better-opn/index.js +202 -0
- package/dist/chalk/index.d.ts +0 -0
- package/dist/chalk/index.js +0 -0
- package/dist/cleanup-before-quit.d.ts +3 -0
- package/dist/cleanup-before-quit.js +23 -0
- package/dist/code-frame.d.ts +0 -0
- package/dist/code-frame.js +18 -7
- package/dist/composition-prompts.d.ts +8 -0
- package/dist/composition-prompts.js +26 -0
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +15 -57
- package/dist/config/audio-codec.d.ts +3 -0
- package/dist/config/audio-codec.js +20 -0
- 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 +2 -2
- 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 +2 -0
- package/dist/config/enforce-audio-track.js +13 -0
- package/dist/config/entry-point.d.ts +2 -0
- package/dist/config/entry-point.js +12 -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 +1 -2
- package/dist/config/every-nth-frame.js +3 -11
- 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/height.d.ts +2 -0
- package/dist/config/height.js +14 -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 +23 -5
- package/dist/config/index.js +108 -52
- package/dist/config/keyboard-shortcuts.d.ts +2 -0
- package/dist/config/keyboard-shortcuts.js +12 -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 +2 -0
- package/dist/config/muted.js +13 -0
- package/dist/config/number-of-gif-loops.d.ts +1 -2
- package/dist/config/number-of-gif-loops.js +3 -9
- package/dist/config/number-of-shared-audio-tags.d.ts +2 -0
- package/dist/config/number-of-shared-audio-tags.js +12 -0
- package/dist/config/open-browser.d.ts +2 -0
- package/dist/config/open-browser.js +15 -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 +2 -0
- package/dist/config/public-dir.js +12 -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 +6 -2
- package/dist/config/timeout.d.ts +0 -0
- package/dist/config/timeout.js +1 -1
- package/dist/config/user-agent.d.ts +4 -0
- package/dist/config/user-agent.js +12 -0
- package/dist/config/webpack-caching.d.ts +0 -0
- package/dist/config/webpack-caching.js +0 -0
- package/dist/config/webpack-poll.d.ts +2 -0
- package/dist/config/webpack-poll.js +16 -0
- package/dist/config/width.d.ts +2 -0
- package/dist/config/width.js +16 -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 +1 -0
- package/dist/editor/components/AudioWaveform.js +10 -3
- 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 +198 -1
- package/dist/editor/components/CheckboardToggle.d.ts +0 -0
- package/dist/editor/components/CheckboardToggle.js +8 -1
- 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 +3 -16
- 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 +7 -91
- package/dist/editor/components/EditorContent.d.ts +0 -0
- package/dist/editor/components/EditorContent.js +0 -0
- package/dist/editor/components/EditorContexts.d.ts +4 -0
- package/dist/editor/components/EditorContexts.js +98 -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 +20 -1
- package/dist/editor/components/InitialCompositionLoader.d.ts +0 -0
- package/dist/editor/components/InitialCompositionLoader.js +13 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +2 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.js +56 -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 +2 -1
- package/dist/editor/components/Menu/MenuItem.js +20 -3
- package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
- package/dist/editor/components/Menu/MenuSubItem.js +4 -2
- package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
- package/dist/editor/components/Menu/SubMenu.js +0 -0
- package/dist/editor/components/Menu/is-menu-item.d.ts +3 -0
- package/dist/editor/components/Menu/is-menu-item.js +12 -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 -2
- 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 +3 -444
- 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 +2 -1
- package/dist/editor/components/NewComposition/ComboBox.js +39 -3
- 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 +1 -0
- package/dist/editor/components/NewComposition/InputDragger.js +23 -4
- package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
- package/dist/editor/components/NewComposition/MenuContent.js +11 -1
- 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 +5 -3
- package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewComposition.js +8 -5
- package/dist/editor/components/NewComposition/RemInput.d.ts +3 -1
- 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 +6 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +59 -0
- package/dist/editor/components/PlayPause.d.ts +0 -0
- package/dist/editor/components/PlayPause.js +49 -24
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +9 -18
- 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 +6 -0
- package/dist/editor/components/Preview.d.ts +1 -0
- package/dist/editor/components/Preview.js +17 -9
- package/dist/editor/components/PreviewToolbar.d.ts +0 -0
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.js +11 -0
- package/dist/editor/components/QuickSwitcher/NoResults.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/NoResults.js +20 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.d.ts +7 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.js +16 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +269 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +21 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +109 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +29 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +63 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.js +26 -0
- package/dist/editor/components/ResetZoomButton.d.ts +4 -0
- package/dist/editor/components/ResetZoomButton.js +9 -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 +2 -1
- package/dist/editor/components/SizeSelector.js +59 -18
- 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 +2 -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 +8 -5
- 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 +1 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +6 -4
- package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
- package/dist/editor/components/Timeline/Timeline.js +22 -9
- 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 +120 -23
- 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 +5 -4
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +1 -0
- package/dist/editor/components/Timeline/TimelineListItem.js +17 -5
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +3 -2
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +3 -1
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSequence.js +1 -1
- 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 +3 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +35 -2
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +1 -3
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +106 -17
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineTracks.js +14 -9
- 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 +3 -1
- package/dist/editor/components/Timeline/imperative-state.d.ts +3 -0
- package/dist/editor/components/Timeline/imperative-state.js +10 -1
- 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 +2 -0
- package/dist/editor/components/Timeline/timeline-refs.js +3 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +1 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +10 -7
- 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 +2 -2
- package/dist/editor/components/TimelineInOutToggle.js +69 -17
- 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 +1 -1
- package/dist/editor/components/ZoomPersistor.js +4 -4
- 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 +2 -1
- package/dist/editor/helpers/colors.js +2 -1
- 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-effective-translation.d.ts +26 -0
- package/dist/editor/helpers/get-effective-translation.js +45 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +1 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.js +7 -4
- 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 +29 -9
- 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 +4 -0
- package/dist/editor/helpers/is-current-selected-still.js +15 -1
- package/dist/editor/helpers/noop.d.ts +0 -0
- package/dist/editor/helpers/noop.js +0 -0
- package/dist/editor/helpers/open-in-editor.d.ts +2 -0
- package/dist/editor/helpers/open-in-editor.js +22 -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 +2 -0
- package/dist/editor/helpers/use-keybinding.js +16 -2
- package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
- package/dist/editor/helpers/use-menu-structure.js +657 -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/editor-zoom-gestures.d.ts +9 -0
- package/dist/editor/state/editor-zoom-gestures.js +17 -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 +4 -1
- 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 +5 -2
- package/dist/editor/state/preview-size.js +49 -5
- 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 +25 -11
- package/dist/entry-point.d.ts +5 -0
- package/dist/entry-point.js +89 -0
- package/dist/event-source-events.d.ts +7 -0
- package/dist/event-source-events.js +0 -0
- package/dist/event-source.d.ts +0 -0
- package/dist/event-source.js +20 -1
- package/dist/format-bytes.d.ts +0 -0
- package/dist/format-bytes.js +0 -0
- package/dist/get-audio-codec.d.ts +2 -0
- package/dist/get-audio-codec.js +10 -0
- package/dist/get-cli-options.d.ts +21 -6
- package/dist/get-cli-options.js +47 -56
- package/dist/get-composition-id.d.ts +7 -1
- package/dist/get-composition-id.js +30 -7
- package/dist/get-composition-with-dimension-override.d.ts +12 -0
- package/dist/get-composition-with-dimension-override.js +16 -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 +60 -8
- package/dist/get-filename.d.ts +2 -3
- package/dist/get-filename.js +7 -23
- package/dist/get-final-output-codec.d.ts +9 -5
- package/dist/get-final-output-codec.js +51 -57
- package/dist/get-input-props.d.ts +4 -0
- package/dist/get-input-props.js +4 -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 +8 -0
- package/dist/get-render-media-options.js +55 -0
- package/dist/handle-common-errors.d.ts +0 -0
- package/dist/handle-common-errors.js +28 -1
- package/dist/image-formats.d.ts +0 -0
- package/dist/image-formats.js +0 -0
- package/dist/index.d.ts +47 -11
- package/dist/index.js +44 -20
- package/dist/initialize-cli.d.ts +1 -0
- package/dist/{initialize-render-cli.js → initialize-cli.js} +4 -4
- package/dist/install.d.ts +2 -0
- package/dist/install.js +36 -0
- package/dist/is-javascript.d.ts +0 -0
- package/dist/is-javascript.js +0 -0
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +4 -7
- package/dist/list-of-remotion-packages.d.ts +1 -0
- package/dist/list-of-remotion-packages.js +27 -0
- package/dist/load-config.d.ts +0 -0
- package/dist/load-config.js +6 -16
- 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 +14 -1
- package/dist/parse-command-line.d.ts +23 -4
- package/dist/parse-command-line.js +59 -35
- 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 +3 -4
- package/dist/preview-server/dev-middleware/range-parser.d.ts +0 -0
- 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/env-supports-fs-recursive.d.ts +1 -0
- package/dist/preview-server/env-supports-fs-recursive.js +18 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
- package/dist/preview-server/error-overlay/entry-basic.js +2 -2
- 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 +9 -1
- 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 +1 -3
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +28 -18
- 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 +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +9 -2
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +2 -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 +4 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +6 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +3 -9
- 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 +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +3 -3
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +3 -1
- 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 +30 -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-absolute-public-dir.d.ts +4 -0
- package/dist/preview-server/get-absolute-public-dir.js +14 -0
- package/dist/preview-server/get-package-manager.d.ts +2 -1
- package/dist/preview-server/get-package-manager.js +18 -2
- 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 +94 -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 +5 -6
- 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 +4 -0
- package/dist/preview-server/project-info.d.ts +0 -0
- package/dist/preview-server/project-info.js +9 -1
- package/dist/preview-server/public-folder.d.ts +17 -0
- package/dist/preview-server/public-folder.js +56 -0
- package/dist/preview-server/routes.d.ts +3 -1
- package/dist/preview-server/routes.js +34 -6
- package/dist/preview-server/serve-static.d.ts +0 -0
- package/dist/preview-server/serve-static.js +2 -1
- package/dist/preview-server/start-server.d.ts +12 -4
- package/dist/preview-server/start-server.js +56 -23
- package/dist/preview-server/update-available.d.ts +0 -0
- package/dist/preview-server/update-available.js +2 -2
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +98 -12
- package/dist/previewEntry.d.ts +0 -0
- package/dist/previewEntry.js +9 -3
- package/dist/print-compositions.d.ts +2 -0
- package/dist/print-compositions.js +50 -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 +18 -3
- package/dist/progress-bar.d.ts +13 -1
- package/dist/progress-bar.js +51 -5
- package/dist/render.d.ts +1 -1
- package/dist/render.js +78 -69
- package/dist/resolve-from.d.ts +0 -0
- package/dist/resolve-from.js +0 -0
- package/dist/select-composition.d.ts +7 -0
- package/dist/select-composition.js +51 -0
- package/dist/setup-cache.d.ts +5 -3
- package/dist/setup-cache.js +66 -14
- package/dist/smooth-zoom.d.ts +4 -0
- package/dist/smooth-zoom.js +20 -0
- package/dist/step.d.ts +0 -0
- package/dist/step.js +0 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +47 -50
- package/dist/truthy.d.ts +0 -0
- package/dist/truthy.js +0 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +18 -22
- package/dist/user-passed-output-location.d.ts +4 -2
- package/dist/user-passed-output-location.js +14 -10
- package/dist/versions.d.ts +0 -0
- package/dist/versions.js +3 -16
- package/package.json +72 -74
- package/styles/styles.css +2 -0
- package/web/favicon.png +0 -0
- package/.prettierrc.js +0 -14
- 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 +0 -1
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js +0 -14
- 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/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 +0 -2
- package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.js +0 -53
- package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
- package/dist/editor/components/LoadingIndicator.d.ts +0 -3
- package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/editor/components/LoadingIndicator.js +0 -36
- 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/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/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/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/find-closest-package-json.d.ts +0 -2
- package/dist/find-closest-package-json.js +0 -35
- 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 +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/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 +0 -3
- package/dist/validate-ffmpeg-version.d.ts.map +0 -1
- package/dist/validate-ffmpeg-version.js +0 -17
- 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 +0 -5
- package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
- package/dist/warn-about-ffmpeg-version.js +0 -38
- package/dist/warn-about-ffmpeg-version.js.map +0 -1
- package/dist/webpack-cache.d.ts +0 -12
- package/dist/webpack-cache.js +0 -66
- package/tsconfig.json +0 -17
- package/vitest.config.ts +0 -9
|
@@ -13,6 +13,8 @@ const lineNumber = {
|
|
|
13
13
|
paddingLeft: 10,
|
|
14
14
|
paddingRight: 12,
|
|
15
15
|
marginRight: 12,
|
|
16
|
+
color: 'inherit',
|
|
17
|
+
fontSize: 14,
|
|
16
18
|
};
|
|
17
19
|
const CodeFrame = ({ source, lineNumberWidth }) => {
|
|
18
20
|
return ((0, jsx_runtime_1.jsx)("div", { style: frame, children: source.map((s, j) => {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -16,9 +16,11 @@ const container = {
|
|
|
16
16
|
marginBottom: 15,
|
|
17
17
|
};
|
|
18
18
|
const messageContainer = {
|
|
19
|
+
overflow: 'hidden',
|
|
20
|
+
};
|
|
21
|
+
const textContainer = {
|
|
19
22
|
fontSize,
|
|
20
23
|
lineHeight,
|
|
21
|
-
overflow: 'hidden',
|
|
22
24
|
};
|
|
23
25
|
const moreLine = {
|
|
24
26
|
width: '100%',
|
|
@@ -62,6 +64,6 @@ const ErrorMessage = ({ message }) => {
|
|
|
62
64
|
const toggle = (0, react_1.useCallback)(() => {
|
|
63
65
|
setExpanded((e) => !e);
|
|
64
66
|
}, []);
|
|
65
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)("div", { ref: ref, children: message }) }), errorLines !== null && errorLines > maxLines ? ((0, jsx_runtime_1.jsx)("div", { style: moreLine, children: (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: toggle, style: moreButton, children: (0, jsx_runtime_1.jsx)(carets_1.CaretDown, { invert: expanded }) }) })) : null] }));
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)("div", { ref: ref, style: textContainer, children: message }) }), errorLines !== null && errorLines > maxLines ? ((0, jsx_runtime_1.jsx)("div", { style: moreLine, children: (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: toggle, style: moreButton, children: (0, jsx_runtime_1.jsx)(carets_1.CaretDown, { invert: expanded }) }) })) : null] }));
|
|
66
68
|
};
|
|
67
69
|
exports.ErrorMessage = ErrorMessage;
|
|
File without changes
|
|
@@ -32,6 +32,6 @@ const spacer = {
|
|
|
32
32
|
width: 5,
|
|
33
33
|
};
|
|
34
34
|
const ErrorTitle = ({ name, message, symbolicating }) => {
|
|
35
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: title, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [symbolicating ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Symbolicating_1.Symbolicating, {}), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { message: message })] })] }), (0, react_overlay_1.didUnmountReactApp)() ? null : (0, jsx_runtime_1.jsx)(DismissButton_1.DismissButton, {})] }));
|
|
35
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: title, className: "css-reset", children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [symbolicating ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Symbolicating_1.Symbolicating, {}), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { message: message })] })] }), (0, react_overlay_1.didUnmountReactApp)() ? null : (0, jsx_runtime_1.jsx)(DismissButton_1.DismissButton, {})] }));
|
|
36
36
|
};
|
|
37
37
|
exports.ErrorTitle = ErrorTitle;
|
|
File without changes
|
|
@@ -6,6 +6,10 @@ const react_1 = require("react");
|
|
|
6
6
|
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
7
7
|
const Button_1 = require("./Button");
|
|
8
8
|
const ShortcutHint_1 = require("./ShortcutHint");
|
|
9
|
+
const buttonStyle = {
|
|
10
|
+
backgroundColor: 'var(--blue)',
|
|
11
|
+
color: 'white',
|
|
12
|
+
};
|
|
9
13
|
const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
|
|
10
14
|
const openLink = (0, react_1.useCallback)(() => {
|
|
11
15
|
window.open(link.url, '_blank');
|
|
@@ -23,9 +27,10 @@ const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
|
|
|
23
27
|
key: 'h',
|
|
24
28
|
callback: onEditor,
|
|
25
29
|
commandCtrlKey: true,
|
|
30
|
+
preventDefault: true,
|
|
26
31
|
});
|
|
27
32
|
return () => unregister();
|
|
28
33
|
}, [canHaveKeyboardShortcuts, openLink, registerKeybinding]);
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openLink, children: ["Help: ", '"', link.title, '"', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "h", cmdOrCtrl: true })) : null] }));
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { style: buttonStyle, onClick: openLink, children: ["Help: ", '"', link.title, '"', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "h", cmdOrCtrl: true })) : null] }));
|
|
30
35
|
};
|
|
31
36
|
exports.HelpLink = HelpLink;
|
|
File without changes
|
|
@@ -4,6 +4,7 @@ exports.OpenInEditor = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
/* eslint-disable no-console */
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
+
const open_in_editor_1 = require("../../../editor/helpers/open-in-editor");
|
|
7
8
|
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
8
9
|
const Button_1 = require("./Button");
|
|
9
10
|
const ShortcutHint_1 = require("./ShortcutHint");
|
|
@@ -42,15 +43,7 @@ const OpenInEditor = ({ stack, canHaveKeyboardShortcuts }) => {
|
|
|
42
43
|
}, []);
|
|
43
44
|
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
44
45
|
dispatch({ type: 'start' });
|
|
45
|
-
|
|
46
|
-
method: 'post',
|
|
47
|
-
headers: {
|
|
48
|
-
'content-type': 'application/json',
|
|
49
|
-
},
|
|
50
|
-
body: JSON.stringify({
|
|
51
|
-
stack,
|
|
52
|
-
}),
|
|
53
|
-
})
|
|
46
|
+
(0, open_in_editor_1.openInEditor)(stack)
|
|
54
47
|
.then((res) => res.json())
|
|
55
48
|
.then((data) => {
|
|
56
49
|
if (data.success) {
|
|
@@ -87,6 +80,7 @@ const OpenInEditor = ({ stack, canHaveKeyboardShortcuts }) => {
|
|
|
87
80
|
key: 'o',
|
|
88
81
|
callback: onEditor,
|
|
89
82
|
commandCtrlKey: true,
|
|
83
|
+
preventDefault: true,
|
|
90
84
|
});
|
|
91
85
|
return () => unregister();
|
|
92
86
|
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -23,6 +23,7 @@ const SearchGithubIssues = ({ message, canHaveKeyboardShortcuts }) => {
|
|
|
23
23
|
key: 'g',
|
|
24
24
|
callback: onEditor,
|
|
25
25
|
commandCtrlKey: true,
|
|
26
|
+
preventDefault: true,
|
|
26
27
|
});
|
|
27
28
|
return () => unregister();
|
|
28
29
|
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShortcutHint = void 0;
|
|
3
|
+
exports.ShortcutHint = exports.cmdOrCtrlCharacter = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
|
|
5
|
+
exports.cmdOrCtrlCharacter = window.navigator.platform.startsWith('Mac')
|
|
6
6
|
? '⌘'
|
|
7
7
|
: 'Ctrl';
|
|
8
8
|
const container = {
|
|
@@ -11,6 +11,6 @@ const container = {
|
|
|
11
11
|
opacity: 0.6,
|
|
12
12
|
};
|
|
13
13
|
const ShortcutHint = ({ keyToPress, cmdOrCtrl }) => {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("span", { style: container, children: [cmdOrCtrl ? `${cmdOrCtrlCharacter}+` : '', keyToPress.toUpperCase()] }));
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("span", { style: container, children: [cmdOrCtrl ? `${exports.cmdOrCtrlCharacter}+` : '', keyToPress.toUpperCase()] }));
|
|
15
15
|
};
|
|
16
16
|
exports.ShortcutHint = ShortcutHint;
|
|
File without changes
|
|
@@ -10,6 +10,7 @@ const format_location_1 = require("./format-location");
|
|
|
10
10
|
const location = {
|
|
11
11
|
color: 'rgba(255, 255, 255, 0.6)',
|
|
12
12
|
fontFamily: 'monospace',
|
|
13
|
+
fontSize: 14,
|
|
13
14
|
};
|
|
14
15
|
const header = {
|
|
15
16
|
paddingLeft: 14,
|
|
@@ -28,6 +29,7 @@ const left = {
|
|
|
28
29
|
};
|
|
29
30
|
const fnName = {
|
|
30
31
|
fontSize: 14,
|
|
32
|
+
lineHeight: 1.5,
|
|
31
33
|
marginBottom: 3,
|
|
32
34
|
};
|
|
33
35
|
const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName }) => {
|
|
@@ -41,7 +43,7 @@ const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName }) => {
|
|
|
41
43
|
const toggleCodeFrame = (0, react_1.useCallback)(() => {
|
|
42
44
|
setShowCodeFrame((f) => !f);
|
|
43
45
|
}, []);
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }), s.originalFileName ? ((0, jsx_runtime_1.jsxs)("div", { style: location, children: [(0, format_location_1.formatLocation)(s.originalFileName), ":", s.originalLineNumber] })) : null] }), s.originalScriptCode && s.originalScriptCode.length > 0 ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: toggleCodeFrame, children: showCodeFrame ? (0, jsx_runtime_1.jsx)(carets_1.CaretDown, { invert: false }) : (0, jsx_runtime_1.jsx)(carets_1.CaretRight, {}) })) : null] }), (0, jsx_runtime_1.jsx)("div", { children: s.originalScriptCode &&
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "css-reset", children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }), s.originalFileName ? ((0, jsx_runtime_1.jsxs)("div", { style: location, children: [(0, format_location_1.formatLocation)(s.originalFileName), ":", s.originalLineNumber] })) : null] }), s.originalScriptCode && s.originalScriptCode.length > 0 ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: toggleCodeFrame, children: showCodeFrame ? (0, jsx_runtime_1.jsx)(carets_1.CaretDown, { invert: false }) : (0, jsx_runtime_1.jsx)(carets_1.CaretRight, {}) })) : null] }), (0, jsx_runtime_1.jsx)("div", { children: s.originalScriptCode &&
|
|
45
47
|
s.originalScriptCode.length > 0 &&
|
|
46
48
|
showCodeFrame ? ((0, jsx_runtime_1.jsx)(CodeFrame_1.CodeFrame, { lineNumberWidth: lineNumberWidth, source: s.originalScriptCode })) : null })] }));
|
|
47
49
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,6 +14,36 @@ const getHelpLink = (message) => {
|
|
|
14
14
|
url: 'https://remotion.dev/docs/wrong-composition-mount',
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
+
if (message.includes('https://remotion.dev/docs/staticfile-relative-paths')) {
|
|
18
|
+
return {
|
|
19
|
+
title: 'staticFile() relative paths',
|
|
20
|
+
url: 'https://remotion.dev/docs/staticfile-relative-paths',
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (message.includes('https://remotion.dev/docs/staticfile-remote-urls')) {
|
|
24
|
+
return {
|
|
25
|
+
title: 'staticFile() remote URLs',
|
|
26
|
+
url: 'https://remotion.dev/docs/staticfile-remote-urls',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (message.includes('https://remotion.dev/docs/non-seekable-media')) {
|
|
30
|
+
return {
|
|
31
|
+
title: 'Non-seekable media',
|
|
32
|
+
url: 'https://remotion.dev/docs/non-seekable-media',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (message.includes('https://remotion.dev/docs/media-playback-error')) {
|
|
36
|
+
return {
|
|
37
|
+
title: 'Media playback error',
|
|
38
|
+
url: 'https://remotion.dev/docs/media-playback-error',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (message.includes('Div is not part of the THREE')) {
|
|
42
|
+
return {
|
|
43
|
+
title: '<Sequence> inside <ThreeCanvas>',
|
|
44
|
+
url: 'https://remotion.dev/docs/sequence#note-for-remotionthree',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
17
47
|
return null;
|
|
18
48
|
};
|
|
19
49
|
exports.getHelpLink = getHelpLink;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
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.getAbsolutePublicDir = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const getAbsolutePublicDir = ({ userPassedPublicDir, remotionRoot, }) => {
|
|
9
|
+
const publicDir = userPassedPublicDir
|
|
10
|
+
? path_1.default.resolve(remotionRoot, userPassedPublicDir)
|
|
11
|
+
: path_1.default.join(remotionRoot, 'public');
|
|
12
|
+
return publicDir;
|
|
13
|
+
};
|
|
14
|
+
exports.getAbsolutePublicDir = getAbsolutePublicDir;
|
|
@@ -3,7 +3,8 @@ declare type LockfilePath = {
|
|
|
3
3
|
manager: PackageManager;
|
|
4
4
|
path: string;
|
|
5
5
|
installCommand: string;
|
|
6
|
+
startCommand: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const lockFilePaths: LockfilePath[];
|
|
8
|
-
export declare const getPackageManager: (remotionRoot: string) => LockfilePath | 'unknown';
|
|
9
|
+
export declare const getPackageManager: (remotionRoot: string, packageManager: string | undefined) => LockfilePath | 'unknown';
|
|
9
10
|
export {};
|
|
@@ -7,19 +7,35 @@ exports.getPackageManager = exports.lockFilePaths = void 0;
|
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
exports.lockFilePaths = [
|
|
10
|
-
{
|
|
10
|
+
{
|
|
11
|
+
path: 'package-lock.json',
|
|
12
|
+
manager: 'npm',
|
|
13
|
+
installCommand: 'npm i',
|
|
14
|
+
startCommand: 'npm start',
|
|
15
|
+
},
|
|
11
16
|
{
|
|
12
17
|
path: 'yarn.lock',
|
|
13
18
|
manager: 'yarn',
|
|
14
19
|
installCommand: 'yarn add',
|
|
20
|
+
startCommand: 'yarn start',
|
|
15
21
|
},
|
|
16
22
|
{
|
|
17
23
|
path: 'pnpm-lock.yaml',
|
|
18
24
|
manager: 'pnpm',
|
|
19
25
|
installCommand: 'pnpm i',
|
|
26
|
+
startCommand: 'pnpm start',
|
|
20
27
|
},
|
|
21
28
|
];
|
|
22
|
-
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
|
+
}
|
|
23
39
|
const existingPkgManagers = exports.lockFilePaths.filter((p) => fs_1.default.existsSync(path_1.default.join(remotionRoot, p.path)));
|
|
24
40
|
if (existingPkgManagers.length === 0) {
|
|
25
41
|
return 'unknown';
|
|
File without changes
|
|
File without changes
|
|
@@ -5,4 +5,98 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { webpack } from '@remotion/bundler';
|
|
7
7
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
8
|
+
declare global {
|
|
9
|
+
const __webpack_hash__: unknown;
|
|
10
|
+
interface HotNotifierInfo {
|
|
11
|
+
type: 'self-declined' | 'declined' | 'unaccepted' | 'accepted' | 'disposed' | 'accept-errored' | 'self-accept-errored' | 'self-accept-error-handler-errored';
|
|
12
|
+
/**
|
|
13
|
+
* The module in question.
|
|
14
|
+
*/
|
|
15
|
+
moduleId: number;
|
|
16
|
+
/**
|
|
17
|
+
* For errors: the module id owning the accept handler.
|
|
18
|
+
*/
|
|
19
|
+
dependencyId?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* For declined/accepted/unaccepted: the chain from where the update was propagated.
|
|
22
|
+
*/
|
|
23
|
+
chain?: number[] | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* For declined: the module id of the declining parent
|
|
26
|
+
*/
|
|
27
|
+
parentId?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* For accepted: the modules that are outdated and will be disposed
|
|
30
|
+
*/
|
|
31
|
+
outdatedModules?: number[] | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* For accepted: The location of accept handlers that will handle the update
|
|
34
|
+
*/
|
|
35
|
+
outdatedDependencies?: {
|
|
36
|
+
[dependencyId: number]: number[];
|
|
37
|
+
} | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* For errors: the thrown error
|
|
40
|
+
*/
|
|
41
|
+
error?: Error | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* For self-accept-error-handler-errored: the error thrown by the module
|
|
44
|
+
* before the error handler tried to handle it.
|
|
45
|
+
*/
|
|
46
|
+
originalError?: Error | undefined;
|
|
47
|
+
}
|
|
48
|
+
interface AcceptOptions {
|
|
49
|
+
/**
|
|
50
|
+
* If true the update process continues even if some modules are not accepted (and would bubble to the entry point).
|
|
51
|
+
*/
|
|
52
|
+
ignoreUnaccepted?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Ignore changes made to declined modules.
|
|
55
|
+
*/
|
|
56
|
+
ignoreDeclined?: boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Ignore errors throw in accept handlers, error handlers and while reevaluating module.
|
|
59
|
+
*/
|
|
60
|
+
ignoreErrored?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Notifier for declined modules.
|
|
63
|
+
*/
|
|
64
|
+
onDeclined?: ((info: HotNotifierInfo) => void) | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Notifier for unaccepted modules.
|
|
67
|
+
*/
|
|
68
|
+
onUnaccepted?: ((info: HotNotifierInfo) => void) | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Notifier for accepted modules.
|
|
71
|
+
*/
|
|
72
|
+
onAccepted?: ((info: HotNotifierInfo) => void) | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Notifier for disposed modules.
|
|
75
|
+
*/
|
|
76
|
+
onDisposed?: ((info: HotNotifierInfo) => void) | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Notifier for errors.
|
|
79
|
+
*/
|
|
80
|
+
onErrored?: ((info: HotNotifierInfo) => void) | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Indicates that apply() is automatically called by check function
|
|
83
|
+
*/
|
|
84
|
+
autoApply?: boolean | undefined;
|
|
85
|
+
}
|
|
86
|
+
const __webpack_module__: {
|
|
87
|
+
id: string;
|
|
88
|
+
exports: unknown;
|
|
89
|
+
hot: {
|
|
90
|
+
accept: () => void;
|
|
91
|
+
dispose: (onDispose: (data: Record<string, unknown>) => void) => void;
|
|
92
|
+
invalidate: () => void;
|
|
93
|
+
data?: Record<string, unknown>;
|
|
94
|
+
addStatusHandler(callback: (status: string) => void): void;
|
|
95
|
+
status(): string;
|
|
96
|
+
apply(options?: AcceptOptions): Promise<ModuleId[]>;
|
|
97
|
+
check(autoApply?: boolean): Promise<null | ModuleId[]>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
type ModuleId = string | number;
|
|
101
|
+
}
|
|
8
102
|
export declare const webpackHotMiddleware: (compiler: webpack.Compiler) => (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
|
@@ -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
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.processUpdate = void 0;
|
|
10
|
-
|
|
11
|
-
if (!module.hot) {
|
|
10
|
+
if (!__webpack_module__.hot) {
|
|
12
11
|
throw new Error('[Fast refresh] Hot Module Replacement is disabled.');
|
|
13
12
|
}
|
|
14
13
|
const hmrDocsUrl = 'https://webpack.js.org/concepts/hot-module-replacement/'; // eslint-disable-line max-len
|
|
@@ -44,7 +43,7 @@ function upToDate(hash) {
|
|
|
44
43
|
const processUpdate = function (hash, moduleMap, options) {
|
|
45
44
|
var _a;
|
|
46
45
|
const { reload } = options;
|
|
47
|
-
if (!upToDate(hash) && ((_a =
|
|
46
|
+
if (!upToDate(hash) && ((_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.status()) === 'idle') {
|
|
48
47
|
check();
|
|
49
48
|
}
|
|
50
49
|
async function check() {
|
|
@@ -69,7 +68,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
69
68
|
}
|
|
70
69
|
logUpdates(updatedModules, renewedModules);
|
|
71
70
|
};
|
|
72
|
-
const applyResult = (_a =
|
|
71
|
+
const applyResult = (_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.apply(applyOptions);
|
|
73
72
|
if (applyResult === null || applyResult === void 0 ? void 0 : applyResult.then) {
|
|
74
73
|
// HotModuleReplacement.runtime.js refers to the result as `outdatedModules`
|
|
75
74
|
applyResult
|
|
@@ -80,7 +79,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
81
|
try {
|
|
83
|
-
const result = await ((_a =
|
|
82
|
+
const result = await ((_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.check(false));
|
|
84
83
|
cb(null, result);
|
|
85
84
|
}
|
|
86
85
|
catch (err) {
|
|
@@ -119,7 +118,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
119
118
|
}
|
|
120
119
|
function handleError(err) {
|
|
121
120
|
var _a, _b;
|
|
122
|
-
if (((_b = (_a =
|
|
121
|
+
if (((_b = (_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.status()) !== null && _b !== void 0 ? _b : 'nope') in failureStatuses) {
|
|
123
122
|
if (options.warn) {
|
|
124
123
|
console.warn('[Fast refresh] Cannot check for update (Full reload needed)');
|
|
125
124
|
console.warn('[Fast refresh] ' + (err.stack || err.message));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,6 +13,10 @@ const makeLiveEventsRouter = () => {
|
|
|
13
13
|
'cache-control': 'no-cache',
|
|
14
14
|
};
|
|
15
15
|
response.writeHead(200, headers);
|
|
16
|
+
if (request.method === 'OPTIONS') {
|
|
17
|
+
response.end();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
16
20
|
response.write(serializeMessage({ type: 'init' }));
|
|
17
21
|
const clientId = String(Math.random());
|
|
18
22
|
const newClient = {
|
|
File without changes
|
|
@@ -8,7 +8,15 @@ const fs_1 = require("fs");
|
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const getProjectInfo = (remotionRoot) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const pathsToLookFor = [
|
|
11
|
+
const pathsToLookFor = [
|
|
12
|
+
'src/Root.tsx',
|
|
13
|
+
'src/Root.jsx',
|
|
14
|
+
'remotion/Root.tsx',
|
|
15
|
+
'remotion/Root.jsx',
|
|
16
|
+
'app/remotion/Root.tsx',
|
|
17
|
+
'src/Video.tsx',
|
|
18
|
+
'src/Video.jsx',
|
|
19
|
+
].map((p) => {
|
|
12
20
|
return path_1.default.join(remotionRoot, p);
|
|
13
21
|
});
|
|
14
22
|
const videoFile = (_a = pathsToLookFor.find((p) => (0, fs_1.existsSync)(p))) !== null && _a !== void 0 ? _a : null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StaticFile } from 'remotion';
|
|
2
|
+
export declare const initPublicFolderWatch: ({ publicDir, onUpdate, staticHash, }: {
|
|
3
|
+
publicDir: string;
|
|
4
|
+
remotionRoot: string;
|
|
5
|
+
onUpdate: () => void;
|
|
6
|
+
staticHash: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
export declare const fetchFolder: ({ publicDir, staticHash, }: {
|
|
9
|
+
publicDir: string;
|
|
10
|
+
staticHash: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
export declare const watchPublicFolder: ({ publicDir, onUpdate, staticHash, }: {
|
|
13
|
+
publicDir: string;
|
|
14
|
+
onUpdate: () => void;
|
|
15
|
+
staticHash: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
export declare const getFiles: () => StaticFile[];
|
|
@@ -0,0 +1,56 @@
|
|
|
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.getFiles = exports.watchPublicFolder = exports.fetchFolder = exports.initPublicFolderWatch = void 0;
|
|
7
|
+
const bundler_1 = require("@remotion/bundler");
|
|
8
|
+
const fs_1 = require("fs");
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const env_supports_fs_recursive_1 = require("./env-supports-fs-recursive");
|
|
11
|
+
let files = [];
|
|
12
|
+
const initPublicFolderWatch = ({ publicDir, onUpdate, staticHash, }) => {
|
|
13
|
+
(0, exports.fetchFolder)({ publicDir, staticHash });
|
|
14
|
+
(0, exports.watchPublicFolder)({ publicDir, onUpdate, staticHash });
|
|
15
|
+
};
|
|
16
|
+
exports.initPublicFolderWatch = initPublicFolderWatch;
|
|
17
|
+
const fetchFolder = ({ publicDir, staticHash, }) => {
|
|
18
|
+
files = bundler_1.BundlerInternals.readRecursively({
|
|
19
|
+
folder: '.',
|
|
20
|
+
startPath: publicDir,
|
|
21
|
+
staticHash,
|
|
22
|
+
limit: 1000,
|
|
23
|
+
}).map((f) => {
|
|
24
|
+
return {
|
|
25
|
+
...f,
|
|
26
|
+
name: f.name.split(path_1.default.sep).join('/'),
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.fetchFolder = fetchFolder;
|
|
31
|
+
const watchPublicFolder = ({ publicDir, onUpdate, staticHash, }) => {
|
|
32
|
+
if (!(0, fs_1.existsSync)(publicDir)) {
|
|
33
|
+
const parentDir = path_1.default.dirname(publicDir);
|
|
34
|
+
const onDirChange = () => {
|
|
35
|
+
if ((0, fs_1.existsSync)(publicDir)) {
|
|
36
|
+
(0, exports.watchPublicFolder)({
|
|
37
|
+
publicDir,
|
|
38
|
+
onUpdate,
|
|
39
|
+
staticHash,
|
|
40
|
+
});
|
|
41
|
+
watcher.close();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const watcher = (0, fs_1.watch)(parentDir, {}, onDirChange);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
(0, fs_1.watch)(publicDir, { recursive: (0, env_supports_fs_recursive_1.envSupportsFsRecursive)() }, () => {
|
|
48
|
+
(0, exports.fetchFolder)({ publicDir, staticHash });
|
|
49
|
+
onUpdate();
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
exports.watchPublicFolder = watchPublicFolder;
|
|
53
|
+
const getFiles = () => {
|
|
54
|
+
return files;
|
|
55
|
+
};
|
|
56
|
+
exports.getFiles = getFiles;
|
|
@@ -1,11 +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, }: {
|
|
3
|
+
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, publicDir, }: {
|
|
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;
|
|
12
|
+
publicDir: string;
|
|
11
13
|
}) => void | Promise<void>;
|