@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
|
@@ -145,7 +145,7 @@ const NewComposition = (props) => {
|
|
|
145
145
|
type: 'item',
|
|
146
146
|
value: frameRate,
|
|
147
147
|
keyHint: null,
|
|
148
|
-
leftItem: String(frameRate) === selectedFrameRate ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}
|
|
148
|
+
leftItem: String(frameRate) === selectedFrameRate ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
|
|
149
149
|
subMenu: null,
|
|
150
150
|
};
|
|
151
151
|
});
|
|
@@ -177,7 +177,7 @@ const NewComposition = (props) => {
|
|
|
177
177
|
},
|
|
178
178
|
];
|
|
179
179
|
}, [onTypeChanged]);
|
|
180
|
-
return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: "New composition" }
|
|
180
|
+
return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: "New composition" }), (0, jsx_runtime_1.jsxs)("div", { style: panelContent, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 3 }), (0, jsx_runtime_1.jsxs)("form", { children: [(0, jsx_runtime_1.jsxs)("label", { children: [(0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: new_comp_layout_1.leftLabel, children: "Type" }), (0, jsx_runtime_1.jsx)("div", { style: new_comp_layout_1.inputArea, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: "Type of composition", style: comboBoxStyle, values: typeValues, selectedId: type }) })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: new_comp_layout_1.leftLabel, children: "Name" }), (0, jsx_runtime_1.jsxs)("div", { style: new_comp_layout_1.inputArea, children: [(0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { value: name, onChange: onNameChange, type: "text", placeholder: "Composition name" }), compNameErrMessage ? ((0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { message: compNameErrMessage })) : null] })] })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("label", { children: (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: new_comp_layout_1.leftLabel, children: "Width" }), (0, jsx_runtime_1.jsxs)("div", { style: new_comp_layout_1.inputArea, children: [(0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { type: "number", value: size.width, placeholder: "Width (px)", onChange: onWidthChanged, name: "width", step: 2, min: 2, max: 100000000, onValueChange: onWidthDirectlyChanged }), compWidthErrMessage ? ((0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { message: compWidthErrMessage })) : null] })] }) }) }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)("label", { children: (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)("div", { style: new_comp_layout_1.leftLabel, children: "Height" }), (0, jsx_runtime_1.jsxs)("div", { style: new_comp_layout_1.inputArea, children: [(0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { type: "number", value: size.height, onChange: onHeightChanged, placeholder: "Height (px)", name: "height", step: 2, min: 2, max: 100000000, onValueChange: onHeightDirectlyChanged }), compHeightErrMessage ? ((0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { message: compHeightErrMessage })) : null] })] }) })] }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(NewCompAspectRatio_1.NewCompAspectRatio, { width: Number(size.width), height: Number(size.height), aspectRatioLocked: lockedAspectRatio, setAspectRatioLocked: setAspectRatioLocked }) })] }), (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), type === 'composition' ? ((0, jsx_runtime_1.jsx)(NewCompDuration_1.NewCompDuration, { durationInFrames: durationInFrames, fps: selectedFrameRate, setDurationInFrames: setDurationInFrames })) : null, (0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("div", {}), type === 'composition' ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", {}), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsxs)("label", { children: [(0, jsx_runtime_1.jsx)("div", { style: new_comp_layout_1.leftLabel, children: "Framerate" }), (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: "Framerate", style: comboBoxStyle, values: items, selectedId: selectedFrameRate })] })] })) : null] })] }), (0, jsx_runtime_1.jsxs)("div", { style: panelRight, children: [(0, jsx_runtime_1.jsx)("pre", { style: pre, children: (0, NewCompCode_1.getNewCompositionCode)({
|
|
181
181
|
type,
|
|
182
182
|
durationInFrames: Number(durationInFrames),
|
|
183
183
|
fps: Number(selectedFrameRate),
|
|
@@ -185,7 +185,7 @@ const NewComposition = (props) => {
|
|
|
185
185
|
width: Number(size.width),
|
|
186
186
|
name,
|
|
187
187
|
raw: false,
|
|
188
|
-
}) }
|
|
188
|
+
}) }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", style: copyRowStyle, children: [(0, jsx_runtime_1.jsx)(CopyHint_1.CopyHint, {}), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(CopyButton_1.CopyButton, { label: "Copy code", labelWhenCopied: "Copied!", textToCopy: (0, NewCompCode_1.getNewCompositionCode)({
|
|
189
189
|
type,
|
|
190
190
|
durationInFrames: Number(durationInFrames),
|
|
191
191
|
fps: Number(selectedFrameRate),
|
|
@@ -193,6 +193,6 @@ const NewComposition = (props) => {
|
|
|
193
193
|
width: Number(size.width),
|
|
194
194
|
name,
|
|
195
195
|
raw: true,
|
|
196
|
-
}) }
|
|
196
|
+
}) })] })] })] })] }));
|
|
197
197
|
};
|
|
198
198
|
exports.default = NewComposition;
|
|
@@ -54,6 +54,6 @@ const RemInputForwardRef = (props, ref) => {
|
|
|
54
54
|
current.removeEventListener('mouseleave', onMouseLeave);
|
|
55
55
|
};
|
|
56
56
|
}, [inputRef]);
|
|
57
|
-
return (0, jsx_runtime_1.jsx)("input", { ref: inputRef, tabIndex: tabIndex, ...props, style: style }
|
|
57
|
+
return (0, jsx_runtime_1.jsx)("input", { ref: inputRef, tabIndex: tabIndex, ...props, style: style });
|
|
58
58
|
};
|
|
59
59
|
exports.RemotionInput = (0, react_1.forwardRef)(RemInputForwardRef);
|
|
@@ -21,6 +21,6 @@ const ToggleAspectRatio = ({ aspectRatioLocked, setAspectRatioLocked }) => {
|
|
|
21
21
|
const onClick = (0, react_1.useCallback)(() => {
|
|
22
22
|
setAspectRatioLocked(!aspectRatioLocked);
|
|
23
23
|
}, [aspectRatioLocked, setAspectRatioLocked]);
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, style: buttonStyle, children: aspectRatioLocked ? ((0, jsx_runtime_1.jsx)(lock_1.LockIcon, { style: iconStyle }
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, style: buttonStyle, children: aspectRatioLocked ? ((0, jsx_runtime_1.jsx)(lock_1.LockIcon, { style: iconStyle })) : ((0, jsx_runtime_1.jsx)(lock_1.UnlockIcon, { style: iconStyle })) }));
|
|
25
25
|
};
|
|
26
26
|
exports.ToggleAspectRatio = ToggleAspectRatio;
|
|
@@ -4,7 +4,7 @@ exports.ValidationMessage = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const layout_1 = require("../layout");
|
|
6
6
|
const Triangle = (props) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 576 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M248.747 204.705l6.588 112c.373 6.343 5.626 11.295 11.979 11.295h41.37a12 12 0 0 0 11.979-11.295l6.588-112c.405-6.893-5.075-12.705-11.979-12.705h-54.547c-6.903 0-12.383 5.812-11.978 12.705zM330 384c0 23.196-18.804 42-42 42s-42-18.804-42-42 18.804-42 42-42 42 18.804 42 42zm-.423-360.015c-18.433-31.951-64.687-32.009-83.154 0L6.477 440.013C-11.945 471.946 11.118 512 48.054 512H527.94c36.865 0 60.035-39.993 41.577-71.987L329.577 23.985zM53.191 455.002L282.803 57.008c2.309-4.002 8.085-4.002 10.394 0l229.612 397.993c2.308 4-.579 8.998-5.197 8.998H58.388c-4.617.001-7.504-4.997-5.197-8.997z" }
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 576 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M248.747 204.705l6.588 112c.373 6.343 5.626 11.295 11.979 11.295h41.37a12 12 0 0 0 11.979-11.295l6.588-112c.405-6.893-5.075-12.705-11.979-12.705h-54.547c-6.903 0-12.383 5.812-11.978 12.705zM330 384c0 23.196-18.804 42-42 42s-42-18.804-42-42 18.804-42 42-42 42 18.804 42 42zm-.423-360.015c-18.433-31.951-64.687-32.009-83.154 0L6.477 440.013C-11.945 471.946 11.118 512 48.054 512H527.94c36.865 0 60.035-39.993 41.577-71.987L329.577 23.985zM53.191 455.002L282.803 57.008c2.309-4.002 8.085-4.002 10.394 0l229.612 397.993c2.308 4-.579 8.998-5.197 8.998H58.388c-4.617.001-7.504-4.997-5.197-8.997z" }) }));
|
|
8
8
|
};
|
|
9
9
|
const style = {
|
|
10
10
|
width: 11,
|
|
@@ -18,6 +18,6 @@ const label = {
|
|
|
18
18
|
flex: 1,
|
|
19
19
|
};
|
|
20
20
|
const ValidationMessage = ({ message }) => {
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)(Triangle, { style: style, color: "#f1c40f" }
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)(Triangle, { style: style, color: "#f1c40f" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("div", { style: label, children: message })] }) }));
|
|
22
22
|
};
|
|
23
23
|
exports.ValidationMessage = ValidationMessage;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoRegisterRoot = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const label = {
|
|
7
|
+
fontSize: 13,
|
|
8
|
+
color: 'white',
|
|
9
|
+
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
10
|
+
};
|
|
11
|
+
const container = {
|
|
12
|
+
display: 'flex',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
flex: 1,
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
textAlign: 'center',
|
|
18
|
+
lineHeight: 1.5,
|
|
19
|
+
};
|
|
20
|
+
const link = {
|
|
21
|
+
color: 'white',
|
|
22
|
+
textDecoration: 'none',
|
|
23
|
+
borderBottom: '1px solid',
|
|
24
|
+
};
|
|
25
|
+
const NoRegisterRoot = () => {
|
|
26
|
+
const [show, setShow] = (0, react_1.useState)(() => false);
|
|
27
|
+
(0, react_1.useEffect)(() => {
|
|
28
|
+
// Only show after 2 seconds so there is no flicker when the load is really fast
|
|
29
|
+
const timeout = setTimeout(() => {
|
|
30
|
+
setShow(true);
|
|
31
|
+
}, 2000);
|
|
32
|
+
return () => {
|
|
33
|
+
clearTimeout(timeout);
|
|
34
|
+
};
|
|
35
|
+
}, []);
|
|
36
|
+
if (!show) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: label, children: "Waiting for registerRoot() to get called." }), (0, jsx_runtime_1.jsxs)("div", { style: label, children: ["Learn more:", ' ', (0, jsx_runtime_1.jsx)("a", { target: '_blank', style: link, href: "https://www.remotion.dev/docs/register-root", children: "remotion.dev/docs/register-root" })] })] }));
|
|
40
|
+
};
|
|
41
|
+
exports.NoRegisterRoot = NoRegisterRoot;
|
|
@@ -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", { className: "css-reset", 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 {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationCenter = exports.notificationCenter = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const Notification_1 = require("./Notification");
|
|
7
|
+
const container = {
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
width: '100%',
|
|
13
|
+
flexDirection: 'column',
|
|
14
|
+
paddingTop: 20,
|
|
15
|
+
pointerEvents: 'none',
|
|
16
|
+
backgroundColor: 'transparent',
|
|
17
|
+
};
|
|
18
|
+
exports.notificationCenter = (0, react_1.createRef)();
|
|
19
|
+
const NotificationCenter = () => {
|
|
20
|
+
const [notifications, setNotifications] = (0, react_1.useState)([]);
|
|
21
|
+
const onRemove = (0, react_1.useCallback)((id) => {
|
|
22
|
+
setNotifications((not) => {
|
|
23
|
+
return not.filter((n) => n.id !== id);
|
|
24
|
+
});
|
|
25
|
+
}, []);
|
|
26
|
+
const addNotification = (0, react_1.useCallback)((notification) => {
|
|
27
|
+
setNotifications((previousNotifications) => {
|
|
28
|
+
return [...previousNotifications, notification];
|
|
29
|
+
});
|
|
30
|
+
}, []);
|
|
31
|
+
(0, react_1.useImperativeHandle)(exports.notificationCenter, () => {
|
|
32
|
+
return {
|
|
33
|
+
addNotification,
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: notifications.map((n) => {
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(Notification_1.Notification, { created: n.created, duration: n.duration, id: n.id, onRemove: onRemove, children: n.content }, n.id));
|
|
38
|
+
}) }));
|
|
39
|
+
};
|
|
40
|
+
exports.NotificationCenter = NotificationCenter;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServerDisconnected = exports.serverDisconnectedRef = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const container = {
|
|
7
|
+
position: 'fixed',
|
|
8
|
+
justifyContent: 'flex-end',
|
|
9
|
+
alignItems: 'flex-start',
|
|
10
|
+
display: 'flex',
|
|
11
|
+
width: '100%',
|
|
12
|
+
height: '100%',
|
|
13
|
+
flexDirection: 'column',
|
|
14
|
+
padding: 30,
|
|
15
|
+
pointerEvents: 'none',
|
|
16
|
+
backgroundColor: 'transparent',
|
|
17
|
+
fontFamily: 'SF Pro, Arial, Helvetica, sans-serif',
|
|
18
|
+
};
|
|
19
|
+
const message = {
|
|
20
|
+
backgroundColor: '#e74c3c',
|
|
21
|
+
color: 'white',
|
|
22
|
+
paddingLeft: 20,
|
|
23
|
+
paddingRight: 20,
|
|
24
|
+
paddingTop: 12,
|
|
25
|
+
paddingBottom: 12,
|
|
26
|
+
borderRadius: 4,
|
|
27
|
+
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.4)',
|
|
28
|
+
lineHeight: 1.5,
|
|
29
|
+
};
|
|
30
|
+
const inlineCode = {
|
|
31
|
+
fontSize: 16,
|
|
32
|
+
fontFamily: 'monospace',
|
|
33
|
+
};
|
|
34
|
+
exports.serverDisconnectedRef = (0, react_1.createRef)();
|
|
35
|
+
let pageIsGoingToReload = false;
|
|
36
|
+
window.addEventListener('beforeunload', () => {
|
|
37
|
+
pageIsGoingToReload = true;
|
|
38
|
+
});
|
|
39
|
+
const ServerDisconnected = () => {
|
|
40
|
+
const [serverDisconnected, setServerDisconnected] = (0, react_1.useState)(false);
|
|
41
|
+
(0, react_1.useImperativeHandle)(exports.serverDisconnectedRef, () => {
|
|
42
|
+
return {
|
|
43
|
+
setServerDisconnected: () => {
|
|
44
|
+
setServerDisconnected(true);
|
|
45
|
+
},
|
|
46
|
+
setServerConnected: () => {
|
|
47
|
+
setServerDisconnected(false);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}, []);
|
|
51
|
+
if (!serverDisconnected) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
if (pageIsGoingToReload) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, className: "css-reset", children: (0, jsx_runtime_1.jsxs)("div", { style: message, children: ["The preview server has disconnected. ", (0, jsx_runtime_1.jsx)("br", {}), window.remotion_previewServerCommand ? ((0, jsx_runtime_1.jsxs)("span", { children: ["Run", ' ', (0, jsx_runtime_1.jsx)("code", { style: inlineCode, children: window.remotion_previewServerCommand }), ' ', "to run it again."] })) : ((0, jsx_runtime_1.jsx)("span", { children: "Fast refresh will not work." }))] }) }));
|
|
58
|
+
};
|
|
59
|
+
exports.ServerDisconnected = ServerDisconnected;
|
|
@@ -4,28 +4,31 @@ exports.PlayPause = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const player_1 = require("@remotion/player");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const remotion_1 = require("remotion");
|
|
8
7
|
const is_current_selected_still_1 = require("../helpers/is-current-selected-still");
|
|
9
8
|
const use_keybinding_1 = require("../helpers/use-keybinding");
|
|
9
|
+
const jump_to_start_1 = require("../icons/jump-to-start");
|
|
10
10
|
const pause_1 = require("../icons/pause");
|
|
11
11
|
const play_1 = require("../icons/play");
|
|
12
12
|
const step_back_1 = require("../icons/step-back");
|
|
13
13
|
const step_forward_1 = require("../icons/step-forward");
|
|
14
|
+
const in_out_1 = require("../state/in-out");
|
|
14
15
|
const ControlButton_1 = require("./ControlButton");
|
|
16
|
+
const imperative_state_1 = require("./Timeline/imperative-state");
|
|
17
|
+
const timeline_scroll_logic_1 = require("./Timeline/timeline-scroll-logic");
|
|
15
18
|
const forwardBackStyle = {
|
|
16
19
|
height: 16,
|
|
17
|
-
width: 16,
|
|
18
20
|
color: 'white',
|
|
19
21
|
};
|
|
20
22
|
const PlayPause = ({ playbackRate, loop }) => {
|
|
21
|
-
|
|
22
|
-
const frame = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
23
|
-
const video = remotion_1.Internals.useVideo();
|
|
23
|
+
const { inFrame, outFrame } = (0, in_out_1.useTimelineInOutFramePosition)();
|
|
24
24
|
player_1.PlayerInternals.usePlayback({
|
|
25
25
|
loop,
|
|
26
26
|
playbackRate,
|
|
27
|
+
moveToBeginningWhenEnded: true,
|
|
28
|
+
inFrame,
|
|
29
|
+
outFrame,
|
|
27
30
|
});
|
|
28
|
-
const { playing, play, pause, frameBack, frameForward, isLastFrame } = player_1.PlayerInternals.usePlayer();
|
|
31
|
+
const { playing, play, pause, pauseAndReturnToPlayStart, frameBack, seek, frameForward, isLastFrame, isFirstFrame, } = player_1.PlayerInternals.usePlayer();
|
|
29
32
|
const isStill = (0, is_current_selected_still_1.useIsStill)();
|
|
30
33
|
(0, react_1.useEffect)(() => {
|
|
31
34
|
if (isStill) {
|
|
@@ -41,49 +44,144 @@ const PlayPause = ({ playbackRate, loop }) => {
|
|
|
41
44
|
}
|
|
42
45
|
e.preventDefault();
|
|
43
46
|
}, [pause, play, playing]);
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return null;
|
|
47
|
+
const onEnter = (0, react_1.useCallback)((e) => {
|
|
48
|
+
if (playing) {
|
|
49
|
+
pauseAndReturnToPlayStart();
|
|
48
50
|
}
|
|
49
|
-
frameBack(e.shiftKey ? videoFps : 1);
|
|
50
51
|
e.preventDefault();
|
|
51
|
-
}, [
|
|
52
|
+
}, [pauseAndReturnToPlayStart, playing]);
|
|
53
|
+
const onArrowLeft = (0, react_1.useCallback)((e) => {
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
if (e.altKey) {
|
|
56
|
+
seek(0);
|
|
57
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
58
|
+
direction: 'fit-left',
|
|
59
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
60
|
+
frame: 0,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
else if (e.shiftKey) {
|
|
64
|
+
frameBack((0, imperative_state_1.getCurrentFps)());
|
|
65
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
66
|
+
direction: 'fit-left',
|
|
67
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
68
|
+
frame: Math.max(0, (0, imperative_state_1.getCurrentFrame)() - (0, imperative_state_1.getCurrentFps)()),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
frameBack(1);
|
|
73
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
74
|
+
direction: 'fit-left',
|
|
75
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
76
|
+
frame: Math.max(0, (0, imperative_state_1.getCurrentFrame)() - 1),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}, [frameBack, seek]);
|
|
52
80
|
const onArrowRight = (0, react_1.useCallback)((e) => {
|
|
53
|
-
if (
|
|
54
|
-
|
|
81
|
+
if (e.altKey) {
|
|
82
|
+
seek((0, imperative_state_1.getCurrentDuration)() - 1);
|
|
83
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
84
|
+
direction: 'fit-right',
|
|
85
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)() - 1,
|
|
86
|
+
frame: (0, imperative_state_1.getCurrentDuration)() - 1,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
else if (e.shiftKey) {
|
|
90
|
+
frameForward((0, imperative_state_1.getCurrentFps)());
|
|
91
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
92
|
+
direction: 'fit-right',
|
|
93
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
94
|
+
frame: Math.min((0, imperative_state_1.getCurrentDuration)() - 1, (0, imperative_state_1.getCurrentFrame)() + (0, imperative_state_1.getCurrentFps)()),
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
frameForward(1);
|
|
99
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
100
|
+
direction: 'fit-right',
|
|
101
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
102
|
+
frame: (0, imperative_state_1.getCurrentFrame)() + 1,
|
|
103
|
+
});
|
|
55
104
|
}
|
|
56
|
-
frameForward(e.shiftKey ? videoFps : 1);
|
|
57
105
|
e.preventDefault();
|
|
58
|
-
}, [frameForward,
|
|
106
|
+
}, [frameForward, seek]);
|
|
59
107
|
const oneFrameBack = (0, react_1.useCallback)(() => {
|
|
60
108
|
frameBack(1);
|
|
61
109
|
}, [frameBack]);
|
|
62
110
|
const oneFrameForward = (0, react_1.useCallback)(() => {
|
|
63
111
|
frameForward(1);
|
|
64
112
|
}, [frameForward]);
|
|
113
|
+
const jumpToStart = (0, react_1.useCallback)(() => {
|
|
114
|
+
seek(0);
|
|
115
|
+
}, [seek]);
|
|
116
|
+
const jumpToEnd = (0, react_1.useCallback)(() => {
|
|
117
|
+
seek((0, imperative_state_1.getCurrentDuration)() - 1);
|
|
118
|
+
}, [seek]);
|
|
65
119
|
const keybindings = (0, use_keybinding_1.useKeybinding)();
|
|
66
120
|
(0, react_1.useEffect)(() => {
|
|
67
|
-
const arrowLeft = keybindings.registerKeybinding(
|
|
68
|
-
|
|
69
|
-
|
|
121
|
+
const arrowLeft = keybindings.registerKeybinding({
|
|
122
|
+
event: 'keydown',
|
|
123
|
+
key: 'ArrowLeft',
|
|
124
|
+
callback: onArrowLeft,
|
|
125
|
+
commandCtrlKey: false,
|
|
126
|
+
});
|
|
127
|
+
const arrowRight = keybindings.registerKeybinding({
|
|
128
|
+
event: 'keydown',
|
|
129
|
+
key: 'ArrowRight',
|
|
130
|
+
callback: onArrowRight,
|
|
131
|
+
commandCtrlKey: false,
|
|
132
|
+
});
|
|
133
|
+
const space = keybindings.registerKeybinding({
|
|
134
|
+
event: 'keydown',
|
|
135
|
+
key: ' ',
|
|
136
|
+
callback: onSpace,
|
|
137
|
+
commandCtrlKey: false,
|
|
138
|
+
});
|
|
139
|
+
const enter = keybindings.registerKeybinding({
|
|
140
|
+
event: 'keydown',
|
|
141
|
+
key: 'enter',
|
|
142
|
+
callback: onEnter,
|
|
143
|
+
commandCtrlKey: false,
|
|
144
|
+
});
|
|
145
|
+
const a = keybindings.registerKeybinding({
|
|
146
|
+
event: 'keydown',
|
|
147
|
+
key: 'a',
|
|
148
|
+
callback: jumpToStart,
|
|
149
|
+
commandCtrlKey: false,
|
|
150
|
+
});
|
|
151
|
+
const e = keybindings.registerKeybinding({
|
|
152
|
+
event: 'keydown',
|
|
153
|
+
key: 'e',
|
|
154
|
+
callback: jumpToEnd,
|
|
155
|
+
commandCtrlKey: false,
|
|
156
|
+
});
|
|
70
157
|
return () => {
|
|
71
158
|
arrowLeft.unregister();
|
|
72
159
|
arrowRight.unregister();
|
|
73
160
|
space.unregister();
|
|
161
|
+
enter.unregister();
|
|
162
|
+
a.unregister();
|
|
163
|
+
e.unregister();
|
|
74
164
|
};
|
|
75
|
-
}, [
|
|
165
|
+
}, [
|
|
166
|
+
jumpToEnd,
|
|
167
|
+
jumpToStart,
|
|
168
|
+
keybindings,
|
|
169
|
+
onArrowLeft,
|
|
170
|
+
onArrowRight,
|
|
171
|
+
onEnter,
|
|
172
|
+
onSpace,
|
|
173
|
+
]);
|
|
76
174
|
if (isStill) {
|
|
77
175
|
return null;
|
|
78
176
|
}
|
|
79
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": "Step back one frame", title: "Step back one frame", disabled:
|
|
177
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": "Jump to beginning", title: "Jump to beginning", disabled: isFirstFrame, onClick: jumpToStart, children: (0, jsx_runtime_1.jsx)(jump_to_start_1.JumpToStart, { style: forwardBackStyle }) }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": "Step back one frame", title: "Step back one frame", disabled: isFirstFrame, onClick: oneFrameBack, children: (0, jsx_runtime_1.jsx)(step_back_1.StepBack, { style: forwardBackStyle }) }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": playing ? 'Pause' : 'Play', title: playing ? 'Pause' : 'Play', onClick: playing ? pause : play, children: playing ? ((0, jsx_runtime_1.jsx)(pause_1.Pause, { style: {
|
|
80
178
|
height: 14,
|
|
81
179
|
width: 14,
|
|
82
180
|
color: 'white',
|
|
83
|
-
} }
|
|
181
|
+
} })) : ((0, jsx_runtime_1.jsx)(play_1.Play, { style: {
|
|
84
182
|
height: 14,
|
|
85
183
|
width: 14,
|
|
86
184
|
color: 'white',
|
|
87
|
-
} }
|
|
185
|
+
} })) }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": "Step forward one frame", title: "Step forward one frame", disabled: isLastFrame, onClick: oneFrameForward, children: (0, jsx_runtime_1.jsx)(step_forward_1.StepForward, { style: forwardBackStyle }) })] }));
|
|
88
186
|
};
|
|
89
187
|
exports.PlayPause = PlayPause;
|
|
@@ -12,19 +12,13 @@ const PlaybackKeyboardShortcutsManager = ({ setPlaybackRate }) => {
|
|
|
12
12
|
if (!playing) {
|
|
13
13
|
return -1;
|
|
14
14
|
}
|
|
15
|
-
if (prevPlaybackRate >
|
|
15
|
+
if (prevPlaybackRate > -1) {
|
|
16
16
|
return -1;
|
|
17
17
|
}
|
|
18
|
-
if (prevPlaybackRate
|
|
18
|
+
if (prevPlaybackRate > -2) {
|
|
19
19
|
return -2;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
return -4;
|
|
23
|
-
}
|
|
24
|
-
if (prevPlaybackRate === -4) {
|
|
25
|
-
return -4;
|
|
26
|
-
}
|
|
27
|
-
throw new Error('unexpected previous playrate when pressing J: ' + prevPlaybackRate);
|
|
21
|
+
return -4;
|
|
28
22
|
});
|
|
29
23
|
play();
|
|
30
24
|
}, [play, playing, setPlaybackRate]);
|
|
@@ -37,26 +31,35 @@ const PlaybackKeyboardShortcutsManager = ({ setPlaybackRate }) => {
|
|
|
37
31
|
if (!playing) {
|
|
38
32
|
return 1;
|
|
39
33
|
}
|
|
40
|
-
if (prevPlaybackRate <
|
|
34
|
+
if (prevPlaybackRate < 1) {
|
|
41
35
|
return 1;
|
|
42
36
|
}
|
|
43
|
-
if (prevPlaybackRate
|
|
37
|
+
if (prevPlaybackRate < 2) {
|
|
44
38
|
return 2;
|
|
45
39
|
}
|
|
46
|
-
|
|
47
|
-
return 4;
|
|
48
|
-
}
|
|
49
|
-
if (prevPlaybackRate === 4) {
|
|
50
|
-
return 4;
|
|
51
|
-
}
|
|
52
|
-
throw new Error('unexpected previous playrate when pressing L: ' + prevPlaybackRate);
|
|
40
|
+
return 4;
|
|
53
41
|
});
|
|
54
42
|
play();
|
|
55
43
|
}, [play, playing, setPlaybackRate]);
|
|
56
44
|
(0, react_1.useEffect)(() => {
|
|
57
|
-
const jKey = keybindings.registerKeybinding(
|
|
58
|
-
|
|
59
|
-
|
|
45
|
+
const jKey = keybindings.registerKeybinding({
|
|
46
|
+
event: 'keydown',
|
|
47
|
+
key: 'j',
|
|
48
|
+
callback: onJKey,
|
|
49
|
+
commandCtrlKey: false,
|
|
50
|
+
});
|
|
51
|
+
const kKey = keybindings.registerKeybinding({
|
|
52
|
+
event: 'keydown',
|
|
53
|
+
key: 'k',
|
|
54
|
+
callback: onKKey,
|
|
55
|
+
commandCtrlKey: false,
|
|
56
|
+
});
|
|
57
|
+
const lKey = keybindings.registerKeybinding({
|
|
58
|
+
event: 'keydown',
|
|
59
|
+
key: 'l',
|
|
60
|
+
callback: onLKey,
|
|
61
|
+
commandCtrlKey: false,
|
|
62
|
+
});
|
|
60
63
|
return () => {
|
|
61
64
|
jKey.unregister();
|
|
62
65
|
kKey.unregister();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare const PlaybackRatePersistor: React.FC;
|