@remotion/cli 4.0.0-oops.3 → 4.0.0-prefetch.7
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.d.ts +1 -0
- package/dist/bundle.js +32 -0
- package/dist/chalk/index.d.ts +58 -0
- package/dist/chalk/index.js +138 -0
- package/dist/code-frame.d.ts +1 -1
- package/dist/code-frame.js +10 -12
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +38 -8
- package/dist/config/browser-executable.d.ts +3 -0
- package/dist/config/browser-executable.js +12 -0
- package/dist/config/browser.d.ts +3 -0
- package/dist/config/browser.js +18 -0
- package/dist/config/bundle-out-dir.d.ts +2 -0
- package/dist/config/bundle-out-dir.js +12 -0
- package/dist/config/chromium-flags.d.ts +9 -0
- package/dist/config/chromium-flags.js +33 -0
- package/dist/config/codec.d.ts +7 -0
- package/dist/config/codec.js +40 -0
- package/dist/config/concurrency.d.ts +3 -0
- package/dist/config/concurrency.js +12 -0
- package/dist/config/crf.d.ts +4 -0
- package/dist/config/crf.js +23 -0
- package/dist/config/enforce-audio-track.d.ts +2 -0
- package/dist/config/enforce-audio-track.js +13 -0
- package/dist/config/env-file.d.ts +2 -0
- package/dist/config/env-file.js +10 -0
- package/dist/config/every-nth-frame.d.ts +3 -0
- package/dist/config/every-nth-frame.js +20 -0
- package/dist/config/ffmpeg-executable.d.ts +5 -0
- package/dist/config/ffmpeg-executable.js +21 -0
- package/dist/config/frame-range.d.ts +4 -0
- package/dist/config/frame-range.js +35 -0
- package/dist/config/get-public-path.d.ts +2 -0
- package/dist/config/get-public-path.js +12 -0
- package/dist/config/image-format.d.ts +3 -0
- package/dist/config/image-format.js +20 -0
- package/dist/config/image-sequence.d.ts +3 -0
- package/dist/config/image-sequence.js +15 -0
- package/dist/config/index.d.ts +49 -0
- package/dist/config/index.js +176 -0
- package/dist/config/keyboard-shortcuts.d.ts +2 -0
- package/dist/config/keyboard-shortcuts.js +12 -0
- package/dist/config/log.d.ts +3 -0
- package/dist/config/log.js +12 -0
- package/dist/config/max-timeline-tracks.d.ts +2 -0
- package/dist/config/max-timeline-tracks.js +24 -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 +4 -0
- package/dist/config/number-of-gif-loops.js +21 -0
- package/dist/config/output-location.d.ts +2 -0
- package/dist/config/output-location.js +16 -0
- package/dist/config/override-webpack.d.ts +5 -0
- package/dist/config/override-webpack.js +14 -0
- package/dist/config/overwrite.d.ts +2 -0
- package/dist/config/overwrite.js +14 -0
- package/dist/config/pixel-format.d.ts +3 -0
- package/dist/config/pixel-format.js +16 -0
- package/dist/config/preview-server.d.ts +2 -0
- package/dist/config/preview-server.js +20 -0
- package/dist/config/prores-profile.d.ts +3 -0
- package/dist/config/prores-profile.js +12 -0
- package/dist/config/public-dir.d.ts +2 -0
- package/dist/config/public-dir.js +12 -0
- package/dist/config/quality.d.ts +2 -0
- package/dist/config/quality.js +17 -0
- package/dist/config/scale.d.ts +3 -0
- package/dist/config/scale.js +15 -0
- package/dist/config/still-frame.d.ts +2 -0
- package/dist/config/still-frame.js +12 -0
- package/dist/config/timeout.d.ts +2 -0
- package/dist/config/timeout.js +17 -0
- package/dist/config/webpack-caching.d.ts +3 -0
- package/dist/config/webpack-caching.js +16 -0
- package/dist/download-progress.d.ts +2 -1
- package/dist/download-progress.js +19 -4
- package/dist/editor/components/AudioWaveform.js +2 -2
- package/dist/editor/components/AudioWaveformBar.js +1 -1
- package/dist/editor/components/Button.d.ts +4 -0
- package/dist/editor/components/Button.js +24 -0
- package/dist/editor/components/Canvas.js +191 -1
- package/dist/editor/components/CheckboardToggle.js +9 -2
- package/dist/editor/components/ClipboardIcon.js +1 -1
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +4 -0
- package/dist/editor/components/CollapsedCompositionSelector.js +39 -0
- package/dist/editor/components/CompositionSelector.js +7 -45
- package/dist/editor/components/CompositionSelectorItem.d.ts +2 -2
- package/dist/editor/components/CompositionSelectorItem.js +6 -4
- package/dist/editor/components/ControlButton.js +1 -1
- package/dist/editor/components/CopyButton.js +5 -18
- package/dist/editor/components/CurrentComposition.js +7 -2
- package/dist/editor/components/Editor.js +22 -90
- package/dist/editor/components/EditorContent.js +3 -2
- package/dist/editor/components/EditorContexts.d.ts +4 -0
- package/dist/editor/components/EditorContexts.js +83 -0
- package/dist/editor/components/FpsCounter.js +1 -1
- package/dist/editor/components/FramePersistor.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.js +26 -11
- package/dist/editor/components/InitialCompositionLoader.d.ts +4 -0
- package/dist/editor/components/InitialCompositionLoader.js +86 -0
- package/dist/editor/components/KeyboardShortcutsModal.js +15 -1
- package/dist/editor/components/LoopToggle.js +1 -1
- package/dist/editor/components/Menu/MenuDivider.js +1 -1
- package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
- package/dist/editor/components/Menu/MenuItem.js +4 -4
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/Menu/MenuSubItem.js +5 -4
- package/dist/editor/components/Menu/SubMenu.d.ts +2 -2
- package/dist/editor/components/Menu/SubMenu.js +1 -1
- package/dist/editor/components/Menu/styles.d.ts +3 -2
- package/dist/editor/components/Menu/styles.js +10 -3
- package/dist/editor/components/MenuBuildIndicator.d.ts +2 -0
- package/dist/editor/components/MenuBuildIndicator.js +26 -0
- package/dist/editor/components/MenuToolbar.js +109 -20
- package/dist/editor/components/ModalContainer.js +1 -1
- package/dist/editor/components/ModalHeader.js +1 -1
- package/dist/editor/components/MuteToggle.js +1 -1
- package/dist/editor/components/NewComposition/CancelButton.d.ts +2 -1
- package/dist/editor/components/NewComposition/CancelButton.js +1 -1
- package/dist/editor/components/NewComposition/ComboBox.js +15 -5
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +2 -1
- package/dist/editor/components/NewComposition/InputDragger.js +2 -2
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -1
- package/dist/editor/components/NewComposition/MenuContent.js +43 -8
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +1 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js +1 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts +1 -1
- package/dist/editor/components/NewComposition/NewComposition.js +4 -4
- package/dist/editor/components/NewComposition/RemInput.js +1 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +1 -1
- package/dist/editor/components/NewComposition/ValidationMessage.js +2 -2
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +1 -1
- package/dist/editor/components/NoRegisterRoot.d.ts +2 -0
- package/dist/editor/components/NoRegisterRoot.js +41 -0
- package/dist/editor/components/Notifications/ColorDot.d.ts +4 -0
- package/dist/editor/components/Notifications/ColorDot.js +22 -0
- package/dist/editor/components/Notifications/Notification.d.ts +8 -0
- package/dist/editor/components/Notifications/Notification.js +31 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +13 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +40 -0
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +6 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +59 -0
- package/dist/editor/components/PlayPause.js +121 -23
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +1 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +24 -21
- package/dist/editor/components/PlaybackRatePersistor.d.ts +1 -1
- package/dist/editor/components/PlaybackRateSelector.js +7 -2
- package/dist/editor/components/Preview.d.ts +2 -1
- package/dist/editor/components/Preview.js +27 -16
- package/dist/editor/components/PreviewToolbar.js +4 -2
- package/dist/editor/components/PreviewZoomControls.d.ts +2 -0
- package/dist/editor/components/PreviewZoomControls.js +67 -0
- package/dist/editor/components/ResetZoomButton.d.ts +4 -0
- package/dist/editor/components/ResetZoomButton.js +9 -0
- package/dist/editor/components/RichTimelineToggle.js +1 -1
- package/dist/editor/components/SizeSelector.d.ts +3 -2
- package/dist/editor/components/SizeSelector.js +58 -18
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +1 -1
- package/dist/editor/components/Splitter/SplitterContainer.js +1 -1
- package/dist/editor/components/Splitter/SplitterElement.js +5 -2
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +4 -1
- package/dist/editor/components/Splitter/SplitterHandle.js +28 -7
- package/dist/editor/components/Thumbnail.d.ts +1 -1
- package/dist/editor/components/Thumbnail.js +1 -1
- package/dist/editor/components/TimeValue.js +9 -5
- package/dist/editor/components/Timeline/LoopedIndicator.js +2 -2
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +3 -3
- 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.js +12 -4
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +2 -2
- package/dist/editor/components/Timeline/TimelineDragHandler.js +123 -25
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +4 -3
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +1 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineList.js +7 -4
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +3 -2
- package/dist/editor/components/Timeline/TimelineListItem.js +10 -5
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +76 -0
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +4 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +25 -0
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineSequence.js +1 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +1 -1
- 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.js +1 -3
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +168 -0
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineTracks.js +14 -9
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +1 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +45 -0
- package/dist/editor/components/Timeline/imperative-state.d.ts +12 -0
- package/dist/editor/components/Timeline/imperative-state.js +39 -0
- package/dist/editor/components/Timeline/is-collapsed.d.ts +2 -2
- 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 +44 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +218 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +2 -2
- package/dist/editor/components/TimelineInOutToggle.js +85 -20
- package/dist/editor/components/TopPanel.js +24 -1
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.js +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js +1 -1
- package/dist/editor/components/ZoomPersistor.d.ts +4 -0
- package/dist/editor/components/ZoomPersistor.js +37 -0
- package/dist/editor/components/layout.js +4 -4
- package/dist/editor/helpers/calculate-timeline.d.ts +2 -2
- 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 +1 -1
- package/dist/editor/helpers/copy-text.js +5 -4
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -2
- 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 +1 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.js +29 -9
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -1
- package/dist/editor/helpers/is-composition-still.d.ts +1 -1
- 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/normalize-wheel.d.ts +5 -0
- package/dist/editor/helpers/normalize-wheel.js +20 -0
- package/dist/editor/helpers/normalize-zoom.d.ts +1 -0
- package/dist/editor/helpers/normalize-zoom.js +16 -0
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +36 -0
- package/dist/editor/helpers/use-compact-ui.d.ts +1 -0
- package/dist/editor/helpers/use-compact-ui.js +18 -0
- package/dist/editor/helpers/use-keybinding.d.ts +8 -2
- package/dist/editor/helpers/use-keybinding.js +23 -6
- package/dist/editor/helpers/validate-new-comp-data.d.ts +1 -1
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/caret.d.ts +1 -1
- package/dist/editor/icons/caret.js +4 -4
- package/dist/editor/icons/film.d.ts +2 -1
- package/dist/editor/icons/film.js +1 -1
- package/dist/editor/icons/folder.d.ts +2 -1
- package/dist/editor/icons/folder.js +2 -2
- package/dist/editor/icons/jump-to-start.d.ts +2 -0
- package/dist/editor/icons/jump-to-start.js +8 -0
- package/dist/editor/icons/keys.js +3 -3
- package/dist/editor/icons/lock.d.ts +2 -1
- package/dist/editor/icons/lock.js +2 -2
- package/dist/editor/icons/media-volume.js +2 -2
- package/dist/editor/icons/minus.d.ts +3 -0
- package/dist/editor/icons/minus.js +8 -0
- package/dist/editor/icons/pause.d.ts +2 -1
- package/dist/editor/icons/pause.js +1 -1
- package/dist/editor/icons/play.d.ts +2 -1
- package/dist/editor/icons/play.js +1 -1
- package/dist/editor/icons/plus.d.ts +3 -0
- package/dist/editor/icons/plus.js +8 -0
- package/dist/editor/icons/step-back.d.ts +2 -1
- package/dist/editor/icons/step-back.js +1 -1
- package/dist/editor/icons/step-forward.d.ts +2 -1
- package/dist/editor/icons/step-forward.js +1 -1
- package/dist/editor/icons/still.d.ts +2 -1
- package/dist/editor/icons/still.js +1 -1
- package/dist/editor/icons/timeline.d.ts +2 -1
- package/dist/editor/icons/timeline.js +1 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts +2 -1
- package/dist/editor/icons/timelineInOutPointer.js +2 -2
- package/dist/editor/state/folders.d.ts +11 -0
- package/dist/editor/state/folders.js +23 -0
- package/dist/editor/state/highest-z-index.js +2 -2
- package/dist/editor/state/in-out.d.ts +12 -0
- package/dist/editor/state/in-out.js +23 -0
- package/dist/editor/state/keybindings.js +4 -2
- package/dist/editor/state/modals.d.ts +2 -2
- package/dist/editor/state/preview-size.d.ts +6 -3
- package/dist/editor/state/preview-size.js +39 -5
- package/dist/editor/state/render-frame.js +12 -3
- package/dist/editor/state/sidebar.d.ts +12 -0
- package/dist/editor/state/sidebar.js +40 -0
- package/dist/editor/state/timeline-zoom.d.ts +10 -0
- package/dist/editor/state/timeline-zoom.js +38 -0
- package/dist/editor/state/z-index.js +7 -2
- package/dist/event-source-events.d.ts +6 -0
- package/dist/event-source-events.js +2 -0
- package/dist/event-source.d.ts +1 -0
- package/dist/event-source.js +28 -0
- package/dist/find-closest-package-json.d.ts +2 -0
- package/dist/find-closest-package-json.js +35 -0
- package/dist/format-bytes.d.ts +6 -0
- package/dist/format-bytes.js +103 -0
- package/dist/get-cli-options.d.ts +15 -8
- package/dist/get-cli-options.js +56 -46
- package/dist/get-composition-id.d.ts +1 -2
- package/dist/get-composition-id.js +2 -3
- package/dist/get-config-file-name.d.ts +1 -1
- package/dist/get-config-file-name.js +9 -6
- package/dist/get-env.js +6 -4
- package/dist/get-filename.d.ts +4 -3
- package/dist/get-filename.js +5 -5
- package/dist/get-final-output-codec.d.ts +6 -0
- package/dist/get-final-output-codec.js +63 -0
- package/dist/get-input-props.d.ts +1 -1
- package/dist/get-input-props.js +10 -1
- package/dist/get-latest-remotion-version.d.ts +1 -0
- package/dist/get-latest-remotion-version.js +31 -0
- package/dist/handle-common-errors.js +5 -0
- package/dist/image-formats.d.ts +3 -2
- package/dist/image-formats.js +6 -4
- package/dist/index.d.ts +79 -22
- package/dist/index.js +33 -15
- package/dist/initialize-render-cli.d.ts +1 -1
- package/dist/initialize-render-cli.js +8 -3
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +8 -4
- package/dist/list-of-remotion-packages.d.ts +1 -0
- package/dist/list-of-remotion-packages.js +20 -0
- package/dist/load-config.d.ts +1 -1
- package/dist/load-config.js +16 -5
- package/dist/log.js +11 -13
- package/dist/parse-command-line.d.ts +8 -1
- package/dist/parse-command-line.js +56 -28
- package/dist/prepare-entry-point.d.ts +12 -0
- package/dist/prepare-entry-point.js +37 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +7 -0
- package/dist/preview-server/dev-middleware/compatible-api.js +20 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +7 -0
- package/dist/preview-server/dev-middleware/get-paths.js +19 -0
- package/dist/preview-server/dev-middleware/index.d.ts +3 -0
- package/dist/preview-server/dev-middleware/index.js +27 -0
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +1 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +37 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +10 -0
- package/dist/preview-server/dev-middleware/middleware.js +224 -0
- package/dist/preview-server/dev-middleware/range-parser.d.ts +15 -0
- package/dist/preview-server/dev-middleware/range-parser.js +96 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +3 -0
- package/dist/preview-server/dev-middleware/ready.js +11 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-hooks.js +42 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +13 -0
- package/dist/preview-server/dev-middleware/types.d.ts +10 -0
- package/dist/preview-server/dev-middleware/types.js +2 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +1 -0
- package/dist/preview-server/error-overlay/entry-basic.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +11 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +46 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +24 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +64 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +43 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +45 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +8 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +87 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +14 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +24 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +50 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +27 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +16 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +483 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +117 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +40 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +64 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +32 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +7 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +30 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +23 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +48 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +61 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +69 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +37 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +35 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +109 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +14 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +12 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +10 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +43 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +18 -0
- package/dist/preview-server/get-package-manager.d.ts +10 -0
- package/dist/preview-server/get-package-manager.js +47 -0
- package/dist/preview-server/hot-middleware/client.d.ts +19 -0
- package/dist/preview-server/hot-middleware/client.js +177 -0
- package/dist/preview-server/hot-middleware/index.d.ts +8 -0
- package/dist/preview-server/hot-middleware/index.js +150 -0
- package/dist/preview-server/hot-middleware/process-update.d.ts +12 -0
- package/dist/preview-server/hot-middleware/process-update.js +144 -0
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +1 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +21 -0
- package/dist/preview-server/hot-middleware/types.d.ts +27 -0
- package/dist/preview-server/hot-middleware/types.js +10 -0
- package/dist/preview-server/live-events.d.ts +8 -0
- package/dist/preview-server/live-events.js +41 -0
- package/dist/preview-server/project-info.d.ts +5 -0
- package/dist/preview-server/project-info.js +22 -0
- package/dist/preview-server/routes.d.ts +12 -0
- package/dist/preview-server/routes.js +161 -0
- package/dist/preview-server/serve-static.d.ts +9 -0
- package/dist/preview-server/serve-static.js +77 -0
- package/dist/preview-server/start-server.d.ts +15 -0
- package/dist/preview-server/start-server.js +81 -0
- package/dist/preview-server/update-available.d.ts +11 -0
- package/dist/preview-server/update-available.js +47 -0
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +38 -8
- package/dist/previewEntry.js +12 -2
- package/dist/print-error.js +6 -8
- package/dist/print-help.js +11 -14
- package/dist/progress-bar.d.ts +7 -4
- package/dist/progress-bar.js +19 -15
- package/dist/render.d.ts +1 -1
- package/dist/render.js +88 -55
- package/dist/setup-cache.d.ts +16 -2
- package/dist/setup-cache.js +53 -14
- package/dist/smooth-zoom.d.ts +4 -0
- package/dist/smooth-zoom.js +20 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +93 -43
- package/dist/truthy.d.ts +3 -0
- package/dist/truthy.js +7 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +18 -32
- package/dist/user-passed-output-location.d.ts +5 -1
- package/dist/user-passed-output-location.js +14 -7
- package/dist/versions.d.ts +2 -2
- package/dist/versions.js +16 -24
- package/dist/warn-about-ffmpeg-version.d.ts +1 -1
- package/package.json +15 -16
- package/tsconfig.json +2 -1
- package/vitest.config.ts +9 -0
- package/web/favicon.png +0 -0
- package/dist/editor/components/LoadingIndicator.d.ts +0 -2
- package/dist/editor/components/LoadingIndicator.js +0 -35
|
@@ -3,36 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CopyButton = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const
|
|
6
|
+
const Button_1 = require("../../preview-server/error-overlay/remotion-overlay/Button");
|
|
7
7
|
const copy_text_1 = require("../helpers/copy-text");
|
|
8
8
|
const layout_1 = require("./layout");
|
|
9
9
|
const iconStyle = {
|
|
10
10
|
width: 16,
|
|
11
11
|
height: 16,
|
|
12
12
|
color: 'white',
|
|
13
|
+
verticalAlign: 'sub',
|
|
13
14
|
};
|
|
14
|
-
const copyIcon = ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "clipboard", className: "svg-inline--fa fa-clipboard fa-w-12", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 512", style: iconStyle, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm144 418c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h42v36c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-36h42c3.3 0 6 2.7 6 6z" }
|
|
15
|
-
const container = {
|
|
16
|
-
padding: 10,
|
|
17
|
-
cursor: 'pointer',
|
|
18
|
-
fontSize: 14,
|
|
19
|
-
};
|
|
20
|
-
const button = {
|
|
21
|
-
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
|
|
22
|
-
borderRadius: 4,
|
|
23
|
-
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
24
|
-
appearance: 'none',
|
|
25
|
-
fontFamily: 'inherit',
|
|
26
|
-
fontSize: 14,
|
|
27
|
-
color: 'white',
|
|
28
|
-
};
|
|
15
|
+
const copyIcon = ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "clipboard", className: "svg-inline--fa fa-clipboard fa-w-12", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 512", style: iconStyle, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm144 418c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h42v36c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-36h42c3.3 0 6 2.7 6 6z" }) }));
|
|
29
16
|
const labelStyle = {
|
|
30
17
|
fontSize: 14,
|
|
31
18
|
};
|
|
32
19
|
const CopyButton = ({ textToCopy, label, labelWhenCopied }) => {
|
|
33
20
|
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
34
21
|
const onClick = (0, react_1.useCallback)(() => {
|
|
35
|
-
(0, copy_text_1.
|
|
22
|
+
(0, copy_text_1.copyText)(textToCopy);
|
|
36
23
|
setCopied(Date.now());
|
|
37
24
|
}, [textToCopy]);
|
|
38
25
|
(0, react_1.useEffect)(() => {
|
|
@@ -42,6 +29,6 @@ const CopyButton = ({ textToCopy, label, labelWhenCopied }) => {
|
|
|
42
29
|
const to = setTimeout(() => setCopied(false), 2000);
|
|
43
30
|
return () => clearTimeout(to);
|
|
44
31
|
}, [copied]);
|
|
45
|
-
return ((0, jsx_runtime_1.
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: onClick, children: [copyIcon, (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1.5 }), ' ', (0, jsx_runtime_1.jsx)("span", { style: labelStyle, children: copied ? labelWhenCopied : label })] }));
|
|
46
33
|
};
|
|
47
34
|
exports.CopyButton = CopyButton;
|
|
@@ -4,6 +4,7 @@ exports.CurrentComposition = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
|
+
const colors_1 = require("../helpers/colors");
|
|
7
8
|
const is_composition_still_1 = require("../helpers/is-composition-still");
|
|
8
9
|
const render_frame_1 = require("../state/render-frame");
|
|
9
10
|
const rich_timeline_1 = require("../state/rich-timeline");
|
|
@@ -15,23 +16,27 @@ const container = {
|
|
|
15
16
|
borderBottom: '1px solid black',
|
|
16
17
|
padding: 16,
|
|
17
18
|
color: 'white',
|
|
19
|
+
backgroundColor: colors_1.BACKGROUND,
|
|
18
20
|
};
|
|
19
21
|
const title = {
|
|
20
22
|
fontWeight: 'bold',
|
|
21
23
|
fontSize: 12,
|
|
22
24
|
whiteSpace: 'nowrap',
|
|
23
25
|
lineHeight: '18px',
|
|
26
|
+
backgroundColor: colors_1.BACKGROUND,
|
|
24
27
|
};
|
|
25
28
|
const subtitle = {
|
|
26
29
|
fontSize: 12,
|
|
27
30
|
opacity: 0.8,
|
|
28
31
|
whiteSpace: 'nowrap',
|
|
29
32
|
lineHeight: '18px',
|
|
33
|
+
backgroundColor: colors_1.BACKGROUND,
|
|
30
34
|
};
|
|
31
35
|
const row = {
|
|
32
36
|
display: 'flex',
|
|
33
37
|
flexDirection: 'row',
|
|
34
38
|
lineHeight: '18px',
|
|
39
|
+
backgroundColor: colors_1.BACKGROUND,
|
|
35
40
|
};
|
|
36
41
|
const targetHeight = 60;
|
|
37
42
|
const targetWidth = (targetHeight * 16) / 9;
|
|
@@ -46,9 +51,9 @@ const CurrentComposition = () => {
|
|
|
46
51
|
document.title = `${video.id} / ${window.remotion_projectName} - Remotion Preview`;
|
|
47
52
|
}, [video]);
|
|
48
53
|
if (!video) {
|
|
49
|
-
return (0, jsx_runtime_1.jsx)("div", { style: container }
|
|
54
|
+
return (0, jsx_runtime_1.jsx)("div", { style: container });
|
|
50
55
|
}
|
|
51
56
|
const frameToDisplay = Math.floor(video.durationInFrames / 2);
|
|
52
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsxs)("div", { style: row, children: [richTimelineContext.richTimeline ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Thumbnail_1.Thumbnail, { composition: video, targetHeight: targetHeight, targetWidth: targetWidth, frameToDisplay: frameToDisplay }
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsxs)("div", { style: row, children: [richTimelineContext.richTimeline ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Thumbnail_1.Thumbnail, { composition: video, targetHeight: targetHeight, targetWidth: targetWidth, frameToDisplay: frameToDisplay }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 })] })) : null, (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { style: title, children: video.id }), (0, jsx_runtime_1.jsxs)("div", { style: subtitle, children: [video.width, "x", video.height, (0, is_composition_still_1.isCompositionStill)(video) ? null : `, ${video.fps} FPS`] }), (0, is_composition_still_1.isCompositionStill)(video) ? ((0, jsx_runtime_1.jsx)("div", { style: subtitle, children: "Still" })) : ((0, jsx_runtime_1.jsxs)("div", { style: subtitle, children: ["Duration ", (0, render_frame_1.renderFrame)(video.durationInFrames, video.fps)] }))] })] }) }));
|
|
53
58
|
};
|
|
54
59
|
exports.CurrentComposition = CurrentComposition;
|
|
@@ -5,25 +5,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Editor = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const player_1 = require("@remotion/player");
|
|
9
8
|
const react_1 = require("react");
|
|
10
9
|
const remotion_1 = require("remotion");
|
|
11
10
|
const colors_1 = require("../helpers/colors");
|
|
12
11
|
const noop_1 = require("../helpers/noop");
|
|
13
|
-
const checkerboard_1 = require("../state/checkerboard");
|
|
14
|
-
const highest_z_index_1 = require("../state/highest-z-index");
|
|
15
|
-
const keybindings_1 = require("../state/keybindings");
|
|
16
12
|
const modals_1 = require("../state/modals");
|
|
17
|
-
const
|
|
18
|
-
const preview_size_1 = require("../state/preview-size");
|
|
19
|
-
const rich_timeline_1 = require("../state/rich-timeline");
|
|
13
|
+
const timeline_zoom_1 = require("../state/timeline-zoom");
|
|
20
14
|
const z_index_1 = require("../state/z-index");
|
|
21
15
|
const EditorContent_1 = require("./EditorContent");
|
|
22
16
|
const FramePersistor_1 = require("./FramePersistor");
|
|
23
17
|
const GlobalKeybindings_1 = require("./GlobalKeybindings");
|
|
24
18
|
const KeyboardShortcutsModal_1 = require("./KeyboardShortcutsModal");
|
|
25
19
|
const NewComposition_1 = __importDefault(require("./NewComposition/NewComposition"));
|
|
20
|
+
const NoRegisterRoot_1 = require("./NoRegisterRoot");
|
|
21
|
+
const NotificationCenter_1 = require("./Notifications/NotificationCenter");
|
|
26
22
|
const UpdateModal_1 = require("./UpdateModal/UpdateModal");
|
|
23
|
+
const ZoomPersistor_1 = require("./ZoomPersistor");
|
|
27
24
|
const background = {
|
|
28
25
|
backgroundColor: colors_1.BACKGROUND,
|
|
29
26
|
display: 'flex',
|
|
@@ -32,90 +29,25 @@ const background = {
|
|
|
32
29
|
flexDirection: 'column',
|
|
33
30
|
position: 'absolute',
|
|
34
31
|
};
|
|
35
|
-
const Root = remotion_1.Internals.getRoot();
|
|
36
32
|
const Editor = () => {
|
|
37
|
-
const [
|
|
38
|
-
const
|
|
39
|
-
const [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return newVal;
|
|
45
|
-
});
|
|
46
|
-
}, []);
|
|
47
|
-
const [richTimeline, setRichTimelineState] = (0, react_1.useState)(() => (0, rich_timeline_1.loadRichTimelineOption)());
|
|
48
|
-
const setRichTimeline = (0, react_1.useCallback)((newValue) => {
|
|
49
|
-
setRichTimelineState((prevState) => {
|
|
50
|
-
const newVal = newValue(prevState);
|
|
51
|
-
(0, rich_timeline_1.persistRichTimelineOption)(newVal);
|
|
52
|
-
return newVal;
|
|
53
|
-
});
|
|
54
|
-
}, []);
|
|
55
|
-
const setSize = (0, react_1.useCallback)((newValue) => {
|
|
56
|
-
setSizeState((prevState) => {
|
|
57
|
-
const newVal = newValue(prevState);
|
|
58
|
-
(0, preview_size_1.persistPreviewSizeOption)(newVal);
|
|
59
|
-
return newVal;
|
|
60
|
-
});
|
|
61
|
-
}, []);
|
|
62
|
-
const [inAndOutFrames, setInAndOutFrames] = (0, react_1.useState)({
|
|
63
|
-
inFrame: null,
|
|
64
|
-
outFrame: null,
|
|
33
|
+
const [Root, setRoot] = (0, react_1.useState)(() => remotion_1.Internals.getRoot());
|
|
34
|
+
const { selectedModal: modalContextType } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
35
|
+
const [waitForRoot] = (0, react_1.useState)(() => {
|
|
36
|
+
if (Root) {
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
return (0, remotion_1.delayRender)('Waiting for registerRoot()');
|
|
65
40
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
checkerboard,
|
|
78
|
-
setCheckerboard,
|
|
79
|
-
};
|
|
80
|
-
}, [checkerboard, setCheckerboard]);
|
|
81
|
-
const richTimelineCtx = (0, react_1.useMemo)(() => {
|
|
82
|
-
return {
|
|
83
|
-
richTimeline,
|
|
84
|
-
setRichTimeline,
|
|
85
|
-
};
|
|
86
|
-
}, [richTimeline, setRichTimeline]);
|
|
87
|
-
const timelineInOutContextValue = (0, react_1.useMemo)(() => {
|
|
88
|
-
return inAndOutFrames;
|
|
89
|
-
}, [inAndOutFrames]);
|
|
90
|
-
const setTimelineInOutContextValue = (0, react_1.useMemo)(() => {
|
|
91
|
-
return {
|
|
92
|
-
setInAndOutFrames,
|
|
93
|
-
};
|
|
94
|
-
}, []);
|
|
95
|
-
const mediaVolumeContextValue = (0, react_1.useMemo)(() => {
|
|
96
|
-
return {
|
|
97
|
-
mediaMuted,
|
|
98
|
-
mediaVolume,
|
|
99
|
-
};
|
|
100
|
-
}, [mediaMuted, mediaVolume]);
|
|
101
|
-
const setMediaVolumeContextValue = (0, react_1.useMemo)(() => {
|
|
102
|
-
return {
|
|
103
|
-
setMediaMuted,
|
|
104
|
-
setMediaVolume,
|
|
105
|
-
};
|
|
106
|
-
}, []);
|
|
107
|
-
const modalsContext = (0, react_1.useMemo)(() => {
|
|
108
|
-
return {
|
|
109
|
-
selectedModal: modalContextType,
|
|
110
|
-
setSelectedModal: setModalContextType,
|
|
111
|
-
};
|
|
112
|
-
}, [modalContextType]);
|
|
113
|
-
if (!Root) {
|
|
114
|
-
throw new Error('Root has not been registered. ');
|
|
115
|
-
}
|
|
116
|
-
return ((0, jsx_runtime_1.jsx)(keybindings_1.KeybindingContextProvider, { children: (0, jsx_runtime_1.jsx)(rich_timeline_1.RichTimelineContext.Provider, { value: richTimelineCtx, children: (0, jsx_runtime_1.jsx)(checkerboard_1.CheckerboardContext.Provider, { value: checkerboardCtx, children: (0, jsx_runtime_1.jsx)(preview_size_1.PreviewSizeContext.Provider, { value: previewSizeCtx, children: (0, jsx_runtime_1.jsx)(modals_1.ModalsContext.Provider, { value: modalsContext, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.Timeline.TimelineInOutContext.Provider, { value: timelineInOutContextValue, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.Timeline.SetTimelineInOutContext.Provider, { value: setTimelineInOutContextValue, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.MediaVolumeContext.Provider, { value: mediaVolumeContextValue, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.SetMediaVolumeContext.Provider, { value: setMediaVolumeContextValue, children: (0, jsx_runtime_1.jsx)(player_1.PlayerInternals.PlayerEventEmitterContext.Provider, { value: emitter, children: (0, jsx_runtime_1.jsx)(highest_z_index_1.HighestZIndexProvider, { children: (0, jsx_runtime_1.jsxs)(z_index_1.HigherZIndex, { onEscape: noop_1.noop, onOutsideClick: noop_1.noop, children: [(0, jsx_runtime_1.jsxs)("div", { style: background, children: [(0, jsx_runtime_1.jsx)(Root, {}, void 0), (0, jsx_runtime_1.jsx)(FramePersistor_1.FramePersistor, {}, void 0), (0, jsx_runtime_1.jsx)(EditorContent_1.EditorContent, {}, void 0), (0, jsx_runtime_1.jsx)(GlobalKeybindings_1.GlobalKeybindings, {}, void 0)] }, void 0), modalContextType &&
|
|
117
|
-
modalContextType.type === 'new-comp' && ((0, jsx_runtime_1.jsx)(NewComposition_1.default, { initialCompType: modalContextType.compType }, void 0)), modalContextType &&
|
|
118
|
-
modalContextType.type === 'update' && ((0, jsx_runtime_1.jsx)(UpdateModal_1.UpdateModal, { info: modalContextType.info }, void 0)), modalContextType &&
|
|
119
|
-
modalContextType.type === 'shortcuts' && ((0, jsx_runtime_1.jsx)(KeyboardShortcutsModal_1.KeyboardShortcuts, {}, void 0))] }, void 0) }, void 0) }, void 0) }, void 0) }, void 0) }, void 0) }, void 0) }, void 0) }, void 0) }, void 0) }, void 0) }, void 0));
|
|
41
|
+
(0, react_1.useEffect)(() => {
|
|
42
|
+
if (Root) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const cleanup = remotion_1.Internals.waitForRoot((NewRoot) => {
|
|
46
|
+
setRoot(() => NewRoot);
|
|
47
|
+
(0, remotion_1.continueRender)(waitForRoot);
|
|
48
|
+
});
|
|
49
|
+
return () => cleanup();
|
|
50
|
+
}, [Root, waitForRoot]);
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)(z_index_1.HigherZIndex, { onEscape: noop_1.noop, onOutsideClick: noop_1.noop, children: [(0, jsx_runtime_1.jsx)(timeline_zoom_1.TimelineZoomContext, { children: (0, jsx_runtime_1.jsxs)("div", { style: background, children: [Root === null ? null : (0, jsx_runtime_1.jsx)(Root, {}), (0, jsx_runtime_1.jsxs)(remotion_1.Internals.CanUseRemotionHooksProvider, { children: [(0, jsx_runtime_1.jsx)(FramePersistor_1.FramePersistor, {}), (0, jsx_runtime_1.jsx)(ZoomPersistor_1.ZoomPersistor, {}), Root === null ? (0, jsx_runtime_1.jsx)(NoRegisterRoot_1.NoRegisterRoot, {}) : (0, jsx_runtime_1.jsx)(EditorContent_1.EditorContent, {}), (0, jsx_runtime_1.jsx)(GlobalKeybindings_1.GlobalKeybindings, {})] })] }) }), (0, jsx_runtime_1.jsx)(NotificationCenter_1.NotificationCenter, {}), modalContextType && modalContextType.type === 'new-comp' && ((0, jsx_runtime_1.jsx)(NewComposition_1.default, { initialCompType: modalContextType.compType })), modalContextType && modalContextType.type === 'update' && ((0, jsx_runtime_1.jsx)(UpdateModal_1.UpdateModal, { info: modalContextType.info })), modalContextType && modalContextType.type === 'shortcuts' && ((0, jsx_runtime_1.jsx)(KeyboardShortcutsModal_1.KeyboardShortcuts, {}))] }));
|
|
120
52
|
};
|
|
121
53
|
exports.Editor = Editor;
|
|
@@ -8,11 +8,12 @@ const SplitterElement_1 = require("./Splitter/SplitterElement");
|
|
|
8
8
|
const SplitterHandle_1 = require("./Splitter/SplitterHandle");
|
|
9
9
|
const Timeline_1 = require("./Timeline/Timeline");
|
|
10
10
|
const TopPanel_1 = require("./TopPanel");
|
|
11
|
+
const noop = () => undefined;
|
|
11
12
|
const EditorContent = () => {
|
|
12
13
|
const isStill = (0, is_current_selected_still_1.useIsStill)();
|
|
13
14
|
if (isStill) {
|
|
14
|
-
return (0, jsx_runtime_1.jsx)(TopPanel_1.TopPanel, {}
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(TopPanel_1.TopPanel, {});
|
|
15
16
|
}
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(SplitterContainer_1.SplitterContainer, { orientation: "horizontal", id: "top-to-bottom", maxFlex: 0.9, minFlex: 0.2, defaultFlex: 0.75, children: [(0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "flexer", children: (0, jsx_runtime_1.jsx)(TopPanel_1.TopPanel, {}
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(SplitterContainer_1.SplitterContainer, { orientation: "horizontal", id: "top-to-bottom", maxFlex: 0.9, minFlex: 0.2, defaultFlex: 0.75, children: [(0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "flexer", children: (0, jsx_runtime_1.jsx)(TopPanel_1.TopPanel, {}) }), (0, jsx_runtime_1.jsx)(SplitterHandle_1.SplitterHandle, { allowToCollapse: false, onCollapse: noop }), (0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "anti-flexer", children: (0, jsx_runtime_1.jsx)(Timeline_1.Timeline, {}) })] }));
|
|
17
18
|
};
|
|
18
19
|
exports.EditorContent = EditorContent;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EditorContexts = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const player_1 = require("@remotion/player");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const remotion_1 = require("remotion");
|
|
8
|
+
const checkerboard_1 = require("../state/checkerboard");
|
|
9
|
+
const folders_1 = require("../state/folders");
|
|
10
|
+
const highest_z_index_1 = require("../state/highest-z-index");
|
|
11
|
+
const in_out_1 = require("../state/in-out");
|
|
12
|
+
const keybindings_1 = require("../state/keybindings");
|
|
13
|
+
const modals_1 = require("../state/modals");
|
|
14
|
+
const mute_1 = require("../state/mute");
|
|
15
|
+
const preview_size_1 = require("../state/preview-size");
|
|
16
|
+
const rich_timeline_1 = require("../state/rich-timeline");
|
|
17
|
+
const sidebar_1 = require("../state/sidebar");
|
|
18
|
+
const EditorContexts = ({ children }) => {
|
|
19
|
+
const [inAndOutFrames, setInAndOutFrames] = (0, react_1.useState)({
|
|
20
|
+
inFrame: null,
|
|
21
|
+
outFrame: null,
|
|
22
|
+
});
|
|
23
|
+
const timelineInOutContextValue = (0, react_1.useMemo)(() => {
|
|
24
|
+
return inAndOutFrames;
|
|
25
|
+
}, [inAndOutFrames]);
|
|
26
|
+
const [emitter] = (0, react_1.useState)(() => new player_1.PlayerInternals.PlayerEmitter());
|
|
27
|
+
const setTimelineInOutContextValue = (0, react_1.useMemo)(() => {
|
|
28
|
+
return {
|
|
29
|
+
setInAndOutFrames,
|
|
30
|
+
};
|
|
31
|
+
}, []);
|
|
32
|
+
const [checkerboard, setCheckerboardState] = (0, react_1.useState)(() => (0, checkerboard_1.loadCheckerboardOption)());
|
|
33
|
+
const setCheckerboard = (0, react_1.useCallback)((newValue) => {
|
|
34
|
+
setCheckerboardState((prevState) => {
|
|
35
|
+
const newVal = newValue(prevState);
|
|
36
|
+
(0, checkerboard_1.persistCheckerboardOption)(newVal);
|
|
37
|
+
return newVal;
|
|
38
|
+
});
|
|
39
|
+
}, []);
|
|
40
|
+
const [richTimeline, setRichTimelineState] = (0, react_1.useState)(() => (0, rich_timeline_1.loadRichTimelineOption)());
|
|
41
|
+
const setRichTimeline = (0, react_1.useCallback)((newValue) => {
|
|
42
|
+
setRichTimelineState((prevState) => {
|
|
43
|
+
const newVal = newValue(prevState);
|
|
44
|
+
(0, rich_timeline_1.persistRichTimelineOption)(newVal);
|
|
45
|
+
return newVal;
|
|
46
|
+
});
|
|
47
|
+
}, []);
|
|
48
|
+
const [mediaMuted, setMediaMuted] = (0, react_1.useState)(() => (0, mute_1.loadMuteOption)());
|
|
49
|
+
const [mediaVolume, setMediaVolume] = (0, react_1.useState)(1);
|
|
50
|
+
const [modalContextType, setModalContextType] = (0, react_1.useState)(null);
|
|
51
|
+
const checkerboardCtx = (0, react_1.useMemo)(() => {
|
|
52
|
+
return {
|
|
53
|
+
checkerboard,
|
|
54
|
+
setCheckerboard,
|
|
55
|
+
};
|
|
56
|
+
}, [checkerboard, setCheckerboard]);
|
|
57
|
+
const richTimelineCtx = (0, react_1.useMemo)(() => {
|
|
58
|
+
return {
|
|
59
|
+
richTimeline,
|
|
60
|
+
setRichTimeline,
|
|
61
|
+
};
|
|
62
|
+
}, [richTimeline, setRichTimeline]);
|
|
63
|
+
const mediaVolumeContextValue = (0, react_1.useMemo)(() => {
|
|
64
|
+
return {
|
|
65
|
+
mediaMuted,
|
|
66
|
+
mediaVolume,
|
|
67
|
+
};
|
|
68
|
+
}, [mediaMuted, mediaVolume]);
|
|
69
|
+
const setMediaVolumeContextValue = (0, react_1.useMemo)(() => {
|
|
70
|
+
return {
|
|
71
|
+
setMediaMuted,
|
|
72
|
+
setMediaVolume,
|
|
73
|
+
};
|
|
74
|
+
}, []);
|
|
75
|
+
const modalsContext = (0, react_1.useMemo)(() => {
|
|
76
|
+
return {
|
|
77
|
+
selectedModal: modalContextType,
|
|
78
|
+
setSelectedModal: setModalContextType,
|
|
79
|
+
};
|
|
80
|
+
}, [modalContextType]);
|
|
81
|
+
return ((0, jsx_runtime_1.jsx)(keybindings_1.KeybindingContextProvider, { children: (0, jsx_runtime_1.jsx)(rich_timeline_1.RichTimelineContext.Provider, { value: richTimelineCtx, children: (0, jsx_runtime_1.jsx)(checkerboard_1.CheckerboardContext.Provider, { value: checkerboardCtx, children: (0, jsx_runtime_1.jsx)(preview_size_1.PreviewSizeProvider, { children: (0, jsx_runtime_1.jsx)(modals_1.ModalsContext.Provider, { value: modalsContext, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.MediaVolumeContext.Provider, { value: mediaVolumeContextValue, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.SetMediaVolumeContext.Provider, { value: setMediaVolumeContextValue, children: (0, jsx_runtime_1.jsx)(player_1.PlayerInternals.PlayerEventEmitterContext.Provider, { value: emitter, children: (0, jsx_runtime_1.jsx)(sidebar_1.SidebarContextProvider, { children: (0, jsx_runtime_1.jsx)(folders_1.FolderContextProvider, { children: (0, jsx_runtime_1.jsx)(highest_z_index_1.HighestZIndexProvider, { children: (0, jsx_runtime_1.jsx)(in_out_1.TimelineInOutContext.Provider, { value: timelineInOutContextValue, children: (0, jsx_runtime_1.jsx)(in_out_1.SetTimelineInOutContext.Provider, { value: setTimelineInOutContextValue, children: children }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
82
|
+
};
|
|
83
|
+
exports.EditorContexts = EditorContexts;
|
|
@@ -69,6 +69,6 @@ const FpsCounter = ({ playbackSpeed }) => {
|
|
|
69
69
|
if (videoConfig === null) {
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
|
-
return (0, jsx_runtime_1.jsxs)("div", { style: style, children: [fps.toFixed(1), " FPS"] }
|
|
72
|
+
return (0, jsx_runtime_1.jsxs)("div", { style: style, children: [fps.toFixed(1), " FPS"] });
|
|
73
73
|
};
|
|
74
74
|
exports.FpsCounter = FpsCounter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare const getCurrentCompositionFromUrl: () => string;
|
|
3
3
|
export declare const persistCurrentFrame: (frame: number) => void;
|
|
4
4
|
export declare const getFrameForComposition: (composition: string) => number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare const GlobalKeybindings: React.FC;
|
|
@@ -10,19 +10,34 @@ const GlobalKeybindings = () => {
|
|
|
10
10
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
11
11
|
const { setCheckerboard } = (0, react_1.useContext)(checkerboard_1.CheckerboardContext);
|
|
12
12
|
(0, react_1.useEffect)(() => {
|
|
13
|
-
const nKey = keybindings.registerKeybinding(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const nKey = keybindings.registerKeybinding({
|
|
14
|
+
event: 'keypress',
|
|
15
|
+
key: 'n',
|
|
16
|
+
callback: () => {
|
|
17
|
+
setSelectedModal({
|
|
18
|
+
type: 'new-comp',
|
|
19
|
+
compType: 'composition',
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
commandCtrlKey: false,
|
|
18
23
|
});
|
|
19
|
-
const cKey = keybindings.registerKeybinding(
|
|
20
|
-
|
|
24
|
+
const cKey = keybindings.registerKeybinding({
|
|
25
|
+
event: 'keypress',
|
|
26
|
+
key: 't',
|
|
27
|
+
callback: () => {
|
|
28
|
+
setCheckerboard((c) => !c);
|
|
29
|
+
},
|
|
30
|
+
commandCtrlKey: true,
|
|
21
31
|
});
|
|
22
|
-
const questionMark = keybindings.registerKeybinding(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
const questionMark = keybindings.registerKeybinding({
|
|
33
|
+
event: 'keypress',
|
|
34
|
+
key: '?',
|
|
35
|
+
callback: () => {
|
|
36
|
+
setSelectedModal({
|
|
37
|
+
type: 'shortcuts',
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
commandCtrlKey: false,
|
|
26
41
|
});
|
|
27
42
|
return () => {
|
|
28
43
|
nKey.unregister();
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitialCompositionLoader = exports.useSelectComposition = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const remotion_1 = require("remotion");
|
|
6
|
+
const folders_1 = require("../state/folders");
|
|
7
|
+
const marks_1 = require("../state/marks");
|
|
8
|
+
const timeline_zoom_1 = require("../state/timeline-zoom");
|
|
9
|
+
const CompositionSelector_1 = require("./CompositionSelector");
|
|
10
|
+
const FramePersistor_1 = require("./FramePersistor");
|
|
11
|
+
const timeline_scroll_logic_1 = require("./Timeline/timeline-scroll-logic");
|
|
12
|
+
const TimelineInOutToggle_1 = require("./TimelineInOutToggle");
|
|
13
|
+
const ZoomPersistor_1 = require("./ZoomPersistor");
|
|
14
|
+
const useSelectComposition = () => {
|
|
15
|
+
const setCurrentFrame = remotion_1.Internals.Timeline.useTimelineSetFrame();
|
|
16
|
+
const { setCurrentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
17
|
+
const { setFoldersExpanded } = (0, react_1.useContext)(folders_1.FolderContext);
|
|
18
|
+
const { setZoom } = (0, react_1.useContext)(timeline_zoom_1.TimelineZoomCtx);
|
|
19
|
+
return (c, push) => {
|
|
20
|
+
var _a;
|
|
21
|
+
(_a = TimelineInOutToggle_1.inOutHandles.current) === null || _a === void 0 ? void 0 : _a.setMarks((0, marks_1.loadMarks)(c.id, c.durationInFrames));
|
|
22
|
+
if (push) {
|
|
23
|
+
window.history.pushState({}, 'Preview', `/${c.id}`);
|
|
24
|
+
}
|
|
25
|
+
const frame = (0, FramePersistor_1.getFrameForComposition)(c.id);
|
|
26
|
+
const zoom = (0, ZoomPersistor_1.getZoomForComposition)(c.id);
|
|
27
|
+
const frameInBounds = Math.min(c.durationInFrames - 1, frame);
|
|
28
|
+
setCurrentFrame(frameInBounds);
|
|
29
|
+
setCurrentComposition(c.id);
|
|
30
|
+
setZoom(() => zoom);
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
33
|
+
direction: 'center',
|
|
34
|
+
frame,
|
|
35
|
+
durationInFrames: c.durationInFrames,
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const { folderName, parentFolderName } = c;
|
|
39
|
+
if (folderName !== null) {
|
|
40
|
+
setFoldersExpanded((ex) => {
|
|
41
|
+
const keysToExpand = (0, CompositionSelector_1.getKeysToExpand)(folderName, parentFolderName);
|
|
42
|
+
const newState = {
|
|
43
|
+
...ex,
|
|
44
|
+
};
|
|
45
|
+
for (const key of keysToExpand) {
|
|
46
|
+
newState[key] = true;
|
|
47
|
+
}
|
|
48
|
+
return newState;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
exports.useSelectComposition = useSelectComposition;
|
|
54
|
+
const InitialCompositionLoader = () => {
|
|
55
|
+
const { compositions, currentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
56
|
+
const selectComposition = (0, exports.useSelectComposition)();
|
|
57
|
+
(0, react_1.useEffect)(() => {
|
|
58
|
+
if (currentComposition) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const compositionFromUrl = (0, FramePersistor_1.getCurrentCompositionFromUrl)();
|
|
62
|
+
if (compositionFromUrl) {
|
|
63
|
+
const exists = compositions.find((c) => c.id === compositionFromUrl);
|
|
64
|
+
if (exists) {
|
|
65
|
+
selectComposition(exists, true);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (compositions.length > 0) {
|
|
70
|
+
selectComposition(compositions[0], true);
|
|
71
|
+
}
|
|
72
|
+
}, [compositions, currentComposition, selectComposition]);
|
|
73
|
+
(0, react_1.useEffect)(() => {
|
|
74
|
+
const onchange = () => {
|
|
75
|
+
const newComp = window.location.pathname.substring(1);
|
|
76
|
+
const exists = compositions.find((c) => c.id === newComp);
|
|
77
|
+
if (exists) {
|
|
78
|
+
selectComposition(exists, false);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
window.addEventListener('popstate', onchange);
|
|
82
|
+
return () => window.removeEventListener('popstate', onchange);
|
|
83
|
+
}, [compositions, selectComposition]);
|
|
84
|
+
return null;
|
|
85
|
+
};
|
|
86
|
+
exports.InitialCompositionLoader = InitialCompositionLoader;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.KeyboardShortcuts = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const use_keybinding_1 = require("../helpers/use-keybinding");
|
|
6
7
|
const keys_1 = require("../icons/keys");
|
|
7
8
|
const modals_1 = require("../state/modals");
|
|
8
9
|
const layout_1 = require("./layout");
|
|
@@ -43,11 +44,24 @@ const title = {
|
|
|
43
44
|
fontSize: 14,
|
|
44
45
|
marginBottom: 10,
|
|
45
46
|
};
|
|
47
|
+
const keyboardShortcutsDisabled = {
|
|
48
|
+
padding: 12,
|
|
49
|
+
width: '100%',
|
|
50
|
+
fontSize: 14,
|
|
51
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
52
|
+
};
|
|
53
|
+
const ul = {
|
|
54
|
+
marginTop: 0,
|
|
55
|
+
marginBottom: 0,
|
|
56
|
+
};
|
|
57
|
+
const li = {
|
|
58
|
+
fontSize: 14,
|
|
59
|
+
};
|
|
46
60
|
const KeyboardShortcuts = () => {
|
|
47
61
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
48
62
|
const onQuit = (0, react_1.useCallback)(() => {
|
|
49
63
|
setSelectedModal(null);
|
|
50
64
|
}, [setSelectedModal]);
|
|
51
|
-
return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onEscape: onQuit, onOutsideClick: onQuit, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: "Keyboard shortcuts" },
|
|
65
|
+
return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onEscape: onQuit, onOutsideClick: onQuit, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: "Keyboard shortcuts" }), (0, use_keybinding_1.areKeyboardShortcutsDisabled)() ? ((0, jsx_runtime_1.jsxs)("div", { style: keyboardShortcutsDisabled, children: ["Keyboard shortcuts disabled either due to:", (0, jsx_runtime_1.jsxs)("ul", { style: ul, children: [(0, jsx_runtime_1.jsx)("li", { style: li, children: "a) --disable-keyboard-shortcuts being passed" }), (0, jsx_runtime_1.jsx)("li", { style: li, children: "b) Config.Preview.setKeyboardShortcutsEnabled(false) being set or" }), (0, jsx_runtime_1.jsx)("li", { style: li, children: " c) a Remotion version mismatch." })] })] })) : null, (0, jsx_runtime_1.jsxs)(layout_1.Row, { style: container, children: [(0, jsx_runtime_1.jsxs)(layout_1.Column, { children: [(0, jsx_runtime_1.jsx)("div", { style: title, children: "Playback" }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("kbd", { style: key, children: (0, jsx_runtime_1.jsx)(keys_1.ShiftIcon, {}) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.3 }), (0, jsx_runtime_1.jsx)("kbd", { style: key, children: (0, jsx_runtime_1.jsx)(keys_1.ArrowLeft, {}) })] }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "1 second back" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: (0, jsx_runtime_1.jsx)(keys_1.ArrowLeft, {}) }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Previous frame" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "Space" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Play / Pause" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: (0, jsx_runtime_1.jsx)(keys_1.ArrowRight, {}) }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Next frame" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("kbd", { style: key, children: (0, jsx_runtime_1.jsx)(keys_1.ShiftIcon, {}) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.3 }), (0, jsx_runtime_1.jsx)("kbd", { style: key, children: (0, jsx_runtime_1.jsx)(keys_1.ArrowRight, {}) })] }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "1 second forward" })] }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "A" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Jump to beginning" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "E" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Jump to end" })] }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "J" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Reverse playback" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "K" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Pause" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "L" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Play / Speed up" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: left, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "Enter" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Pause & return to playback start" })] })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 8 }), (0, jsx_runtime_1.jsxs)(layout_1.Column, { children: [(0, jsx_runtime_1.jsx)("div", { style: title, children: "Navigation" }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "N" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "New composition" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "T" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Toggle checkerboard transparency" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "?" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Show keyboard shortcuts" })] }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("div", { style: title, children: "Playback range" }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "I" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Set In Point" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "O" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Set Out Point" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "X" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Clear In/Out Points" })] }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("div", { style: title, children: "Zoom" }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "+" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Zoom in" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "-" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Zoom out" })] }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: shortLeft, children: (0, jsx_runtime_1.jsx)("kbd", { style: key, children: "0" }) }), (0, jsx_runtime_1.jsx)("div", { style: right, children: "Reset zoom" })] })] })] })] }));
|
|
52
66
|
};
|
|
53
67
|
exports.KeyboardShortcuts = KeyboardShortcuts;
|
|
@@ -18,6 +18,6 @@ const LoopToggle = ({ loop, setLoop }) => {
|
|
|
18
18
|
if (isStill) {
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { title: accessibilityLabel, "aria-label": accessibilityLabel, onClick: onClick, children: (0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", style: { width: 18, height: 18 }, children: (0, jsx_runtime_1.jsx)("path", { fill: loop ? 'var(--blue)' : 'white', d: "M493.544 181.463c11.956 22.605 18.655 48.4 18.452 75.75C511.339 345.365 438.56 416 350.404 416H192v47.495c0 22.475-26.177 32.268-40.971 17.475l-80-80c-9.372-9.373-9.372-24.569 0-33.941l80-80C166.138 271.92 192 282.686 192 304v48h158.875c52.812 0 96.575-42.182 97.12-94.992.155-15.045-3.17-29.312-9.218-42.046-4.362-9.185-2.421-20.124 4.8-27.284 4.745-4.706 8.641-8.555 11.876-11.786 11.368-11.352 30.579-8.631 38.091 5.571zM64.005 254.992c.545-52.81 44.308-94.992 97.12-94.992H320v47.505c0 22.374 26.121 32.312 40.971 17.465l80-80c9.372-9.373 9.372-24.569 0-33.941l-80-80C346.014 16.077 320 26.256 320 48.545V96H161.596C73.44 96 .661 166.635.005 254.788c-.204 27.35 6.495 53.145 18.452 75.75 7.512 14.202 26.723 16.923 38.091 5.57 3.235-3.231 7.13-7.08 11.876-11.786 7.22-7.16 9.162-18.098 4.8-27.284-6.049-12.735-9.374-27.001-9.219-42.046z" }
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { title: accessibilityLabel, "aria-label": accessibilityLabel, onClick: onClick, children: (0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", style: { width: 18, height: 18 }, children: (0, jsx_runtime_1.jsx)("path", { fill: loop ? 'var(--blue)' : 'white', d: "M493.544 181.463c11.956 22.605 18.655 48.4 18.452 75.75C511.339 345.365 438.56 416 350.404 416H192v47.495c0 22.475-26.177 32.268-40.971 17.475l-80-80c-9.372-9.373-9.372-24.569 0-33.941l80-80C166.138 271.92 192 282.686 192 304v48h158.875c52.812 0 96.575-42.182 97.12-94.992.155-15.045-3.17-29.312-9.218-42.046-4.362-9.185-2.421-20.124 4.8-27.284 4.745-4.706 8.641-8.555 11.876-11.786 11.368-11.352 30.579-8.631 38.091 5.571zM64.005 254.992c.545-52.81 44.308-94.992 97.12-94.992H320v47.505c0 22.374 26.121 32.312 40.971 17.465l80-80c9.372-9.373 9.372-24.569 0-33.941l-80-80C346.014 16.077 320 26.256 320 48.545V96H161.596C73.44 96 .661 166.635.005 254.788c-.204 27.35 6.495 53.145 18.452 75.75 7.512 14.202 26.723 16.923 38.091 5.57 3.235-3.231 7.13-7.08 11.876-11.786 7.22-7.16 9.162-18.098 4.8-27.284-6.049-12.735-9.374-27.001-9.219-42.046z" }) }) }));
|
|
22
22
|
};
|
|
23
23
|
exports.LoopToggle = LoopToggle;
|
|
@@ -10,6 +10,6 @@ const menuDivider = {
|
|
|
10
10
|
backgroundColor: colors_1.INPUT_BORDER_COLOR_HOVERED,
|
|
11
11
|
};
|
|
12
12
|
const MenuDivider = () => {
|
|
13
|
-
return (0, jsx_runtime_1.jsx)("div", { style: menuDivider }
|
|
13
|
+
return (0, jsx_runtime_1.jsx)("div", { style: menuDivider });
|
|
14
14
|
};
|
|
15
15
|
exports.MenuDivider = MenuDivider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ComboboxValue } from '../NewComposition/ComboBox';
|
|
3
|
-
export declare type MenuId = 'remotion' | 'file' | 'view' | 'help';
|
|
2
|
+
import type { ComboboxValue } from '../NewComposition/ComboBox';
|
|
3
|
+
export declare type MenuId = 'remotion' | 'file' | 'view' | 'tools' | 'help';
|
|
4
4
|
export declare type Menu = {
|
|
5
5
|
id: MenuId;
|
|
6
6
|
label: React.ReactNode;
|