@remotion/cli 3.1.10 → 3.1.11
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/bundle-on-cli.d.ts +2 -0
- package/dist/bundle-on-cli.js +41 -0
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.js +31 -0
- 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/editor/components/CompositionManager.d.ts +4 -0
- package/dist/editor/components/CompositionManager.js +60 -0
- package/dist/editor/components/LoadingIndicator.d.ts +0 -1
- package/dist/editor/components/LoadingIndicator.js +1 -2
- package/dist/editor/components/Timeline/TimelineScrollable.js +1 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.js +2 -18
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -40
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +1 -203
- package/dist/editor/state/timeline-zoom.d.ts +1 -1
- package/dist/editor/state/timeline-zoom.js +1 -15
- package/dist/prepare-entry-point.d.ts +11 -0
- package/dist/prepare-entry-point.js +36 -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/HelpLink.js +5 -1
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +24 -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/package.json +7 -7
- 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/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/TimelinePlayCursorSyncer.d.ts +0 -2
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -75
- 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/TimelineTimeIndicators.d.ts +0 -5
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -79
- 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/imperative-state.d.ts +0 -9
- package/dist/editor/components/Timeline/imperative-state.js +0 -30
- 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/ZoomPersistor.d.ts +0 -4
- package/dist/editor/components/ZoomPersistor.js +0 -37
- 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/minus.d.ts +0 -3
- package/dist/editor/icons/minus.js +0 -8
- 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/plus.d.ts +0 -3
- package/dist/editor/icons/plus.js +0 -8
- 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/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
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const remotion_1 = require("remotion");
|
|
3
|
+
exports.canScrollTimelineIntoDirection = void 0;
|
|
5
4
|
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
6
5
|
const timeline_refs_1 = require("./timeline-refs");
|
|
7
|
-
const TimelineSlider_1 = require("./TimelineSlider");
|
|
8
6
|
const canScrollTimelineIntoDirection = () => {
|
|
9
7
|
const current = timeline_refs_1.scrollableRef.current;
|
|
10
8
|
const { scrollWidth, scrollLeft, clientWidth } = current;
|
|
@@ -13,203 +11,3 @@ const canScrollTimelineIntoDirection = () => {
|
|
|
13
11
|
return { canScrollRight, canScrollLeft };
|
|
14
12
|
};
|
|
15
13
|
exports.canScrollTimelineIntoDirection = canScrollTimelineIntoDirection;
|
|
16
|
-
exports.SCROLL_INCREMENT = 200;
|
|
17
|
-
const calculateFrameWhileScrollingRight = ({ durationInFrames, width, scrollLeft, }) => {
|
|
18
|
-
var _a;
|
|
19
|
-
return ((0, exports.getFrameFromX)({
|
|
20
|
-
clientX: scrollLeft,
|
|
21
|
-
durationInFrames,
|
|
22
|
-
width,
|
|
23
|
-
extrapolate: 'clamp',
|
|
24
|
-
}) +
|
|
25
|
-
Math.ceil((((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) - timeline_layout_1.TIMELINE_PADDING) /
|
|
26
|
-
(0, exports.getFrameIncrement)(durationInFrames)));
|
|
27
|
-
};
|
|
28
|
-
const getFrameWhileScrollingLeft = ({ durationInFrames, width, }) => {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
const nextFrame = (0, exports.getFrameFromX)({
|
|
31
|
-
clientX: ((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollLeft) - exports.SCROLL_INCREMENT,
|
|
32
|
-
durationInFrames,
|
|
33
|
-
width,
|
|
34
|
-
extrapolate: 'clamp',
|
|
35
|
-
});
|
|
36
|
-
const currentFrame = (0, exports.getFrameFromX)({
|
|
37
|
-
clientX: (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollLeft,
|
|
38
|
-
durationInFrames,
|
|
39
|
-
width,
|
|
40
|
-
extrapolate: 'clamp',
|
|
41
|
-
});
|
|
42
|
-
// Should go back at least 1 frame, but not less than 0
|
|
43
|
-
return Math.max(0, Math.min(currentFrame - 1, nextFrame));
|
|
44
|
-
};
|
|
45
|
-
exports.getFrameWhileScrollingLeft = getFrameWhileScrollingLeft;
|
|
46
|
-
const isCursorInViewport = ({ frame, durationInFrames, }) => {
|
|
47
|
-
var _a, _b, _c, _d;
|
|
48
|
-
const width = (_b = (_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) !== null && _b !== void 0 ? _b : 0;
|
|
49
|
-
const scrollLeft = (_d = (_c = timeline_refs_1.scrollableRef.current) === null || _c === void 0 ? void 0 : _c.scrollLeft) !== null && _d !== void 0 ? _d : 0;
|
|
50
|
-
const scrollPosOnRightEdge = (0, exports.getScrollPositionForCursorOnRightEdge)({
|
|
51
|
-
nextFrame: frame,
|
|
52
|
-
durationInFrames,
|
|
53
|
-
});
|
|
54
|
-
const scrollPosOnLeftEdge = (0, exports.getScrollPositionForCursorOnLeftEdge)({
|
|
55
|
-
nextFrame: frame,
|
|
56
|
-
durationInFrames,
|
|
57
|
-
});
|
|
58
|
-
const currentFrameRight = calculateFrameWhileScrollingRight({
|
|
59
|
-
durationInFrames,
|
|
60
|
-
scrollLeft,
|
|
61
|
-
width,
|
|
62
|
-
});
|
|
63
|
-
return !(scrollPosOnRightEdge >=
|
|
64
|
-
(0, exports.getScrollPositionForCursorOnRightEdge)({
|
|
65
|
-
nextFrame: currentFrameRight,
|
|
66
|
-
durationInFrames,
|
|
67
|
-
}) || scrollPosOnLeftEdge < scrollLeft);
|
|
68
|
-
};
|
|
69
|
-
exports.isCursorInViewport = isCursorInViewport;
|
|
70
|
-
const ensureFrameIsInViewport = ({ direction, durationInFrames, frame, }) => {
|
|
71
|
-
var _a, _b, _c, _d, _e;
|
|
72
|
-
(_a = TimelineSlider_1.redrawTimelineSliderFast.current) === null || _a === void 0 ? void 0 : _a.draw(frame);
|
|
73
|
-
const width = (_c = (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollWidth) !== null && _c !== void 0 ? _c : 0;
|
|
74
|
-
const scrollLeft = (_e = (_d = timeline_refs_1.scrollableRef.current) === null || _d === void 0 ? void 0 : _d.scrollLeft) !== null && _e !== void 0 ? _e : 0;
|
|
75
|
-
if (direction === 'fit-left') {
|
|
76
|
-
const currentFrameLeft = (0, exports.getFrameFromX)({
|
|
77
|
-
clientX: scrollLeft,
|
|
78
|
-
durationInFrames,
|
|
79
|
-
width,
|
|
80
|
-
extrapolate: 'clamp',
|
|
81
|
-
});
|
|
82
|
-
const scrollPos = (0, exports.getScrollPositionForCursorOnLeftEdge)({
|
|
83
|
-
nextFrame: frame,
|
|
84
|
-
durationInFrames,
|
|
85
|
-
});
|
|
86
|
-
const needsToScrollLeft = scrollPos <=
|
|
87
|
-
(0, exports.getScrollPositionForCursorOnLeftEdge)({
|
|
88
|
-
nextFrame: currentFrameLeft,
|
|
89
|
-
durationInFrames,
|
|
90
|
-
});
|
|
91
|
-
if (needsToScrollLeft) {
|
|
92
|
-
(0, exports.scrollToTimelineXOffset)(scrollPos);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (direction === 'fit-right') {
|
|
96
|
-
const currentFrameRight = calculateFrameWhileScrollingRight({
|
|
97
|
-
durationInFrames,
|
|
98
|
-
scrollLeft: scrollLeft,
|
|
99
|
-
width,
|
|
100
|
-
});
|
|
101
|
-
const scrollPos = (0, exports.getScrollPositionForCursorOnRightEdge)({
|
|
102
|
-
nextFrame: frame,
|
|
103
|
-
durationInFrames,
|
|
104
|
-
});
|
|
105
|
-
const needsToScrollRight = scrollPos >=
|
|
106
|
-
(0, exports.getScrollPositionForCursorOnRightEdge)({
|
|
107
|
-
nextFrame: currentFrameRight,
|
|
108
|
-
durationInFrames,
|
|
109
|
-
});
|
|
110
|
-
if (needsToScrollRight) {
|
|
111
|
-
(0, exports.scrollToTimelineXOffset)(scrollPos);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
if (direction === 'page-right' || direction === 'page-left') {
|
|
115
|
-
if (!(0, exports.isCursorInViewport)({ frame, durationInFrames })) {
|
|
116
|
-
(0, exports.scrollToTimelineXOffset)(direction === 'page-left'
|
|
117
|
-
? (0, exports.getScrollPositionForCursorOnRightEdge)({
|
|
118
|
-
nextFrame: frame,
|
|
119
|
-
durationInFrames,
|
|
120
|
-
})
|
|
121
|
-
: (0, exports.getScrollPositionForCursorOnLeftEdge)({
|
|
122
|
-
nextFrame: frame,
|
|
123
|
-
durationInFrames,
|
|
124
|
-
}));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
if (direction === 'center') {
|
|
128
|
-
const scrollPosOnRightEdge = (0, exports.getScrollPositionForCursorOnRightEdge)({
|
|
129
|
-
nextFrame: frame,
|
|
130
|
-
durationInFrames,
|
|
131
|
-
});
|
|
132
|
-
const scrollPosOnLeftEdge = (0, exports.getScrollPositionForCursorOnLeftEdge)({
|
|
133
|
-
nextFrame: frame,
|
|
134
|
-
durationInFrames,
|
|
135
|
-
});
|
|
136
|
-
(0, exports.scrollToTimelineXOffset)((scrollPosOnLeftEdge + scrollPosOnRightEdge) / 2);
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
exports.ensureFrameIsInViewport = ensureFrameIsInViewport;
|
|
140
|
-
const scrollToTimelineXOffset = (scrollPos) => {
|
|
141
|
-
var _a;
|
|
142
|
-
(_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scroll({
|
|
143
|
-
left: scrollPos,
|
|
144
|
-
});
|
|
145
|
-
};
|
|
146
|
-
exports.scrollToTimelineXOffset = scrollToTimelineXOffset;
|
|
147
|
-
const getScrollPositionForCursorOnLeftEdge = ({ nextFrame, durationInFrames, }) => {
|
|
148
|
-
const frameIncrement = (0, exports.getFrameIncrement)(durationInFrames);
|
|
149
|
-
const scrollPos = frameIncrement * nextFrame;
|
|
150
|
-
return scrollPos;
|
|
151
|
-
};
|
|
152
|
-
exports.getScrollPositionForCursorOnLeftEdge = getScrollPositionForCursorOnLeftEdge;
|
|
153
|
-
const getScrollPositionForCursorOnRightEdge = ({ nextFrame, durationInFrames, }) => {
|
|
154
|
-
var _a, _b;
|
|
155
|
-
const frameIncrement = (0, exports.getFrameIncrement)(durationInFrames);
|
|
156
|
-
const framesRemaining = durationInFrames - 1 - nextFrame;
|
|
157
|
-
const fromRight = framesRemaining * frameIncrement + timeline_layout_1.TIMELINE_PADDING;
|
|
158
|
-
const scrollPos = ((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) -
|
|
159
|
-
fromRight -
|
|
160
|
-
((_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) +
|
|
161
|
-
timeline_layout_1.TIMELINE_PADDING +
|
|
162
|
-
4; // clearfix;
|
|
163
|
-
return scrollPos;
|
|
164
|
-
};
|
|
165
|
-
exports.getScrollPositionForCursorOnRightEdge = getScrollPositionForCursorOnRightEdge;
|
|
166
|
-
const getFrameIncrement = (durationInFrames) => {
|
|
167
|
-
var _a, _b;
|
|
168
|
-
const width = (_b = (_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) !== null && _b !== void 0 ? _b : 0;
|
|
169
|
-
return ((width - timeline_layout_1.TIMELINE_PADDING * 2) /
|
|
170
|
-
(durationInFrames - 1));
|
|
171
|
-
};
|
|
172
|
-
exports.getFrameIncrement = getFrameIncrement;
|
|
173
|
-
const getFrameWhileScrollingRight = ({ durationInFrames, width, }) => {
|
|
174
|
-
var _a, _b;
|
|
175
|
-
const nextFrame = calculateFrameWhileScrollingRight({
|
|
176
|
-
durationInFrames,
|
|
177
|
-
width,
|
|
178
|
-
scrollLeft: ((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollLeft) + exports.SCROLL_INCREMENT,
|
|
179
|
-
});
|
|
180
|
-
const currentFrame = calculateFrameWhileScrollingRight({
|
|
181
|
-
durationInFrames,
|
|
182
|
-
width,
|
|
183
|
-
scrollLeft: (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollLeft,
|
|
184
|
-
});
|
|
185
|
-
// Should scroll by at least 1 frame, but not overshoot duration
|
|
186
|
-
return Math.min(durationInFrames - 1, Math.max(nextFrame, currentFrame + 1));
|
|
187
|
-
};
|
|
188
|
-
exports.getFrameWhileScrollingRight = getFrameWhileScrollingRight;
|
|
189
|
-
const getFrameFromX = ({ clientX, durationInFrames, width, extrapolate, }) => {
|
|
190
|
-
var _a;
|
|
191
|
-
const pos = clientX - timeline_layout_1.TIMELINE_PADDING;
|
|
192
|
-
const frame = Math.round((0, remotion_1.interpolate)(pos, [0, width - timeline_layout_1.TIMELINE_PADDING * 2], [0, (_a = durationInFrames - 1) !== null && _a !== void 0 ? _a : 0], {
|
|
193
|
-
extrapolateLeft: extrapolate,
|
|
194
|
-
extrapolateRight: extrapolate,
|
|
195
|
-
}));
|
|
196
|
-
return frame;
|
|
197
|
-
};
|
|
198
|
-
exports.getFrameFromX = getFrameFromX;
|
|
199
|
-
const zoomAndPreserveCursor = ({ oldZoom, newZoom, currentFrame, currentDurationInFrames, }) => {
|
|
200
|
-
var _a, _b, _c;
|
|
201
|
-
const ratio = newZoom / oldZoom;
|
|
202
|
-
if (ratio === 1) {
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
const { current } = timeline_refs_1.scrollableRef;
|
|
206
|
-
if (!current) {
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
const frameIncrement = (0, exports.getFrameIncrement)(currentDurationInFrames);
|
|
210
|
-
const prevCursorPosition = frameIncrement * currentFrame + timeline_layout_1.TIMELINE_PADDING;
|
|
211
|
-
const newCursorPosition = ratio * (prevCursorPosition - timeline_layout_1.TIMELINE_PADDING) + timeline_layout_1.TIMELINE_PADDING;
|
|
212
|
-
current.scrollLeft += newCursorPosition - prevCursorPosition;
|
|
213
|
-
(_a = TimelineSlider_1.redrawTimelineSliderFast.current) === null || _a === void 0 ? void 0 : _a.draw(currentFrame, ((_c = (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) !== null && _c !== void 0 ? _c : 0) * ratio);
|
|
214
|
-
};
|
|
215
|
-
exports.zoomAndPreserveCursor = zoomAndPreserveCursor;
|
|
@@ -3,7 +3,7 @@ export declare const TIMELINE_MIN_ZOOM = 1;
|
|
|
3
3
|
export declare const TIMELINE_MAX_ZOOM = 5;
|
|
4
4
|
export declare const TimelineZoomCtx: React.Context<{
|
|
5
5
|
zoom: number;
|
|
6
|
-
setZoom:
|
|
6
|
+
setZoom: React.Dispatch<React.SetStateAction<number>>;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const TimelineZoomContext: React.FC<{
|
|
9
9
|
children: React.ReactNode;
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TimelineZoomContext = exports.TimelineZoomCtx = exports.TIMELINE_MAX_ZOOM = exports.TIMELINE_MIN_ZOOM = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const imperative_state_1 = require("../components/Timeline/imperative-state");
|
|
7
|
-
const timeline_scroll_logic_1 = require("../components/Timeline/timeline-scroll-logic");
|
|
8
6
|
exports.TIMELINE_MIN_ZOOM = 1;
|
|
9
7
|
exports.TIMELINE_MAX_ZOOM = 5;
|
|
10
8
|
exports.TimelineZoomCtx = (0, react_1.createContext)({
|
|
@@ -18,19 +16,7 @@ const TimelineZoomContext = ({ children }) => {
|
|
|
18
16
|
const value = (0, react_1.useMemo)(() => {
|
|
19
17
|
return {
|
|
20
18
|
zoom,
|
|
21
|
-
setZoom
|
|
22
|
-
setZoom((prevZoom) => {
|
|
23
|
-
const newZoomWithFloatingPointErrors = Math.min(exports.TIMELINE_MAX_ZOOM, Math.max(exports.TIMELINE_MIN_ZOOM, callback(prevZoom)));
|
|
24
|
-
const newZoom = Math.round(newZoomWithFloatingPointErrors * 10) / 10;
|
|
25
|
-
(0, timeline_scroll_logic_1.zoomAndPreserveCursor)({
|
|
26
|
-
oldZoom: prevZoom,
|
|
27
|
-
newZoom,
|
|
28
|
-
currentDurationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
29
|
-
currentFrame: (0, imperative_state_1.getCurrentFrame)(),
|
|
30
|
-
});
|
|
31
|
-
return newZoom;
|
|
32
|
-
});
|
|
33
|
-
},
|
|
19
|
+
setZoom,
|
|
34
20
|
};
|
|
35
21
|
}, [zoom]);
|
|
36
22
|
return ((0, jsx_runtime_1.jsx)(exports.TimelineZoomCtx.Provider, { value: value, children: children }));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RenderStep } from './step';
|
|
2
|
+
export declare const prepareEntryPoint: ({ file, otherSteps, publicPath, outDir, }: {
|
|
3
|
+
file: string;
|
|
4
|
+
otherSteps: RenderStep[];
|
|
5
|
+
outDir: string | null;
|
|
6
|
+
publicPath: string | null;
|
|
7
|
+
}) => Promise<{
|
|
8
|
+
urlOrBundle: string;
|
|
9
|
+
steps: RenderStep[];
|
|
10
|
+
shouldDelete: boolean;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.prepareEntryPoint = void 0;
|
|
7
|
+
const renderer_1 = require("@remotion/renderer");
|
|
8
|
+
const promises_1 = require("fs/promises");
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const process_1 = require("process");
|
|
11
|
+
const log_1 = require("./log");
|
|
12
|
+
const setup_cache_1 = require("./setup-cache");
|
|
13
|
+
const prepareEntryPoint = async ({ file, otherSteps, publicPath, outDir, }) => {
|
|
14
|
+
if (renderer_1.RenderInternals.isServeUrl(file)) {
|
|
15
|
+
return { urlOrBundle: file, steps: otherSteps, shouldDelete: false };
|
|
16
|
+
}
|
|
17
|
+
const joined = path_1.default.resolve(process.cwd(), file);
|
|
18
|
+
try {
|
|
19
|
+
const stats = await (0, promises_1.stat)(joined);
|
|
20
|
+
if (stats.isDirectory()) {
|
|
21
|
+
return { urlOrBundle: joined, steps: otherSteps, shouldDelete: false };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch (err) {
|
|
25
|
+
log_1.Log.error(`No file or directory exists at ${joined}.`);
|
|
26
|
+
(0, process_1.exit)(1);
|
|
27
|
+
}
|
|
28
|
+
const urlOrBundle = await (0, setup_cache_1.bundleOnCli)({
|
|
29
|
+
fullPath: joined,
|
|
30
|
+
steps: ['bundling', ...otherSteps],
|
|
31
|
+
outDir,
|
|
32
|
+
publicPath,
|
|
33
|
+
});
|
|
34
|
+
return { urlOrBundle, steps: ['bundling', ...otherSteps], shouldDelete: true };
|
|
35
|
+
};
|
|
36
|
+
exports.prepareEntryPoint = prepareEntryPoint;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Button = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const colors_1 = require("../../../editor/helpers/colors");
|
|
6
7
|
const button = {
|
|
7
8
|
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
|
|
@@ -18,7 +19,13 @@ const buttonContainer = {
|
|
|
18
19
|
cursor: 'pointer',
|
|
19
20
|
fontSize: 14,
|
|
20
21
|
};
|
|
21
|
-
const Button = ({ children, onClick, disabled }) => {
|
|
22
|
-
|
|
22
|
+
const Button = ({ children, onClick, disabled, style }) => {
|
|
23
|
+
const combined = (0, react_1.useMemo)(() => {
|
|
24
|
+
return {
|
|
25
|
+
...button,
|
|
26
|
+
...(style !== null && style !== void 0 ? style : {}),
|
|
27
|
+
};
|
|
28
|
+
}, [style]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("button", { style: combined, type: "button", disabled: disabled, onClick: onClick, children: (0, jsx_runtime_1.jsx)("div", { style: buttonContainer, children: children }) }));
|
|
23
30
|
};
|
|
24
31
|
exports.Button = Button;
|
|
@@ -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');
|
|
@@ -26,6 +30,6 @@ const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
|
|
|
26
30
|
});
|
|
27
31
|
return () => unregister();
|
|
28
32
|
}, [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] }));
|
|
33
|
+
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
34
|
};
|
|
31
35
|
exports.HelpLink = HelpLink;
|
|
@@ -14,6 +14,30 @@ 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
|
+
}
|
|
17
41
|
return null;
|
|
18
42
|
};
|
|
19
43
|
exports.getHelpLink = getHelpLink;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
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 function registerExportsForReactRefresh(moduleExports: unknown, moduleID: unknown): void;
|
|
28
|
+
declare function isReactRefreshBoundary(moduleExports: unknown): boolean;
|
|
29
|
+
declare function shouldInvalidateReactRefreshBoundary(prevExports: unknown, nextExports: unknown): boolean;
|
|
30
|
+
declare function getRefreshBoundarySignature(moduleExports: unknown): any[];
|
|
31
|
+
declare function scheduleUpdate(): void;
|
|
32
|
+
declare const _default: {
|
|
33
|
+
registerExportsForReactRefresh: typeof registerExportsForReactRefresh;
|
|
34
|
+
isReactRefreshBoundary: typeof isReactRefreshBoundary;
|
|
35
|
+
shouldInvalidateReactRefreshBoundary: typeof shouldInvalidateReactRefreshBoundary;
|
|
36
|
+
getRefreshBoundarySignature: typeof getRefreshBoundarySignature;
|
|
37
|
+
scheduleUpdate: typeof scheduleUpdate;
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* MIT License
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
* in the Software without restriction, including without limitation the rights
|
|
13
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
* furnished to do so, subject to the following conditions:
|
|
16
|
+
*
|
|
17
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
* copies or substantial portions of the Software.
|
|
19
|
+
*
|
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
* SOFTWARE.
|
|
27
|
+
*/
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
// This file is copied from the Metro JavaScript bundler, with minor tweaks for
|
|
30
|
+
// webpack compatibility.
|
|
31
|
+
//
|
|
32
|
+
// https://github.com/facebook/metro/blob/d6b9685c730d0d63577db40f41369157f28dfa3a/packages/metro/src/lib/polyfills/require.js
|
|
33
|
+
const RefreshRuntime = require('react-refresh/runtime');
|
|
34
|
+
function isSafeExport(key) {
|
|
35
|
+
return (key === '__esModule' ||
|
|
36
|
+
key === '__N_SSG' ||
|
|
37
|
+
key === '__N_SSP' ||
|
|
38
|
+
key === 'config');
|
|
39
|
+
}
|
|
40
|
+
function registerExportsForReactRefresh(moduleExports, moduleID) {
|
|
41
|
+
RefreshRuntime.register(moduleExports, moduleID + ' %exports%');
|
|
42
|
+
if (moduleExports === null ||
|
|
43
|
+
moduleExports === undefined ||
|
|
44
|
+
typeof moduleExports !== 'object') {
|
|
45
|
+
// Exit if we can't iterate over exports.
|
|
46
|
+
// (This is important for legacy environments.)
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
for (const key in moduleExports) {
|
|
50
|
+
if (isSafeExport(key)) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
const exportValue = moduleExports[key];
|
|
55
|
+
const typeID = moduleID + ' %exports% ' + key;
|
|
56
|
+
RefreshRuntime.register(exportValue, typeID);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function isReactRefreshBoundary(moduleExports) {
|
|
60
|
+
if (RefreshRuntime.isLikelyComponentType(moduleExports)) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
if (moduleExports === null ||
|
|
64
|
+
moduleExports === undefined ||
|
|
65
|
+
typeof moduleExports !== 'object') {
|
|
66
|
+
// Exit if we can't iterate over exports.
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
let hasExports = false;
|
|
70
|
+
let areAllExportsComponents = true;
|
|
71
|
+
for (const key in moduleExports) {
|
|
72
|
+
hasExports = true;
|
|
73
|
+
if (isSafeExport(key)) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
// @ts-expect-error
|
|
77
|
+
const exportValue = moduleExports[key];
|
|
78
|
+
if (!RefreshRuntime.isLikelyComponentType(exportValue)) {
|
|
79
|
+
areAllExportsComponents = false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return hasExports && areAllExportsComponents;
|
|
83
|
+
}
|
|
84
|
+
function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
|
|
85
|
+
const prevSignature = getRefreshBoundarySignature(prevExports);
|
|
86
|
+
const nextSignature = getRefreshBoundarySignature(nextExports);
|
|
87
|
+
if (prevSignature.length !== nextSignature.length) {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
for (let i = 0; i < nextSignature.length; i++) {
|
|
91
|
+
if (prevSignature[i] !== nextSignature[i]) {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
function getRefreshBoundarySignature(moduleExports) {
|
|
98
|
+
const signature = [];
|
|
99
|
+
signature.push(RefreshRuntime.getFamilyByType(moduleExports));
|
|
100
|
+
if (moduleExports === null ||
|
|
101
|
+
moduleExports === undefined ||
|
|
102
|
+
typeof moduleExports !== 'object') {
|
|
103
|
+
// Exit if we can't iterate over exports.
|
|
104
|
+
// (This is important for legacy environments.)
|
|
105
|
+
return signature;
|
|
106
|
+
}
|
|
107
|
+
for (const key in moduleExports) {
|
|
108
|
+
if (isSafeExport(key)) {
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
// @ts-expect-error
|
|
112
|
+
const exportValue = moduleExports[key];
|
|
113
|
+
signature.push(key);
|
|
114
|
+
signature.push(RefreshRuntime.getFamilyByType(exportValue));
|
|
115
|
+
}
|
|
116
|
+
return signature;
|
|
117
|
+
}
|
|
118
|
+
function scheduleUpdate() {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
const execute = () => {
|
|
121
|
+
try {
|
|
122
|
+
RefreshRuntime.performReactRefresh();
|
|
123
|
+
}
|
|
124
|
+
catch (err) {
|
|
125
|
+
console.warn('Warning: Failed to re-render. We will retry on the next Fast Refresh event.\n' +
|
|
126
|
+
err);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
// Only trigger refresh if the webpack HMR state is idle
|
|
130
|
+
if (((_a = module.hot) === null || _a === void 0 ? void 0 : _a.status()) === 'idle') {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
(_b = module.hot) === null || _b === void 0 ? void 0 : _b.addStatusHandler((status) => {
|
|
134
|
+
if (status === 'idle') {
|
|
135
|
+
execute();
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
exports.default = {
|
|
140
|
+
registerExportsForReactRefresh,
|
|
141
|
+
isReactRefreshBoundary,
|
|
142
|
+
shouldInvalidateReactRefreshBoundary,
|
|
143
|
+
getRefreshBoundarySignature,
|
|
144
|
+
scheduleUpdate,
|
|
145
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
import webpack from 'webpack';
|
|
28
|
+
export declare class ReactFreshWebpackPlugin {
|
|
29
|
+
apply(compiler: webpack.Compiler): void;
|
|
30
|
+
}
|