@remotion/cli 4.0.0-oops.3 → 4.0.0-prefetch.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.js +32 -0
- package/dist/chalk/index.d.ts +58 -0
- package/dist/chalk/index.js +138 -0
- package/dist/code-frame.d.ts +1 -1
- package/dist/code-frame.js +10 -12
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +38 -8
- package/dist/config/browser-executable.d.ts +3 -0
- package/dist/config/browser-executable.js +12 -0
- package/dist/config/browser.d.ts +3 -0
- package/dist/config/browser.js +18 -0
- package/dist/config/bundle-out-dir.d.ts +2 -0
- package/dist/config/bundle-out-dir.js +12 -0
- package/dist/config/chromium-flags.d.ts +9 -0
- package/dist/config/chromium-flags.js +33 -0
- package/dist/config/codec.d.ts +7 -0
- package/dist/config/codec.js +40 -0
- package/dist/config/concurrency.d.ts +3 -0
- package/dist/config/concurrency.js +12 -0
- package/dist/config/crf.d.ts +4 -0
- package/dist/config/crf.js +23 -0
- package/dist/config/enforce-audio-track.d.ts +2 -0
- package/dist/config/enforce-audio-track.js +13 -0
- package/dist/config/env-file.d.ts +2 -0
- package/dist/config/env-file.js +10 -0
- package/dist/config/every-nth-frame.d.ts +3 -0
- package/dist/config/every-nth-frame.js +20 -0
- package/dist/config/ffmpeg-executable.d.ts +5 -0
- package/dist/config/ffmpeg-executable.js +21 -0
- package/dist/config/frame-range.d.ts +4 -0
- package/dist/config/frame-range.js +35 -0
- package/dist/config/get-public-path.d.ts +2 -0
- package/dist/config/get-public-path.js +12 -0
- package/dist/config/image-format.d.ts +3 -0
- package/dist/config/image-format.js +20 -0
- package/dist/config/image-sequence.d.ts +3 -0
- package/dist/config/image-sequence.js +15 -0
- package/dist/config/index.d.ts +49 -0
- package/dist/config/index.js +176 -0
- package/dist/config/keyboard-shortcuts.d.ts +2 -0
- package/dist/config/keyboard-shortcuts.js +12 -0
- package/dist/config/log.d.ts +3 -0
- package/dist/config/log.js +12 -0
- package/dist/config/max-timeline-tracks.d.ts +2 -0
- package/dist/config/max-timeline-tracks.js +24 -0
- package/dist/config/muted.d.ts +2 -0
- package/dist/config/muted.js +13 -0
- package/dist/config/number-of-gif-loops.d.ts +4 -0
- package/dist/config/number-of-gif-loops.js +21 -0
- package/dist/config/output-location.d.ts +2 -0
- package/dist/config/output-location.js +16 -0
- package/dist/config/override-webpack.d.ts +5 -0
- package/dist/config/override-webpack.js +14 -0
- package/dist/config/overwrite.d.ts +2 -0
- package/dist/config/overwrite.js +14 -0
- package/dist/config/pixel-format.d.ts +3 -0
- package/dist/config/pixel-format.js +16 -0
- package/dist/config/preview-server.d.ts +2 -0
- package/dist/config/preview-server.js +20 -0
- package/dist/config/prores-profile.d.ts +3 -0
- package/dist/config/prores-profile.js +12 -0
- package/dist/config/public-dir.d.ts +2 -0
- package/dist/config/public-dir.js +12 -0
- package/dist/config/quality.d.ts +2 -0
- package/dist/config/quality.js +17 -0
- package/dist/config/scale.d.ts +3 -0
- package/dist/config/scale.js +15 -0
- package/dist/config/still-frame.d.ts +2 -0
- package/dist/config/still-frame.js +12 -0
- package/dist/config/timeout.d.ts +2 -0
- package/dist/config/timeout.js +17 -0
- package/dist/config/webpack-caching.d.ts +3 -0
- package/dist/config/webpack-caching.js +16 -0
- package/dist/download-progress.d.ts +2 -1
- package/dist/download-progress.js +19 -4
- package/dist/editor/components/AudioWaveform.js +2 -2
- package/dist/editor/components/AudioWaveformBar.js +1 -1
- package/dist/editor/components/Button.d.ts +4 -0
- package/dist/editor/components/Button.js +24 -0
- package/dist/editor/components/Canvas.js +191 -1
- package/dist/editor/components/CheckboardToggle.js +9 -2
- package/dist/editor/components/ClipboardIcon.js +1 -1
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +4 -0
- package/dist/editor/components/CollapsedCompositionSelector.js +39 -0
- package/dist/editor/components/CompositionSelector.js +7 -45
- package/dist/editor/components/CompositionSelectorItem.d.ts +2 -2
- package/dist/editor/components/CompositionSelectorItem.js +6 -4
- package/dist/editor/components/ControlButton.js +1 -1
- package/dist/editor/components/CopyButton.js +5 -18
- package/dist/editor/components/CurrentComposition.js +7 -2
- package/dist/editor/components/Editor.js +22 -90
- package/dist/editor/components/EditorContent.js +3 -2
- package/dist/editor/components/EditorContexts.d.ts +4 -0
- package/dist/editor/components/EditorContexts.js +83 -0
- package/dist/editor/components/FpsCounter.js +1 -1
- package/dist/editor/components/FramePersistor.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.js +26 -11
- package/dist/editor/components/InitialCompositionLoader.d.ts +4 -0
- package/dist/editor/components/InitialCompositionLoader.js +86 -0
- package/dist/editor/components/KeyboardShortcutsModal.js +15 -1
- package/dist/editor/components/LoopToggle.js +1 -1
- package/dist/editor/components/Menu/MenuDivider.js +1 -1
- package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
- package/dist/editor/components/Menu/MenuItem.js +4 -4
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/Menu/MenuSubItem.js +5 -4
- package/dist/editor/components/Menu/SubMenu.d.ts +2 -2
- package/dist/editor/components/Menu/SubMenu.js +1 -1
- package/dist/editor/components/Menu/styles.d.ts +3 -2
- package/dist/editor/components/Menu/styles.js +10 -3
- package/dist/editor/components/MenuBuildIndicator.d.ts +2 -0
- package/dist/editor/components/MenuBuildIndicator.js +26 -0
- package/dist/editor/components/MenuToolbar.js +109 -20
- package/dist/editor/components/ModalContainer.js +1 -1
- package/dist/editor/components/ModalHeader.js +1 -1
- package/dist/editor/components/MuteToggle.js +1 -1
- package/dist/editor/components/NewComposition/CancelButton.d.ts +2 -1
- package/dist/editor/components/NewComposition/CancelButton.js +1 -1
- package/dist/editor/components/NewComposition/ComboBox.js +15 -5
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +2 -1
- package/dist/editor/components/NewComposition/InputDragger.js +2 -2
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -1
- package/dist/editor/components/NewComposition/MenuContent.js +43 -8
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +1 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js +1 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts +1 -1
- package/dist/editor/components/NewComposition/NewComposition.js +4 -4
- package/dist/editor/components/NewComposition/RemInput.js +1 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +1 -1
- package/dist/editor/components/NewComposition/ValidationMessage.js +2 -2
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +1 -1
- package/dist/editor/components/NoRegisterRoot.d.ts +2 -0
- package/dist/editor/components/NoRegisterRoot.js +41 -0
- package/dist/editor/components/Notifications/ColorDot.d.ts +4 -0
- package/dist/editor/components/Notifications/ColorDot.js +22 -0
- package/dist/editor/components/Notifications/Notification.d.ts +8 -0
- package/dist/editor/components/Notifications/Notification.js +31 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +13 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +40 -0
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +6 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +59 -0
- package/dist/editor/components/PlayPause.js +121 -23
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +1 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +24 -21
- package/dist/editor/components/PlaybackRatePersistor.d.ts +1 -1
- package/dist/editor/components/PlaybackRateSelector.js +7 -2
- package/dist/editor/components/Preview.d.ts +2 -1
- package/dist/editor/components/Preview.js +27 -16
- package/dist/editor/components/PreviewToolbar.js +4 -2
- package/dist/editor/components/PreviewZoomControls.d.ts +2 -0
- package/dist/editor/components/PreviewZoomControls.js +67 -0
- package/dist/editor/components/ResetZoomButton.d.ts +4 -0
- package/dist/editor/components/ResetZoomButton.js +9 -0
- package/dist/editor/components/RichTimelineToggle.js +1 -1
- package/dist/editor/components/SizeSelector.d.ts +3 -2
- package/dist/editor/components/SizeSelector.js +58 -18
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +1 -1
- package/dist/editor/components/Splitter/SplitterContainer.js +1 -1
- package/dist/editor/components/Splitter/SplitterElement.js +5 -2
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +4 -1
- package/dist/editor/components/Splitter/SplitterHandle.js +28 -7
- package/dist/editor/components/Thumbnail.d.ts +1 -1
- package/dist/editor/components/Thumbnail.js +1 -1
- package/dist/editor/components/TimeValue.js +9 -5
- package/dist/editor/components/Timeline/LoopedIndicator.js +2 -2
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +3 -3
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +1 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +6 -4
- package/dist/editor/components/Timeline/Timeline.js +12 -4
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +2 -2
- package/dist/editor/components/Timeline/TimelineDragHandler.js +123 -25
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +4 -3
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +1 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineList.js +7 -4
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +3 -2
- package/dist/editor/components/Timeline/TimelineListItem.js +10 -5
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +76 -0
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +4 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +25 -0
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineSequence.js +1 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +1 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts +3 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +35 -2
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +1 -3
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +168 -0
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineTracks.js +14 -9
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +1 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +45 -0
- package/dist/editor/components/Timeline/imperative-state.d.ts +12 -0
- package/dist/editor/components/Timeline/imperative-state.js +39 -0
- package/dist/editor/components/Timeline/is-collapsed.d.ts +2 -2
- package/dist/editor/components/Timeline/timeline-refs.d.ts +2 -0
- package/dist/editor/components/Timeline/timeline-refs.js +3 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +44 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +218 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +2 -2
- package/dist/editor/components/TimelineInOutToggle.js +85 -20
- package/dist/editor/components/TopPanel.js +24 -1
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.js +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js +1 -1
- package/dist/editor/components/ZoomPersistor.d.ts +4 -0
- package/dist/editor/components/ZoomPersistor.js +37 -0
- package/dist/editor/components/layout.js +4 -4
- package/dist/editor/helpers/calculate-timeline.d.ts +2 -2
- package/dist/editor/helpers/colors.d.ts +2 -1
- package/dist/editor/helpers/colors.js +2 -1
- package/dist/editor/helpers/copy-text.d.ts +1 -1
- package/dist/editor/helpers/copy-text.js +5 -4
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -2
- package/dist/editor/helpers/get-effective-translation.d.ts +26 -0
- package/dist/editor/helpers/get-effective-translation.js +45 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +1 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.js +7 -4
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.js +29 -9
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -1
- package/dist/editor/helpers/is-composition-still.d.ts +1 -1
- package/dist/editor/helpers/is-current-selected-still.d.ts +4 -0
- package/dist/editor/helpers/is-current-selected-still.js +15 -1
- package/dist/editor/helpers/normalize-wheel.d.ts +5 -0
- package/dist/editor/helpers/normalize-wheel.js +20 -0
- package/dist/editor/helpers/normalize-zoom.d.ts +1 -0
- package/dist/editor/helpers/normalize-zoom.js +16 -0
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +36 -0
- package/dist/editor/helpers/use-compact-ui.d.ts +1 -0
- package/dist/editor/helpers/use-compact-ui.js +18 -0
- package/dist/editor/helpers/use-keybinding.d.ts +8 -2
- package/dist/editor/helpers/use-keybinding.js +23 -6
- package/dist/editor/helpers/validate-new-comp-data.d.ts +1 -1
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/caret.d.ts +1 -1
- package/dist/editor/icons/caret.js +4 -4
- package/dist/editor/icons/film.d.ts +2 -1
- package/dist/editor/icons/film.js +1 -1
- package/dist/editor/icons/folder.d.ts +2 -1
- package/dist/editor/icons/folder.js +2 -2
- package/dist/editor/icons/jump-to-start.d.ts +2 -0
- package/dist/editor/icons/jump-to-start.js +8 -0
- package/dist/editor/icons/keys.js +3 -3
- package/dist/editor/icons/lock.d.ts +2 -1
- package/dist/editor/icons/lock.js +2 -2
- package/dist/editor/icons/media-volume.js +2 -2
- package/dist/editor/icons/minus.d.ts +3 -0
- package/dist/editor/icons/minus.js +8 -0
- package/dist/editor/icons/pause.d.ts +2 -1
- package/dist/editor/icons/pause.js +1 -1
- package/dist/editor/icons/play.d.ts +2 -1
- package/dist/editor/icons/play.js +1 -1
- package/dist/editor/icons/plus.d.ts +3 -0
- package/dist/editor/icons/plus.js +8 -0
- package/dist/editor/icons/step-back.d.ts +2 -1
- package/dist/editor/icons/step-back.js +1 -1
- package/dist/editor/icons/step-forward.d.ts +2 -1
- package/dist/editor/icons/step-forward.js +1 -1
- package/dist/editor/icons/still.d.ts +2 -1
- package/dist/editor/icons/still.js +1 -1
- package/dist/editor/icons/timeline.d.ts +2 -1
- package/dist/editor/icons/timeline.js +1 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts +2 -1
- package/dist/editor/icons/timelineInOutPointer.js +2 -2
- package/dist/editor/state/folders.d.ts +11 -0
- package/dist/editor/state/folders.js +23 -0
- package/dist/editor/state/highest-z-index.js +2 -2
- package/dist/editor/state/in-out.d.ts +12 -0
- package/dist/editor/state/in-out.js +23 -0
- package/dist/editor/state/keybindings.js +4 -2
- package/dist/editor/state/modals.d.ts +2 -2
- package/dist/editor/state/preview-size.d.ts +6 -3
- package/dist/editor/state/preview-size.js +39 -5
- package/dist/editor/state/render-frame.js +12 -3
- package/dist/editor/state/sidebar.d.ts +12 -0
- package/dist/editor/state/sidebar.js +40 -0
- package/dist/editor/state/timeline-zoom.d.ts +10 -0
- package/dist/editor/state/timeline-zoom.js +38 -0
- package/dist/editor/state/z-index.js +7 -2
- package/dist/event-source-events.d.ts +6 -0
- package/dist/event-source-events.js +2 -0
- package/dist/event-source.d.ts +1 -0
- package/dist/event-source.js +28 -0
- package/dist/find-closest-package-json.d.ts +2 -0
- package/dist/find-closest-package-json.js +35 -0
- package/dist/format-bytes.d.ts +6 -0
- package/dist/format-bytes.js +103 -0
- package/dist/get-cli-options.d.ts +15 -8
- package/dist/get-cli-options.js +56 -46
- package/dist/get-composition-id.d.ts +1 -2
- package/dist/get-composition-id.js +2 -3
- package/dist/get-config-file-name.d.ts +1 -1
- package/dist/get-config-file-name.js +9 -6
- package/dist/get-env.js +6 -4
- package/dist/get-filename.d.ts +4 -3
- package/dist/get-filename.js +5 -5
- package/dist/get-final-output-codec.d.ts +6 -0
- package/dist/get-final-output-codec.js +63 -0
- package/dist/get-input-props.d.ts +1 -1
- package/dist/get-input-props.js +10 -1
- package/dist/get-latest-remotion-version.d.ts +1 -0
- package/dist/get-latest-remotion-version.js +31 -0
- package/dist/handle-common-errors.js +5 -0
- package/dist/image-formats.d.ts +3 -2
- package/dist/image-formats.js +6 -4
- package/dist/index.d.ts +79 -22
- package/dist/index.js +33 -15
- package/dist/initialize-render-cli.d.ts +1 -1
- package/dist/initialize-render-cli.js +8 -3
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +8 -4
- package/dist/list-of-remotion-packages.d.ts +1 -0
- package/dist/list-of-remotion-packages.js +20 -0
- package/dist/load-config.d.ts +1 -1
- package/dist/load-config.js +16 -5
- package/dist/log.js +11 -13
- package/dist/parse-command-line.d.ts +8 -1
- package/dist/parse-command-line.js +56 -28
- package/dist/prepare-entry-point.d.ts +12 -0
- package/dist/prepare-entry-point.js +37 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +7 -0
- package/dist/preview-server/dev-middleware/compatible-api.js +20 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +7 -0
- package/dist/preview-server/dev-middleware/get-paths.js +19 -0
- package/dist/preview-server/dev-middleware/index.d.ts +3 -0
- package/dist/preview-server/dev-middleware/index.js +27 -0
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +1 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +37 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +10 -0
- package/dist/preview-server/dev-middleware/middleware.js +224 -0
- package/dist/preview-server/dev-middleware/range-parser.d.ts +15 -0
- package/dist/preview-server/dev-middleware/range-parser.js +96 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +3 -0
- package/dist/preview-server/dev-middleware/ready.js +11 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-hooks.js +42 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +13 -0
- package/dist/preview-server/dev-middleware/types.d.ts +10 -0
- package/dist/preview-server/dev-middleware/types.js +2 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +1 -0
- package/dist/preview-server/error-overlay/entry-basic.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +11 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +46 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +24 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +64 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +43 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +45 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +8 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +87 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +14 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +24 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +50 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +27 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +16 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +483 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +117 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +40 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +64 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +32 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +7 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +30 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +23 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +48 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +61 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +69 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +37 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +35 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +109 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +14 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +12 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +10 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +43 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +18 -0
- package/dist/preview-server/get-package-manager.d.ts +10 -0
- package/dist/preview-server/get-package-manager.js +47 -0
- package/dist/preview-server/hot-middleware/client.d.ts +19 -0
- package/dist/preview-server/hot-middleware/client.js +177 -0
- package/dist/preview-server/hot-middleware/index.d.ts +8 -0
- package/dist/preview-server/hot-middleware/index.js +150 -0
- package/dist/preview-server/hot-middleware/process-update.d.ts +12 -0
- package/dist/preview-server/hot-middleware/process-update.js +144 -0
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +1 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +21 -0
- package/dist/preview-server/hot-middleware/types.d.ts +27 -0
- package/dist/preview-server/hot-middleware/types.js +10 -0
- package/dist/preview-server/live-events.d.ts +8 -0
- package/dist/preview-server/live-events.js +41 -0
- package/dist/preview-server/project-info.d.ts +5 -0
- package/dist/preview-server/project-info.js +22 -0
- package/dist/preview-server/routes.d.ts +12 -0
- package/dist/preview-server/routes.js +161 -0
- package/dist/preview-server/serve-static.d.ts +9 -0
- package/dist/preview-server/serve-static.js +77 -0
- package/dist/preview-server/start-server.d.ts +15 -0
- package/dist/preview-server/start-server.js +81 -0
- package/dist/preview-server/update-available.d.ts +11 -0
- package/dist/preview-server/update-available.js +47 -0
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +38 -8
- package/dist/previewEntry.js +12 -2
- package/dist/print-error.js +6 -8
- package/dist/print-help.js +11 -14
- package/dist/progress-bar.d.ts +7 -4
- package/dist/progress-bar.js +19 -15
- package/dist/render.d.ts +1 -1
- package/dist/render.js +88 -55
- package/dist/setup-cache.d.ts +16 -2
- package/dist/setup-cache.js +53 -14
- package/dist/smooth-zoom.d.ts +4 -0
- package/dist/smooth-zoom.js +20 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +93 -43
- package/dist/truthy.d.ts +3 -0
- package/dist/truthy.js +7 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +18 -32
- package/dist/user-passed-output-location.d.ts +5 -1
- package/dist/user-passed-output-location.js +14 -7
- package/dist/versions.d.ts +2 -2
- package/dist/versions.js +16 -24
- package/dist/warn-about-ffmpeg-version.d.ts +1 -1
- package/package.json +15 -16
- package/tsconfig.json +2 -1
- package/vitest.config.ts +9 -0
- package/web/favicon.png +0 -0
- package/dist/editor/components/LoadingIndicator.d.ts +0 -2
- package/dist/editor/components/LoadingIndicator.js +0 -35
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenInEditor = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
/* eslint-disable no-console */
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
8
|
+
const Button_1 = require("./Button");
|
|
9
|
+
const ShortcutHint_1 = require("./ShortcutHint");
|
|
10
|
+
const initialState = { type: 'idle' };
|
|
11
|
+
const reducer = (state, action) => {
|
|
12
|
+
if (action.type === 'start') {
|
|
13
|
+
return {
|
|
14
|
+
type: 'load',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
if (action.type === 'fail') {
|
|
18
|
+
return {
|
|
19
|
+
type: 'error',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (action.type === 'reset') {
|
|
23
|
+
return {
|
|
24
|
+
type: 'idle',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (action.type === 'succeed') {
|
|
28
|
+
return {
|
|
29
|
+
type: 'success',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return state;
|
|
33
|
+
};
|
|
34
|
+
const OpenInEditor = ({ stack, canHaveKeyboardShortcuts }) => {
|
|
35
|
+
const isMounted = (0, react_1.useRef)(true);
|
|
36
|
+
const [state, dispatch] = (0, react_1.useReducer)(reducer, initialState);
|
|
37
|
+
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
38
|
+
const dispatchIfMounted = (0, react_1.useCallback)((payload) => {
|
|
39
|
+
if (isMounted.current === false)
|
|
40
|
+
return;
|
|
41
|
+
dispatch(payload);
|
|
42
|
+
}, []);
|
|
43
|
+
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
44
|
+
dispatch({ type: 'start' });
|
|
45
|
+
fetch(`/api/open-in-editor`, {
|
|
46
|
+
method: 'post',
|
|
47
|
+
headers: {
|
|
48
|
+
'content-type': 'application/json',
|
|
49
|
+
},
|
|
50
|
+
body: JSON.stringify({
|
|
51
|
+
stack,
|
|
52
|
+
}),
|
|
53
|
+
})
|
|
54
|
+
.then((res) => res.json())
|
|
55
|
+
.then((data) => {
|
|
56
|
+
if (data.success) {
|
|
57
|
+
dispatchIfMounted({ type: 'succeed' });
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
dispatchIfMounted({ type: 'fail' });
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
.catch((err) => {
|
|
64
|
+
dispatchIfMounted({ type: 'fail' });
|
|
65
|
+
console.log('Could not open browser', err);
|
|
66
|
+
})
|
|
67
|
+
.finally(() => {
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
dispatchIfMounted({ type: 'reset' });
|
|
70
|
+
}, 2000);
|
|
71
|
+
});
|
|
72
|
+
}, [dispatchIfMounted, stack]);
|
|
73
|
+
(0, react_1.useEffect)(() => {
|
|
74
|
+
return () => {
|
|
75
|
+
isMounted.current = false;
|
|
76
|
+
};
|
|
77
|
+
}, []);
|
|
78
|
+
(0, react_1.useEffect)(() => {
|
|
79
|
+
if (!canHaveKeyboardShortcuts) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const onEditor = () => {
|
|
83
|
+
openInBrowser();
|
|
84
|
+
};
|
|
85
|
+
const { unregister } = registerKeybinding({
|
|
86
|
+
event: 'keydown',
|
|
87
|
+
key: 'o',
|
|
88
|
+
callback: onEditor,
|
|
89
|
+
commandCtrlKey: true,
|
|
90
|
+
});
|
|
91
|
+
return () => unregister();
|
|
92
|
+
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
93
|
+
const label = (0, react_1.useMemo)(() => {
|
|
94
|
+
switch (state.type) {
|
|
95
|
+
case 'error':
|
|
96
|
+
return 'Failed to open';
|
|
97
|
+
case 'idle':
|
|
98
|
+
return `Open in ${window.remotion_editorName}`;
|
|
99
|
+
case 'success':
|
|
100
|
+
return `Opened in ${window.remotion_editorName}`;
|
|
101
|
+
case 'load':
|
|
102
|
+
return `Opening...`;
|
|
103
|
+
default:
|
|
104
|
+
throw new Error('invalid state');
|
|
105
|
+
}
|
|
106
|
+
}, [state.type]);
|
|
107
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openInBrowser, disabled: state.type !== 'idle', children: [label, canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "o", cmdOrCtrl: true })) : null] }));
|
|
108
|
+
};
|
|
109
|
+
exports.OpenInEditor = OpenInEditor;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type SetErrors = {
|
|
3
|
+
setErrors: (errs: State) => void;
|
|
4
|
+
addError: (err: Error) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const setErrorsRef: React.RefObject<SetErrors>;
|
|
7
|
+
declare type State = {
|
|
8
|
+
type: 'clear';
|
|
9
|
+
} | {
|
|
10
|
+
type: 'errors';
|
|
11
|
+
errors: Error[];
|
|
12
|
+
};
|
|
13
|
+
export declare const Overlay: React.FC;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Overlay = exports.setErrorsRef = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const keybindings_1 = require("../../../editor/state/keybindings");
|
|
8
|
+
const ErrorLoader_1 = require("./ErrorLoader");
|
|
9
|
+
exports.setErrorsRef = (0, react_1.createRef)();
|
|
10
|
+
const errorsAreTheSame = (first, second) => {
|
|
11
|
+
return first.stack === second.stack && first.message === second.message;
|
|
12
|
+
};
|
|
13
|
+
const BACKGROUND_COLOR = '#1f2428';
|
|
14
|
+
const Overlay = () => {
|
|
15
|
+
const [errors, setErrors] = (0, react_1.useState)({ type: 'clear' });
|
|
16
|
+
const addError = (0, react_1.useCallback)((err) => {
|
|
17
|
+
setErrors((state) => {
|
|
18
|
+
if (state.type === 'errors') {
|
|
19
|
+
if (state.errors.some((e) => errorsAreTheSame(e, err))) {
|
|
20
|
+
return state;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
...state,
|
|
24
|
+
errors: [...state.errors, err],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
type: 'errors',
|
|
29
|
+
errors: [err],
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}, []);
|
|
33
|
+
(0, react_1.useImperativeHandle)(exports.setErrorsRef, () => {
|
|
34
|
+
return { setErrors, addError };
|
|
35
|
+
}, [addError]);
|
|
36
|
+
if (errors.type === 'clear') {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
if (errors.errors.length === 0) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return ((0, jsx_runtime_1.jsx)(keybindings_1.KeybindingContextProvider, { children: (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: {
|
|
43
|
+
backgroundColor: BACKGROUND_COLOR,
|
|
44
|
+
overflow: 'auto',
|
|
45
|
+
color: 'white',
|
|
46
|
+
}, children: errors.errors.map((err, i) => {
|
|
47
|
+
return ((0, jsx_runtime_1.jsx)(ErrorLoader_1.ErrorLoader, { keyboardShortcuts: i === 0, error: err }, err.stack));
|
|
48
|
+
}) }) }));
|
|
49
|
+
};
|
|
50
|
+
exports.Overlay = Overlay;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchGithubIssues = 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 SearchGithubIssues = ({ message, canHaveKeyboardShortcuts }) => {
|
|
10
|
+
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
11
|
+
window.open(`https://github.com/remotion-dev/remotion/issues?q=${encodeURIComponent(message)}`, '_blank');
|
|
12
|
+
}, [message]);
|
|
13
|
+
const { registerKeybinding } = (0, use_keybinding_1.useKeybinding)();
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
if (!canHaveKeyboardShortcuts) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const onEditor = () => {
|
|
19
|
+
openInBrowser();
|
|
20
|
+
};
|
|
21
|
+
const { unregister } = registerKeybinding({
|
|
22
|
+
event: 'keydown',
|
|
23
|
+
key: 'g',
|
|
24
|
+
callback: onEditor,
|
|
25
|
+
commandCtrlKey: true,
|
|
26
|
+
});
|
|
27
|
+
return () => unregister();
|
|
28
|
+
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openInBrowser, children: ["Search GitHub Issues", ' ', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "g", cmdOrCtrl: true })) : null] }));
|
|
30
|
+
};
|
|
31
|
+
exports.SearchGithubIssues = SearchGithubIssues;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShortcutHint = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cmdOrCtrlCharacter = window.navigator.platform.startsWith('Mac')
|
|
6
|
+
? '⌘'
|
|
7
|
+
: 'Ctrl';
|
|
8
|
+
const container = {
|
|
9
|
+
display: 'inline-block',
|
|
10
|
+
marginLeft: 6,
|
|
11
|
+
opacity: 0.6,
|
|
12
|
+
};
|
|
13
|
+
const ShortcutHint = ({ keyToPress, cmdOrCtrl }) => {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("span", { style: container, children: [cmdOrCtrl ? `${cmdOrCtrlCharacter}+` : '', keyToPress.toUpperCase()] }));
|
|
15
|
+
};
|
|
16
|
+
exports.ShortcutHint = ShortcutHint;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SymbolicatedStackFrame } from '../react-overlay/utils/stack-frame';
|
|
3
|
+
export declare const StackElement: React.FC<{
|
|
4
|
+
s: SymbolicatedStackFrame;
|
|
5
|
+
lineNumberWidth: number;
|
|
6
|
+
isFirst: boolean;
|
|
7
|
+
defaultFunctionName: string;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StackElement = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const Button_1 = require("./Button");
|
|
7
|
+
const carets_1 = require("./carets");
|
|
8
|
+
const CodeFrame_1 = require("./CodeFrame");
|
|
9
|
+
const format_location_1 = require("./format-location");
|
|
10
|
+
const location = {
|
|
11
|
+
color: 'rgba(255, 255, 255, 0.6)',
|
|
12
|
+
fontFamily: 'monospace',
|
|
13
|
+
fontSize: 14,
|
|
14
|
+
};
|
|
15
|
+
const header = {
|
|
16
|
+
paddingLeft: 14,
|
|
17
|
+
paddingTop: 10,
|
|
18
|
+
paddingBottom: 10,
|
|
19
|
+
paddingRight: 14,
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'row',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
borderBottom: '1px solid rgb(66, 144, 245)',
|
|
24
|
+
backgroundColor: 'black',
|
|
25
|
+
};
|
|
26
|
+
const left = {
|
|
27
|
+
paddingRight: 14,
|
|
28
|
+
flex: 1,
|
|
29
|
+
};
|
|
30
|
+
const fnName = {
|
|
31
|
+
fontSize: 14,
|
|
32
|
+
lineHeight: 1.5,
|
|
33
|
+
marginBottom: 3,
|
|
34
|
+
};
|
|
35
|
+
const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName }) => {
|
|
36
|
+
var _a;
|
|
37
|
+
const [showCodeFrame, setShowCodeFrame] = (0, react_1.useState)(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return (!((_a = s.originalFileName) === null || _a === void 0 ? void 0 : _a.includes('node_modules')) &&
|
|
40
|
+
!((_b = s.originalFileName) === null || _b === void 0 ? void 0 : _b.startsWith('webpack/'))) ||
|
|
41
|
+
isFirst;
|
|
42
|
+
});
|
|
43
|
+
const toggleCodeFrame = (0, react_1.useCallback)(() => {
|
|
44
|
+
setShowCodeFrame((f) => !f);
|
|
45
|
+
}, []);
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "css-reset", children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }), s.originalFileName ? ((0, jsx_runtime_1.jsxs)("div", { style: location, children: [(0, format_location_1.formatLocation)(s.originalFileName), ":", s.originalLineNumber] })) : null] }), s.originalScriptCode && s.originalScriptCode.length > 0 ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: toggleCodeFrame, children: showCodeFrame ? (0, jsx_runtime_1.jsx)(carets_1.CaretDown, { invert: false }) : (0, jsx_runtime_1.jsx)(carets_1.CaretRight, {}) })) : null] }), (0, jsx_runtime_1.jsx)("div", { children: s.originalScriptCode &&
|
|
47
|
+
s.originalScriptCode.length > 0 &&
|
|
48
|
+
showCodeFrame ? ((0, jsx_runtime_1.jsx)(CodeFrame_1.CodeFrame, { lineNumberWidth: lineNumberWidth, source: s.originalScriptCode })) : null })] }));
|
|
49
|
+
};
|
|
50
|
+
exports.StackElement = StackElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Symbolicating = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Symbolicating = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { id: "loading", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "16", height: "16", fill: "white", ...props, children: [(0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(0 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(45 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.125s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(90 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.25s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(135 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.375s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(180 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.5s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(225 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.675s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(270 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.75s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(315 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.875s" }) })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.Symbolicating = Symbolicating;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaretDown = exports.CaretRight = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const CaretRight = () => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { style: { height: 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
|
|
7
|
+
};
|
|
8
|
+
exports.CaretRight = CaretRight;
|
|
9
|
+
const CaretDown = ({ invert }) => {
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: 20, transform: invert ? `rotate(180deg)` : '' }, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
11
|
+
};
|
|
12
|
+
exports.CaretDown = CaretDown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatLocation: (location: string) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatLocation = void 0;
|
|
4
|
+
const formatLocation = (location) => {
|
|
5
|
+
if (location.startsWith('webpack://')) {
|
|
6
|
+
return location.replace('webpack://', '');
|
|
7
|
+
}
|
|
8
|
+
return location;
|
|
9
|
+
};
|
|
10
|
+
exports.formatLocation = formatLocation;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getHelpLink = void 0;
|
|
4
|
+
const getHelpLink = (message) => {
|
|
5
|
+
if (message.includes('See https://www.remotion.dev/docs/the-fundamentals#defining-compositions')) {
|
|
6
|
+
return {
|
|
7
|
+
title: 'Defining compositions',
|
|
8
|
+
url: 'See https://www.remotion.dev/docs/the-fundamentals#defining-compositions',
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
if (message.includes('https://remotion.dev/docs/wrong-composition-mount')) {
|
|
12
|
+
return {
|
|
13
|
+
title: 'Wrongly mounted <Composition>',
|
|
14
|
+
url: 'https://remotion.dev/docs/wrong-composition-mount',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
if (message.includes('https://remotion.dev/docs/staticfile-relative-paths')) {
|
|
18
|
+
return {
|
|
19
|
+
title: 'staticFile() relative paths',
|
|
20
|
+
url: 'https://remotion.dev/docs/staticfile-relative-paths',
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (message.includes('https://remotion.dev/docs/staticfile-remote-urls')) {
|
|
24
|
+
return {
|
|
25
|
+
title: 'staticFile() remote URLs',
|
|
26
|
+
url: 'https://remotion.dev/docs/staticfile-remote-urls',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (message.includes('https://remotion.dev/docs/non-seekable-media')) {
|
|
30
|
+
return {
|
|
31
|
+
title: 'Non-seekable media',
|
|
32
|
+
url: 'https://remotion.dev/docs/non-seekable-media',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (message.includes('https://remotion.dev/docs/media-playback-error')) {
|
|
36
|
+
return {
|
|
37
|
+
title: 'Media playback error',
|
|
38
|
+
url: 'https://remotion.dev/docs/media-playback-error',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
};
|
|
43
|
+
exports.getHelpLink = getHelpLink;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mountRemotionOverlay: () => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.mountRemotionOverlay = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const client_1 = __importDefault(require("react-dom/client"));
|
|
9
|
+
const Overlay_1 = require("./Overlay");
|
|
10
|
+
const mountRemotionOverlay = () => {
|
|
11
|
+
if (client_1.default.createRoot) {
|
|
12
|
+
client_1.default.createRoot(document.getElementById('remotion-error-overlay')).render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}));
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
client_1.default.render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}), document.getElementById('remotion-error-overlay'));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.mountRemotionOverlay = mountRemotionOverlay;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type PackageManager = 'npm' | 'yarn' | 'pnpm';
|
|
2
|
+
declare type LockfilePath = {
|
|
3
|
+
manager: PackageManager;
|
|
4
|
+
path: string;
|
|
5
|
+
installCommand: string;
|
|
6
|
+
startCommand: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const lockFilePaths: LockfilePath[];
|
|
9
|
+
export declare const getPackageManager: (remotionRoot: string) => LockfilePath | 'unknown';
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getPackageManager = exports.lockFilePaths = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
exports.lockFilePaths = [
|
|
10
|
+
{
|
|
11
|
+
path: 'package-lock.json',
|
|
12
|
+
manager: 'npm',
|
|
13
|
+
installCommand: 'npm i',
|
|
14
|
+
startCommand: 'npm start',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
path: 'yarn.lock',
|
|
18
|
+
manager: 'yarn',
|
|
19
|
+
installCommand: 'yarn add',
|
|
20
|
+
startCommand: 'yarn start',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
path: 'pnpm-lock.yaml',
|
|
24
|
+
manager: 'pnpm',
|
|
25
|
+
installCommand: 'pnpm i',
|
|
26
|
+
startCommand: 'pnpm start',
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
const getPackageManager = (remotionRoot) => {
|
|
30
|
+
const existingPkgManagers = exports.lockFilePaths.filter((p) => fs_1.default.existsSync(path_1.default.join(remotionRoot, p.path)));
|
|
31
|
+
if (existingPkgManagers.length === 0) {
|
|
32
|
+
return 'unknown';
|
|
33
|
+
}
|
|
34
|
+
if (existingPkgManagers.length > 1) {
|
|
35
|
+
const error = [
|
|
36
|
+
`Found multiple lockfiles:`,
|
|
37
|
+
...existingPkgManagers.map((m) => {
|
|
38
|
+
return `- ${m.path}`;
|
|
39
|
+
}),
|
|
40
|
+
'',
|
|
41
|
+
'This can lead to bugs, delete all but one of these files and run this command again.',
|
|
42
|
+
].join('\n');
|
|
43
|
+
throw new Error(error);
|
|
44
|
+
}
|
|
45
|
+
return existingPkgManagers[0];
|
|
46
|
+
};
|
|
47
|
+
exports.getPackageManager = getPackageManager;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HotMiddlewareMessage } from './types';
|
|
2
|
+
declare function eventSourceWrapper(): {
|
|
3
|
+
addMessageListener(fn: (msg: MessageEvent) => void): void;
|
|
4
|
+
};
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
__whmEventSourceWrapper: {
|
|
8
|
+
[key: string]: ReturnType<typeof eventSourceWrapper>;
|
|
9
|
+
};
|
|
10
|
+
__webpack_hot_middleware_reporter__: Reporter;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare type Reporter = ReturnType<typeof createReporter>;
|
|
14
|
+
declare function createReporter(): {
|
|
15
|
+
cleanProblemsCache(): void;
|
|
16
|
+
problems(type: 'errors' | 'warnings', obj: HotMiddlewareMessage): boolean;
|
|
17
|
+
success: () => undefined;
|
|
18
|
+
};
|
|
19
|
+
export {};
|