@remotion/cli 3.0.30 → 3.0.31
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/editor/components/CompositionManager.d.ts +4 -0
- package/dist/editor/components/CompositionManager.js +60 -0
- package/dist/editor/components/Editor.js +1 -1
- package/dist/editor/components/GlobalKeybindings.js +26 -11
- package/dist/editor/components/NewComposition/MenuContent.js +42 -7
- package/dist/editor/components/PlayPause.js +36 -6
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +18 -3
- package/dist/editor/components/TimelineInOutToggle.js +21 -6
- 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/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/package.json +7 -7
- package/dist/ansi/ansi-diff.d.ts.map +0 -1
- package/dist/ansi/ansi-diff.js.map +0 -1
- package/dist/ansi/ansi-regex.d.ts.map +0 -1
- package/dist/ansi/ansi-regex.js.map +0 -1
- package/dist/ansi/ansi-split.d.ts.map +0 -1
- package/dist/ansi/ansi-split.js.map +0 -1
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js.map +0 -1
- package/dist/code-frame.d.ts.map +0 -1
- package/dist/code-frame.js.map +0 -1
- package/dist/compositions.d.ts.map +0 -1
- package/dist/compositions.js.map +0 -1
- package/dist/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
|
@@ -6,6 +6,8 @@ const react_1 = require("react");
|
|
|
6
6
|
const map_error_to_react_stack_1 = require("../react-overlay/effects/map-error-to-react-stack");
|
|
7
7
|
const AskOnDiscord_1 = require("./AskOnDiscord");
|
|
8
8
|
const ErrorTitle_1 = require("./ErrorTitle");
|
|
9
|
+
const get_help_link_1 = require("./get-help-link");
|
|
10
|
+
const HelpLink_1 = require("./HelpLink");
|
|
9
11
|
const OpenInEditor_1 = require("./OpenInEditor");
|
|
10
12
|
const SearchGitHubIssues_1 = require("./SearchGitHubIssues");
|
|
11
13
|
const StackFrame_1 = require("./StackFrame");
|
|
@@ -18,7 +20,7 @@ const spacer = {
|
|
|
18
20
|
width: 5,
|
|
19
21
|
display: 'inline-block',
|
|
20
22
|
};
|
|
21
|
-
const ErrorDisplay = ({ display }) => {
|
|
23
|
+
const ErrorDisplay = ({ display, keyboardShortcuts }) => {
|
|
22
24
|
const highestLineNumber = Math.max(...display.stackFrames
|
|
23
25
|
.map((s) => s.originalScriptCode)
|
|
24
26
|
.flat(1)
|
|
@@ -36,7 +38,8 @@ const ErrorDisplay = ({ display }) => {
|
|
|
36
38
|
.trim();
|
|
37
39
|
}, [display.error]);
|
|
38
40
|
const lineNumberWidth = String(highestLineNumber).length;
|
|
39
|
-
|
|
41
|
+
const helpLink = (0, get_help_link_1.getHelpLink)(message);
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: display.error.name, message: message }), helpLink ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(HelpLink_1.HelpLink, { link: helpLink, canHaveKeyboardShortcuts: keyboardShortcuts }), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, display.stackFrames.length > 0 && window.remotion_editorName ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OpenInEditor_1.OpenInEditor, { canHaveKeyboardShortcuts: keyboardShortcuts, stack: display.stackFrames[0] }), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)(SearchGitHubIssues_1.SearchGithubIssues, { canHaveKeyboardShortcuts: keyboardShortcuts, message: display.error.message }), (0, jsx_runtime_1.jsx)("div", { style: spacer }), (0, jsx_runtime_1.jsx)(AskOnDiscord_1.AskOnDiscord, { canHaveKeyboardShortcuts: keyboardShortcuts }), (0, jsx_runtime_1.jsx)("div", { style: stack, children: display.stackFrames.map((s, i) => {
|
|
40
43
|
return ((0, jsx_runtime_1.jsx)(StackFrame_1.StackElement
|
|
41
44
|
// eslint-disable-next-line react/no-array-index-key
|
|
42
45
|
, { isFirst: i === 0, s: s, lineNumberWidth: lineNumberWidth, defaultFunctionName: '(anonymous function)' }, i));
|
|
@@ -21,7 +21,7 @@ const errorWhileErrorStyle = {
|
|
|
21
21
|
lineHeight: 1.5,
|
|
22
22
|
whiteSpace: 'pre',
|
|
23
23
|
};
|
|
24
|
-
const ErrorLoader = ({ error }) => {
|
|
24
|
+
const ErrorLoader = ({ error, keyboardShortcuts }) => {
|
|
25
25
|
const [state, setState] = (0, react_1.useState)({
|
|
26
26
|
type: 'loading',
|
|
27
27
|
});
|
|
@@ -56,6 +56,6 @@ const ErrorLoader = ({ error }) => {
|
|
|
56
56
|
if (state.type === 'no-record') {
|
|
57
57
|
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Check the Terminal and browser console for error messages." })] }));
|
|
58
58
|
}
|
|
59
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: state.record }) }));
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { keyboardShortcuts: keyboardShortcuts, display: state.record }) }));
|
|
60
60
|
};
|
|
61
61
|
exports.ErrorLoader = ErrorLoader;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorMessage = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const player_1 = require("@remotion/player");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const colors_1 = require("../../../editor/helpers/colors");
|
|
8
|
+
const carets_1 = require("./carets");
|
|
9
|
+
const fontSize = 24;
|
|
10
|
+
const lineHeight = 1.5;
|
|
11
|
+
const maxLines = 2;
|
|
12
|
+
const buttonSize = 32;
|
|
13
|
+
const maskImage = 'linear-gradient(to bottom, white 60%, transparent)';
|
|
14
|
+
const container = {
|
|
15
|
+
position: 'relative',
|
|
16
|
+
marginBottom: 15,
|
|
17
|
+
};
|
|
18
|
+
const messageContainer = {
|
|
19
|
+
fontSize,
|
|
20
|
+
lineHeight,
|
|
21
|
+
overflow: 'hidden',
|
|
22
|
+
};
|
|
23
|
+
const moreLine = {
|
|
24
|
+
width: '100%',
|
|
25
|
+
display: 'flex',
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_HOVERED}`,
|
|
29
|
+
height: 0,
|
|
30
|
+
marginTop: 4,
|
|
31
|
+
};
|
|
32
|
+
const moreButton = {
|
|
33
|
+
height: buttonSize,
|
|
34
|
+
width: buttonSize,
|
|
35
|
+
borderRadius: buttonSize / 2,
|
|
36
|
+
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
37
|
+
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
|
|
38
|
+
marginTop: -buttonSize / 2,
|
|
39
|
+
display: 'flex',
|
|
40
|
+
justifyContent: 'center',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
cursor: 'pointer',
|
|
43
|
+
color: 'white',
|
|
44
|
+
};
|
|
45
|
+
const ErrorMessage = ({ message }) => {
|
|
46
|
+
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
47
|
+
const ref = (0, react_1.useRef)(null);
|
|
48
|
+
const size = player_1.PlayerInternals.useElementSize(ref, {
|
|
49
|
+
shouldApplyCssTransforms: false,
|
|
50
|
+
triggerOnWindowResize: true,
|
|
51
|
+
});
|
|
52
|
+
const errorLines = size ? size.height / (lineHeight * fontSize) : null;
|
|
53
|
+
const style = (0, react_1.useMemo)(() => {
|
|
54
|
+
const isExpanded = expanded || (errorLines !== null && errorLines <= maxLines);
|
|
55
|
+
return {
|
|
56
|
+
...messageContainer,
|
|
57
|
+
maxHeight: isExpanded ? undefined : fontSize * lineHeight * maxLines,
|
|
58
|
+
maskImage: isExpanded ? undefined : maskImage,
|
|
59
|
+
WebkitMaskImage: isExpanded ? undefined : maskImage,
|
|
60
|
+
};
|
|
61
|
+
}, [errorLines, expanded]);
|
|
62
|
+
const toggle = (0, react_1.useCallback)(() => {
|
|
63
|
+
setExpanded((e) => !e);
|
|
64
|
+
}, []);
|
|
65
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)("div", { ref: ref, children: message }) }), errorLines !== null && errorLines > maxLines ? ((0, jsx_runtime_1.jsx)("div", { style: moreLine, children: (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: toggle, style: moreButton, children: (0, jsx_runtime_1.jsx)(carets_1.CaretDown, { invert: expanded }) }) })) : null] }));
|
|
66
|
+
};
|
|
67
|
+
exports.ErrorMessage = ErrorMessage;
|
|
@@ -4,6 +4,7 @@ exports.ErrorTitle = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_overlay_1 = require("../react-overlay");
|
|
6
6
|
const DismissButton_1 = require("./DismissButton");
|
|
7
|
+
const ErrorMessage_1 = require("./ErrorMessage");
|
|
7
8
|
const Symbolicating_1 = require("./Symbolicating");
|
|
8
9
|
const title = {
|
|
9
10
|
marginBottom: 8,
|
|
@@ -14,17 +15,12 @@ const title = {
|
|
|
14
15
|
const left = {
|
|
15
16
|
flex: 1,
|
|
16
17
|
paddingRight: 14,
|
|
17
|
-
lineHeight: 1.5,
|
|
18
|
-
whiteSpace: 'pre',
|
|
19
|
-
fontSize: '1.5em',
|
|
20
18
|
fontWeight: 'bold',
|
|
21
|
-
|
|
19
|
+
maxWidth: '100%',
|
|
22
20
|
};
|
|
23
21
|
const errName = {
|
|
24
|
-
fontSize:
|
|
25
|
-
|
|
26
|
-
WebkitBackgroundClip: 'text',
|
|
27
|
-
WebkitTextFillColor: 'transparent',
|
|
22
|
+
fontSize: 18,
|
|
23
|
+
color: '#4290f5',
|
|
28
24
|
display: 'inline-block',
|
|
29
25
|
};
|
|
30
26
|
const row = {
|
|
@@ -36,6 +32,6 @@ const spacer = {
|
|
|
36
32
|
width: 5,
|
|
37
33
|
};
|
|
38
34
|
const ErrorTitle = ({ name, message, symbolicating }) => {
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: title, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [symbolicating ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Symbolicating_1.Symbolicating, {}), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)(
|
|
35
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: title, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [symbolicating ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Symbolicating_1.Symbolicating, {}), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { message: message })] })] }), (0, react_overlay_1.didUnmountReactApp)() ? null : (0, jsx_runtime_1.jsx)(DismissButton_1.DismissButton, {})] }));
|
|
40
36
|
};
|
|
41
37
|
exports.ErrorTitle = ErrorTitle;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HelpLink = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
7
|
+
const Button_1 = require("./Button");
|
|
8
|
+
const ShortcutHint_1 = require("./ShortcutHint");
|
|
9
|
+
const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
|
|
10
|
+
const openLink = (0, react_1.useCallback)(() => {
|
|
11
|
+
window.open(link.url, '_blank');
|
|
12
|
+
}, [link]);
|
|
13
|
+
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
if (!canHaveKeyboardShortcuts) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const onEditor = () => {
|
|
19
|
+
openLink();
|
|
20
|
+
};
|
|
21
|
+
const { unregister } = registerKeybinding({
|
|
22
|
+
event: 'keydown',
|
|
23
|
+
key: 'h',
|
|
24
|
+
callback: onEditor,
|
|
25
|
+
commandCtrlKey: true,
|
|
26
|
+
});
|
|
27
|
+
return () => unregister();
|
|
28
|
+
}, [canHaveKeyboardShortcuts, openLink, registerKeybinding]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openLink, children: ["Help: ", '"', link.title, '"', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "h", cmdOrCtrl: true })) : null] }));
|
|
30
|
+
};
|
|
31
|
+
exports.HelpLink = HelpLink;
|
|
@@ -4,7 +4,9 @@ exports.OpenInEditor = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
/* eslint-disable no-console */
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
+
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
7
8
|
const Button_1 = require("./Button");
|
|
9
|
+
const ShortcutHint_1 = require("./ShortcutHint");
|
|
8
10
|
const initialState = { type: 'idle' };
|
|
9
11
|
const reducer = (state, action) => {
|
|
10
12
|
if (action.type === 'start') {
|
|
@@ -29,9 +31,10 @@ const reducer = (state, action) => {
|
|
|
29
31
|
}
|
|
30
32
|
return state;
|
|
31
33
|
};
|
|
32
|
-
const OpenInEditor = ({ stack }) => {
|
|
34
|
+
const OpenInEditor = ({ stack, canHaveKeyboardShortcuts }) => {
|
|
33
35
|
const isMounted = (0, react_1.useRef)(true);
|
|
34
36
|
const [state, dispatch] = (0, react_1.useReducer)(reducer, initialState);
|
|
37
|
+
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
35
38
|
const dispatchIfMounted = (0, react_1.useCallback)((payload) => {
|
|
36
39
|
if (isMounted.current === false)
|
|
37
40
|
return;
|
|
@@ -72,6 +75,21 @@ const OpenInEditor = ({ stack }) => {
|
|
|
72
75
|
isMounted.current = false;
|
|
73
76
|
};
|
|
74
77
|
}, []);
|
|
78
|
+
(0, react_1.useEffect)(() => {
|
|
79
|
+
if (!canHaveKeyboardShortcuts) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const onEditor = () => {
|
|
83
|
+
openInBrowser();
|
|
84
|
+
};
|
|
85
|
+
const { unregister } = registerKeybinding({
|
|
86
|
+
event: 'keydown',
|
|
87
|
+
key: 'o',
|
|
88
|
+
callback: onEditor,
|
|
89
|
+
commandCtrlKey: true,
|
|
90
|
+
});
|
|
91
|
+
return () => unregister();
|
|
92
|
+
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
75
93
|
const label = (0, react_1.useMemo)(() => {
|
|
76
94
|
switch (state.type) {
|
|
77
95
|
case 'error':
|
|
@@ -86,6 +104,6 @@ const OpenInEditor = ({ stack }) => {
|
|
|
86
104
|
throw new Error('invalid state');
|
|
87
105
|
}
|
|
88
106
|
}, [state.type]);
|
|
89
|
-
return ((0, jsx_runtime_1.
|
|
107
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openInBrowser, disabled: state.type !== 'idle', children: [label, canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "o", cmdOrCtrl: true })) : null] }));
|
|
90
108
|
};
|
|
91
109
|
exports.OpenInEditor = OpenInEditor;
|
|
@@ -4,6 +4,7 @@ exports.Overlay = exports.setErrorsRef = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
|
+
const keybindings_1 = require("../../../editor/state/keybindings");
|
|
7
8
|
const ErrorLoader_1 = require("./ErrorLoader");
|
|
8
9
|
exports.setErrorsRef = (0, react_1.createRef)();
|
|
9
10
|
const errorsAreTheSame = (first, second) => {
|
|
@@ -38,12 +39,12 @@ const Overlay = () => {
|
|
|
38
39
|
if (errors.errors.length === 0) {
|
|
39
40
|
return null;
|
|
40
41
|
}
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
return ((0, jsx_runtime_1.jsx)(keybindings_1.KeybindingContextProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: {
|
|
43
|
+
backgroundColor: BACKGROUND_COLOR,
|
|
44
|
+
overflow: 'auto',
|
|
45
|
+
color: 'white',
|
|
46
|
+
}, children: errors.errors.map((err, i) => {
|
|
47
|
+
return ((0, jsx_runtime_1.jsx)(ErrorLoader_1.ErrorLoader, { keyboardShortcuts: i === 0, error: err }, err.stack));
|
|
48
|
+
}) }) }));
|
|
48
49
|
};
|
|
49
50
|
exports.Overlay = Overlay;
|
|
@@ -3,11 +3,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SearchGithubIssues = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
6
7
|
const Button_1 = require("./Button");
|
|
7
|
-
const
|
|
8
|
+
const ShortcutHint_1 = require("./ShortcutHint");
|
|
9
|
+
const SearchGithubIssues = ({ message, canHaveKeyboardShortcuts }) => {
|
|
8
10
|
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
9
11
|
window.open(`https://github.com/remotion-dev/remotion/issues?q=${encodeURIComponent(message)}`, '_blank');
|
|
10
12
|
}, [message]);
|
|
11
|
-
|
|
13
|
+
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
if (!canHaveKeyboardShortcuts) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const onEditor = () => {
|
|
19
|
+
openInBrowser();
|
|
20
|
+
};
|
|
21
|
+
const { unregister } = registerKeybinding({
|
|
22
|
+
event: 'keydown',
|
|
23
|
+
key: 'g',
|
|
24
|
+
callback: onEditor,
|
|
25
|
+
commandCtrlKey: true,
|
|
26
|
+
});
|
|
27
|
+
return () => unregister();
|
|
28
|
+
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openInBrowser, children: ["Search GitHub Issues", ' ', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "g", cmdOrCtrl: true })) : null] }));
|
|
12
30
|
};
|
|
13
31
|
exports.SearchGithubIssues = SearchGithubIssues;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShortcutHint = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cmdOrCtrlCharacter = window.navigator.platform.startsWith('Mac')
|
|
6
|
+
? '⌘'
|
|
7
|
+
: 'Ctrl';
|
|
8
|
+
const container = {
|
|
9
|
+
display: 'inline-block',
|
|
10
|
+
marginLeft: 6,
|
|
11
|
+
opacity: 0.6,
|
|
12
|
+
};
|
|
13
|
+
const ShortcutHint = ({ keyToPress, cmdOrCtrl }) => {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("span", { style: container, children: [cmdOrCtrl ? `${cmdOrCtrlCharacter}+` : '', keyToPress.toUpperCase()] }));
|
|
15
|
+
};
|
|
16
|
+
exports.ShortcutHint = ShortcutHint;
|
|
@@ -41,7 +41,7 @@ const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName }) => {
|
|
|
41
41
|
const toggleCodeFrame = (0, react_1.useCallback)(() => {
|
|
42
42
|
setShowCodeFrame((f) => !f);
|
|
43
43
|
}, []);
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }), s.originalFileName ? ((0, jsx_runtime_1.jsxs)("div", { style: location, children: [(0, format_location_1.formatLocation)(s.originalFileName), ":", s.originalLineNumber] })) : null] }), s.originalScriptCode && s.originalScriptCode.length > 0 ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: toggleCodeFrame, children: showCodeFrame ? (0, jsx_runtime_1.jsx)(carets_1.CaretDown, {}) : (0, jsx_runtime_1.jsx)(carets_1.CaretRight, {}) })) : null] }), (0, jsx_runtime_1.jsx)("div", { children: s.originalScriptCode &&
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }), s.originalFileName ? ((0, jsx_runtime_1.jsxs)("div", { style: location, children: [(0, format_location_1.formatLocation)(s.originalFileName), ":", s.originalLineNumber] })) : null] }), s.originalScriptCode && s.originalScriptCode.length > 0 ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: toggleCodeFrame, children: showCodeFrame ? (0, jsx_runtime_1.jsx)(carets_1.CaretDown, { invert: false }) : (0, jsx_runtime_1.jsx)(carets_1.CaretRight, {}) })) : null] }), (0, jsx_runtime_1.jsx)("div", { children: s.originalScriptCode &&
|
|
45
45
|
s.originalScriptCode.length > 0 &&
|
|
46
46
|
showCodeFrame ? ((0, jsx_runtime_1.jsx)(CodeFrame_1.CodeFrame, { lineNumberWidth: lineNumberWidth, source: s.originalScriptCode })) : null })] }));
|
|
47
47
|
};
|
|
@@ -6,7 +6,7 @@ const CaretRight = () => {
|
|
|
6
6
|
return ((0, jsx_runtime_1.jsx)("svg", { style: { height: 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.CaretRight = CaretRight;
|
|
9
|
-
const CaretDown = () => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
9
|
+
const CaretDown = ({ invert }) => {
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: 20, transform: invert ? `rotate(180deg)` : '' }, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
11
11
|
};
|
|
12
12
|
exports.CaretDown = CaretDown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getHelpLink = void 0;
|
|
4
|
+
const getHelpLink = (message) => {
|
|
5
|
+
if (message.includes('See https://www.remotion.dev/docs/the-fundamentals#defining-compositions')) {
|
|
6
|
+
return {
|
|
7
|
+
title: 'Defining compositions',
|
|
8
|
+
url: 'See https://www.remotion.dev/docs/the-fundamentals#defining-compositions',
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
if (message.includes('https://remotion.dev/docs/wrong-composition-mount')) {
|
|
12
|
+
return {
|
|
13
|
+
title: 'Wrongly mounted <Composition>',
|
|
14
|
+
url: 'https://remotion.dev/docs/wrong-composition-mount',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
19
|
+
exports.getHelpLink = getHelpLink;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
26
|
+
*/
|
|
27
|
+
declare function registerExportsForReactRefresh(moduleExports: unknown, moduleID: unknown): void;
|
|
28
|
+
declare function isReactRefreshBoundary(moduleExports: unknown): boolean;
|
|
29
|
+
declare function shouldInvalidateReactRefreshBoundary(prevExports: unknown, nextExports: unknown): boolean;
|
|
30
|
+
declare function getRefreshBoundarySignature(moduleExports: unknown): any[];
|
|
31
|
+
declare function scheduleUpdate(): void;
|
|
32
|
+
declare const _default: {
|
|
33
|
+
registerExportsForReactRefresh: typeof registerExportsForReactRefresh;
|
|
34
|
+
isReactRefreshBoundary: typeof isReactRefreshBoundary;
|
|
35
|
+
shouldInvalidateReactRefreshBoundary: typeof shouldInvalidateReactRefreshBoundary;
|
|
36
|
+
getRefreshBoundarySignature: typeof getRefreshBoundarySignature;
|
|
37
|
+
scheduleUpdate: typeof scheduleUpdate;
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* MIT License
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
* in the Software without restriction, including without limitation the rights
|
|
13
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
* furnished to do so, subject to the following conditions:
|
|
16
|
+
*
|
|
17
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
* copies or substantial portions of the Software.
|
|
19
|
+
*
|
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
* SOFTWARE.
|
|
27
|
+
*/
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
// This file is copied from the Metro JavaScript bundler, with minor tweaks for
|
|
30
|
+
// webpack compatibility.
|
|
31
|
+
//
|
|
32
|
+
// https://github.com/facebook/metro/blob/d6b9685c730d0d63577db40f41369157f28dfa3a/packages/metro/src/lib/polyfills/require.js
|
|
33
|
+
const RefreshRuntime = require('react-refresh/runtime');
|
|
34
|
+
function isSafeExport(key) {
|
|
35
|
+
return (key === '__esModule' ||
|
|
36
|
+
key === '__N_SSG' ||
|
|
37
|
+
key === '__N_SSP' ||
|
|
38
|
+
key === 'config');
|
|
39
|
+
}
|
|
40
|
+
function registerExportsForReactRefresh(moduleExports, moduleID) {
|
|
41
|
+
RefreshRuntime.register(moduleExports, moduleID + ' %exports%');
|
|
42
|
+
if (moduleExports === null ||
|
|
43
|
+
moduleExports === undefined ||
|
|
44
|
+
typeof moduleExports !== 'object') {
|
|
45
|
+
// Exit if we can't iterate over exports.
|
|
46
|
+
// (This is important for legacy environments.)
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
for (const key in moduleExports) {
|
|
50
|
+
if (isSafeExport(key)) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
const exportValue = moduleExports[key];
|
|
55
|
+
const typeID = moduleID + ' %exports% ' + key;
|
|
56
|
+
RefreshRuntime.register(exportValue, typeID);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function isReactRefreshBoundary(moduleExports) {
|
|
60
|
+
if (RefreshRuntime.isLikelyComponentType(moduleExports)) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
if (moduleExports === null ||
|
|
64
|
+
moduleExports === undefined ||
|
|
65
|
+
typeof moduleExports !== 'object') {
|
|
66
|
+
// Exit if we can't iterate over exports.
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
let hasExports = false;
|
|
70
|
+
let areAllExportsComponents = true;
|
|
71
|
+
for (const key in moduleExports) {
|
|
72
|
+
hasExports = true;
|
|
73
|
+
if (isSafeExport(key)) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
// @ts-expect-error
|
|
77
|
+
const exportValue = moduleExports[key];
|
|
78
|
+
if (!RefreshRuntime.isLikelyComponentType(exportValue)) {
|
|
79
|
+
areAllExportsComponents = false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return hasExports && areAllExportsComponents;
|
|
83
|
+
}
|
|
84
|
+
function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
|
|
85
|
+
const prevSignature = getRefreshBoundarySignature(prevExports);
|
|
86
|
+
const nextSignature = getRefreshBoundarySignature(nextExports);
|
|
87
|
+
if (prevSignature.length !== nextSignature.length) {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
for (let i = 0; i < nextSignature.length; i++) {
|
|
91
|
+
if (prevSignature[i] !== nextSignature[i]) {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
function getRefreshBoundarySignature(moduleExports) {
|
|
98
|
+
const signature = [];
|
|
99
|
+
signature.push(RefreshRuntime.getFamilyByType(moduleExports));
|
|
100
|
+
if (moduleExports === null ||
|
|
101
|
+
moduleExports === undefined ||
|
|
102
|
+
typeof moduleExports !== 'object') {
|
|
103
|
+
// Exit if we can't iterate over exports.
|
|
104
|
+
// (This is important for legacy environments.)
|
|
105
|
+
return signature;
|
|
106
|
+
}
|
|
107
|
+
for (const key in moduleExports) {
|
|
108
|
+
if (isSafeExport(key)) {
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
// @ts-expect-error
|
|
112
|
+
const exportValue = moduleExports[key];
|
|
113
|
+
signature.push(key);
|
|
114
|
+
signature.push(RefreshRuntime.getFamilyByType(exportValue));
|
|
115
|
+
}
|
|
116
|
+
return signature;
|
|
117
|
+
}
|
|
118
|
+
function scheduleUpdate() {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
const execute = () => {
|
|
121
|
+
try {
|
|
122
|
+
RefreshRuntime.performReactRefresh();
|
|
123
|
+
}
|
|
124
|
+
catch (err) {
|
|
125
|
+
console.warn('Warning: Failed to re-render. We will retry on the next Fast Refresh event.\n' +
|
|
126
|
+
err);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
// Only trigger refresh if the webpack HMR state is idle
|
|
130
|
+
if (((_a = module.hot) === null || _a === void 0 ? void 0 : _a.status()) === 'idle') {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
(_b = module.hot) === null || _b === void 0 ? void 0 : _b.addStatusHandler((status) => {
|
|
134
|
+
if (status === 'idle') {
|
|
135
|
+
execute();
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
exports.default = {
|
|
140
|
+
registerExportsForReactRefresh,
|
|
141
|
+
isReactRefreshBoundary,
|
|
142
|
+
shouldInvalidateReactRefreshBoundary,
|
|
143
|
+
getRefreshBoundarySignature,
|
|
144
|
+
scheduleUpdate,
|
|
145
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The MIT License (MIT)
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
26
|
+
*/
|
|
27
|
+
import webpack from 'webpack';
|
|
28
|
+
export declare class ReactFreshWebpackPlugin {
|
|
29
|
+
apply(compiler: webpack.Compiler): void;
|
|
30
|
+
}
|