@remotion/cli 3.0.29 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chalk/symbols.d.ts +111 -0
- package/dist/chalk/symbols.js +75 -0
- package/dist/chalk/utilities.d.ts +2 -0
- package/dist/chalk/utilities.js +37 -0
- package/dist/compositions.js +10 -4
- package/dist/editor/components/CompositionManager.d.ts +4 -0
- package/dist/editor/components/CompositionManager.js +60 -0
- package/dist/editor/components/CopyButton.js +1 -1
- package/dist/editor/components/Editor.js +2 -1
- package/dist/editor/components/GlobalKeybindings.js +26 -11
- package/dist/editor/components/KeyboardShortcutsModal.js +1 -1
- package/dist/editor/components/Menu/MenuItem.d.ts +1 -1
- package/dist/editor/components/MenuToolbar.js +24 -2
- package/dist/editor/components/NewComposition/MenuContent.js +42 -7
- package/dist/editor/components/Notifications/ColorDot.d.ts +4 -0
- package/dist/editor/components/Notifications/ColorDot.js +22 -0
- package/dist/editor/components/Notifications/Notification.d.ts +8 -0
- package/dist/editor/components/Notifications/Notification.js +31 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +13 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +39 -0
- package/dist/editor/components/PlayPause.js +53 -7
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +18 -3
- package/dist/editor/components/TimelineInOutToggle.js +21 -6
- package/dist/editor/components/UpdateModal/UpdateModal.js +1 -1
- package/dist/editor/helpers/copy-text.d.ts +1 -1
- package/dist/editor/helpers/copy-text.js +5 -4
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +36 -0
- package/dist/editor/helpers/use-keybinding.d.ts +6 -1
- package/dist/editor/helpers/use-keybinding.js +10 -5
- package/dist/editor/state/keybindings.js +3 -1
- package/dist/editor/state/z-index.js +6 -1
- package/dist/get-cli-options.d.ts +3 -1
- package/dist/get-cli-options.js +7 -1
- package/dist/image-formats.js +2 -1
- package/dist/index.d.ts +3 -1
- package/dist/parse-command-line.d.ts +2 -0
- package/dist/parse-command-line.js +9 -3
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +20 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +4 -4
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +5 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +67 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +5 -9
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +20 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +8 -7
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +20 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +4 -2
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +19 -0
- package/dist/preview-server/fast-refresh/helpers.d.ts +39 -0
- package/dist/preview-server/fast-refresh/helpers.js +145 -0
- package/dist/preview-server/fast-refresh/index.d.ts +30 -0
- package/dist/preview-server/fast-refresh/index.js +86 -0
- package/dist/preview-server/fast-refresh/loader.d.ts +35 -0
- package/dist/preview-server/fast-refresh/loader.js +81 -0
- package/dist/preview-server/fast-refresh/runtime.d.ts +35 -0
- package/dist/preview-server/fast-refresh/runtime.js +32 -0
- package/dist/preview-server/static-preview.d.ts +1 -0
- package/dist/preview-server/static-preview.js +40 -0
- package/dist/preview-server/webpack-cache.d.ts +12 -0
- package/dist/preview-server/webpack-cache.js +66 -0
- package/dist/progress-bar.d.ts +3 -1
- package/dist/progress-bar.js +4 -3
- package/dist/render.js +13 -14
- package/dist/setup-cache.d.ts +4 -1
- package/dist/setup-cache.js +1 -1
- package/dist/still.js +1 -1
- package/package.json +10 -12
- package/tsconfig.json +2 -1
- package/vitest.config.ts +9 -0
- package/dist/ansi/ansi-diff.d.ts.map +0 -1
- package/dist/ansi/ansi-diff.js.map +0 -1
- package/dist/ansi/ansi-regex.d.ts.map +0 -1
- package/dist/ansi/ansi-regex.js.map +0 -1
- package/dist/ansi/ansi-split.d.ts.map +0 -1
- package/dist/ansi/ansi-split.js.map +0 -1
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js.map +0 -1
- package/dist/code-frame.d.ts.map +0 -1
- package/dist/code-frame.js.map +0 -1
- package/dist/compositions.d.ts.map +0 -1
- package/dist/compositions.js.map +0 -1
- package/dist/download-progress.d.ts.map +0 -1
- package/dist/download-progress.js.map +0 -1
- package/dist/editor/components/AudioWaveform.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveform.js.map +0 -1
- package/dist/editor/components/AudioWaveformBar.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveformBar.js.map +0 -1
- package/dist/editor/components/Canvas.d.ts.map +0 -1
- package/dist/editor/components/Canvas.js.map +0 -1
- package/dist/editor/components/CheckboardToggle.d.ts.map +0 -1
- package/dist/editor/components/CheckboardToggle.js.map +0 -1
- package/dist/editor/components/ClipboardIcon.d.ts.map +0 -1
- package/dist/editor/components/ClipboardIcon.js.map +0 -1
- package/dist/editor/components/CompositionSelector.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelector.js.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.js.map +0 -1
- package/dist/editor/components/ControlButton.d.ts.map +0 -1
- package/dist/editor/components/ControlButton.js.map +0 -1
- package/dist/editor/components/CopyButton.d.ts.map +0 -1
- package/dist/editor/components/CopyButton.js.map +0 -1
- package/dist/editor/components/CurrentComposition.d.ts.map +0 -1
- package/dist/editor/components/CurrentComposition.js.map +0 -1
- package/dist/editor/components/Editor.d.ts.map +0 -1
- package/dist/editor/components/Editor.js.map +0 -1
- package/dist/editor/components/EditorContent.d.ts.map +0 -1
- package/dist/editor/components/EditorContent.js.map +0 -1
- package/dist/editor/components/FpsCounter.d.ts.map +0 -1
- package/dist/editor/components/FpsCounter.js.map +0 -1
- package/dist/editor/components/FramePersistor.d.ts.map +0 -1
- package/dist/editor/components/FramePersistor.js.map +0 -1
- package/dist/editor/components/GlobalKeybindings.d.ts.map +0 -1
- package/dist/editor/components/GlobalKeybindings.js.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
- package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/editor/components/LoadingIndicator.js.map +0 -1
- package/dist/editor/components/LoopToggle.d.ts.map +0 -1
- package/dist/editor/components/LoopToggle.js.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.js.map +0 -1
- package/dist/editor/components/Menu/MenuItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuItem.js.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.js.map +0 -1
- package/dist/editor/components/Menu/SubMenu.d.ts.map +0 -1
- package/dist/editor/components/Menu/SubMenu.js.map +0 -1
- package/dist/editor/components/Menu/portals.d.ts.map +0 -1
- package/dist/editor/components/Menu/portals.js.map +0 -1
- package/dist/editor/components/Menu/styles.d.ts.map +0 -1
- package/dist/editor/components/Menu/styles.js.map +0 -1
- package/dist/editor/components/MenuToolbar.d.ts.map +0 -1
- package/dist/editor/components/MenuToolbar.js.map +0 -1
- package/dist/editor/components/ModalContainer.d.ts.map +0 -1
- package/dist/editor/components/ModalContainer.js.map +0 -1
- package/dist/editor/components/ModalHeader.d.ts.map +0 -1
- package/dist/editor/components/ModalHeader.js.map +0 -1
- package/dist/editor/components/MuteToggle.d.ts.map +0 -1
- package/dist/editor/components/MuteToggle.js.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.js.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.js.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.js.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.js.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.js.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.js.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.js.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.js.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.js.map +0 -1
- package/dist/editor/components/PlayPause.d.ts.map +0 -1
- package/dist/editor/components/PlayPause.js.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.js.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.js.map +0 -1
- package/dist/editor/components/Preview.d.ts.map +0 -1
- package/dist/editor/components/Preview.js.map +0 -1
- package/dist/editor/components/PreviewToolbar.d.ts.map +0 -1
- package/dist/editor/components/PreviewToolbar.js.map +0 -1
- package/dist/editor/components/RichTimelineToggle.d.ts.map +0 -1
- package/dist/editor/components/RichTimelineToggle.js.map +0 -1
- package/dist/editor/components/SizeSelector.d.ts.map +0 -1
- package/dist/editor/components/SizeSelector.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.js.map +0 -1
- package/dist/editor/components/Thumbnail.d.ts.map +0 -1
- package/dist/editor/components/Thumbnail.js.map +0 -1
- package/dist/editor/components/TimeValue.d.ts.map +0 -1
- package/dist/editor/components/TimeValue.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/Timeline.d.ts.map +0 -1
- package/dist/editor/components/Timeline/Timeline.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.js.map +0 -1
- package/dist/editor/components/Timeline/is-collapsed.d.ts.map +0 -1
- package/dist/editor/components/Timeline/is-collapsed.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.js.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.d.ts.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.js.map +0 -1
- package/dist/editor/components/TopPanel.d.ts.map +0 -1
- package/dist/editor/components/TopPanel.js.map +0 -1
- package/dist/editor/components/UpdateCheck.d.ts.map +0 -1
- package/dist/editor/components/UpdateCheck.js.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js.map +0 -1
- package/dist/editor/components/layout.d.ts.map +0 -1
- package/dist/editor/components/layout.js.map +0 -1
- package/dist/editor/helpers/calculate-timeline.d.ts.map +0 -1
- package/dist/editor/helpers/calculate-timeline.js.map +0 -1
- package/dist/editor/helpers/checkerboard-background.d.ts.map +0 -1
- package/dist/editor/helpers/checkerboard-background.js.map +0 -1
- package/dist/editor/helpers/colors.d.ts.map +0 -1
- package/dist/editor/helpers/colors.js.map +0 -1
- package/dist/editor/helpers/copy-text.d.ts.map +0 -1
- package/dist/editor/helpers/copy-text.js.map +0 -1
- package/dist/editor/helpers/create-folder-tree.d.ts.map +0 -1
- package/dist/editor/helpers/create-folder-tree.js.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.js.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.d.ts.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.js.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js.map +0 -1
- package/dist/editor/helpers/is-composition-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-composition-still.js.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.js.map +0 -1
- package/dist/editor/helpers/noop.d.ts.map +0 -1
- package/dist/editor/helpers/noop.js.map +0 -1
- package/dist/editor/helpers/persist-open-folders.d.ts.map +0 -1
- package/dist/editor/helpers/persist-open-folders.js.map +0 -1
- package/dist/editor/helpers/timeline-layout.d.ts.map +0 -1
- package/dist/editor/helpers/timeline-layout.js.map +0 -1
- package/dist/editor/helpers/use-keybinding.d.ts.map +0 -1
- package/dist/editor/helpers/use-keybinding.js.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.d.ts.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.js.map +0 -1
- package/dist/editor/icons/Checkmark.d.ts.map +0 -1
- package/dist/editor/icons/Checkmark.js.map +0 -1
- package/dist/editor/icons/caret.d.ts.map +0 -1
- package/dist/editor/icons/caret.js.map +0 -1
- package/dist/editor/icons/film.d.ts.map +0 -1
- package/dist/editor/icons/film.js.map +0 -1
- package/dist/editor/icons/folder.d.ts.map +0 -1
- package/dist/editor/icons/folder.js.map +0 -1
- package/dist/editor/icons/keys.d.ts.map +0 -1
- package/dist/editor/icons/keys.js.map +0 -1
- package/dist/editor/icons/lock.d.ts.map +0 -1
- package/dist/editor/icons/lock.js.map +0 -1
- package/dist/editor/icons/media-volume.d.ts.map +0 -1
- package/dist/editor/icons/media-volume.js.map +0 -1
- package/dist/editor/icons/pause.d.ts.map +0 -1
- package/dist/editor/icons/pause.js.map +0 -1
- package/dist/editor/icons/play.d.ts.map +0 -1
- package/dist/editor/icons/play.js.map +0 -1
- package/dist/editor/icons/step-back.d.ts.map +0 -1
- package/dist/editor/icons/step-back.js.map +0 -1
- package/dist/editor/icons/step-forward.d.ts.map +0 -1
- package/dist/editor/icons/step-forward.js.map +0 -1
- package/dist/editor/icons/still.d.ts.map +0 -1
- package/dist/editor/icons/still.js.map +0 -1
- package/dist/editor/icons/timeline.d.ts.map +0 -1
- package/dist/editor/icons/timeline.js.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.js.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.d.ts.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.js.map +0 -1
- package/dist/editor/state/checkerboard.d.ts.map +0 -1
- package/dist/editor/state/checkerboard.js.map +0 -1
- package/dist/editor/state/highest-z-index.d.ts.map +0 -1
- package/dist/editor/state/highest-z-index.js.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.d.ts.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.js.map +0 -1
- package/dist/editor/state/keybindings.d.ts.map +0 -1
- package/dist/editor/state/keybindings.js.map +0 -1
- package/dist/editor/state/loop.d.ts.map +0 -1
- package/dist/editor/state/loop.js.map +0 -1
- package/dist/editor/state/marks.d.ts.map +0 -1
- package/dist/editor/state/marks.js.map +0 -1
- package/dist/editor/state/modals.d.ts.map +0 -1
- package/dist/editor/state/modals.js.map +0 -1
- package/dist/editor/state/mute.d.ts.map +0 -1
- package/dist/editor/state/mute.js.map +0 -1
- package/dist/editor/state/playbackrate.d.ts.map +0 -1
- package/dist/editor/state/playbackrate.js.map +0 -1
- package/dist/editor/state/preview-size.d.ts.map +0 -1
- package/dist/editor/state/preview-size.js.map +0 -1
- package/dist/editor/state/render-frame.d.ts.map +0 -1
- package/dist/editor/state/render-frame.js.map +0 -1
- package/dist/editor/state/rich-timeline.d.ts.map +0 -1
- package/dist/editor/state/rich-timeline.js.map +0 -1
- package/dist/editor/state/timeline-ref.d.ts.map +0 -1
- package/dist/editor/state/timeline-ref.js.map +0 -1
- package/dist/editor/state/timeline.d.ts.map +0 -1
- package/dist/editor/state/timeline.js.map +0 -1
- package/dist/editor/state/z-index.d.ts.map +0 -1
- package/dist/editor/state/z-index.js.map +0 -1
- package/dist/get-cli-options.d.ts.map +0 -1
- package/dist/get-cli-options.js.map +0 -1
- package/dist/get-composition-id.d.ts.map +0 -1
- package/dist/get-composition-id.js.map +0 -1
- package/dist/get-config-file-name.d.ts.map +0 -1
- package/dist/get-config-file-name.js.map +0 -1
- package/dist/get-env.d.ts.map +0 -1
- package/dist/get-env.js.map +0 -1
- package/dist/get-filename.d.ts.map +0 -1
- package/dist/get-filename.js.map +0 -1
- package/dist/get-input-props.d.ts.map +0 -1
- package/dist/get-input-props.js.map +0 -1
- package/dist/handle-common-errors.d.ts.map +0 -1
- package/dist/handle-common-errors.js.map +0 -1
- package/dist/image-formats.d.ts.map +0 -1
- package/dist/image-formats.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/initialize-render-cli.d.ts.map +0 -1
- package/dist/initialize-render-cli.js.map +0 -1
- package/dist/is-javascript.d.ts.map +0 -1
- package/dist/is-javascript.js.map +0 -1
- package/dist/lambda-command.d.ts.map +0 -1
- package/dist/lambda-command.js.map +0 -1
- package/dist/load-config.d.ts.map +0 -1
- package/dist/load-config.js.map +0 -1
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js.map +0 -1
- package/dist/make-progress-bar.d.ts.map +0 -1
- package/dist/make-progress-bar.js.map +0 -1
- package/dist/parse-command-line.d.ts.map +0 -1
- package/dist/parse-command-line.js.map +0 -1
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js.map +0 -1
- package/dist/previewEntry.d.ts.map +0 -1
- package/dist/previewEntry.js.map +0 -1
- package/dist/print-error.d.ts.map +0 -1
- package/dist/print-error.js.map +0 -1
- package/dist/print-help.d.ts.map +0 -1
- package/dist/print-help.js.map +0 -1
- package/dist/progress-bar.d.ts.map +0 -1
- package/dist/progress-bar.js.map +0 -1
- package/dist/render.d.ts.map +0 -1
- package/dist/render.js.map +0 -1
- package/dist/resolve-from.d.ts.map +0 -1
- package/dist/resolve-from.js.map +0 -1
- package/dist/setup-cache.d.ts.map +0 -1
- package/dist/setup-cache.js.map +0 -1
- package/dist/step.d.ts.map +0 -1
- package/dist/step.js.map +0 -1
- package/dist/still.d.ts.map +0 -1
- package/dist/still.js.map +0 -1
- package/dist/upgrade.d.ts.map +0 -1
- package/dist/upgrade.js.map +0 -1
- package/dist/user-passed-output-location.d.ts.map +0 -1
- package/dist/user-passed-output-location.js.map +0 -1
- package/dist/validate-ffmpeg-version.d.ts.map +0 -1
- package/dist/validate-ffmpeg-version.js.map +0 -1
- package/dist/versions.d.ts.map +0 -1
- package/dist/versions.js.map +0 -1
- package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
- package/dist/warn-about-ffmpeg-version.js.map +0 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
declare const isHyper: boolean;
|
|
2
|
+
declare const isWindows: boolean;
|
|
3
|
+
declare const isLinux: boolean;
|
|
4
|
+
declare const common: {
|
|
5
|
+
ballotDisabled: string;
|
|
6
|
+
ballotOff: string;
|
|
7
|
+
ballotOn: string;
|
|
8
|
+
bullet: string;
|
|
9
|
+
bulletWhite: string;
|
|
10
|
+
fullBlock: string;
|
|
11
|
+
heart: string;
|
|
12
|
+
identicalTo: string;
|
|
13
|
+
line: string;
|
|
14
|
+
mark: string;
|
|
15
|
+
middot: string;
|
|
16
|
+
minus: string;
|
|
17
|
+
multiplication: string;
|
|
18
|
+
obelus: string;
|
|
19
|
+
pencilDownRight: string;
|
|
20
|
+
pencilRight: string;
|
|
21
|
+
pencilUpRight: string;
|
|
22
|
+
percent: string;
|
|
23
|
+
pilcrow2: string;
|
|
24
|
+
pilcrow: string;
|
|
25
|
+
plusMinus: string;
|
|
26
|
+
question: string;
|
|
27
|
+
section: string;
|
|
28
|
+
starsOff: string;
|
|
29
|
+
starsOn: string;
|
|
30
|
+
upDownArrow: string;
|
|
31
|
+
};
|
|
32
|
+
declare const windows: {
|
|
33
|
+
check: string;
|
|
34
|
+
cross: string;
|
|
35
|
+
ellipsisLarge: string;
|
|
36
|
+
ellipsis: string;
|
|
37
|
+
info: string;
|
|
38
|
+
questionSmall: string;
|
|
39
|
+
pointer: string;
|
|
40
|
+
pointerSmall: string;
|
|
41
|
+
radioOff: string;
|
|
42
|
+
radioOn: string;
|
|
43
|
+
warning: string;
|
|
44
|
+
ballotDisabled: string;
|
|
45
|
+
ballotOff: string;
|
|
46
|
+
ballotOn: string;
|
|
47
|
+
bullet: string;
|
|
48
|
+
bulletWhite: string;
|
|
49
|
+
fullBlock: string;
|
|
50
|
+
heart: string;
|
|
51
|
+
identicalTo: string;
|
|
52
|
+
line: string;
|
|
53
|
+
mark: string;
|
|
54
|
+
middot: string;
|
|
55
|
+
minus: string;
|
|
56
|
+
multiplication: string;
|
|
57
|
+
obelus: string;
|
|
58
|
+
pencilDownRight: string;
|
|
59
|
+
pencilRight: string;
|
|
60
|
+
pencilUpRight: string;
|
|
61
|
+
percent: string;
|
|
62
|
+
pilcrow2: string;
|
|
63
|
+
pilcrow: string;
|
|
64
|
+
plusMinus: string;
|
|
65
|
+
question: string;
|
|
66
|
+
section: string;
|
|
67
|
+
starsOff: string;
|
|
68
|
+
starsOn: string;
|
|
69
|
+
upDownArrow: string;
|
|
70
|
+
};
|
|
71
|
+
declare const other: {
|
|
72
|
+
ballotCross: string;
|
|
73
|
+
check: string;
|
|
74
|
+
cross: string;
|
|
75
|
+
ellipsisLarge: string;
|
|
76
|
+
ellipsis: string;
|
|
77
|
+
info: string;
|
|
78
|
+
questionFull: string;
|
|
79
|
+
questionSmall: string;
|
|
80
|
+
pointer: string;
|
|
81
|
+
pointerSmall: string;
|
|
82
|
+
radioOff: string;
|
|
83
|
+
radioOn: string;
|
|
84
|
+
warning: string;
|
|
85
|
+
ballotDisabled: string;
|
|
86
|
+
ballotOff: string;
|
|
87
|
+
ballotOn: string;
|
|
88
|
+
bullet: string;
|
|
89
|
+
bulletWhite: string;
|
|
90
|
+
fullBlock: string;
|
|
91
|
+
heart: string;
|
|
92
|
+
identicalTo: string;
|
|
93
|
+
line: string;
|
|
94
|
+
mark: string;
|
|
95
|
+
middot: string;
|
|
96
|
+
minus: string;
|
|
97
|
+
multiplication: string;
|
|
98
|
+
obelus: string;
|
|
99
|
+
pencilDownRight: string;
|
|
100
|
+
pencilRight: string;
|
|
101
|
+
pencilUpRight: string;
|
|
102
|
+
percent: string;
|
|
103
|
+
pilcrow2: string;
|
|
104
|
+
pilcrow: string;
|
|
105
|
+
plusMinus: string;
|
|
106
|
+
question: string;
|
|
107
|
+
section: string;
|
|
108
|
+
starsOff: string;
|
|
109
|
+
starsOn: string;
|
|
110
|
+
upDownArrow: string;
|
|
111
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const isHyper = typeof process !== 'undefined' && process.env.TERM_PROGRAM === 'Hyper';
|
|
3
|
+
const isWindows = typeof process !== 'undefined' && process.platform === 'win32';
|
|
4
|
+
const isLinux = typeof process !== 'undefined' && process.platform === 'linux';
|
|
5
|
+
const common = {
|
|
6
|
+
ballotDisabled: '☒',
|
|
7
|
+
ballotOff: '☐',
|
|
8
|
+
ballotOn: '☑',
|
|
9
|
+
bullet: '•',
|
|
10
|
+
bulletWhite: '◦',
|
|
11
|
+
fullBlock: '█',
|
|
12
|
+
heart: '❤',
|
|
13
|
+
identicalTo: '≡',
|
|
14
|
+
line: '─',
|
|
15
|
+
mark: '※',
|
|
16
|
+
middot: '·',
|
|
17
|
+
minus: '-',
|
|
18
|
+
multiplication: '×',
|
|
19
|
+
obelus: '÷',
|
|
20
|
+
pencilDownRight: '✎',
|
|
21
|
+
pencilRight: '✏',
|
|
22
|
+
pencilUpRight: '✐',
|
|
23
|
+
percent: '%',
|
|
24
|
+
pilcrow2: '❡',
|
|
25
|
+
pilcrow: '¶',
|
|
26
|
+
plusMinus: '±',
|
|
27
|
+
question: '?',
|
|
28
|
+
section: '§',
|
|
29
|
+
starsOff: '☆',
|
|
30
|
+
starsOn: '★',
|
|
31
|
+
upDownArrow: '↕',
|
|
32
|
+
};
|
|
33
|
+
const windows = {
|
|
34
|
+
...common,
|
|
35
|
+
check: '√',
|
|
36
|
+
cross: '×',
|
|
37
|
+
ellipsisLarge: '...',
|
|
38
|
+
ellipsis: '...',
|
|
39
|
+
info: 'i',
|
|
40
|
+
questionSmall: '?',
|
|
41
|
+
pointer: '>',
|
|
42
|
+
pointerSmall: '»',
|
|
43
|
+
radioOff: '( )',
|
|
44
|
+
radioOn: '(*)',
|
|
45
|
+
warning: '‼',
|
|
46
|
+
};
|
|
47
|
+
const other = {
|
|
48
|
+
...common,
|
|
49
|
+
ballotCross: '✘',
|
|
50
|
+
check: '✔',
|
|
51
|
+
cross: '✖',
|
|
52
|
+
ellipsisLarge: '⋯',
|
|
53
|
+
ellipsis: '…',
|
|
54
|
+
info: 'ℹ',
|
|
55
|
+
questionFull: '?',
|
|
56
|
+
questionSmall: '﹖',
|
|
57
|
+
pointer: isLinux ? '▸' : '❯',
|
|
58
|
+
pointerSmall: isLinux ? '‣' : '›',
|
|
59
|
+
radioOff: '◯',
|
|
60
|
+
radioOn: '◉',
|
|
61
|
+
warning: '⚠',
|
|
62
|
+
};
|
|
63
|
+
module.exports = isWindows && !isHyper ? windows : other;
|
|
64
|
+
Reflect.defineProperty(module.exports, 'common', {
|
|
65
|
+
enumerable: false,
|
|
66
|
+
value: common,
|
|
67
|
+
});
|
|
68
|
+
Reflect.defineProperty(module.exports, 'windows', {
|
|
69
|
+
enumerable: false,
|
|
70
|
+
value: windows,
|
|
71
|
+
});
|
|
72
|
+
Reflect.defineProperty(module.exports, 'other', {
|
|
73
|
+
enumerable: false,
|
|
74
|
+
value: other,
|
|
75
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stringEncaseCRLFWithFirstIndex = exports.stringReplaceAll = void 0;
|
|
4
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
5
|
+
let index = string.indexOf(substring);
|
|
6
|
+
if (index === -1) {
|
|
7
|
+
return string;
|
|
8
|
+
}
|
|
9
|
+
const substringLength = substring.length;
|
|
10
|
+
let endIndex = 0;
|
|
11
|
+
let returnValue = '';
|
|
12
|
+
do {
|
|
13
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
14
|
+
endIndex = index + substringLength;
|
|
15
|
+
index = string.indexOf(substring, endIndex);
|
|
16
|
+
} while (index !== -1);
|
|
17
|
+
returnValue += string.slice(endIndex);
|
|
18
|
+
return returnValue;
|
|
19
|
+
}
|
|
20
|
+
exports.stringReplaceAll = stringReplaceAll;
|
|
21
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
22
|
+
let endIndex = 0;
|
|
23
|
+
let returnValue = '';
|
|
24
|
+
do {
|
|
25
|
+
const gotCR = string[index - 1] === '\r';
|
|
26
|
+
returnValue +=
|
|
27
|
+
string.slice(endIndex, gotCR ? index - 1 : index) +
|
|
28
|
+
prefix +
|
|
29
|
+
(gotCR ? '\r\n' : '\n') +
|
|
30
|
+
postfix;
|
|
31
|
+
endIndex = index + 1;
|
|
32
|
+
index = string.indexOf('\n', endIndex);
|
|
33
|
+
} while (index !== -1);
|
|
34
|
+
returnValue += string.slice(endIndex);
|
|
35
|
+
return returnValue;
|
|
36
|
+
}
|
|
37
|
+
exports.stringEncaseCRLFWithFirstIndex = stringEncaseCRLFWithFirstIndex;
|
package/dist/compositions.js
CHANGED
|
@@ -35,7 +35,7 @@ const listCompositionsCommand = async () => {
|
|
|
35
35
|
const fullPath = path_1.default.join(process.cwd(), file);
|
|
36
36
|
await (0, get_config_file_name_1.loadConfig)();
|
|
37
37
|
const { browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'get-compositions' });
|
|
38
|
-
const bundled = await (0, setup_cache_1.bundleOnCli)(fullPath, ['bundling']);
|
|
38
|
+
const bundled = await (0, setup_cache_1.bundleOnCli)({ fullPath, steps: ['bundling'] });
|
|
39
39
|
const compositions = await (0, renderer_1.getCompositions)(bundled, {
|
|
40
40
|
browserExecutable,
|
|
41
41
|
ffmpegExecutable,
|
|
@@ -46,12 +46,18 @@ const listCompositionsCommand = async () => {
|
|
|
46
46
|
timeoutInMilliseconds: puppeteerTimeout,
|
|
47
47
|
port,
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
if (!(0, parse_command_line_1.quietFlagProvided)()) {
|
|
50
|
+
log_1.Log.info();
|
|
51
|
+
log_1.Log.info('The following compositions are available:');
|
|
52
|
+
log_1.Log.info();
|
|
53
|
+
}
|
|
52
54
|
const firstColumnLength = max(compositions.map(({ id }) => id.length)) + 4;
|
|
53
55
|
const secondColumnLength = 8;
|
|
54
56
|
const thirdColumnLength = 15;
|
|
57
|
+
if ((0, parse_command_line_1.quietFlagProvided)()) {
|
|
58
|
+
log_1.Log.info(compositions.map((c) => c.id).join(' '));
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
55
61
|
log_1.Log.info(`${'Composition'.padEnd(firstColumnLength, ' ')}${'FPS'.padEnd(secondColumnLength)}${'Dimensions'.padEnd(thirdColumnLength, ' ')}Duration`);
|
|
56
62
|
log_1.Log.info(compositions
|
|
57
63
|
.map((comp) => {
|
|
@@ -0,0 +1,60 @@
|
|
|
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 CompositionSelector_1 = require("./CompositionSelector");
|
|
9
|
+
const FramePersistor_1 = require("./FramePersistor");
|
|
10
|
+
const TimelineInOutToggle_1 = require("./TimelineInOutToggle");
|
|
11
|
+
const useSelectComposition = () => {
|
|
12
|
+
const setCurrentFrame = remotion_1.Internals.Timeline.useTimelineSetFrame();
|
|
13
|
+
const { setCurrentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
14
|
+
const { setFoldersExpanded } = (0, react_1.useContext)(folders_1.FolderContext);
|
|
15
|
+
return (c) => {
|
|
16
|
+
var _a;
|
|
17
|
+
(_a = TimelineInOutToggle_1.inOutHandles.current) === null || _a === void 0 ? void 0 : _a.setMarks((0, marks_1.loadMarks)(c.id, c.durationInFrames));
|
|
18
|
+
window.history.pushState({}, 'Preview', `/${c.id}`);
|
|
19
|
+
const frame = (0, FramePersistor_1.getFrameForComposition)(c.id);
|
|
20
|
+
const frameInBounds = Math.min(c.durationInFrames - 1, frame);
|
|
21
|
+
setCurrentFrame(frameInBounds);
|
|
22
|
+
setCurrentComposition(c.id);
|
|
23
|
+
const { folderName, parentFolderName } = c;
|
|
24
|
+
if (folderName !== null) {
|
|
25
|
+
setFoldersExpanded((ex) => {
|
|
26
|
+
const keysToExpand = (0, CompositionSelector_1.getKeysToExpand)(folderName, parentFolderName);
|
|
27
|
+
const newState = {
|
|
28
|
+
...ex,
|
|
29
|
+
};
|
|
30
|
+
for (const key of keysToExpand) {
|
|
31
|
+
newState[key] = true;
|
|
32
|
+
}
|
|
33
|
+
return newState;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
exports.useSelectComposition = useSelectComposition;
|
|
39
|
+
const InitialCompositionLoader = () => {
|
|
40
|
+
const { compositions, currentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
41
|
+
const selectComposition = (0, exports.useSelectComposition)();
|
|
42
|
+
(0, react_1.useEffect)(() => {
|
|
43
|
+
if (currentComposition) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const compositionFromUrl = (0, FramePersistor_1.getCurrentCompositionFromUrl)();
|
|
47
|
+
if (compositionFromUrl) {
|
|
48
|
+
const exists = compositions.find((c) => c.id === compositionFromUrl);
|
|
49
|
+
if (exists) {
|
|
50
|
+
selectComposition(exists);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (compositions.length > 0) {
|
|
55
|
+
selectComposition(compositions[0]);
|
|
56
|
+
}
|
|
57
|
+
}, [compositions, currentComposition, selectComposition]);
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
exports.InitialCompositionLoader = InitialCompositionLoader;
|
|
@@ -32,7 +32,7 @@ const labelStyle = {
|
|
|
32
32
|
const CopyButton = ({ textToCopy, label, labelWhenCopied }) => {
|
|
33
33
|
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
34
34
|
const onClick = (0, react_1.useCallback)(() => {
|
|
35
|
-
(0, copy_text_1.
|
|
35
|
+
(0, copy_text_1.copyText)(textToCopy);
|
|
36
36
|
setCopied(Date.now());
|
|
37
37
|
}, [textToCopy]);
|
|
38
38
|
(0, react_1.useEffect)(() => {
|
|
@@ -26,6 +26,7 @@ const GlobalKeybindings_1 = require("./GlobalKeybindings");
|
|
|
26
26
|
const KeyboardShortcutsModal_1 = require("./KeyboardShortcutsModal");
|
|
27
27
|
const NewComposition_1 = __importDefault(require("./NewComposition/NewComposition"));
|
|
28
28
|
const NoRegisterRoot_1 = require("./NoRegisterRoot");
|
|
29
|
+
const NotificationCenter_1 = require("./Notifications/NotificationCenter");
|
|
29
30
|
const UpdateModal_1 = require("./UpdateModal/UpdateModal");
|
|
30
31
|
const background = {
|
|
31
32
|
backgroundColor: colors_1.BACKGROUND,
|
|
@@ -129,7 +130,7 @@ const Editor = () => {
|
|
|
129
130
|
});
|
|
130
131
|
return () => cleanup();
|
|
131
132
|
}, [Root, waitForRoot]);
|
|
132
|
-
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)(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.jsxs)(z_index_1.HigherZIndex, { onEscape: noop_1.noop, onOutsideClick: noop_1.noop, children: [(0, jsx_runtime_1.jsxs)("div", { style: background, children: [Root === null ? null : (0, jsx_runtime_1.jsx)(Root, {}), (0, jsx_runtime_1.jsx)(FramePersistor_1.FramePersistor, {}), 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, {})] }), modalContextType &&
|
|
133
|
+
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)(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.jsxs)(z_index_1.HigherZIndex, { onEscape: noop_1.noop, onOutsideClick: noop_1.noop, 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, {}), 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 &&
|
|
133
134
|
modalContextType.type === 'new-comp' && ((0, jsx_runtime_1.jsx)(NewComposition_1.default, { initialCompType: modalContextType.compType })), modalContextType &&
|
|
134
135
|
modalContextType.type === 'update' && ((0, jsx_runtime_1.jsx)(UpdateModal_1.UpdateModal, { info: modalContextType.info })), modalContextType &&
|
|
135
136
|
modalContextType.type === 'shortcuts' && ((0, jsx_runtime_1.jsx)(KeyboardShortcutsModal_1.KeyboardShortcuts, {}))] }) }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
@@ -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();
|
|
@@ -48,6 +48,6 @@ const KeyboardShortcuts = () => {
|
|
|
48
48
|
const onQuit = (0, react_1.useCallback)(() => {
|
|
49
49
|
setSelectedModal(null);
|
|
50
50
|
}, [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" }), (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.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" })] })] })] })] }));
|
|
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" }), (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" })] })] })] })] }));
|
|
52
52
|
};
|
|
53
53
|
exports.KeyboardShortcuts = KeyboardShortcuts;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComboboxValue } from '../NewComposition/ComboBox';
|
|
3
|
-
export declare type MenuId = 'remotion' | 'file' | 'view' | 'help';
|
|
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;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MenuToolbar = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const pick_color_1 = require("../helpers/pick-color");
|
|
6
8
|
const Checkmark_1 = require("../icons/Checkmark");
|
|
7
9
|
const checkerboard_1 = require("../state/checkerboard");
|
|
8
10
|
const modals_1 = require("../state/modals");
|
|
@@ -55,7 +57,7 @@ const MenuToolbar = () => {
|
|
|
55
57
|
setSelected(null);
|
|
56
58
|
}, []);
|
|
57
59
|
const structure = (0, react_1.useMemo)(() => {
|
|
58
|
-
|
|
60
|
+
const struct = [
|
|
59
61
|
{
|
|
60
62
|
id: 'remotion',
|
|
61
63
|
label: ((0, jsx_runtime_1.jsx)(layout_1.Row, { align: "center", justify: "center", children: (0, jsx_runtime_1.jsx)("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "-100 -100 400 400", style: rotate, children: (0, jsx_runtime_1.jsx)("path", { fill: "#fff", stroke: "#fff", strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }) })),
|
|
@@ -337,6 +339,25 @@ const MenuToolbar = () => {
|
|
|
337
339
|
},
|
|
338
340
|
],
|
|
339
341
|
},
|
|
342
|
+
'EyeDropper' in window
|
|
343
|
+
? {
|
|
344
|
+
id: 'tools',
|
|
345
|
+
label: 'Tools',
|
|
346
|
+
leaveLeftPadding: false,
|
|
347
|
+
items: [
|
|
348
|
+
{
|
|
349
|
+
id: 'color-picker',
|
|
350
|
+
value: 'color-picker',
|
|
351
|
+
label: 'Color Picker',
|
|
352
|
+
onClick: () => (0, pick_color_1.pickColor)(),
|
|
353
|
+
leftItem: null,
|
|
354
|
+
keyHint: null,
|
|
355
|
+
subMenu: null,
|
|
356
|
+
type: 'item',
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
}
|
|
360
|
+
: null,
|
|
340
361
|
{
|
|
341
362
|
id: 'help',
|
|
342
363
|
label: 'Help',
|
|
@@ -441,7 +462,8 @@ const MenuToolbar = () => {
|
|
|
441
462
|
},
|
|
442
463
|
],
|
|
443
464
|
},
|
|
444
|
-
];
|
|
465
|
+
].filter(remotion_1.Internals.truthy);
|
|
466
|
+
return struct;
|
|
445
467
|
}, [
|
|
446
468
|
checkerboard,
|
|
447
469
|
close,
|
|
@@ -99,13 +99,48 @@ const MenuContent = ({ onHide, values, preselectIndex, onNextMenu, onPreviousMen
|
|
|
99
99
|
setSubMenuActivated('without-mouse');
|
|
100
100
|
}, [onNextMenu, selectedItem, values]);
|
|
101
101
|
(0, react_1.useEffect)(() => {
|
|
102
|
-
const escapeBinding = keybindings.registerKeybinding(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const
|
|
102
|
+
const escapeBinding = keybindings.registerKeybinding({
|
|
103
|
+
event: 'keydown',
|
|
104
|
+
key: 'Escape',
|
|
105
|
+
callback: onEscape,
|
|
106
|
+
commandCtrlKey: false,
|
|
107
|
+
});
|
|
108
|
+
const rightBinding = keybindings.registerKeybinding({
|
|
109
|
+
event: 'keydown',
|
|
110
|
+
key: 'ArrowRight',
|
|
111
|
+
commandCtrlKey: false,
|
|
112
|
+
callback: onArrowRight,
|
|
113
|
+
});
|
|
114
|
+
const leftBinding = keybindings.registerKeybinding({
|
|
115
|
+
event: 'keydown',
|
|
116
|
+
commandCtrlKey: false,
|
|
117
|
+
key: 'ArrowLeft',
|
|
118
|
+
callback: onPreviousMenu,
|
|
119
|
+
});
|
|
120
|
+
const downBinding = keybindings.registerKeybinding({
|
|
121
|
+
event: 'keydown',
|
|
122
|
+
key: 'ArrowDown',
|
|
123
|
+
commandCtrlKey: false,
|
|
124
|
+
callback: onArrowDown,
|
|
125
|
+
});
|
|
126
|
+
const upBinding = keybindings.registerKeybinding({
|
|
127
|
+
event: 'keydown',
|
|
128
|
+
key: 'ArrowUp',
|
|
129
|
+
callback: onArrowUp,
|
|
130
|
+
commandCtrlKey: false,
|
|
131
|
+
});
|
|
132
|
+
const enterBinding = keybindings.registerKeybinding({
|
|
133
|
+
event: 'keydown',
|
|
134
|
+
key: 'Enter',
|
|
135
|
+
callback: onEnter,
|
|
136
|
+
commandCtrlKey: false,
|
|
137
|
+
});
|
|
138
|
+
const spaceBinding = keybindings.registerKeybinding({
|
|
139
|
+
event: 'keyup',
|
|
140
|
+
key: ' ',
|
|
141
|
+
callback: onEnter,
|
|
142
|
+
commandCtrlKey: false,
|
|
143
|
+
});
|
|
109
144
|
return () => {
|
|
110
145
|
escapeBinding.unregister();
|
|
111
146
|
leftBinding.unregister();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColorDot = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const container = {
|
|
7
|
+
height: 16,
|
|
8
|
+
width: 16,
|
|
9
|
+
backgroundColor: 'red',
|
|
10
|
+
border: '1px solid rgba(255, 255, 255, 0.2)',
|
|
11
|
+
borderRadius: 8,
|
|
12
|
+
};
|
|
13
|
+
const ColorDot = ({ color }) => {
|
|
14
|
+
const style = (0, react_1.useMemo)(() => {
|
|
15
|
+
return {
|
|
16
|
+
...container,
|
|
17
|
+
backgroundColor: color,
|
|
18
|
+
};
|
|
19
|
+
}, [color]);
|
|
20
|
+
return (0, jsx_runtime_1.jsx)("div", { style: style });
|
|
21
|
+
};
|
|
22
|
+
exports.ColorDot = ColorDot;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Notification = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const notification = {
|
|
7
|
+
backgroundColor: '#111111',
|
|
8
|
+
color: 'white',
|
|
9
|
+
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
10
|
+
display: 'inline-flex',
|
|
11
|
+
padding: '8px 14px',
|
|
12
|
+
borderRadius: 4,
|
|
13
|
+
fontSize: 15,
|
|
14
|
+
border: '0.25px solid rgba(255, 255, 255, 0.1)',
|
|
15
|
+
boxShadow: '0 2px 3px rgba(0, 0, 0, 1)',
|
|
16
|
+
marginTop: 3,
|
|
17
|
+
marginBottom: 3,
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
};
|
|
20
|
+
const Notification = ({ children, id, duration, created, onRemove }) => {
|
|
21
|
+
(0, react_1.useEffect)(() => {
|
|
22
|
+
const timeout = setTimeout(() => {
|
|
23
|
+
onRemove(id);
|
|
24
|
+
}, duration - (Date.now() - created));
|
|
25
|
+
return () => {
|
|
26
|
+
clearTimeout(timeout);
|
|
27
|
+
};
|
|
28
|
+
}, [created, duration, id, onRemove]);
|
|
29
|
+
return (0, jsx_runtime_1.jsx)("div", { style: notification, children: children });
|
|
30
|
+
};
|
|
31
|
+
exports.Notification = Notification;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type TNotification = {
|
|
3
|
+
id: string;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
created: number;
|
|
6
|
+
duration: number;
|
|
7
|
+
};
|
|
8
|
+
declare type TNotificationCenter = {
|
|
9
|
+
addNotification: (notification: TNotification) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const notificationCenter: React.RefObject<TNotificationCenter>;
|
|
12
|
+
export declare const NotificationCenter: React.FC;
|
|
13
|
+
export {};
|