@remotion/cli 4.0.0-lambda.1 → 4.0.0-newpathfunctions.13
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/LICENSE.md +8 -8
- package/dist/ansi/ansi-diff.d.ts +0 -0
- package/dist/ansi/ansi-diff.js +0 -0
- package/dist/ansi/ansi-regex.d.ts +0 -0
- package/dist/ansi/ansi-regex.js +0 -0
- package/dist/ansi/ansi-split.d.ts +0 -0
- package/dist/ansi/ansi-split.js +0 -0
- package/dist/benchmark.d.ts +1 -0
- package/dist/benchmark.js +186 -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/composition-prompts.d.ts +8 -0
- package/dist/composition-prompts.js +26 -0
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +25 -45
- package/dist/config/bitrate.d.ts +4 -0
- package/dist/config/bitrate.js +21 -0
- 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/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 +3 -0
- package/dist/config/crf.js +15 -0
- package/dist/config/enforce-audio-track.d.ts +2 -0
- package/dist/config/enforce-audio-track.js +13 -0
- package/dist/config/entry-point.d.ts +2 -0
- package/dist/config/entry-point.js +12 -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 +2 -0
- package/dist/config/every-nth-frame.js +12 -0
- package/dist/config/ffmpeg-executable.d.ts +5 -0
- package/dist/config/ffmpeg-executable.js +21 -0
- package/dist/config/ffmpeg-override.d.ts +3 -0
- package/dist/config/ffmpeg-override.js +12 -0
- package/dist/config/frame-range.d.ts +4 -0
- package/dist/config/frame-range.js +35 -0
- package/dist/config/height.d.ts +2 -0
- package/dist/config/height.js +15 -0
- package/dist/config/image-format.d.ts +3 -0
- package/dist/config/image-format.js +27 -0
- package/dist/config/image-sequence.d.ts +3 -0
- package/dist/config/image-sequence.js +15 -0
- package/dist/config/index.d.ts +59 -0
- package/dist/config/index.js +212 -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 +3 -0
- package/dist/config/number-of-gif-loops.js +15 -0
- package/dist/config/number-of-shared-audio-tags.d.ts +2 -0
- package/dist/config/number-of-shared-audio-tags.js +12 -0
- package/dist/config/open-browser.d.ts +2 -0
- package/dist/config/open-browser.js +15 -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 +4 -0
- package/dist/config/overwrite.js +13 -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/config/webpack-poll.d.ts +2 -0
- package/dist/config/webpack-poll.js +16 -0
- package/dist/config/width.d.ts +2 -0
- package/dist/config/width.js +17 -0
- package/dist/convert-entry-point-to-serve-url.d.ts +1 -0
- package/dist/convert-entry-point-to-serve-url.js +15 -0
- package/dist/determine-image-format.d.ts +11 -0
- package/dist/determine-image-format.js +48 -0
- package/dist/download-progress.d.ts +2 -1
- package/dist/download-progress.js +17 -5
- package/dist/editor/components/AudioWaveform.d.ts +1 -0
- package/dist/editor/components/AudioWaveform.js +10 -3
- package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
- package/dist/editor/components/AudioWaveformBar.js +0 -0
- package/dist/editor/components/Canvas.d.ts +0 -0
- package/dist/editor/components/Canvas.js +198 -1
- package/dist/editor/components/CheckboardToggle.d.ts +0 -0
- package/dist/editor/components/CheckboardToggle.js +8 -1
- package/dist/editor/components/Checkbox.d.ts +5 -0
- package/dist/editor/components/Checkbox.js +38 -0
- package/dist/editor/components/ClipboardIcon.d.ts +0 -0
- package/dist/editor/components/ClipboardIcon.js +0 -0
- package/dist/editor/components/CollapsableOptions.d.ts +6 -0
- package/dist/editor/components/CollapsableOptions.js +35 -0
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -0
- package/dist/editor/components/CollapsedCompositionSelector.js +0 -0
- package/dist/editor/components/CompositionSelector.d.ts +0 -0
- package/dist/editor/components/CompositionSelector.js +2 -0
- package/dist/editor/components/CompositionSelectorItem.d.ts +2 -2
- package/dist/editor/components/CompositionSelectorItem.js +3 -1
- package/dist/editor/components/ControlButton.d.ts +0 -0
- package/dist/editor/components/ControlButton.js +0 -0
- package/dist/editor/components/CopyButton.d.ts +0 -0
- package/dist/editor/components/CopyButton.js +4 -17
- package/dist/editor/components/CurrentComposition.d.ts +0 -0
- package/dist/editor/components/CurrentComposition.js +5 -0
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +43 -0
- package/dist/editor/components/Editor.d.ts +0 -0
- package/dist/editor/components/Editor.js +8 -90
- package/dist/editor/components/EditorContent.d.ts +0 -0
- package/dist/editor/components/EditorContent.js +0 -0
- package/dist/editor/components/EditorContexts.d.ts +4 -0
- package/dist/editor/components/EditorContexts.js +83 -0
- package/dist/editor/components/FpsCounter.d.ts +0 -0
- package/dist/editor/components/FpsCounter.js +0 -0
- package/dist/editor/components/FramePersistor.d.ts +1 -1
- package/dist/editor/components/FramePersistor.js +0 -0
- package/dist/editor/components/GlobalKeybindings.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.js +45 -11
- package/dist/editor/components/InitialCompositionLoader.d.ts +3 -3
- package/dist/editor/components/InitialCompositionLoader.js +30 -4
- package/dist/editor/components/InlineAction.d.ts +5 -0
- package/dist/editor/components/InlineAction.js +34 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +2 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.js +56 -0
- package/dist/editor/components/LoopToggle.d.ts +0 -0
- package/dist/editor/components/LoopToggle.js +0 -0
- package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
- package/dist/editor/components/Menu/MenuDivider.js +0 -0
- package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
- package/dist/editor/components/Menu/MenuItem.js +1 -1
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/Menu/MenuSubItem.js +3 -2
- package/dist/editor/components/Menu/SubMenu.d.ts +2 -2
- package/dist/editor/components/Menu/SubMenu.js +0 -0
- package/dist/editor/components/Menu/portals.d.ts +0 -0
- package/dist/editor/components/Menu/portals.js +0 -0
- 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 +0 -0
- package/dist/editor/components/MenuBuildIndicator.js +0 -0
- package/dist/editor/components/MenuToolbar.d.ts +0 -0
- package/dist/editor/components/MenuToolbar.js +5 -422
- package/dist/editor/components/ModalContainer.d.ts +0 -0
- package/dist/editor/components/ModalContainer.js +0 -0
- package/dist/editor/components/ModalHeader.d.ts +0 -0
- package/dist/editor/components/ModalHeader.js +0 -0
- package/dist/editor/components/Modals.d.ts +2 -0
- package/dist/editor/components/Modals.js +23 -0
- package/dist/editor/components/MuteToggle.d.ts +0 -0
- package/dist/editor/components/MuteToggle.js +0 -0
- package/dist/editor/components/NewComposition/CancelButton.d.ts +2 -1
- package/dist/editor/components/NewComposition/CancelButton.js +0 -0
- package/dist/editor/components/NewComposition/ComboBox.d.ts +2 -1
- package/dist/editor/components/NewComposition/ComboBox.js +20 -4
- package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
- package/dist/editor/components/NewComposition/CopyHint.js +0 -0
- package/dist/editor/components/NewComposition/InputDragger.d.ts +3 -1
- package/dist/editor/components/NewComposition/InputDragger.js +23 -4
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -1
- package/dist/editor/components/NewComposition/MenuContent.js +49 -7
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.js +5 -3
- package/dist/editor/components/NewComposition/NewComposition.d.ts +1 -1
- package/dist/editor/components/NewComposition/NewComposition.js +8 -5
- package/dist/editor/components/NewComposition/RemInput.d.ts +3 -1
- package/dist/editor/components/NewComposition/RemInput.js +1 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +0 -0
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +1 -1
- package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
- package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
- package/dist/editor/components/NoRegisterRoot.js +0 -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.d.ts +0 -0
- package/dist/editor/components/PlayPause.js +105 -29
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +1 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +27 -21
- package/dist/editor/components/PlaybackRatePersistor.d.ts +1 -1
- package/dist/editor/components/PlaybackRatePersistor.js +0 -0
- package/dist/editor/components/PlaybackRateSelector.d.ts +0 -0
- package/dist/editor/components/PlaybackRateSelector.js +6 -0
- package/dist/editor/components/Preview.d.ts +2 -1
- package/dist/editor/components/Preview.js +17 -9
- package/dist/editor/components/PreviewToolbar.d.ts +0 -0
- package/dist/editor/components/PreviewToolbar.js +4 -2
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.js +11 -0
- package/dist/editor/components/QuickSwitcher/NoResults.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/NoResults.js +20 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.d.ts +7 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.js +16 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +269 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +21 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +109 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +29 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +63 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.js +26 -0
- package/dist/editor/components/RenderButton.d.ts +6 -0
- package/dist/editor/components/RenderButton.js +46 -0
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +15 -0
- package/dist/editor/components/RenderModal/CrfSetting.js +56 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +14 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +42 -0
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/MutedSetting.js +14 -0
- package/dist/editor/components/RenderModal/QualitySetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/QualitySetting.js +27 -0
- package/dist/editor/components/RenderModal/RenderErrorModal.d.ts +5 -0
- package/dist/editor/components/RenderModal/RenderErrorModal.js +64 -0
- package/dist/editor/components/RenderModal/RenderModal.d.ts +14 -0
- package/dist/editor/components/RenderModal/RenderModal.js +377 -0
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/ScaleSetting.js +27 -0
- package/dist/editor/components/RenderModal/layout.d.ts +4 -0
- package/dist/editor/components/RenderModal/layout.js +25 -0
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +5 -0
- package/dist/editor/components/RenderQueue/CircularProgress.js +18 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +39 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +22 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +27 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +24 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +27 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +22 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +22 -0
- package/dist/editor/components/RenderQueue/actions.d.ts +35 -0
- package/dist/editor/components/RenderQueue/actions.js +84 -0
- package/dist/editor/components/RenderQueue/context.d.ts +19 -0
- package/dist/editor/components/RenderQueue/context.js +56 -0
- package/dist/editor/components/RenderQueue/index.d.ts +2 -0
- package/dist/editor/components/RenderQueue/index.js +18 -0
- package/dist/editor/components/RenderQueue/item-style.d.ts +2 -0
- package/dist/editor/components/RenderQueue/item-style.js +21 -0
- package/dist/editor/components/RenderToolbarIcon.d.ts +2 -0
- package/dist/editor/components/RenderToolbarIcon.js +56 -0
- package/dist/editor/components/RendersTab.d.ts +6 -0
- package/dist/editor/components/RendersTab.js +43 -0
- package/dist/editor/components/ResetZoomButton.d.ts +4 -0
- package/dist/editor/components/ResetZoomButton.js +9 -0
- package/dist/editor/components/RichTimelineToggle.d.ts +0 -0
- package/dist/editor/components/RichTimelineToggle.js +0 -0
- package/dist/editor/components/SegmentedControl.d.ts +16 -0
- package/dist/editor/components/SegmentedControl.js +63 -0
- package/dist/editor/components/SidebarContent.d.ts +5 -0
- package/dist/editor/components/SidebarContent.js +51 -0
- package/dist/editor/components/SizeSelector.d.ts +3 -2
- package/dist/editor/components/SizeSelector.js +59 -18
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +1 -1
- package/dist/editor/components/Splitter/SplitterContainer.js +0 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterContext.js +0 -0
- package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterElement.js +1 -0
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterHandle.js +0 -0
- package/dist/editor/components/Tabs/index.d.ts +11 -0
- package/dist/editor/components/Tabs/index.js +51 -0
- package/dist/editor/components/Thumbnail.d.ts +1 -1
- package/dist/editor/components/Thumbnail.js +0 -0
- package/dist/editor/components/TimeValue.d.ts +0 -0
- package/dist/editor/components/TimeValue.js +9 -5
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedIndicator.js +0 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +1 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +5 -3
- package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
- package/dist/editor/components/Timeline/Timeline.js +22 -9
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +0 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.js +123 -25
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +2 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
- 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 +9 -4
- 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.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +0 -0
- 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.d.ts +0 -0
- 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.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +47 -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/is-collapsed.js +0 -0
- 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/Timeline/timeline-state-reducer.d.ts +0 -0
- package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +2 -2
- package/dist/editor/components/TimelineInOutToggle.js +89 -21
- package/dist/editor/components/TopPanel.d.ts +0 -0
- package/dist/editor/components/TopPanel.js +0 -0
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.js +0 -0
- 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.d.ts +0 -0
- package/dist/editor/components/layout.js +0 -0
- package/dist/editor/helpers/calculate-timeline.d.ts +2 -2
- package/dist/editor/helpers/calculate-timeline.js +0 -0
- package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
- package/dist/editor/helpers/checkerboard-background.js +0 -0
- package/dist/editor/helpers/client-id.d.ts +17 -0
- package/dist/editor/helpers/client-id.js +46 -0
- 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/create-folder-tree.js +0 -0
- 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-sequence-visible-range.js +0 -0
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
- 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/get-timeline-sequence-sort-key.js +0 -0
- package/dist/editor/helpers/is-composition-still.d.ts +1 -1
- package/dist/editor/helpers/is-composition-still.js +0 -0
- 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/noop.d.ts +0 -0
- package/dist/editor/helpers/noop.js +0 -0
- package/dist/editor/helpers/open-in-editor.d.ts +2 -0
- package/dist/editor/helpers/open-in-editor.js +22 -0
- package/dist/editor/helpers/persist-open-folders.d.ts +0 -0
- package/dist/editor/helpers/persist-open-folders.js +0 -0
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +36 -0
- package/dist/editor/helpers/timeline-layout.d.ts +0 -0
- package/dist/editor/helpers/timeline-layout.js +0 -0
- package/dist/editor/helpers/use-compact-ui.d.ts +0 -0
- package/dist/editor/helpers/use-compact-ui.js +0 -0
- package/dist/editor/helpers/use-file-existence.d.ts +1 -0
- package/dist/editor/helpers/use-file-existence.js +66 -0
- package/dist/editor/helpers/use-keybinding.d.ts +9 -2
- package/dist/editor/helpers/use-keybinding.js +25 -6
- package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
- package/dist/editor/helpers/use-menu-structure.js +634 -0
- package/dist/editor/helpers/validate-new-comp-data.d.ts +1 -1
- package/dist/editor/helpers/validate-new-comp-data.js +0 -0
- package/dist/editor/icons/Checkmark.d.ts +0 -0
- package/dist/editor/icons/Checkmark.js +0 -0
- package/dist/editor/icons/RenderStillIcon.d.ts +3 -0
- package/dist/editor/icons/RenderStillIcon.js +8 -0
- package/dist/editor/icons/caret.d.ts +0 -0
- package/dist/editor/icons/caret.js +0 -0
- package/dist/editor/icons/film.d.ts +2 -1
- package/dist/editor/icons/film.js +0 -0
- package/dist/editor/icons/folder.d.ts +2 -1
- package/dist/editor/icons/folder.js +0 -0
- package/dist/editor/icons/jump-to-start.d.ts +1 -1
- package/dist/editor/icons/jump-to-start.js +0 -0
- package/dist/editor/icons/keys.d.ts +0 -0
- package/dist/editor/icons/keys.js +0 -0
- package/dist/editor/icons/lock.d.ts +2 -1
- package/dist/editor/icons/lock.js +0 -0
- package/dist/editor/icons/media-volume.d.ts +0 -0
- package/dist/editor/icons/media-volume.js +0 -0
- 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 +0 -0
- package/dist/editor/icons/play.d.ts +2 -1
- package/dist/editor/icons/play.js +0 -0
- package/dist/editor/icons/plus.d.ts +3 -0
- package/dist/editor/icons/plus.js +8 -0
- package/dist/editor/icons/render.d.ts +5 -0
- package/dist/editor/icons/render.js +8 -0
- package/dist/editor/icons/step-back.d.ts +2 -1
- package/dist/editor/icons/step-back.js +0 -0
- package/dist/editor/icons/step-forward.d.ts +2 -1
- package/dist/editor/icons/step-forward.js +0 -0
- package/dist/editor/icons/still.d.ts +2 -1
- package/dist/editor/icons/still.js +0 -0
- package/dist/editor/icons/timeline.d.ts +2 -1
- package/dist/editor/icons/timeline.js +0 -0
- package/dist/editor/icons/timelineInOutPointer.d.ts +2 -1
- package/dist/editor/icons/timelineInOutPointer.js +0 -0
- package/dist/editor/icons/video.d.ts +5 -0
- package/dist/editor/icons/video.js +8 -0
- package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
- package/dist/editor/state/aspect-ratio-locked.js +0 -0
- package/dist/editor/state/checkerboard.d.ts +0 -0
- package/dist/editor/state/checkerboard.js +0 -0
- package/dist/editor/state/folders.d.ts +1 -1
- package/dist/editor/state/folders.js +0 -0
- package/dist/editor/state/highest-z-index.d.ts +0 -0
- package/dist/editor/state/highest-z-index.js +0 -0
- package/dist/editor/state/in-out.d.ts +12 -0
- package/dist/editor/state/in-out.js +23 -0
- package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
- package/dist/editor/state/input-dragger-click-lock.js +0 -0
- package/dist/editor/state/keybindings.d.ts +0 -0
- package/dist/editor/state/keybindings.js +3 -1
- package/dist/editor/state/loop.d.ts +0 -0
- package/dist/editor/state/loop.js +0 -0
- package/dist/editor/state/marks.d.ts +0 -0
- package/dist/editor/state/marks.js +0 -0
- package/dist/editor/state/modals.d.ts +6 -3
- package/dist/editor/state/modals.js +0 -0
- package/dist/editor/state/mute.d.ts +0 -0
- package/dist/editor/state/mute.js +0 -0
- package/dist/editor/state/playbackrate.d.ts +0 -0
- package/dist/editor/state/playbackrate.js +0 -0
- 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.d.ts +0 -0
- package/dist/editor/state/render-frame.js +12 -3
- package/dist/editor/state/rich-timeline.d.ts +0 -0
- package/dist/editor/state/rich-timeline.js +0 -0
- package/dist/editor/state/sidebar.d.ts +0 -0
- package/dist/editor/state/sidebar.js +0 -0
- package/dist/editor/state/timeline-ref.d.ts +0 -0
- package/dist/editor/state/timeline-ref.js +0 -0
- package/dist/editor/state/timeline-zoom.d.ts +10 -0
- package/dist/editor/state/timeline-zoom.js +38 -0
- package/dist/editor/state/timeline.d.ts +0 -0
- package/dist/editor/state/timeline.js +0 -0
- package/dist/editor/state/z-index.d.ts +0 -0
- package/dist/editor/state/z-index.js +31 -12
- package/dist/entry-point.d.ts +5 -0
- package/dist/entry-point.js +46 -0
- package/dist/event-source-events.d.ts +13 -0
- package/dist/event-source-events.js +2 -0
- package/dist/event-source.d.ts +1 -0
- package/dist/event-source.js +33 -0
- package/dist/file-watcher.d.ts +9 -0
- package/dist/file-watcher.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 +28 -12
- package/dist/get-cli-options.js +75 -85
- package/dist/get-composition-id.d.ts +7 -2
- package/dist/get-composition-id.js +30 -8
- package/dist/get-composition-with-dimension-override.d.ts +12 -0
- package/dist/get-composition-with-dimension-override.js +16 -0
- package/dist/get-config-file-name.d.ts +1 -1
- package/dist/get-config-file-name.js +9 -6
- package/dist/get-default-out-name.d.ts +5 -0
- package/dist/get-default-out-name.js +10 -0
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +64 -10
- package/dist/get-filename.d.ts +5 -3
- package/dist/get-filename.js +7 -5
- package/dist/get-final-output-codec.d.ts +10 -0
- package/dist/get-final-output-codec.js +65 -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 +0 -0
- package/dist/get-latest-remotion-version.js +0 -0
- package/dist/get-network-address.d.ts +1 -0
- package/dist/get-network-address.js +16 -0
- package/dist/get-render-media-options.d.ts +8 -0
- package/dist/get-render-media-options.js +52 -0
- package/dist/handle-common-errors.d.ts +0 -0
- package/dist/handle-common-errors.js +10 -0
- package/dist/image-formats.d.ts +3 -2
- package/dist/image-formats.js +6 -4
- package/dist/index.d.ts +115 -29
- package/dist/index.js +54 -22
- package/dist/initialize-cli.d.ts +1 -0
- package/dist/initialize-cli.js +22 -0
- package/dist/install.d.ts +2 -0
- package/dist/install.js +36 -0
- package/dist/is-javascript.d.ts +0 -0
- package/dist/is-javascript.js +0 -0
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +4 -7
- package/dist/list-of-remotion-packages.d.ts +1 -0
- package/dist/list-of-remotion-packages.js +25 -0
- package/dist/load-config.d.ts +1 -1
- package/dist/load-config.js +17 -15
- package/dist/log.d.ts +0 -0
- package/dist/log.js +11 -13
- package/dist/make-progress-bar.d.ts +0 -0
- package/dist/make-progress-bar.js +0 -0
- package/dist/parse-command-line.d.ts +21 -4
- package/dist/parse-command-line.js +68 -40
- package/dist/preview-server/api-routes.d.ts +4 -0
- package/dist/preview-server/api-routes.js +17 -0
- package/dist/preview-server/api-types.d.ts +27 -0
- package/dist/preview-server/api-types.js +2 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +2 -2
- package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
- package/dist/preview-server/dev-middleware/get-paths.js +0 -0
- package/dist/preview-server/dev-middleware/index.d.ts +2 -2
- package/dist/preview-server/dev-middleware/index.js +0 -0
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +0 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +2 -2
- package/dist/preview-server/dev-middleware/middleware.js +1 -1
- package/dist/preview-server/dev-middleware/range-parser.d.ts +0 -0
- package/dist/preview-server/dev-middleware/range-parser.js +0 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +2 -2
- package/dist/preview-server/dev-middleware/ready.js +0 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +1 -1
- package/dist/preview-server/dev-middleware/setup-hooks.js +15 -4
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +1 -1
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
- package/dist/preview-server/dev-middleware/types.d.ts +1 -1
- package/dist/preview-server/dev-middleware/types.js +0 -0
- package/dist/preview-server/env-supports-fs-recursive.d.ts +1 -0
- package/dist/preview-server/env-supports-fs-recursive.js +18 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
- package/dist/preview-server/error-overlay/entry-basic.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +2 -2
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +2 -2
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +9 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +3 -3
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -6
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -8
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +1 -3
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +8 -4
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +76 -43
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +22 -3
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +13 -6
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +2 -1
- 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 +69 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -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 +36 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +2 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +23 -11
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -0
- 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 +21 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +3 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
- 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/format-location.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -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 +49 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -0
- package/dist/preview-server/file-existence-watchers.d.ts +13 -0
- package/dist/preview-server/file-existence-watchers.js +62 -0
- package/dist/preview-server/get-absolute-public-dir.d.ts +4 -0
- package/dist/preview-server/get-absolute-public-dir.js +14 -0
- package/dist/preview-server/get-package-manager.d.ts +2 -1
- package/dist/preview-server/get-package-manager.js +19 -3
- package/dist/preview-server/handler.d.ts +9 -0
- package/dist/preview-server/handler.js +34 -0
- package/dist/preview-server/hot-middleware/client.d.ts +1 -1
- package/dist/preview-server/hot-middleware/client.js +0 -0
- package/dist/preview-server/hot-middleware/index.d.ts +2 -2
- package/dist/preview-server/hot-middleware/index.js +1 -2
- package/dist/preview-server/hot-middleware/process-update.d.ts +1 -1
- package/dist/preview-server/hot-middleware/process-update.js +0 -0
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +0 -0
- package/dist/preview-server/hot-middleware/types.d.ts +1 -1
- package/dist/preview-server/hot-middleware/types.js +0 -0
- package/dist/preview-server/live-events.d.ts +8 -0
- package/dist/preview-server/live-events.js +41 -0
- package/dist/preview-server/parse-body.d.ts +2 -0
- package/dist/preview-server/parse-body.js +16 -0
- package/dist/preview-server/project-info.d.ts +1 -1
- package/dist/preview-server/project-info.js +12 -4
- package/dist/preview-server/public-folder.d.ts +17 -0
- package/dist/preview-server/public-folder.js +56 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +10 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.js +13 -0
- package/dist/preview-server/render-queue/job.d.ts +86 -0
- package/dist/preview-server/render-queue/job.js +2 -0
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +3 -0
- package/dist/preview-server/render-queue/make-retry-payload.js +37 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +1 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.js +34 -0
- package/dist/preview-server/render-queue/process-still.d.ts +8 -0
- package/dist/preview-server/render-queue/process-still.js +50 -0
- package/dist/preview-server/render-queue/process-video.d.ts +8 -0
- package/dist/preview-server/render-queue/process-video.js +59 -0
- package/dist/preview-server/render-queue/queue.d.ts +21 -0
- package/dist/preview-server/render-queue/queue.js +185 -0
- package/dist/preview-server/routes/add-render.d.ts +3 -0
- package/dist/preview-server/routes/add-render.js +54 -0
- package/dist/preview-server/routes/cancel-render.d.ts +3 -0
- package/dist/preview-server/routes/cancel-render.js +9 -0
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +3 -0
- package/dist/preview-server/routes/open-in-file-explorer.js +14 -0
- package/dist/preview-server/routes/remove-render.d.ts +3 -0
- package/dist/preview-server/routes/remove-render.js +9 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.js +13 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +13 -0
- package/dist/preview-server/routes.d.ts +8 -2
- package/dist/preview-server/routes.js +62 -20
- package/dist/preview-server/serve-static.d.ts +1 -1
- package/dist/preview-server/serve-static.js +4 -3
- package/dist/preview-server/start-server.d.ts +19 -6
- package/dist/preview-server/start-server.js +40 -22
- package/dist/preview-server/update-available.d.ts +2 -2
- package/dist/preview-server/update-available.js +8 -5
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +122 -14
- package/dist/previewEntry.d.ts +0 -0
- package/dist/previewEntry.js +12 -2
- package/dist/print-compositions.d.ts +2 -0
- package/dist/print-compositions.js +50 -0
- package/dist/print-error.d.ts +0 -0
- package/dist/print-error.js +5 -8
- package/dist/print-help.d.ts +0 -0
- package/dist/print-help.js +26 -14
- package/dist/progress-bar.d.ts +20 -5
- package/dist/progress-bar.js +63 -18
- package/dist/render-flows/render.d.ts +38 -0
- package/dist/render-flows/render.js +256 -0
- package/dist/render-flows/still.d.ts +32 -0
- package/dist/render-flows/still.js +170 -0
- package/dist/render.d.ts +1 -1
- package/dist/render.js +96 -63
- package/dist/resolve-from.d.ts +0 -0
- package/dist/resolve-from.js +0 -0
- package/dist/select-composition.d.ts +7 -0
- package/dist/select-composition.js +51 -0
- package/dist/setup-cache.d.ts +16 -2
- package/dist/setup-cache.js +110 -20
- package/dist/smooth-zoom.d.ts +4 -0
- package/dist/smooth-zoom.js +20 -0
- package/dist/step.d.ts +0 -0
- package/dist/step.js +0 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +68 -50
- package/dist/truthy.d.ts +3 -0
- package/dist/truthy.js +7 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +21 -29
- package/dist/user-passed-output-location.d.ts +7 -1
- package/dist/user-passed-output-location.js +20 -9
- package/dist/versions.d.ts +2 -2
- package/dist/versions.js +15 -26
- package/package.json +17 -20
- package/web/favicon.png +0 -0
- package/.prettierrc.js +0 -14
- 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/bundle-on-cli.d.ts +0 -2
- package/dist/bundle-on-cli.js +0 -41
- package/dist/bundle.d.ts +0 -1
- package/dist/bundle.js +0 -31
- package/dist/check-version.d.ts +0 -1
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js +0 -14
- 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 +0 -2
- package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.js +0 -53
- package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
- package/dist/editor/components/LoadingIndicator.d.ts +0 -2
- package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/editor/components/LoadingIndicator.js +0 -35
- 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 +0 -1
- package/dist/initialize-render-cli.d.ts.map +0 -1
- package/dist/initialize-render-cli.js +0 -17
- 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/prepare-entry-point.d.ts +0 -11
- package/dist/prepare-entry-point.js +0 -36
- 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 +0 -3
- package/dist/validate-ffmpeg-version.d.ts.map +0 -1
- package/dist/validate-ffmpeg-version.js +0 -17
- 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 +0 -5
- package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
- package/dist/warn-about-ffmpeg-version.js +0 -38
- package/dist/warn-about-ffmpeg-version.js.map +0 -1
- package/dist/webpack-cache.d.ts +0 -12
- package/dist/webpack-cache.js +0 -66
- package/tsconfig.json +0 -16
|
@@ -28,15 +28,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.launchEditor = exports.guessEditor = exports.getDisplayNameForEditor = void 0;
|
|
31
|
-
/*
|
|
32
|
-
Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/
|
|
40
31
|
const child_process_1 = __importStar(require("child_process"));
|
|
41
32
|
const fs_1 = __importDefault(require("fs"));
|
|
42
33
|
const os_1 = __importDefault(require("os"));
|
|
@@ -89,6 +80,7 @@ const editorNames = [
|
|
|
89
80
|
'phpstorm',
|
|
90
81
|
'pycharm',
|
|
91
82
|
'rubymine',
|
|
83
|
+
'subl',
|
|
92
84
|
'sublime_text',
|
|
93
85
|
'vim',
|
|
94
86
|
'webstorm',
|
|
@@ -170,6 +162,7 @@ const displayNameForEditor = {
|
|
|
170
162
|
pycharm: 'PyCharm',
|
|
171
163
|
rider: 'Rider',
|
|
172
164
|
rubymine: 'RubyMine',
|
|
165
|
+
subl: 'Sublime Text',
|
|
173
166
|
sublime_text: 'Sublime Text',
|
|
174
167
|
vim: 'vim',
|
|
175
168
|
vscodium: 'VS Codium',
|
|
@@ -224,7 +217,7 @@ const COMMON_EDITORS_LINUX = {
|
|
|
224
217
|
'phpstorm.sh': 'phpstorm',
|
|
225
218
|
'pycharm.sh': 'pycharm',
|
|
226
219
|
'rubymine.sh': 'rubymine',
|
|
227
|
-
sublime_text: '
|
|
220
|
+
sublime_text: 'subl',
|
|
228
221
|
vim: 'vim',
|
|
229
222
|
'webstorm.sh': 'webstorm',
|
|
230
223
|
'goland.sh': 'goland',
|
|
@@ -261,6 +254,7 @@ const COMMON_EDITORS_WIN = [
|
|
|
261
254
|
const WINDOWS_FILE_NAME_WHITELIST = /^([A-Za-z]:[/\\])?(?:[\x2D-9A-Z\\_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])+$/;
|
|
262
255
|
function getArgumentsForLineNumber(editor, fileName, lineNumber, colNumber) {
|
|
263
256
|
const editorBasename = path_1.default.basename(editor).replace(/\.(exe|cmd|bat)$/i, '');
|
|
257
|
+
const isFolder = fs_1.default.existsSync(fileName) && fs_1.default.lstatSync(fileName).isDirectory();
|
|
264
258
|
switch (editorBasename) {
|
|
265
259
|
case 'atom':
|
|
266
260
|
case 'Atom':
|
|
@@ -268,7 +262,9 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber, colNumber) {
|
|
|
268
262
|
case 'subl':
|
|
269
263
|
case 'sublime':
|
|
270
264
|
case 'sublime_text':
|
|
271
|
-
return
|
|
265
|
+
return isFolder
|
|
266
|
+
? [fileName]
|
|
267
|
+
: [fileName + ':' + lineNumber + ':' + colNumber];
|
|
272
268
|
case 'wstorm':
|
|
273
269
|
case 'charm':
|
|
274
270
|
return [fileName + ':' + lineNumber];
|
|
@@ -330,7 +326,10 @@ async function guessEditor() {
|
|
|
330
326
|
for (let i = 0; i < processNames.length; i++) {
|
|
331
327
|
const processName = processNames[i];
|
|
332
328
|
if (output.indexOf(processName) !== -1) {
|
|
333
|
-
availableEditors.push(
|
|
329
|
+
availableEditors.push({
|
|
330
|
+
process: processName,
|
|
331
|
+
command: COMMON_EDITORS_OSX[processName],
|
|
332
|
+
});
|
|
334
333
|
}
|
|
335
334
|
}
|
|
336
335
|
return availableEditors;
|
|
@@ -344,7 +343,10 @@ async function guessEditor() {
|
|
|
344
343
|
const processPath = runningProcesses[i].trim();
|
|
345
344
|
const processName = path_1.default.basename(processPath);
|
|
346
345
|
if (COMMON_EDITORS_WIN.indexOf(processName) !== -1) {
|
|
347
|
-
availableEditors.push(
|
|
346
|
+
availableEditors.push({
|
|
347
|
+
process: processPath,
|
|
348
|
+
command: processPath,
|
|
349
|
+
});
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
return availableEditors;
|
|
@@ -358,7 +360,10 @@ async function guessEditor() {
|
|
|
358
360
|
for (let i = 0; i < processNames.length; i++) {
|
|
359
361
|
const processName = processNames[i];
|
|
360
362
|
if (output.indexOf(processName) !== -1) {
|
|
361
|
-
availableEditors.push(
|
|
363
|
+
availableEditors.push({
|
|
364
|
+
process: processName,
|
|
365
|
+
command: COMMON_EDITORS_LINUX[processName],
|
|
366
|
+
});
|
|
362
367
|
}
|
|
363
368
|
}
|
|
364
369
|
return availableEditors;
|
|
@@ -369,32 +374,42 @@ async function guessEditor() {
|
|
|
369
374
|
}
|
|
370
375
|
// Last resort, use old skool env vars
|
|
371
376
|
if (process.env.VISUAL) {
|
|
372
|
-
return [
|
|
377
|
+
return [
|
|
378
|
+
{
|
|
379
|
+
process: process.env.VISUAL,
|
|
380
|
+
command: process.env.VISUAL,
|
|
381
|
+
},
|
|
382
|
+
];
|
|
373
383
|
}
|
|
374
384
|
if (process.env.EDITOR) {
|
|
375
|
-
return [
|
|
385
|
+
return [
|
|
386
|
+
{
|
|
387
|
+
process: process.env.EDITOR,
|
|
388
|
+
command: process.env.EDITOR,
|
|
389
|
+
},
|
|
390
|
+
];
|
|
376
391
|
}
|
|
377
392
|
return [];
|
|
378
393
|
}
|
|
379
394
|
exports.guessEditor = guessEditor;
|
|
380
395
|
let _childProcess = null;
|
|
381
|
-
function launchEditor({ colNumber, editor, fileName, lineNumber, vsCodeNewWindow, }) {
|
|
396
|
+
async function launchEditor({ colNumber, editor, fileName, lineNumber, vsCodeNewWindow, }) {
|
|
382
397
|
if (!fs_1.default.existsSync(fileName)) {
|
|
383
|
-
return
|
|
398
|
+
return false;
|
|
384
399
|
}
|
|
385
400
|
// Sanitize lineNumber to prevent malicious use on win32
|
|
386
401
|
// via: https://github.com/nodejs/node/blob/c3bb4b1aa5e907d489619fb43d233c3336bfc03d/lib/child_process.js#L333
|
|
387
402
|
// and it should be a positive integer
|
|
388
403
|
if (!(Number.isInteger(lineNumber) && lineNumber > 0)) {
|
|
389
|
-
return
|
|
404
|
+
return false;
|
|
390
405
|
}
|
|
391
406
|
// colNumber is optional, but should be a positive integer too
|
|
392
407
|
// default is 1
|
|
393
408
|
if (!(Number.isInteger(colNumber) && colNumber > 0)) {
|
|
394
409
|
colNumber = 1;
|
|
395
410
|
}
|
|
396
|
-
if (editor.toLowerCase() === 'none') {
|
|
397
|
-
return
|
|
411
|
+
if (editor.command.toLowerCase() === 'none') {
|
|
412
|
+
return false;
|
|
398
413
|
}
|
|
399
414
|
if (process.platform === 'linux' &&
|
|
400
415
|
fileName.startsWith('/mnt/') &&
|
|
@@ -421,40 +436,58 @@ function launchEditor({ colNumber, editor, fileName, lineNumber, vsCodeNewWindow
|
|
|
421
436
|
'consist only of alphanumeric characters (all languages), periods, ' +
|
|
422
437
|
'dashes, slashes, and underscores.');
|
|
423
438
|
log_1.Log.error();
|
|
424
|
-
return
|
|
439
|
+
return false;
|
|
425
440
|
}
|
|
426
|
-
const shouldOpenVsCodeNewWindow = isVsCodeDerivative(editor) && vsCodeNewWindow;
|
|
441
|
+
const shouldOpenVsCodeNewWindow = isVsCodeDerivative(editor.command) && vsCodeNewWindow;
|
|
427
442
|
const args = shouldOpenVsCodeNewWindow
|
|
428
443
|
? ['--new-window', fileName]
|
|
429
444
|
: lineNumber
|
|
430
|
-
? getArgumentsForLineNumber(editor, fileName, String(lineNumber), colNumber)
|
|
445
|
+
? getArgumentsForLineNumber(editor.command, fileName, String(lineNumber), colNumber)
|
|
431
446
|
: [fileName];
|
|
432
|
-
if (_childProcess && isTerminalEditor(editor)) {
|
|
447
|
+
if (_childProcess && isTerminalEditor(editor.command)) {
|
|
433
448
|
// There's an existing editor process already and it's attached
|
|
434
449
|
// to the terminal, so go kill it. Otherwise two separate editor
|
|
435
450
|
// instances attach to the stdin/stdout which gets confusing.
|
|
436
451
|
_childProcess.kill('SIGKILL');
|
|
437
452
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
_childProcess = child_process_1.default.spawn(editor, args, {
|
|
445
|
-
stdio: 'inherit',
|
|
446
|
-
detached: true,
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
_childProcess.on('exit', (errorCode) => {
|
|
450
|
-
_childProcess = null;
|
|
451
|
-
if (errorCode) {
|
|
452
|
-
log_1.Log.error(`Process exited with code ${errorCode}`);
|
|
453
|
+
const isWin = os_1.default.platform() === 'win32';
|
|
454
|
+
const where = isWin ? 'where' : 'which';
|
|
455
|
+
const binaryToUse = await new Promise((resolve) => {
|
|
456
|
+
if (editor.command === editor.process) {
|
|
457
|
+
resolve(editor.command);
|
|
458
|
+
return;
|
|
453
459
|
}
|
|
460
|
+
child_process_1.default.exec(`${where} "${editor.command}"`, (err) => {
|
|
461
|
+
if (err) {
|
|
462
|
+
resolve(editor.process);
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
resolve(editor.command);
|
|
466
|
+
}
|
|
467
|
+
});
|
|
454
468
|
});
|
|
455
|
-
|
|
456
|
-
|
|
469
|
+
return new Promise((resolve, reject) => {
|
|
470
|
+
if (process.platform === 'win32') {
|
|
471
|
+
// On Windows, launch the editor in a shell because spawn can only
|
|
472
|
+
// launch .exe files.
|
|
473
|
+
_childProcess = child_process_1.default.spawn('cmd.exe', ['/C', binaryToUse].concat(args), { stdio: 'inherit', detached: true });
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
_childProcess = child_process_1.default.spawn(binaryToUse, args, {
|
|
477
|
+
stdio: 'inherit',
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
_childProcess.on('exit', (errorCode) => {
|
|
481
|
+
_childProcess = null;
|
|
482
|
+
if (errorCode) {
|
|
483
|
+
log_1.Log.error(`Process exited with code ${errorCode}`);
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
_childProcess.on('error', (error) => {
|
|
487
|
+
log_1.Log.error('Error opening file in editor', fileName, error.message);
|
|
488
|
+
reject(new Error('Error opening file in editor'));
|
|
489
|
+
});
|
|
490
|
+
resolve(true);
|
|
457
491
|
});
|
|
458
|
-
return Promise.resolve(true);
|
|
459
492
|
}
|
|
460
493
|
exports.launchEditor = launchEditor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SomeStackFrame } from './stack-frame';
|
|
1
|
+
import type { SomeStackFrame } from './stack-frame';
|
|
2
2
|
export declare const parseError: (error: Error | string | string[], contextLines: number) => Promise<SomeStackFrame[]>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SomeStackFrame, SymbolicatedStackFrame } from './stack-frame';
|
|
1
|
+
import type { SomeStackFrame, SymbolicatedStackFrame } from './stack-frame';
|
|
2
2
|
export declare const unmap: (frames: SomeStackFrame[], contextLines: number) => Promise<SymbolicatedStackFrame[]>;
|
|
File without changes
|
|
@@ -2,13 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AskOnDiscord = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const DISCORD_LINK = 'https://
|
|
5
|
+
const DISCORD_LINK = 'https://remotion.dev/discord';
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
+
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
7
8
|
const Button_1 = require("./Button");
|
|
8
|
-
const
|
|
9
|
+
const ShortcutHint_1 = require("./ShortcutHint");
|
|
10
|
+
const AskOnDiscord = ({ canHaveKeyboardShortcuts }) => {
|
|
9
11
|
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
10
12
|
window.open(DISCORD_LINK, '_blank');
|
|
11
13
|
}, []);
|
|
12
|
-
|
|
14
|
+
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
15
|
+
(0, react_1.useEffect)(() => {
|
|
16
|
+
if (!canHaveKeyboardShortcuts) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const onEditor = () => {
|
|
20
|
+
openInBrowser();
|
|
21
|
+
};
|
|
22
|
+
const { unregister } = registerKeybinding({
|
|
23
|
+
event: 'keydown',
|
|
24
|
+
key: 'd',
|
|
25
|
+
callback: onEditor,
|
|
26
|
+
commandCtrlKey: true,
|
|
27
|
+
preventDefault: true,
|
|
28
|
+
});
|
|
29
|
+
return () => unregister();
|
|
30
|
+
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openInBrowser, children: ["Ask on Discord", ' ', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "d", cmdOrCtrl: true })) : null] }));
|
|
13
32
|
};
|
|
14
33
|
exports.AskOnDiscord = AskOnDiscord;
|
|
@@ -2,23 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Button = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../../../editor/helpers/colors");
|
|
7
7
|
const button = {
|
|
8
|
-
border: `1px solid ${INPUT_BORDER_COLOR_UNHOVERED}`,
|
|
8
|
+
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
|
|
9
9
|
borderRadius: 4,
|
|
10
|
-
backgroundColor: INPUT_BACKGROUND,
|
|
10
|
+
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
11
11
|
appearance: 'none',
|
|
12
12
|
fontFamily: 'inherit',
|
|
13
13
|
fontSize: 14,
|
|
14
14
|
color: 'white',
|
|
15
|
+
flexDirection: 'row',
|
|
15
16
|
};
|
|
16
17
|
const buttonContainer = {
|
|
17
18
|
padding: 10,
|
|
18
19
|
cursor: 'pointer',
|
|
19
20
|
fontSize: 14,
|
|
20
21
|
};
|
|
21
|
-
const Button = ({ children, onClick, disabled }) => {
|
|
22
|
-
|
|
22
|
+
const Button = ({ children, onClick, disabled, style }) => {
|
|
23
|
+
const combined = (0, react_1.useMemo)(() => {
|
|
24
|
+
return {
|
|
25
|
+
...button,
|
|
26
|
+
...(style !== null && style !== void 0 ? style : {}),
|
|
27
|
+
};
|
|
28
|
+
}, [style]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("button", { style: combined, type: "button", disabled: disabled, onClick: onClick, children: (0, jsx_runtime_1.jsx)("div", { className: "css-reset", style: buttonContainer, children: children }) }));
|
|
23
30
|
};
|
|
24
31
|
exports.Button = Button;
|
|
@@ -13,6 +13,8 @@ const lineNumber = {
|
|
|
13
13
|
paddingLeft: 10,
|
|
14
14
|
paddingRight: 12,
|
|
15
15
|
marginRight: 12,
|
|
16
|
+
color: 'inherit',
|
|
17
|
+
fontSize: 14,
|
|
16
18
|
};
|
|
17
19
|
const CodeFrame = ({ source, lineNumberWidth }) => {
|
|
18
20
|
return ((0, jsx_runtime_1.jsx)("div", { style: frame, children: source.map((s, j) => {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ErrorRecord } from '../react-overlay/listen-to-runtime-errors';
|
|
2
|
+
import type { ErrorRecord } from '../react-overlay/listen-to-runtime-errors';
|
|
3
3
|
export declare const ErrorDisplay: React.FC<{
|
|
4
4
|
display: ErrorRecord;
|
|
5
|
+
keyboardShortcuts: boolean;
|
|
5
6
|
}>;
|
|
@@ -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,69 @@
|
|
|
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
|
+
overflow: 'hidden',
|
|
20
|
+
};
|
|
21
|
+
const textContainer = {
|
|
22
|
+
fontSize,
|
|
23
|
+
lineHeight,
|
|
24
|
+
};
|
|
25
|
+
const moreLine = {
|
|
26
|
+
width: '100%',
|
|
27
|
+
display: 'flex',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
position: 'absolute',
|
|
30
|
+
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_HOVERED}`,
|
|
31
|
+
height: 0,
|
|
32
|
+
marginTop: 4,
|
|
33
|
+
};
|
|
34
|
+
const moreButton = {
|
|
35
|
+
height: buttonSize,
|
|
36
|
+
width: buttonSize,
|
|
37
|
+
borderRadius: buttonSize / 2,
|
|
38
|
+
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
39
|
+
border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
|
|
40
|
+
marginTop: -buttonSize / 2,
|
|
41
|
+
display: 'flex',
|
|
42
|
+
justifyContent: 'center',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
cursor: 'pointer',
|
|
45
|
+
color: 'white',
|
|
46
|
+
};
|
|
47
|
+
const ErrorMessage = ({ message }) => {
|
|
48
|
+
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
49
|
+
const ref = (0, react_1.useRef)(null);
|
|
50
|
+
const size = player_1.PlayerInternals.useElementSize(ref, {
|
|
51
|
+
shouldApplyCssTransforms: false,
|
|
52
|
+
triggerOnWindowResize: true,
|
|
53
|
+
});
|
|
54
|
+
const errorLines = size ? size.height / (lineHeight * fontSize) : null;
|
|
55
|
+
const style = (0, react_1.useMemo)(() => {
|
|
56
|
+
const isExpanded = expanded || (errorLines !== null && errorLines <= maxLines);
|
|
57
|
+
return {
|
|
58
|
+
...messageContainer,
|
|
59
|
+
maxHeight: isExpanded ? undefined : fontSize * lineHeight * maxLines,
|
|
60
|
+
maskImage: isExpanded ? undefined : maskImage,
|
|
61
|
+
WebkitMaskImage: isExpanded ? undefined : maskImage,
|
|
62
|
+
};
|
|
63
|
+
}, [errorLines, expanded]);
|
|
64
|
+
const toggle = (0, react_1.useCallback)(() => {
|
|
65
|
+
setExpanded((e) => !e);
|
|
66
|
+
}, []);
|
|
67
|
+
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, style: textContainer, 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] }));
|
|
68
|
+
};
|
|
69
|
+
exports.ErrorMessage = ErrorMessage;
|
|
File without changes
|
|
@@ -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, className: "css-reset", 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,36 @@
|
|
|
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 buttonStyle = {
|
|
10
|
+
backgroundColor: 'var(--blue)',
|
|
11
|
+
color: 'white',
|
|
12
|
+
};
|
|
13
|
+
const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
|
|
14
|
+
const openLink = (0, react_1.useCallback)(() => {
|
|
15
|
+
window.open(link.url, '_blank');
|
|
16
|
+
}, [link]);
|
|
17
|
+
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
18
|
+
(0, react_1.useEffect)(() => {
|
|
19
|
+
if (!canHaveKeyboardShortcuts) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const onEditor = () => {
|
|
23
|
+
openLink();
|
|
24
|
+
};
|
|
25
|
+
const { unregister } = registerKeybinding({
|
|
26
|
+
event: 'keydown',
|
|
27
|
+
key: 'h',
|
|
28
|
+
callback: onEditor,
|
|
29
|
+
commandCtrlKey: true,
|
|
30
|
+
preventDefault: true,
|
|
31
|
+
});
|
|
32
|
+
return () => unregister();
|
|
33
|
+
}, [canHaveKeyboardShortcuts, openLink, registerKeybinding]);
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { style: buttonStyle, onClick: openLink, children: ["Help: ", '"', link.title, '"', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "h", cmdOrCtrl: true })) : null] }));
|
|
35
|
+
};
|
|
36
|
+
exports.HelpLink = HelpLink;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SymbolicatedStackFrame } from '../react-overlay/utils/stack-frame';
|
|
2
|
+
import type { SymbolicatedStackFrame } from '../react-overlay/utils/stack-frame';
|
|
3
3
|
export declare const OpenInEditor: React.FC<{
|
|
4
4
|
stack: SymbolicatedStackFrame;
|
|
5
|
+
canHaveKeyboardShortcuts: boolean;
|
|
5
6
|
}>;
|