@remotion/cli 3.0.23 → 4.0.0-4x.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chalk/index.d.ts +58 -0
- package/dist/chalk/index.js +138 -0
- package/dist/chalk/symbols.d.ts +111 -0
- package/dist/chalk/symbols.js +75 -0
- package/dist/chalk/utilities.d.ts +2 -0
- package/dist/chalk/utilities.js +37 -0
- package/dist/code-frame.js +5 -8
- package/dist/editor/components/CompositionManager.d.ts +4 -0
- package/dist/editor/components/CompositionManager.js +60 -0
- package/dist/index.d.ts +52 -11
- package/dist/index.js +2 -5
- package/dist/log.js +4 -7
- package/dist/preview-server/fast-refresh/helpers.d.ts +39 -0
- package/dist/preview-server/fast-refresh/helpers.js +145 -0
- package/dist/preview-server/fast-refresh/index.d.ts +30 -0
- package/dist/preview-server/fast-refresh/index.js +86 -0
- package/dist/preview-server/fast-refresh/loader.d.ts +35 -0
- package/dist/preview-server/fast-refresh/loader.js +81 -0
- package/dist/preview-server/fast-refresh/runtime.d.ts +35 -0
- package/dist/preview-server/fast-refresh/runtime.js +32 -0
- package/dist/preview-server/static-preview.d.ts +1 -0
- package/dist/preview-server/static-preview.js +40 -0
- package/dist/preview-server/webpack-cache.d.ts +12 -0
- package/dist/preview-server/webpack-cache.js +66 -0
- package/dist/print-error.js +5 -8
- package/dist/print-help.js +8 -11
- package/dist/progress-bar.js +4 -7
- package/dist/render.js +4 -4
- package/dist/still.js +3 -3
- package/package.json +7 -8
- package/dist/ansi/ansi-diff.d.ts.map +0 -1
- package/dist/ansi/ansi-diff.js.map +0 -1
- package/dist/ansi/ansi-regex.d.ts.map +0 -1
- package/dist/ansi/ansi-regex.js.map +0 -1
- package/dist/ansi/ansi-split.d.ts.map +0 -1
- package/dist/ansi/ansi-split.js.map +0 -1
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js.map +0 -1
- package/dist/code-frame.d.ts.map +0 -1
- package/dist/code-frame.js.map +0 -1
- package/dist/compositions.d.ts.map +0 -1
- package/dist/compositions.js.map +0 -1
- package/dist/download-progress.d.ts.map +0 -1
- package/dist/download-progress.js.map +0 -1
- package/dist/editor/components/AudioWaveform.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveform.js.map +0 -1
- package/dist/editor/components/AudioWaveformBar.d.ts.map +0 -1
- package/dist/editor/components/AudioWaveformBar.js.map +0 -1
- package/dist/editor/components/Canvas.d.ts.map +0 -1
- package/dist/editor/components/Canvas.js.map +0 -1
- package/dist/editor/components/CheckboardToggle.d.ts.map +0 -1
- package/dist/editor/components/CheckboardToggle.js.map +0 -1
- package/dist/editor/components/ClipboardIcon.d.ts.map +0 -1
- package/dist/editor/components/ClipboardIcon.js.map +0 -1
- package/dist/editor/components/CompositionSelector.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelector.js.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts.map +0 -1
- package/dist/editor/components/CompositionSelectorItem.js.map +0 -1
- package/dist/editor/components/ControlButton.d.ts.map +0 -1
- package/dist/editor/components/ControlButton.js.map +0 -1
- package/dist/editor/components/CopyButton.d.ts.map +0 -1
- package/dist/editor/components/CopyButton.js.map +0 -1
- package/dist/editor/components/CurrentComposition.d.ts.map +0 -1
- package/dist/editor/components/CurrentComposition.js.map +0 -1
- package/dist/editor/components/Editor.d.ts.map +0 -1
- package/dist/editor/components/Editor.js.map +0 -1
- package/dist/editor/components/EditorContent.d.ts.map +0 -1
- package/dist/editor/components/EditorContent.js.map +0 -1
- package/dist/editor/components/FpsCounter.d.ts.map +0 -1
- package/dist/editor/components/FpsCounter.js.map +0 -1
- package/dist/editor/components/FramePersistor.d.ts.map +0 -1
- package/dist/editor/components/FramePersistor.js.map +0 -1
- package/dist/editor/components/GlobalKeybindings.d.ts.map +0 -1
- package/dist/editor/components/GlobalKeybindings.js.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
- package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
- package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/editor/components/LoadingIndicator.js.map +0 -1
- package/dist/editor/components/LoopToggle.d.ts.map +0 -1
- package/dist/editor/components/LoopToggle.js.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuDivider.js.map +0 -1
- package/dist/editor/components/Menu/MenuItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuItem.js.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.d.ts.map +0 -1
- package/dist/editor/components/Menu/MenuSubItem.js.map +0 -1
- package/dist/editor/components/Menu/SubMenu.d.ts.map +0 -1
- package/dist/editor/components/Menu/SubMenu.js.map +0 -1
- package/dist/editor/components/Menu/portals.d.ts.map +0 -1
- package/dist/editor/components/Menu/portals.js.map +0 -1
- package/dist/editor/components/Menu/styles.d.ts.map +0 -1
- package/dist/editor/components/Menu/styles.js.map +0 -1
- package/dist/editor/components/MenuToolbar.d.ts.map +0 -1
- package/dist/editor/components/MenuToolbar.js.map +0 -1
- package/dist/editor/components/ModalContainer.d.ts.map +0 -1
- package/dist/editor/components/ModalContainer.js.map +0 -1
- package/dist/editor/components/ModalHeader.d.ts.map +0 -1
- package/dist/editor/components/ModalHeader.js.map +0 -1
- package/dist/editor/components/MuteToggle.d.ts.map +0 -1
- package/dist/editor/components/MuteToggle.js.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CancelButton.js.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ComboBox.js.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/CopyHint.js.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/InputDragger.js.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/MenuContent.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompCode.js.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/NewComposition.js.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/RemInput.js.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ValidationMessage.js.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/new-comp-layout.js.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.js.map +0 -1
- package/dist/editor/components/PlayPause.d.ts.map +0 -1
- package/dist/editor/components/PlayPause.js.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +0 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRatePersistor.js.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.d.ts.map +0 -1
- package/dist/editor/components/PlaybackRateSelector.js.map +0 -1
- package/dist/editor/components/Preview.d.ts.map +0 -1
- package/dist/editor/components/Preview.js.map +0 -1
- package/dist/editor/components/PreviewToolbar.d.ts.map +0 -1
- package/dist/editor/components/PreviewToolbar.js.map +0 -1
- package/dist/editor/components/RichTimelineToggle.d.ts.map +0 -1
- package/dist/editor/components/RichTimelineToggle.js.map +0 -1
- package/dist/editor/components/SizeSelector.d.ts.map +0 -1
- package/dist/editor/components/SizeSelector.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContainer.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterContext.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterElement.js.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.d.ts.map +0 -1
- package/dist/editor/components/Splitter/SplitterHandle.js.map +0 -1
- package/dist/editor/components/Thumbnail.d.ts.map +0 -1
- package/dist/editor/components/Thumbnail.js.map +0 -1
- package/dist/editor/components/TimeValue.d.ts.map +0 -1
- package/dist/editor/components/TimeValue.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedIndicator.js.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts.map +0 -1
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/MaxTimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/Timeline.d.ts.map +0 -1
- package/dist/editor/components/Timeline/Timeline.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineDragHandler.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineList.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineListItem.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSlider.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.js.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts.map +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.js.map +0 -1
- package/dist/editor/components/Timeline/is-collapsed.d.ts.map +0 -1
- package/dist/editor/components/Timeline/is-collapsed.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-refs.js.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts.map +0 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.js.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.d.ts.map +0 -1
- package/dist/editor/components/TimelineInOutToggle.js.map +0 -1
- package/dist/editor/components/TopPanel.d.ts.map +0 -1
- package/dist/editor/components/TopPanel.js.map +0 -1
- package/dist/editor/components/UpdateCheck.d.ts.map +0 -1
- package/dist/editor/components/UpdateCheck.js.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +0 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js.map +0 -1
- package/dist/editor/components/layout.d.ts.map +0 -1
- package/dist/editor/components/layout.js.map +0 -1
- package/dist/editor/helpers/calculate-timeline.d.ts.map +0 -1
- package/dist/editor/helpers/calculate-timeline.js.map +0 -1
- package/dist/editor/helpers/checkerboard-background.d.ts.map +0 -1
- package/dist/editor/helpers/checkerboard-background.js.map +0 -1
- package/dist/editor/helpers/colors.d.ts.map +0 -1
- package/dist/editor/helpers/colors.js.map +0 -1
- package/dist/editor/helpers/copy-text.d.ts.map +0 -1
- package/dist/editor/helpers/copy-text.js.map +0 -1
- package/dist/editor/helpers/create-folder-tree.d.ts.map +0 -1
- package/dist/editor/helpers/create-folder-tree.js.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts.map +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.js.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.d.ts.map +0 -1
- package/dist/editor/helpers/get-sequence-visible-range.js.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-nestedness.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.js.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts.map +0 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js.map +0 -1
- package/dist/editor/helpers/is-composition-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-composition-still.js.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.d.ts.map +0 -1
- package/dist/editor/helpers/is-current-selected-still.js.map +0 -1
- package/dist/editor/helpers/noop.d.ts.map +0 -1
- package/dist/editor/helpers/noop.js.map +0 -1
- package/dist/editor/helpers/persist-open-folders.d.ts.map +0 -1
- package/dist/editor/helpers/persist-open-folders.js.map +0 -1
- package/dist/editor/helpers/timeline-layout.d.ts.map +0 -1
- package/dist/editor/helpers/timeline-layout.js.map +0 -1
- package/dist/editor/helpers/use-keybinding.d.ts.map +0 -1
- package/dist/editor/helpers/use-keybinding.js.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.d.ts.map +0 -1
- package/dist/editor/helpers/validate-new-comp-data.js.map +0 -1
- package/dist/editor/icons/Checkmark.d.ts.map +0 -1
- package/dist/editor/icons/Checkmark.js.map +0 -1
- package/dist/editor/icons/caret.d.ts.map +0 -1
- package/dist/editor/icons/caret.js.map +0 -1
- package/dist/editor/icons/film.d.ts.map +0 -1
- package/dist/editor/icons/film.js.map +0 -1
- package/dist/editor/icons/folder.d.ts.map +0 -1
- package/dist/editor/icons/folder.js.map +0 -1
- package/dist/editor/icons/keys.d.ts.map +0 -1
- package/dist/editor/icons/keys.js.map +0 -1
- package/dist/editor/icons/lock.d.ts.map +0 -1
- package/dist/editor/icons/lock.js.map +0 -1
- package/dist/editor/icons/media-volume.d.ts.map +0 -1
- package/dist/editor/icons/media-volume.js.map +0 -1
- package/dist/editor/icons/pause.d.ts.map +0 -1
- package/dist/editor/icons/pause.js.map +0 -1
- package/dist/editor/icons/play.d.ts.map +0 -1
- package/dist/editor/icons/play.js.map +0 -1
- package/dist/editor/icons/step-back.d.ts.map +0 -1
- package/dist/editor/icons/step-back.js.map +0 -1
- package/dist/editor/icons/step-forward.d.ts.map +0 -1
- package/dist/editor/icons/step-forward.js.map +0 -1
- package/dist/editor/icons/still.d.ts.map +0 -1
- package/dist/editor/icons/still.js.map +0 -1
- package/dist/editor/icons/timeline.d.ts.map +0 -1
- package/dist/editor/icons/timeline.js.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts.map +0 -1
- package/dist/editor/icons/timelineInOutPointer.js.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.d.ts.map +0 -1
- package/dist/editor/state/aspect-ratio-locked.js.map +0 -1
- package/dist/editor/state/checkerboard.d.ts.map +0 -1
- package/dist/editor/state/checkerboard.js.map +0 -1
- package/dist/editor/state/highest-z-index.d.ts.map +0 -1
- package/dist/editor/state/highest-z-index.js.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.d.ts.map +0 -1
- package/dist/editor/state/input-dragger-click-lock.js.map +0 -1
- package/dist/editor/state/keybindings.d.ts.map +0 -1
- package/dist/editor/state/keybindings.js.map +0 -1
- package/dist/editor/state/loop.d.ts.map +0 -1
- package/dist/editor/state/loop.js.map +0 -1
- package/dist/editor/state/marks.d.ts.map +0 -1
- package/dist/editor/state/marks.js.map +0 -1
- package/dist/editor/state/modals.d.ts.map +0 -1
- package/dist/editor/state/modals.js.map +0 -1
- package/dist/editor/state/mute.d.ts.map +0 -1
- package/dist/editor/state/mute.js.map +0 -1
- package/dist/editor/state/playbackrate.d.ts.map +0 -1
- package/dist/editor/state/playbackrate.js.map +0 -1
- package/dist/editor/state/preview-size.d.ts.map +0 -1
- package/dist/editor/state/preview-size.js.map +0 -1
- package/dist/editor/state/render-frame.d.ts.map +0 -1
- package/dist/editor/state/render-frame.js.map +0 -1
- package/dist/editor/state/rich-timeline.d.ts.map +0 -1
- package/dist/editor/state/rich-timeline.js.map +0 -1
- package/dist/editor/state/timeline-ref.d.ts.map +0 -1
- package/dist/editor/state/timeline-ref.js.map +0 -1
- package/dist/editor/state/timeline.d.ts.map +0 -1
- package/dist/editor/state/timeline.js.map +0 -1
- package/dist/editor/state/z-index.d.ts.map +0 -1
- package/dist/editor/state/z-index.js.map +0 -1
- package/dist/get-cli-options.d.ts.map +0 -1
- package/dist/get-cli-options.js.map +0 -1
- package/dist/get-composition-id.d.ts.map +0 -1
- package/dist/get-composition-id.js.map +0 -1
- package/dist/get-config-file-name.d.ts.map +0 -1
- package/dist/get-config-file-name.js.map +0 -1
- package/dist/get-env.d.ts.map +0 -1
- package/dist/get-env.js.map +0 -1
- package/dist/get-filename.d.ts.map +0 -1
- package/dist/get-filename.js.map +0 -1
- package/dist/get-input-props.d.ts.map +0 -1
- package/dist/get-input-props.js.map +0 -1
- package/dist/handle-common-errors.d.ts.map +0 -1
- package/dist/handle-common-errors.js.map +0 -1
- package/dist/image-formats.d.ts.map +0 -1
- package/dist/image-formats.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/initialize-render-cli.d.ts.map +0 -1
- package/dist/initialize-render-cli.js.map +0 -1
- package/dist/is-javascript.d.ts.map +0 -1
- package/dist/is-javascript.js.map +0 -1
- package/dist/lambda-command.d.ts.map +0 -1
- package/dist/lambda-command.js.map +0 -1
- package/dist/load-config.d.ts.map +0 -1
- package/dist/load-config.js.map +0 -1
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js.map +0 -1
- package/dist/make-progress-bar.d.ts.map +0 -1
- package/dist/make-progress-bar.js.map +0 -1
- package/dist/parse-command-line.d.ts.map +0 -1
- package/dist/parse-command-line.js.map +0 -1
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js.map +0 -1
- package/dist/previewEntry.d.ts.map +0 -1
- package/dist/previewEntry.js.map +0 -1
- package/dist/print-error.d.ts.map +0 -1
- package/dist/print-error.js.map +0 -1
- package/dist/print-help.d.ts.map +0 -1
- package/dist/print-help.js.map +0 -1
- package/dist/progress-bar.d.ts.map +0 -1
- package/dist/progress-bar.js.map +0 -1
- package/dist/render.d.ts.map +0 -1
- package/dist/render.js.map +0 -1
- package/dist/resolve-from.d.ts.map +0 -1
- package/dist/resolve-from.js.map +0 -1
- package/dist/setup-cache.d.ts.map +0 -1
- package/dist/setup-cache.js.map +0 -1
- package/dist/step.d.ts.map +0 -1
- package/dist/step.js.map +0 -1
- package/dist/still.d.ts.map +0 -1
- package/dist/still.js.map +0 -1
- package/dist/upgrade.d.ts.map +0 -1
- package/dist/upgrade.js.map +0 -1
- package/dist/user-passed-output-location.d.ts.map +0 -1
- package/dist/user-passed-output-location.js.map +0 -1
- package/dist/validate-ffmpeg-version.d.ts.map +0 -1
- package/dist/validate-ffmpeg-version.js.map +0 -1
- package/dist/versions.d.ts.map +0 -1
- package/dist/versions.js.map +0 -1
- package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
- package/dist/warn-about-ffmpeg-version.js.map +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare type Style = {
|
|
2
|
+
codes: [number, number];
|
|
3
|
+
name: string;
|
|
4
|
+
wrap?: (input: string, newline: boolean) => string;
|
|
5
|
+
};
|
|
6
|
+
declare type Method = (str: string) => string;
|
|
7
|
+
declare type Colors = {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
visible: boolean;
|
|
10
|
+
styles: Record<string, Style>;
|
|
11
|
+
keys: Record<string, string[]>;
|
|
12
|
+
alias?: (name: string, col: string) => void;
|
|
13
|
+
};
|
|
14
|
+
declare type ColorsWithMethods = Colors & {
|
|
15
|
+
reset: Method;
|
|
16
|
+
bold: Method;
|
|
17
|
+
dim: Method;
|
|
18
|
+
italic: Method;
|
|
19
|
+
underline: Method;
|
|
20
|
+
inverse: Method;
|
|
21
|
+
hidden: Method;
|
|
22
|
+
strikethrough: Method;
|
|
23
|
+
black: Method;
|
|
24
|
+
red: Method;
|
|
25
|
+
green: Method;
|
|
26
|
+
yellow: Method;
|
|
27
|
+
blue: Method;
|
|
28
|
+
magenta: Method;
|
|
29
|
+
cyan: Method;
|
|
30
|
+
white: Method;
|
|
31
|
+
gray: Method;
|
|
32
|
+
bgBlack: Method;
|
|
33
|
+
bgRed: Method;
|
|
34
|
+
bgGreen: Method;
|
|
35
|
+
bgYellow: Method;
|
|
36
|
+
bgBlue: Method;
|
|
37
|
+
bgMagenta: Method;
|
|
38
|
+
bgCyan: Method;
|
|
39
|
+
bgWhite: Method;
|
|
40
|
+
blackBright: Method;
|
|
41
|
+
redBright: Method;
|
|
42
|
+
greenBright: Method;
|
|
43
|
+
yellowBright: Method;
|
|
44
|
+
blueBright: Method;
|
|
45
|
+
magentaBright: Method;
|
|
46
|
+
cyanBright: Method;
|
|
47
|
+
whiteBright: Method;
|
|
48
|
+
bgBlackBright: Method;
|
|
49
|
+
bgRedBright: Method;
|
|
50
|
+
bgGreenBright: Method;
|
|
51
|
+
bgYellowBright: Method;
|
|
52
|
+
bgBlueBright: Method;
|
|
53
|
+
bgMagentaBright: Method;
|
|
54
|
+
bgCyanBright: Method;
|
|
55
|
+
bgWhiteBright: Method;
|
|
56
|
+
};
|
|
57
|
+
export declare const chalk: ColorsWithMethods;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chalk = void 0;
|
|
4
|
+
const hasColor = () => {
|
|
5
|
+
if (typeof process !== 'undefined') {
|
|
6
|
+
return process.env.FORCE_COLOR !== '0';
|
|
7
|
+
}
|
|
8
|
+
return false;
|
|
9
|
+
};
|
|
10
|
+
exports.chalk = (() => {
|
|
11
|
+
const colors = {
|
|
12
|
+
enabled: hasColor(),
|
|
13
|
+
visible: true,
|
|
14
|
+
styles: {},
|
|
15
|
+
keys: {},
|
|
16
|
+
};
|
|
17
|
+
const ansi = (st) => {
|
|
18
|
+
const open = `\u001b[${st.codes[0]}m`;
|
|
19
|
+
const close = `\u001b[${st.codes[1]}m`;
|
|
20
|
+
const regex = new RegExp(`\\u001b\\[${st.codes[1]}m`, 'g');
|
|
21
|
+
st.wrap = (input, newline) => {
|
|
22
|
+
if (input.includes(close))
|
|
23
|
+
input = input.replace(regex, close + open);
|
|
24
|
+
const output = open + input + close;
|
|
25
|
+
// see https://github.com/chalk/chalk/pull/92, thanks to the
|
|
26
|
+
// chalk contributors for this fix. However, we've confirmed that
|
|
27
|
+
// this issue is also present in Windows terminals
|
|
28
|
+
return newline ? output.replace(/\r*\n/g, `${close}$&${open}`) : output;
|
|
29
|
+
};
|
|
30
|
+
return st;
|
|
31
|
+
};
|
|
32
|
+
const wrap = (sty, input, newline) => {
|
|
33
|
+
var _a;
|
|
34
|
+
return (_a = sty.wrap) === null || _a === void 0 ? void 0 : _a.call(sty, input, newline);
|
|
35
|
+
};
|
|
36
|
+
const style = (input, stack) => {
|
|
37
|
+
if (input === '' || input === null || input === undefined)
|
|
38
|
+
return '';
|
|
39
|
+
if (colors.enabled === false)
|
|
40
|
+
return input;
|
|
41
|
+
if (colors.visible === false)
|
|
42
|
+
return '';
|
|
43
|
+
let str = String(input);
|
|
44
|
+
const nl = str.includes('\n');
|
|
45
|
+
let n = stack.length;
|
|
46
|
+
while (n-- > 0)
|
|
47
|
+
str = wrap(colors.styles[stack[n]], str, nl);
|
|
48
|
+
return str;
|
|
49
|
+
};
|
|
50
|
+
const define = (name, codes, type) => {
|
|
51
|
+
colors.styles[name] = ansi({ name, codes });
|
|
52
|
+
const keys = colors.keys[type] || (colors.keys[type] = []);
|
|
53
|
+
keys.push(name);
|
|
54
|
+
Reflect.defineProperty(colors, name, {
|
|
55
|
+
configurable: true,
|
|
56
|
+
enumerable: true,
|
|
57
|
+
set(value) {
|
|
58
|
+
var _a;
|
|
59
|
+
(_a = colors.alias) === null || _a === void 0 ? void 0 : _a.call(colors, name, value);
|
|
60
|
+
},
|
|
61
|
+
get() {
|
|
62
|
+
const color = (input) => style(input, color.stack);
|
|
63
|
+
Reflect.setPrototypeOf(color, colors);
|
|
64
|
+
color.stack = this.stack ? this.stack.concat(name) : [name];
|
|
65
|
+
return color;
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
define('reset', [0, 0], 'modifier');
|
|
70
|
+
define('bold', [1, 22], 'modifier');
|
|
71
|
+
define('dim', [2, 22], 'modifier');
|
|
72
|
+
define('italic', [3, 23], 'modifier');
|
|
73
|
+
define('underline', [4, 24], 'modifier');
|
|
74
|
+
define('inverse', [7, 27], 'modifier');
|
|
75
|
+
define('hidden', [8, 28], 'modifier');
|
|
76
|
+
define('strikethrough', [9, 29], 'modifier');
|
|
77
|
+
define('black', [30, 39], 'color');
|
|
78
|
+
define('red', [31, 39], 'color');
|
|
79
|
+
define('green', [32, 39], 'color');
|
|
80
|
+
define('yellow', [33, 39], 'color');
|
|
81
|
+
define('blue', [34, 39], 'color');
|
|
82
|
+
define('magenta', [35, 39], 'color');
|
|
83
|
+
define('cyan', [36, 39], 'color');
|
|
84
|
+
define('white', [37, 39], 'color');
|
|
85
|
+
define('gray', [90, 39], 'color');
|
|
86
|
+
define('grey', [90, 39], 'color');
|
|
87
|
+
define('bgBlack', [40, 49], 'bg');
|
|
88
|
+
define('bgRed', [41, 49], 'bg');
|
|
89
|
+
define('bgGreen', [42, 49], 'bg');
|
|
90
|
+
define('bgYellow', [43, 49], 'bg');
|
|
91
|
+
define('bgBlue', [44, 49], 'bg');
|
|
92
|
+
define('bgMagenta', [45, 49], 'bg');
|
|
93
|
+
define('bgCyan', [46, 49], 'bg');
|
|
94
|
+
define('bgWhite', [47, 49], 'bg');
|
|
95
|
+
define('blackBright', [90, 39], 'bright');
|
|
96
|
+
define('redBright', [91, 39], 'bright');
|
|
97
|
+
define('greenBright', [92, 39], 'bright');
|
|
98
|
+
define('yellowBright', [93, 39], 'bright');
|
|
99
|
+
define('blueBright', [94, 39], 'bright');
|
|
100
|
+
define('magentaBright', [95, 39], 'bright');
|
|
101
|
+
define('cyanBright', [96, 39], 'bright');
|
|
102
|
+
define('whiteBright', [97, 39], 'bright');
|
|
103
|
+
define('bgBlackBright', [100, 49], 'bgBright');
|
|
104
|
+
define('bgRedBright', [101, 49], 'bgBright');
|
|
105
|
+
define('bgGreenBright', [102, 49], 'bgBright');
|
|
106
|
+
define('bgYellowBright', [103, 49], 'bgBright');
|
|
107
|
+
define('bgBlueBright', [104, 49], 'bgBright');
|
|
108
|
+
define('bgMagentaBright', [105, 49], 'bgBright');
|
|
109
|
+
define('bgCyanBright', [106, 49], 'bgBright');
|
|
110
|
+
define('bgWhiteBright', [107, 49], 'bgBright');
|
|
111
|
+
colors.alias = (name, color) => {
|
|
112
|
+
// @ts-expect-error
|
|
113
|
+
const fn = colors[color];
|
|
114
|
+
if (typeof fn !== 'function') {
|
|
115
|
+
throw new TypeError('Expected alias to be the name of an existing color (string) or a function');
|
|
116
|
+
}
|
|
117
|
+
if (!fn.stack) {
|
|
118
|
+
Reflect.defineProperty(fn, 'name', { value: name });
|
|
119
|
+
colors.styles[name] = fn;
|
|
120
|
+
fn.stack = [name];
|
|
121
|
+
}
|
|
122
|
+
Reflect.defineProperty(colors, name, {
|
|
123
|
+
configurable: true,
|
|
124
|
+
enumerable: true,
|
|
125
|
+
set(value) {
|
|
126
|
+
var _a;
|
|
127
|
+
(_a = colors.alias) === null || _a === void 0 ? void 0 : _a.call(colors, name, value);
|
|
128
|
+
},
|
|
129
|
+
get() {
|
|
130
|
+
const col = (input) => style(input, col.stack);
|
|
131
|
+
Reflect.setPrototypeOf(col, colors);
|
|
132
|
+
col.stack = this.stack ? this.stack.concat(fn.stack) : fn.stack;
|
|
133
|
+
return col;
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
return colors;
|
|
138
|
+
})();
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
declare const isHyper: boolean;
|
|
2
|
+
declare const isWindows: boolean;
|
|
3
|
+
declare const isLinux: boolean;
|
|
4
|
+
declare const common: {
|
|
5
|
+
ballotDisabled: string;
|
|
6
|
+
ballotOff: string;
|
|
7
|
+
ballotOn: string;
|
|
8
|
+
bullet: string;
|
|
9
|
+
bulletWhite: string;
|
|
10
|
+
fullBlock: string;
|
|
11
|
+
heart: string;
|
|
12
|
+
identicalTo: string;
|
|
13
|
+
line: string;
|
|
14
|
+
mark: string;
|
|
15
|
+
middot: string;
|
|
16
|
+
minus: string;
|
|
17
|
+
multiplication: string;
|
|
18
|
+
obelus: string;
|
|
19
|
+
pencilDownRight: string;
|
|
20
|
+
pencilRight: string;
|
|
21
|
+
pencilUpRight: string;
|
|
22
|
+
percent: string;
|
|
23
|
+
pilcrow2: string;
|
|
24
|
+
pilcrow: string;
|
|
25
|
+
plusMinus: string;
|
|
26
|
+
question: string;
|
|
27
|
+
section: string;
|
|
28
|
+
starsOff: string;
|
|
29
|
+
starsOn: string;
|
|
30
|
+
upDownArrow: string;
|
|
31
|
+
};
|
|
32
|
+
declare const windows: {
|
|
33
|
+
check: string;
|
|
34
|
+
cross: string;
|
|
35
|
+
ellipsisLarge: string;
|
|
36
|
+
ellipsis: string;
|
|
37
|
+
info: string;
|
|
38
|
+
questionSmall: string;
|
|
39
|
+
pointer: string;
|
|
40
|
+
pointerSmall: string;
|
|
41
|
+
radioOff: string;
|
|
42
|
+
radioOn: string;
|
|
43
|
+
warning: string;
|
|
44
|
+
ballotDisabled: string;
|
|
45
|
+
ballotOff: string;
|
|
46
|
+
ballotOn: string;
|
|
47
|
+
bullet: string;
|
|
48
|
+
bulletWhite: string;
|
|
49
|
+
fullBlock: string;
|
|
50
|
+
heart: string;
|
|
51
|
+
identicalTo: string;
|
|
52
|
+
line: string;
|
|
53
|
+
mark: string;
|
|
54
|
+
middot: string;
|
|
55
|
+
minus: string;
|
|
56
|
+
multiplication: string;
|
|
57
|
+
obelus: string;
|
|
58
|
+
pencilDownRight: string;
|
|
59
|
+
pencilRight: string;
|
|
60
|
+
pencilUpRight: string;
|
|
61
|
+
percent: string;
|
|
62
|
+
pilcrow2: string;
|
|
63
|
+
pilcrow: string;
|
|
64
|
+
plusMinus: string;
|
|
65
|
+
question: string;
|
|
66
|
+
section: string;
|
|
67
|
+
starsOff: string;
|
|
68
|
+
starsOn: string;
|
|
69
|
+
upDownArrow: string;
|
|
70
|
+
};
|
|
71
|
+
declare const other: {
|
|
72
|
+
ballotCross: string;
|
|
73
|
+
check: string;
|
|
74
|
+
cross: string;
|
|
75
|
+
ellipsisLarge: string;
|
|
76
|
+
ellipsis: string;
|
|
77
|
+
info: string;
|
|
78
|
+
questionFull: string;
|
|
79
|
+
questionSmall: string;
|
|
80
|
+
pointer: string;
|
|
81
|
+
pointerSmall: string;
|
|
82
|
+
radioOff: string;
|
|
83
|
+
radioOn: string;
|
|
84
|
+
warning: string;
|
|
85
|
+
ballotDisabled: string;
|
|
86
|
+
ballotOff: string;
|
|
87
|
+
ballotOn: string;
|
|
88
|
+
bullet: string;
|
|
89
|
+
bulletWhite: string;
|
|
90
|
+
fullBlock: string;
|
|
91
|
+
heart: string;
|
|
92
|
+
identicalTo: string;
|
|
93
|
+
line: string;
|
|
94
|
+
mark: string;
|
|
95
|
+
middot: string;
|
|
96
|
+
minus: string;
|
|
97
|
+
multiplication: string;
|
|
98
|
+
obelus: string;
|
|
99
|
+
pencilDownRight: string;
|
|
100
|
+
pencilRight: string;
|
|
101
|
+
pencilUpRight: string;
|
|
102
|
+
percent: string;
|
|
103
|
+
pilcrow2: string;
|
|
104
|
+
pilcrow: string;
|
|
105
|
+
plusMinus: string;
|
|
106
|
+
question: string;
|
|
107
|
+
section: string;
|
|
108
|
+
starsOff: string;
|
|
109
|
+
starsOn: string;
|
|
110
|
+
upDownArrow: string;
|
|
111
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const isHyper = typeof process !== 'undefined' && process.env.TERM_PROGRAM === 'Hyper';
|
|
3
|
+
const isWindows = typeof process !== 'undefined' && process.platform === 'win32';
|
|
4
|
+
const isLinux = typeof process !== 'undefined' && process.platform === 'linux';
|
|
5
|
+
const common = {
|
|
6
|
+
ballotDisabled: '☒',
|
|
7
|
+
ballotOff: '☐',
|
|
8
|
+
ballotOn: '☑',
|
|
9
|
+
bullet: '•',
|
|
10
|
+
bulletWhite: '◦',
|
|
11
|
+
fullBlock: '█',
|
|
12
|
+
heart: '❤',
|
|
13
|
+
identicalTo: '≡',
|
|
14
|
+
line: '─',
|
|
15
|
+
mark: '※',
|
|
16
|
+
middot: '·',
|
|
17
|
+
minus: '-',
|
|
18
|
+
multiplication: '×',
|
|
19
|
+
obelus: '÷',
|
|
20
|
+
pencilDownRight: '✎',
|
|
21
|
+
pencilRight: '✏',
|
|
22
|
+
pencilUpRight: '✐',
|
|
23
|
+
percent: '%',
|
|
24
|
+
pilcrow2: '❡',
|
|
25
|
+
pilcrow: '¶',
|
|
26
|
+
plusMinus: '±',
|
|
27
|
+
question: '?',
|
|
28
|
+
section: '§',
|
|
29
|
+
starsOff: '☆',
|
|
30
|
+
starsOn: '★',
|
|
31
|
+
upDownArrow: '↕',
|
|
32
|
+
};
|
|
33
|
+
const windows = {
|
|
34
|
+
...common,
|
|
35
|
+
check: '√',
|
|
36
|
+
cross: '×',
|
|
37
|
+
ellipsisLarge: '...',
|
|
38
|
+
ellipsis: '...',
|
|
39
|
+
info: 'i',
|
|
40
|
+
questionSmall: '?',
|
|
41
|
+
pointer: '>',
|
|
42
|
+
pointerSmall: '»',
|
|
43
|
+
radioOff: '( )',
|
|
44
|
+
radioOn: '(*)',
|
|
45
|
+
warning: '‼',
|
|
46
|
+
};
|
|
47
|
+
const other = {
|
|
48
|
+
...common,
|
|
49
|
+
ballotCross: '✘',
|
|
50
|
+
check: '✔',
|
|
51
|
+
cross: '✖',
|
|
52
|
+
ellipsisLarge: '⋯',
|
|
53
|
+
ellipsis: '…',
|
|
54
|
+
info: 'ℹ',
|
|
55
|
+
questionFull: '?',
|
|
56
|
+
questionSmall: '﹖',
|
|
57
|
+
pointer: isLinux ? '▸' : '❯',
|
|
58
|
+
pointerSmall: isLinux ? '‣' : '›',
|
|
59
|
+
radioOff: '◯',
|
|
60
|
+
radioOn: '◉',
|
|
61
|
+
warning: '⚠',
|
|
62
|
+
};
|
|
63
|
+
module.exports = isWindows && !isHyper ? windows : other;
|
|
64
|
+
Reflect.defineProperty(module.exports, 'common', {
|
|
65
|
+
enumerable: false,
|
|
66
|
+
value: common,
|
|
67
|
+
});
|
|
68
|
+
Reflect.defineProperty(module.exports, 'windows', {
|
|
69
|
+
enumerable: false,
|
|
70
|
+
value: windows,
|
|
71
|
+
});
|
|
72
|
+
Reflect.defineProperty(module.exports, 'other', {
|
|
73
|
+
enumerable: false,
|
|
74
|
+
value: other,
|
|
75
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stringEncaseCRLFWithFirstIndex = exports.stringReplaceAll = void 0;
|
|
4
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
5
|
+
let index = string.indexOf(substring);
|
|
6
|
+
if (index === -1) {
|
|
7
|
+
return string;
|
|
8
|
+
}
|
|
9
|
+
const substringLength = substring.length;
|
|
10
|
+
let endIndex = 0;
|
|
11
|
+
let returnValue = '';
|
|
12
|
+
do {
|
|
13
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
14
|
+
endIndex = index + substringLength;
|
|
15
|
+
index = string.indexOf(substring, endIndex);
|
|
16
|
+
} while (index !== -1);
|
|
17
|
+
returnValue += string.slice(endIndex);
|
|
18
|
+
return returnValue;
|
|
19
|
+
}
|
|
20
|
+
exports.stringReplaceAll = stringReplaceAll;
|
|
21
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
22
|
+
let endIndex = 0;
|
|
23
|
+
let returnValue = '';
|
|
24
|
+
do {
|
|
25
|
+
const gotCR = string[index - 1] === '\r';
|
|
26
|
+
returnValue +=
|
|
27
|
+
string.slice(endIndex, gotCR ? index - 1 : index) +
|
|
28
|
+
prefix +
|
|
29
|
+
(gotCR ? '\r\n' : '\n') +
|
|
30
|
+
postfix;
|
|
31
|
+
endIndex = index + 1;
|
|
32
|
+
index = string.indexOf('\n', endIndex);
|
|
33
|
+
} while (index !== -1);
|
|
34
|
+
returnValue += string.slice(endIndex);
|
|
35
|
+
return returnValue;
|
|
36
|
+
}
|
|
37
|
+
exports.stringEncaseCRLFWithFirstIndex = stringEncaseCRLFWithFirstIndex;
|
package/dist/code-frame.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.printCodeFrameAndStack = void 0;
|
|
7
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
8
4
|
const remotion_1 = require("remotion");
|
|
5
|
+
const chalk_1 = require("./chalk");
|
|
9
6
|
const log_1 = require("./log");
|
|
10
7
|
const makeFileName = (firstFrame) => {
|
|
11
8
|
return [
|
|
@@ -24,12 +21,12 @@ const printCodeFrame = (frame) => {
|
|
|
24
21
|
}
|
|
25
22
|
log_1.Log.info();
|
|
26
23
|
const longestLineNumber = Math.max(...frame.originalScriptCode.map((script) => script.lineNumber)).toString().length;
|
|
27
|
-
log_1.Log.info('at', chalk_1.
|
|
24
|
+
log_1.Log.info('at', chalk_1.chalk.underline(makeFileName(frame)));
|
|
28
25
|
const alignLeftAmount = Math.min(...frame.originalScriptCode.map((c) => c.content.length - c.content.trimStart().length));
|
|
29
26
|
log_1.Log.info(`${frame.originalScriptCode
|
|
30
27
|
.map((c) => {
|
|
31
28
|
const content = `${String(c.lineNumber).padStart(longestLineNumber, ' ')} | ${c.content.substring(alignLeftAmount)}`;
|
|
32
|
-
return c.highlight ? content : chalk_1.
|
|
29
|
+
return c.highlight ? content : chalk_1.chalk.gray(content);
|
|
33
30
|
})
|
|
34
31
|
.join('\n')}`);
|
|
35
32
|
};
|
|
@@ -38,7 +35,7 @@ const logLine = (frame) => {
|
|
|
38
35
|
if (!fileName) {
|
|
39
36
|
return;
|
|
40
37
|
}
|
|
41
|
-
log_1.Log.info(chalk_1.
|
|
38
|
+
log_1.Log.info(chalk_1.chalk.gray(['at', frame.originalFunctionName, `${chalk_1.chalk.blueBright(`(${fileName})`)}`]
|
|
42
39
|
.filter(remotion_1.Internals.truthy)
|
|
43
40
|
.join(' ')));
|
|
44
41
|
};
|
|
@@ -49,7 +46,7 @@ const printCodeFrameAndStack = (err) => {
|
|
|
49
46
|
return;
|
|
50
47
|
}
|
|
51
48
|
const firstFrame = err.symbolicatedStackFrames[0];
|
|
52
|
-
log_1.Log.error(chalk_1.
|
|
49
|
+
log_1.Log.error(chalk_1.chalk.bgRed(chalk_1.chalk.white(` ${err.name} `)), err.message);
|
|
53
50
|
printCodeFrame(firstFrame);
|
|
54
51
|
log_1.Log.info();
|
|
55
52
|
for (const frame of err.symbolicatedStackFrames) {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitialCompositionLoader = exports.useSelectComposition = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const remotion_1 = require("remotion");
|
|
6
|
+
const folders_1 = require("../state/folders");
|
|
7
|
+
const marks_1 = require("../state/marks");
|
|
8
|
+
const CompositionSelector_1 = require("./CompositionSelector");
|
|
9
|
+
const FramePersistor_1 = require("./FramePersistor");
|
|
10
|
+
const TimelineInOutToggle_1 = require("./TimelineInOutToggle");
|
|
11
|
+
const useSelectComposition = () => {
|
|
12
|
+
const setCurrentFrame = remotion_1.Internals.Timeline.useTimelineSetFrame();
|
|
13
|
+
const { setCurrentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
14
|
+
const { setFoldersExpanded } = (0, react_1.useContext)(folders_1.FolderContext);
|
|
15
|
+
return (c) => {
|
|
16
|
+
var _a;
|
|
17
|
+
(_a = TimelineInOutToggle_1.inOutHandles.current) === null || _a === void 0 ? void 0 : _a.setMarks((0, marks_1.loadMarks)(c.id, c.durationInFrames));
|
|
18
|
+
window.history.pushState({}, 'Preview', `/${c.id}`);
|
|
19
|
+
const frame = (0, FramePersistor_1.getFrameForComposition)(c.id);
|
|
20
|
+
const frameInBounds = Math.min(c.durationInFrames - 1, frame);
|
|
21
|
+
setCurrentFrame(frameInBounds);
|
|
22
|
+
setCurrentComposition(c.id);
|
|
23
|
+
const { folderName, parentFolderName } = c;
|
|
24
|
+
if (folderName !== null) {
|
|
25
|
+
setFoldersExpanded((ex) => {
|
|
26
|
+
const keysToExpand = (0, CompositionSelector_1.getKeysToExpand)(folderName, parentFolderName);
|
|
27
|
+
const newState = {
|
|
28
|
+
...ex,
|
|
29
|
+
};
|
|
30
|
+
for (const key of keysToExpand) {
|
|
31
|
+
newState[key] = true;
|
|
32
|
+
}
|
|
33
|
+
return newState;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
exports.useSelectComposition = useSelectComposition;
|
|
39
|
+
const InitialCompositionLoader = () => {
|
|
40
|
+
const { compositions, currentComposition } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
41
|
+
const selectComposition = (0, exports.useSelectComposition)();
|
|
42
|
+
(0, react_1.useEffect)(() => {
|
|
43
|
+
if (currentComposition) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const compositionFromUrl = (0, FramePersistor_1.getCurrentCompositionFromUrl)();
|
|
47
|
+
if (compositionFromUrl) {
|
|
48
|
+
const exists = compositions.find((c) => c.id === compositionFromUrl);
|
|
49
|
+
if (exists) {
|
|
50
|
+
selectComposition(exists);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (compositions.length > 0) {
|
|
55
|
+
selectComposition(compositions[0]);
|
|
56
|
+
}
|
|
57
|
+
}, [compositions, currentComposition, selectComposition]);
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
exports.InitialCompositionLoader = InitialCompositionLoader;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,62 @@
|
|
|
1
1
|
/// <reference types="minimist" />
|
|
2
|
-
import chalk from 'chalk';
|
|
3
2
|
export declare const cli: () => Promise<void>;
|
|
4
3
|
export * from './render';
|
|
5
4
|
export declare const CliInternals: {
|
|
6
5
|
createOverwriteableCliOutput: (quiet: boolean) => {
|
|
7
6
|
update: (up: string) => boolean;
|
|
8
7
|
};
|
|
9
|
-
chalk:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
chalk: {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
styles: Record<string, {
|
|
12
|
+
codes: [number, number];
|
|
13
|
+
name: string;
|
|
14
|
+
wrap?: ((input: string, newline: boolean) => string) | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
keys: Record<string, string[]>;
|
|
17
|
+
alias?: ((name: string, col: string) => void) | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
reset: (str: string) => string;
|
|
20
|
+
bold: (str: string) => string;
|
|
21
|
+
dim: (str: string) => string;
|
|
22
|
+
italic: (str: string) => string;
|
|
23
|
+
underline: (str: string) => string;
|
|
24
|
+
inverse: (str: string) => string;
|
|
25
|
+
hidden: (str: string) => string;
|
|
26
|
+
strikethrough: (str: string) => string;
|
|
27
|
+
black: (str: string) => string;
|
|
28
|
+
red: (str: string) => string;
|
|
29
|
+
green: (str: string) => string;
|
|
30
|
+
yellow: (str: string) => string;
|
|
31
|
+
blue: (str: string) => string;
|
|
32
|
+
magenta: (str: string) => string;
|
|
33
|
+
cyan: (str: string) => string;
|
|
34
|
+
white: (str: string) => string;
|
|
35
|
+
gray: (str: string) => string;
|
|
36
|
+
bgBlack: (str: string) => string;
|
|
37
|
+
bgRed: (str: string) => string;
|
|
38
|
+
bgGreen: (str: string) => string;
|
|
39
|
+
bgYellow: (str: string) => string;
|
|
40
|
+
bgBlue: (str: string) => string;
|
|
41
|
+
bgMagenta: (str: string) => string;
|
|
42
|
+
bgCyan: (str: string) => string;
|
|
43
|
+
bgWhite: (str: string) => string;
|
|
44
|
+
blackBright: (str: string) => string;
|
|
45
|
+
redBright: (str: string) => string;
|
|
46
|
+
greenBright: (str: string) => string;
|
|
47
|
+
yellowBright: (str: string) => string;
|
|
48
|
+
blueBright: (str: string) => string;
|
|
49
|
+
magentaBright: (str: string) => string;
|
|
50
|
+
cyanBright: (str: string) => string;
|
|
51
|
+
whiteBright: (str: string) => string;
|
|
52
|
+
bgBlackBright: (str: string) => string;
|
|
53
|
+
bgRedBright: (str: string) => string;
|
|
54
|
+
bgGreenBright: (str: string) => string;
|
|
55
|
+
bgYellowBright: (str: string) => string;
|
|
56
|
+
bgBlueBright: (str: string) => string;
|
|
57
|
+
bgMagentaBright: (str: string) => string;
|
|
58
|
+
bgCyanBright: (str: string) => string;
|
|
59
|
+
bgWhiteBright: (str: string) => string;
|
|
19
60
|
};
|
|
20
61
|
makeProgressBar: (percentage: number) => string;
|
|
21
62
|
Log: {
|
package/dist/index.js
CHANGED
|
@@ -13,12 +13,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
17
|
exports.CliInternals = exports.cli = void 0;
|
|
21
|
-
const chalk_1 =
|
|
18
|
+
const chalk_1 = require("./chalk");
|
|
22
19
|
const check_version_1 = require("./check-version");
|
|
23
20
|
const compositions_1 = require("./compositions");
|
|
24
21
|
const get_cli_options_1 = require("./get-cli-options");
|
|
@@ -91,7 +88,7 @@ exports.cli = cli;
|
|
|
91
88
|
__exportStar(require("./render"), exports);
|
|
92
89
|
exports.CliInternals = {
|
|
93
90
|
createOverwriteableCliOutput: progress_bar_1.createOverwriteableCliOutput,
|
|
94
|
-
chalk: chalk_1.
|
|
91
|
+
chalk: chalk_1.chalk,
|
|
95
92
|
makeProgressBar: make_progress_bar_1.makeProgressBar,
|
|
96
93
|
Log: log_1.Log,
|
|
97
94
|
loadConfigFile: load_config_1.loadConfigFile,
|
package/dist/log.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
4
|
exports.Log = void 0;
|
|
8
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
9
5
|
const remotion_1 = require("remotion");
|
|
6
|
+
const chalk_1 = require("./chalk");
|
|
10
7
|
exports.Log = {
|
|
11
8
|
verbose: (...args) => {
|
|
12
9
|
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose')) {
|
|
13
|
-
return console.log(chalk_1.
|
|
10
|
+
return console.log(...args.map((a) => chalk_1.chalk.blueBright(a)));
|
|
14
11
|
}
|
|
15
12
|
},
|
|
16
13
|
info: (...args) => {
|
|
@@ -20,12 +17,12 @@ exports.Log = {
|
|
|
20
17
|
},
|
|
21
18
|
warn: (...args) => {
|
|
22
19
|
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'warn')) {
|
|
23
|
-
return console.warn(chalk_1.
|
|
20
|
+
return console.warn(...args.map((a) => chalk_1.chalk.yellow(a)));
|
|
24
21
|
}
|
|
25
22
|
},
|
|
26
23
|
error: (...args) => {
|
|
27
24
|
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'error')) {
|
|
28
|
-
return console.error(chalk_1.
|
|
25
|
+
return console.error(...args.map((a) => chalk_1.chalk.red(a)));
|
|
29
26
|
}
|
|
30
27
|
},
|
|
31
28
|
};
|