@remotion/cli 4.0.0-webhook.27 → 4.1.0-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -8
- package/dist/ansi/ansi-diff.d.ts +3 -2
- package/dist/ansi/ansi-diff.js +14 -20
- package/dist/ansi/ansi-split.d.ts +1 -0
- package/dist/ansi/ansi-split.js +16 -3
- package/dist/benchmark.d.ts +0 -0
- package/dist/benchmark.js +105 -42
- package/dist/better-opn/index.d.ts +6 -0
- package/dist/better-opn/index.js +202 -0
- package/dist/chalk/index.d.ts +45 -54
- package/dist/chalk/index.js +2 -135
- package/dist/cleanup-before-quit.d.ts +3 -0
- package/dist/cleanup-before-quit.js +26 -0
- package/dist/cloudrun-command.d.ts +1 -0
- package/dist/cloudrun-command.js +27 -0
- package/dist/code-frame.d.ts +0 -0
- package/dist/code-frame.js +18 -7
- package/dist/codemods/stringify-with-path.d.ts +5 -0
- package/dist/codemods/stringify-with-path.js +44 -0
- package/dist/codemods/update-default-props.d.ts +7 -0
- package/dist/codemods/update-default-props.js +128 -0
- package/dist/color-math.d.ts +2 -0
- package/dist/color-math.js +13 -0
- package/dist/composition-prompts.d.ts +7 -0
- package/dist/composition-prompts.js +25 -0
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +30 -66
- package/dist/config/audio-codec.d.ts +3 -0
- package/dist/config/audio-codec.js +20 -0
- package/dist/config/bitrate.d.ts +4 -0
- package/dist/config/bitrate.js +21 -0
- package/dist/config/browser-executable.d.ts +0 -0
- package/dist/config/browser-executable.js +0 -0
- package/dist/config/browser.d.ts +1 -3
- package/dist/config/browser.js +2 -12
- package/dist/config/chromium-flags.d.ts +0 -0
- package/dist/config/chromium-flags.js +0 -0
- package/dist/config/codec.d.ts +0 -4
- package/dist/config/codec.js +1 -21
- package/dist/config/concurrency.d.ts +2 -2
- package/dist/config/concurrency.js +0 -0
- package/dist/config/crf.d.ts +1 -2
- package/dist/config/crf.js +1 -9
- package/dist/config/enforce-audio-track.d.ts +0 -0
- package/dist/config/enforce-audio-track.js +0 -0
- package/dist/config/entry-point.d.ts +2 -0
- package/dist/config/entry-point.js +12 -0
- package/dist/config/env-file.d.ts +0 -0
- package/dist/config/env-file.js +0 -0
- package/dist/config/every-nth-frame.d.ts +1 -2
- package/dist/config/every-nth-frame.js +3 -11
- package/dist/config/ffmpeg-override.d.ts +0 -0
- package/dist/config/ffmpeg-override.js +0 -0
- package/dist/config/frame-range.d.ts +0 -0
- package/dist/config/frame-range.js +0 -0
- package/dist/config/height.d.ts +2 -0
- package/dist/config/height.js +14 -0
- package/dist/config/image-format.d.ts +5 -3
- package/dist/config/image-format.js +32 -10
- package/dist/config/image-sequence.d.ts +0 -0
- package/dist/config/image-sequence.js +0 -0
- package/dist/config/index.d.ts +266 -16
- package/dist/config/index.js +77 -71
- package/dist/config/jpeg-quality.d.ts +2 -0
- package/dist/config/jpeg-quality.js +17 -0
- package/dist/config/keyboard-shortcuts.d.ts +0 -0
- package/dist/config/keyboard-shortcuts.js +0 -0
- package/dist/config/log.d.ts +1 -3
- package/dist/config/log.js +2 -9
- package/dist/config/max-timeline-tracks.d.ts +0 -0
- package/dist/config/max-timeline-tracks.js +6 -5
- package/dist/config/muted.d.ts +0 -0
- package/dist/config/muted.js +0 -0
- package/dist/config/number-of-gif-loops.d.ts +2 -3
- package/dist/config/number-of-gif-loops.js +3 -9
- package/dist/config/number-of-shared-audio-tags.d.ts +2 -0
- package/dist/config/number-of-shared-audio-tags.js +12 -0
- package/dist/config/open-browser.d.ts +2 -0
- package/dist/config/open-browser.js +15 -0
- package/dist/config/output-location.d.ts +0 -0
- package/dist/config/output-location.js +0 -0
- package/dist/config/override-webpack.d.ts +1 -1
- package/dist/config/override-webpack.js +0 -0
- package/dist/config/overwrite.d.ts +0 -0
- package/dist/config/overwrite.js +0 -0
- package/dist/config/pixel-format.d.ts +0 -0
- package/dist/config/pixel-format.js +0 -0
- package/dist/config/preview-server.d.ts +0 -0
- package/dist/config/preview-server.js +2 -2
- package/dist/config/prores-profile.d.ts +0 -0
- package/dist/config/prores-profile.js +0 -0
- package/dist/config/public-dir.d.ts +1 -1
- package/dist/config/public-dir.js +0 -0
- package/dist/config/scale.d.ts +2 -1
- package/dist/config/scale.js +0 -0
- package/dist/config/still-frame.d.ts +0 -0
- package/dist/config/still-frame.js +6 -2
- package/dist/config/timeout.d.ts +0 -0
- package/dist/config/timeout.js +1 -1
- package/dist/config/user-agent.d.ts +4 -0
- package/dist/config/user-agent.js +12 -0
- package/dist/config/webpack-caching.d.ts +0 -0
- package/dist/config/webpack-caching.js +0 -0
- package/dist/config/webpack-poll.d.ts +2 -0
- package/dist/config/webpack-poll.js +16 -0
- package/dist/config/width.d.ts +2 -0
- package/dist/config/width.js +16 -0
- package/dist/convert-entry-point-to-serve-url.d.ts +1 -0
- package/dist/convert-entry-point-to-serve-url.js +15 -0
- package/dist/determine-image-format.d.ts +5 -4
- package/dist/determine-image-format.js +17 -4
- package/dist/download-progress.d.ts +1 -1
- package/dist/download-progress.js +7 -2
- package/dist/editor/components/AudioWaveform.d.ts +1 -1
- package/dist/editor/components/AudioWaveform.js +18 -6
- package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
- package/dist/editor/components/AudioWaveformBar.js +0 -0
- package/dist/editor/components/Canvas.d.ts +0 -0
- package/dist/editor/components/Canvas.js +14 -6
- package/dist/editor/components/CanvasOrLoading.d.ts +5 -0
- package/dist/editor/components/CanvasOrLoading.js +69 -0
- package/dist/editor/components/CheckboardToggle.d.ts +0 -0
- package/dist/editor/components/CheckboardToggle.js +2 -1
- package/dist/editor/components/Checkbox.d.ts +7 -0
- package/dist/editor/components/Checkbox.js +42 -0
- package/dist/editor/components/CheckerboardProvider.d.ts +4 -0
- package/dist/editor/components/CheckerboardProvider.js +24 -0
- package/dist/editor/components/CompositionSelector.d.ts +0 -0
- package/dist/editor/components/CompositionSelector.js +2 -4
- package/dist/editor/components/CompositionSelectorItem.d.ts +4 -4
- package/dist/editor/components/CompositionSelectorItem.js +24 -6
- package/dist/editor/components/ControlButton.d.ts +0 -0
- package/dist/editor/components/ControlButton.js +0 -0
- package/dist/editor/components/CopyButton.d.ts +0 -0
- package/dist/editor/components/CopyButton.js +0 -0
- package/dist/editor/components/CurrentComposition.d.ts +0 -0
- package/dist/editor/components/CurrentComposition.js +4 -19
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +51 -0
- package/dist/editor/components/Editor.d.ts +0 -0
- package/dist/editor/components/Editor.js +2 -9
- package/dist/editor/components/EditorContent.d.ts +0 -0
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.d.ts +0 -0
- package/dist/editor/components/EditorContexts.js +10 -71
- package/dist/editor/components/FpsCounter.d.ts +0 -0
- package/dist/editor/components/FpsCounter.js +0 -0
- package/dist/editor/components/FramePersistor.d.ts +0 -0
- package/dist/editor/components/FramePersistor.js +0 -0
- package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
- package/dist/editor/components/GlobalKeybindings.js +24 -1
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/InitialCompositionLoader.js +1 -1
- package/dist/editor/components/InlineAction.d.ts +7 -0
- package/dist/editor/components/InlineAction.js +34 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +2 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.js +57 -0
- package/dist/editor/components/LoopToggle.d.ts +0 -0
- package/dist/editor/components/LoopToggle.js +2 -1
- package/dist/editor/components/MediaVolumeProvider.d.ts +4 -0
- package/dist/editor/components/MediaVolumeProvider.js +25 -0
- package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
- package/dist/editor/components/Menu/MenuDivider.js +0 -0
- package/dist/editor/components/Menu/MenuItem.d.ts +4 -3
- package/dist/editor/components/Menu/MenuItem.js +21 -4
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -2
- package/dist/editor/components/Menu/MenuSubItem.js +17 -4
- package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
- package/dist/editor/components/Menu/SubMenu.js +1 -1
- package/dist/editor/components/Menu/is-menu-item.d.ts +5 -0
- package/dist/editor/components/Menu/is-menu-item.js +14 -0
- package/dist/editor/components/Menu/portals.d.ts +0 -0
- package/dist/editor/components/Menu/portals.js +0 -0
- package/dist/editor/components/Menu/styles.d.ts +5 -0
- package/dist/editor/components/Menu/styles.js +18 -6
- package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
- package/dist/editor/components/MenuBuildIndicator.js +20 -1
- package/dist/editor/components/MenuToolbar.d.ts +0 -0
- package/dist/editor/components/MenuToolbar.js +19 -452
- package/dist/editor/components/ModalContainer.d.ts +2 -0
- package/dist/editor/components/ModalContainer.js +12 -3
- package/dist/editor/components/ModalHeader.d.ts +0 -0
- package/dist/editor/components/ModalHeader.js +6 -2
- package/dist/editor/components/Modals.d.ts +2 -0
- package/dist/editor/components/Modals.js +23 -0
- package/dist/editor/components/ModalsProvider.d.ts +4 -0
- package/dist/editor/components/ModalsProvider.js +17 -0
- package/dist/editor/components/MuteToggle.d.ts +0 -0
- package/dist/editor/components/MuteToggle.js +0 -0
- package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
- package/dist/editor/components/NewComposition/CancelButton.js +3 -0
- package/dist/editor/components/NewComposition/ComboBox.d.ts +5 -4
- package/dist/editor/components/NewComposition/ComboBox.js +70 -11
- package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +6 -1
- package/dist/editor/components/NewComposition/InputDragger.js +36 -11
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -0
- package/dist/editor/components/NewComposition/MenuContent.js +34 -3
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.js +5 -3
- package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewComposition.js +15 -9
- package/dist/editor/components/NewComposition/RemInput.d.ts +15 -1
- package/dist/editor/components/NewComposition/RemInput.js +24 -9
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +8 -0
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +53 -0
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +7 -0
- package/dist/editor/components/NewComposition/RemTextarea.js +92 -0
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +4 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +20 -9
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
- package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
- package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
- package/dist/editor/components/NoRegisterRoot.js +0 -0
- package/dist/editor/components/Notifications/ColorDot.d.ts +0 -0
- package/dist/editor/components/Notifications/ColorDot.js +0 -0
- package/dist/editor/components/Notifications/Notification.d.ts +0 -0
- package/dist/editor/components/Notifications/Notification.js +0 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +3 -2
- package/dist/editor/components/Notifications/NotificationCenter.js +11 -1
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -4
- package/dist/editor/components/Notifications/ServerDisconnected.js +5 -15
- package/dist/editor/components/OpenEditorButton.d.ts +2 -0
- package/dist/editor/components/OpenEditorButton.js +52 -0
- package/dist/editor/components/PlayPause.d.ts +0 -0
- package/dist/editor/components/PlayPause.js +19 -4
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +6 -0
- package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
- package/dist/editor/components/PlaybackRatePersistor.js +0 -0
- package/dist/editor/components/PlaybackRateSelector.d.ts +0 -2
- package/dist/editor/components/PlaybackRateSelector.js +6 -6
- package/dist/editor/components/PlayerEmitterContext.d.ts +4 -0
- package/dist/editor/components/PlayerEmitterContext.js +11 -0
- package/dist/editor/components/Preview.d.ts +0 -1
- package/dist/editor/components/Preview.js +4 -4
- package/dist/editor/components/PreviewToolbar.d.ts +0 -0
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.js +11 -0
- package/dist/editor/components/QuickSwitcher/NoResults.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/NoResults.js +20 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.d.ts +7 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.js +16 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +274 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +21 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +111 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +62 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.js +26 -0
- package/dist/editor/components/RenderButton.d.ts +2 -0
- package/dist/editor/components/RenderButton.js +107 -0
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/CliCopyButton.js +59 -0
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +15 -0
- package/dist/editor/components/RenderModal/CrfSetting.js +42 -0
- package/dist/editor/components/RenderModal/DataEditor.d.ts +20 -0
- package/dist/editor/components/RenderModal/DataEditor.js +296 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +17 -0
- package/dist/editor/components/RenderModal/EnvInput.d.ts +11 -0
- package/dist/editor/components/RenderModal/EnvInput.js +74 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +42 -0
- package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +5 -0
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +78 -0
- package/dist/editor/components/RenderModal/InfoBubble.d.ts +5 -0
- package/dist/editor/components/RenderModal/InfoBubble.js +116 -0
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +6 -0
- package/dist/editor/components/RenderModal/InfoTooltip.js +41 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +5 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +17 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +17 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +12 -0
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/MutedSetting.js +17 -0
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +26 -0
- package/dist/editor/components/RenderModal/NumberSetting.d.ts +12 -0
- package/dist/editor/components/RenderModal/NumberSetting.js +29 -0
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +5 -0
- package/dist/editor/components/RenderModal/OptionExplainer.js +56 -0
- package/dist/editor/components/RenderModal/RenderModal.d.ts +39 -0
- package/dist/editor/components/RenderModal/RenderModal.js +634 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +26 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +59 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +17 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.js +46 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +24 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.js +80 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +5 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +55 -0
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +9 -0
- package/dist/editor/components/RenderModal/RenderModalGif.js +19 -0
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +2 -0
- package/dist/editor/components/RenderModal/RenderModalHr.js +18 -0
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +10 -0
- package/dist/editor/components/RenderModal/RenderModalInput.js +13 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.js +139 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +28 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.js +54 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +4 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.js +72 -0
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/ScaleSetting.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.js +26 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +38 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +62 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +33 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +11 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +83 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +71 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +62 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +31 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +55 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +6 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +48 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +9 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +69 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +65 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +19 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +50 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +56 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +34 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +92 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +49 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +158 -0
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +30 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +3 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.js +126 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.js +42 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +21 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +79 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +2 -0
- package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +6 -0
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +49 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +19 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +60 -0
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +2 -0
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +18 -0
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +2 -0
- package/dist/editor/components/RenderModal/human-readable-codec.js +36 -0
- package/dist/editor/components/RenderModal/layout.d.ts +6 -0
- package/dist/editor/components/RenderModal/layout.js +42 -0
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +14 -0
- package/dist/editor/components/RenderModal/out-name-checker.js +70 -0
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +5 -0
- package/dist/editor/components/RenderQueue/CircularProgress.js +18 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +40 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +43 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +37 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +26 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +2 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.js +14 -0
- package/dist/editor/components/RenderQueue/actions.d.ts +60 -0
- package/dist/editor/components/RenderQueue/actions.js +129 -0
- package/dist/editor/components/RenderQueue/context.d.ts +18 -0
- package/dist/editor/components/RenderQueue/context.js +49 -0
- package/dist/editor/components/RenderQueue/index.d.ts +2 -0
- package/dist/editor/components/RenderQueue/index.js +50 -0
- package/dist/editor/components/RenderQueue/item-style.d.ts +2 -0
- package/dist/editor/components/RenderQueue/item-style.js +21 -0
- package/dist/editor/components/RendersTab.d.ts +6 -0
- package/dist/editor/components/RendersTab.js +43 -0
- package/dist/editor/components/ResetZoomButton.d.ts +0 -0
- package/dist/editor/components/ResetZoomButton.js +0 -0
- package/dist/editor/components/RightPanel.d.ts +8 -0
- package/dist/editor/components/RightPanel.js +79 -0
- package/dist/editor/components/SegmentedControl.d.ts +11 -0
- package/dist/editor/components/SegmentedControl.js +64 -0
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +4 -0
- package/dist/editor/components/SetTimelineInOutProvider.js +19 -0
- package/dist/editor/components/SidebarCollapserControls.d.ts +2 -0
- package/dist/editor/components/SidebarCollapserControls.js +135 -0
- package/dist/editor/components/SidebarRenderButton.d.ts +6 -0
- package/dist/editor/components/SidebarRenderButton.js +87 -0
- package/dist/editor/components/SizeSelector.d.ts +0 -1
- package/dist/editor/components/SizeSelector.js +5 -4
- package/dist/editor/components/Spinner.d.ts +5 -0
- package/dist/editor/components/Spinner.js +41 -0
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterContainer.js +1 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +3 -3
- package/dist/editor/components/Splitter/SplitterContext.js +0 -0
- package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterElement.js +1 -0
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +1 -2
- package/dist/editor/components/Splitter/SplitterHandle.js +15 -7
- package/dist/editor/components/Tabs/index.d.ts +11 -0
- package/dist/editor/components/Tabs/index.js +56 -0
- package/dist/editor/components/Tabs/vertical.d.ts +7 -0
- package/dist/editor/components/Tabs/vertical.js +43 -0
- package/dist/editor/components/TimeValue.d.ts +0 -0
- package/dist/editor/components/TimeValue.js +3 -4
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedIndicator.js +6 -6
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +1 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +4 -3
- package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
- package/dist/editor/components/Timeline/Timeline.js +17 -10
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +1 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +4 -5
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.js +26 -11
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +7 -5
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +9 -3
- package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineList.js +0 -0
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineListItem.js +10 -1
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +4 -3
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +2 -1
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.js +25 -33
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +2 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +17 -4
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +21 -23
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.js +2 -2
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
- package/dist/editor/components/Timeline/TimelineWidthProvider.d.ts +7 -0
- package/dist/editor/components/Timeline/TimelineWidthProvider.js +17 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +4 -5
- package/dist/editor/components/Timeline/imperative-state.d.ts +0 -4
- package/dist/editor/components/Timeline/imperative-state.js +13 -13
- package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
- package/dist/editor/components/Timeline/is-collapsed.js +2 -3
- package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
- package/dist/editor/components/Timeline/timeline-refs.js +0 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +5 -6
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +2 -2
- package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +0 -0
- package/dist/editor/components/TimelineInOutToggle.js +8 -4
- package/dist/editor/components/TopPanel.d.ts +1 -0
- package/dist/editor/components/TopPanel.js +31 -17
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.js +4 -5
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
- package/dist/editor/components/UpdateModal/UpdateModal.js +0 -0
- package/dist/editor/components/ZoomGesturesProvider.d.ts +4 -0
- package/dist/editor/components/ZoomGesturesProvider.js +24 -0
- package/dist/editor/components/ZoomPersistor.d.ts +0 -1
- package/dist/editor/components/ZoomPersistor.js +2 -3
- package/dist/editor/components/get-zod-if-possible.d.ts +10 -0
- package/dist/editor/components/get-zod-if-possible.js +79 -0
- package/dist/editor/components/layout.d.ts +3 -1
- package/dist/editor/components/layout.js +9 -7
- package/dist/editor/helpers/calculate-timeline.d.ts +0 -4
- package/dist/editor/helpers/calculate-timeline.js +1 -1
- package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
- package/dist/editor/helpers/checkerboard-background.js +0 -0
- package/dist/editor/helpers/client-id.d.ts +17 -0
- package/dist/{preview-server/dev-middleware/is-color-supported.js → editor/helpers/client-id.js} +21 -12
- package/dist/editor/helpers/colors.d.ts +6 -2
- package/dist/editor/helpers/colors.js +9 -4
- package/dist/editor/helpers/convert-env-variables.d.ts +2 -0
- package/dist/editor/helpers/convert-env-variables.js +20 -0
- package/dist/editor/helpers/copy-text.d.ts +0 -0
- package/dist/editor/helpers/copy-text.js +0 -0
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -3
- package/dist/editor/helpers/create-folder-tree.js +3 -4
- package/dist/editor/helpers/get-effective-translation.d.ts +0 -0
- package/dist/editor/helpers/get-effective-translation.js +0 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -4
- package/dist/editor/helpers/get-left-of-timeline-slider.js +1 -24
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
- package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-layout.js +1 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +4 -3
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
- package/dist/editor/helpers/is-composition-still.d.ts +3 -2
- package/dist/editor/helpers/is-composition-still.js +3 -0
- package/dist/editor/helpers/is-current-selected-still.d.ts +0 -0
- package/dist/editor/helpers/is-current-selected-still.js +3 -4
- package/dist/editor/helpers/noop.d.ts +0 -0
- package/dist/editor/helpers/noop.js +0 -0
- package/dist/editor/helpers/open-in-editor.d.ts +2 -0
- package/dist/editor/helpers/open-in-editor.js +22 -0
- package/dist/editor/helpers/persist-open-folders.d.ts +1 -1
- package/dist/editor/helpers/persist-open-folders.js +0 -0
- package/dist/editor/helpers/pick-color.d.ts +0 -0
- package/dist/editor/helpers/pick-color.js +0 -0
- package/dist/editor/helpers/prores-labels.d.ts +2 -0
- package/dist/editor/helpers/prores-labels.js +25 -0
- package/dist/editor/helpers/render-modal-sections.d.ts +10 -0
- package/dist/editor/helpers/render-modal-sections.js +32 -0
- package/dist/editor/helpers/timeline-layout.d.ts +0 -0
- package/dist/editor/helpers/timeline-layout.js +0 -0
- package/dist/editor/helpers/use-breakpoint.d.ts +1 -0
- package/dist/editor/helpers/{use-compact-ui.js → use-breakpoint.js} +4 -5
- package/dist/editor/helpers/use-file-existence.d.ts +1 -0
- package/dist/editor/helpers/use-file-existence.js +66 -0
- package/dist/editor/helpers/use-keybinding.d.ts +2 -0
- package/dist/editor/helpers/use-keybinding.js +13 -2
- package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
- package/dist/editor/helpers/use-menu-structure.js +705 -0
- package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
- package/dist/editor/helpers/validate-new-comp-data.js +0 -0
- package/dist/editor/icons/Checkmark.d.ts +0 -0
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/audio.d.ts +2 -0
- package/dist/editor/icons/audio.js +6 -0
- package/dist/editor/icons/caret.d.ts +4 -1
- package/dist/editor/icons/caret.js +17 -1
- package/dist/editor/icons/data.d.ts +2 -0
- package/dist/editor/icons/data.js +8 -0
- package/dist/editor/icons/file.d.ts +2 -0
- package/dist/editor/icons/file.js +6 -0
- package/dist/editor/icons/folder.d.ts +6 -2
- package/dist/editor/icons/folder.js +4 -4
- package/dist/editor/icons/frame.d.ts +2 -0
- package/dist/editor/icons/frame.js +6 -0
- package/dist/editor/icons/gear.d.ts +2 -0
- package/dist/editor/icons/gear.js +6 -0
- package/dist/editor/icons/gif.d.ts +2 -0
- package/dist/editor/icons/gif.js +6 -0
- package/dist/editor/icons/jump-to-start.d.ts +0 -0
- package/dist/editor/icons/jump-to-start.js +0 -0
- package/dist/editor/icons/keys.d.ts +0 -0
- package/dist/editor/icons/keys.js +0 -0
- package/dist/editor/icons/lock.d.ts +0 -0
- package/dist/editor/icons/lock.js +0 -0
- package/dist/editor/icons/media-volume.d.ts +0 -0
- package/dist/editor/icons/media-volume.js +2 -1
- package/dist/editor/icons/minus.d.ts +0 -0
- package/dist/editor/icons/minus.js +0 -0
- package/dist/editor/icons/pause.d.ts +0 -0
- package/dist/editor/icons/pause.js +0 -0
- package/dist/editor/icons/play.d.ts +0 -0
- package/dist/editor/icons/play.js +0 -0
- package/dist/editor/icons/plus.d.ts +3 -1
- package/dist/editor/icons/plus.js +2 -2
- package/dist/editor/icons/render.d.ts +9 -0
- package/dist/editor/icons/render.js +12 -0
- package/dist/editor/icons/step-back.d.ts +0 -0
- package/dist/editor/icons/step-back.js +0 -0
- package/dist/editor/icons/step-forward.d.ts +0 -0
- package/dist/editor/icons/step-forward.js +0 -0
- package/dist/editor/icons/still.d.ts +3 -1
- package/dist/editor/icons/still.js +2 -2
- package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
- package/dist/editor/icons/timelineInOutPointer.js +0 -0
- package/dist/editor/icons/video.d.ts +5 -0
- package/dist/editor/icons/video.js +8 -0
- package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
- package/dist/editor/state/aspect-ratio-locked.js +0 -0
- package/dist/editor/state/checkerboard.d.ts +1 -1
- package/dist/editor/state/checkerboard.js +0 -0
- package/dist/editor/state/editor-zoom-gestures.d.ts +9 -0
- package/dist/editor/state/editor-zoom-gestures.js +17 -0
- package/dist/editor/state/folders.d.ts +1 -1
- package/dist/editor/state/folders.js +0 -0
- package/dist/editor/state/highest-z-index.d.ts +1 -1
- package/dist/editor/state/highest-z-index.js +0 -0
- package/dist/editor/state/in-out.d.ts +2 -2
- package/dist/editor/state/in-out.js +0 -0
- package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
- package/dist/editor/state/input-dragger-click-lock.js +0 -0
- package/dist/editor/state/keybindings.d.ts +5 -4
- package/dist/editor/state/keybindings.js +0 -0
- package/dist/editor/state/loop.d.ts +0 -0
- package/dist/editor/state/loop.js +0 -0
- package/dist/editor/state/marks.d.ts +0 -0
- package/dist/editor/state/marks.js +0 -0
- package/dist/editor/state/modals.d.ts +47 -4
- package/dist/editor/state/modals.js +0 -0
- package/dist/editor/state/mute.d.ts +0 -0
- package/dist/editor/state/mute.js +0 -0
- package/dist/editor/state/playbackrate.d.ts +0 -0
- package/dist/editor/state/playbackrate.js +0 -0
- package/dist/editor/state/preview-size.d.ts +1 -2
- package/dist/editor/state/preview-size.js +15 -6
- package/dist/editor/state/render-frame.d.ts +0 -0
- package/dist/editor/state/render-frame.js +0 -0
- package/dist/editor/state/sidebar.d.ts +9 -5
- package/dist/editor/state/sidebar.js +42 -13
- package/dist/editor/state/timeline-ref.d.ts +2 -1
- package/dist/editor/state/timeline-ref.js +0 -0
- package/dist/editor/state/timeline-zoom.d.ts +0 -0
- package/dist/editor/state/timeline-zoom.js +0 -0
- package/dist/editor/state/timeline.d.ts +0 -0
- package/dist/editor/state/timeline.js +0 -0
- package/dist/editor/state/z-index.d.ts +0 -5
- package/dist/editor/state/z-index.js +40 -16
- package/dist/entry-point.d.ts +5 -0
- package/dist/entry-point.js +89 -0
- package/dist/event-source-events.d.ts +22 -1
- package/dist/event-source-events.js +0 -0
- package/dist/event-source.d.ts +2 -0
- package/dist/event-source.js +37 -7
- package/dist/ffmpeg.d.ts +2 -0
- package/dist/ffmpeg.js +30 -0
- package/dist/file-watcher.d.ts +9 -0
- package/dist/file-watcher.js +35 -0
- package/dist/format-bytes.d.ts +0 -0
- package/dist/format-bytes.js +0 -0
- package/dist/get-audio-codec.d.ts +2 -0
- package/dist/get-audio-codec.js +10 -0
- package/dist/get-cli-options.d.ts +13 -19
- package/dist/get-cli-options.js +27 -89
- package/dist/get-composition-id.d.ts +22 -1
- package/dist/get-composition-id.js +71 -7
- package/dist/get-composition-with-dimension-override.d.ts +24 -0
- package/dist/get-composition-with-dimension-override.js +30 -0
- package/dist/get-config-file-name.d.ts +0 -2
- package/dist/get-config-file-name.js +11 -11
- package/dist/get-default-out-name.d.ts +5 -0
- package/dist/get-default-out-name.js +10 -0
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +51 -60
- package/dist/get-filename.d.ts +6 -3
- package/dist/get-filename.js +12 -25
- package/dist/get-final-output-codec.d.ts +2 -1
- package/dist/get-final-output-codec.js +31 -34
- package/dist/get-input-props.d.ts +1 -1
- package/dist/get-input-props.js +18 -16
- package/dist/get-latest-remotion-version.d.ts +0 -0
- package/dist/get-latest-remotion-version.js +0 -0
- package/dist/get-network-address.d.ts +1 -0
- package/dist/get-network-address.js +16 -0
- package/dist/handle-common-errors.d.ts +2 -1
- package/dist/handle-common-errors.js +25 -3
- package/dist/image-formats.d.ts +5 -2
- package/dist/image-formats.js +16 -6
- package/dist/index.d.ts +140 -33
- package/dist/index.js +49 -29
- package/dist/initialize-cli.d.ts +0 -0
- package/dist/initialize-cli.js +0 -0
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +4 -5
- package/dist/list-of-remotion-packages.d.ts +0 -0
- package/dist/list-of-remotion-packages.js +9 -0
- package/dist/load-config.d.ts +0 -0
- package/dist/load-config.js +15 -25
- package/dist/log.d.ts +15 -0
- package/dist/log.js +1 -24
- package/dist/make-progress-bar.d.ts +0 -0
- package/dist/make-progress-bar.js +14 -1
- package/dist/parse-command-line.d.ts +23 -7
- package/dist/parse-command-line.js +47 -35
- package/dist/preview-server/api-routes.d.ts +4 -0
- package/dist/preview-server/api-routes.js +23 -0
- package/dist/preview-server/api-types.d.ts +26 -0
- package/dist/preview-server/api-types.js +2 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +2 -2
- package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
- package/dist/preview-server/dev-middleware/get-paths.js +0 -0
- package/dist/preview-server/dev-middleware/index.d.ts +0 -0
- package/dist/preview-server/dev-middleware/index.js +0 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +2 -3
- package/dist/preview-server/dev-middleware/middleware.js +9 -11
- package/dist/preview-server/dev-middleware/range-parser.d.ts +2 -2
- package/dist/preview-server/dev-middleware/range-parser.js +0 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +0 -0
- package/dist/preview-server/dev-middleware/ready.js +0 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -0
- package/dist/preview-server/dev-middleware/setup-hooks.js +17 -6
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
- package/dist/preview-server/dev-middleware/types.d.ts +1 -1
- package/dist/preview-server/dev-middleware/types.js +0 -0
- package/dist/preview-server/env-supports-fs-recursive.d.ts +1 -0
- package/dist/preview-server/env-supports-fs-recursive.js +18 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
- package/dist/preview-server/error-overlay/entry-basic.js +2 -2
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +3 -3
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +5 -5
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +1 -3
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +3 -3
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +42 -32
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +4 -4
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +8 -4
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +12 -8
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +18 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +30 -12
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +6 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +5 -5
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +4 -3
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +4 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +4 -9
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.js +9 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +18 -3
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -0
- package/dist/preview-server/file-existence-watchers.d.ts +13 -0
- package/dist/preview-server/file-existence-watchers.js +62 -0
- package/dist/preview-server/get-absolute-public-dir.d.ts +4 -0
- package/dist/preview-server/get-absolute-public-dir.js +14 -0
- package/dist/preview-server/get-package-manager.d.ts +3 -3
- package/dist/preview-server/get-package-manager.js +13 -4
- package/dist/preview-server/handler.d.ts +9 -0
- package/dist/preview-server/handler.js +34 -0
- package/dist/preview-server/hot-middleware/client.d.ts +1 -1
- package/dist/preview-server/hot-middleware/client.js +2 -2
- package/dist/preview-server/hot-middleware/index.d.ts +95 -1
- package/dist/preview-server/hot-middleware/index.js +3 -4
- package/dist/preview-server/hot-middleware/process-update.d.ts +0 -0
- package/dist/preview-server/hot-middleware/process-update.js +5 -6
- package/dist/preview-server/hot-middleware/types.d.ts +4 -4
- package/dist/preview-server/hot-middleware/types.js +0 -0
- package/dist/preview-server/live-events.d.ts +4 -2
- package/dist/preview-server/live-events.js +36 -2
- package/dist/preview-server/parse-body.d.ts +2 -0
- package/dist/preview-server/parse-body.js +16 -0
- package/dist/preview-server/project-info.d.ts +1 -1
- package/dist/preview-server/project-info.js +14 -6
- package/dist/preview-server/public-folder.d.ts +12 -0
- package/dist/preview-server/public-folder.js +55 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +10 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.js +13 -0
- package/dist/preview-server/render-queue/job.d.ts +156 -0
- package/dist/preview-server/render-queue/job.js +2 -0
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +3 -0
- package/dist/preview-server/render-queue/make-retry-payload.js +95 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +1 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.js +43 -0
- package/dist/preview-server/render-queue/process-still.d.ts +8 -0
- package/dist/preview-server/render-queue/process-still.js +46 -0
- package/dist/preview-server/render-queue/process-video.d.ts +8 -0
- package/dist/preview-server/render-queue/process-video.js +63 -0
- package/dist/preview-server/render-queue/queue.d.ts +9 -0
- package/dist/preview-server/render-queue/queue.js +212 -0
- package/dist/preview-server/routes/add-render.d.ts +3 -0
- package/dist/preview-server/routes/add-render.js +76 -0
- package/dist/preview-server/routes/can-update-default-props.d.ts +4 -0
- package/dist/preview-server/routes/can-update-default-props.js +40 -0
- package/dist/preview-server/routes/cancel-render.d.ts +3 -0
- package/dist/preview-server/routes/cancel-render.js +9 -0
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +3 -0
- package/dist/preview-server/routes/open-in-file-explorer.js +8 -0
- package/dist/preview-server/routes/remove-render.d.ts +3 -0
- package/dist/preview-server/routes/remove-render.js +9 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.js +13 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +13 -0
- package/dist/preview-server/routes/update-available.d.ts +3 -0
- package/dist/preview-server/routes/update-available.js +9 -0
- package/dist/preview-server/routes/update-default-props.d.ts +3 -0
- package/dist/preview-server/routes/update-default-props.js +35 -0
- package/dist/preview-server/routes.d.ts +6 -4
- package/dist/preview-server/routes.js +90 -35
- package/dist/preview-server/serve-static.d.ts +1 -1
- package/dist/preview-server/serve-static.js +8 -7
- package/dist/preview-server/start-server.d.ts +8 -2
- package/dist/preview-server/start-server.js +58 -29
- package/dist/preview-server/update-available.d.ts +2 -10
- package/dist/preview-server/update-available.js +2 -2
- package/dist/previewEntry.d.ts +0 -0
- package/dist/previewEntry.js +2 -4
- package/dist/print-compositions.d.ts +2 -0
- package/dist/print-compositions.js +50 -0
- package/dist/print-error.d.ts +2 -1
- package/dist/print-error.js +12 -7
- package/dist/print-help.d.ts +0 -0
- package/dist/print-help.js +14 -6
- package/dist/progress-bar.d.ts +29 -36
- package/dist/progress-bar.js +147 -33
- package/dist/progress-types.d.ts +32 -0
- package/dist/progress-types.js +17 -0
- package/dist/render-flows/render.d.ts +47 -0
- package/dist/render-flows/render.js +327 -0
- package/dist/render-flows/still.d.ts +30 -0
- package/dist/render-flows/still.js +193 -0
- package/dist/render.d.ts +1 -1
- package/dist/render.js +50 -226
- package/dist/required-chromium-options.d.ts +3 -0
- package/dist/required-chromium-options.js +2 -0
- package/dist/resolve-from.d.ts +0 -0
- package/dist/resolve-from.js +5 -5
- package/dist/server-ready-comment.d.ts +2 -0
- package/dist/server-ready-comment.js +13 -0
- package/dist/setup-cache.d.ts +14 -10
- package/dist/setup-cache.js +91 -21
- package/dist/should-use-non-overlaying-logger.d.ts +4 -0
- package/dist/should-use-non-overlaying-logger.js +12 -0
- package/dist/show-compositions-picker.d.ts +8 -0
- package/dist/show-compositions-picker.js +51 -0
- package/dist/smooth-zoom.d.ts +0 -0
- package/dist/smooth-zoom.js +0 -0
- package/dist/step.d.ts +1 -1
- package/dist/step.js +0 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +38 -135
- package/dist/studio.d.ts +1 -0
- package/dist/studio.js +142 -0
- package/dist/truthy.d.ts +1 -1
- package/dist/truthy.js +0 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +15 -7
- package/dist/user-passed-output-location.d.ts +5 -2
- package/dist/user-passed-output-location.js +14 -10
- package/dist/versions.d.ts +0 -0
- package/dist/versions.js +2 -2
- package/dist/watch-root-file.d.ts +1 -0
- package/dist/watch-root-file.js +22 -0
- package/package.json +87 -74
- package/styles/styles.css +15 -4
- package/.prettierrc.js +0 -14
- package/dist/ansi/ansi-regex.d.ts +0 -2
- package/dist/ansi/ansi-regex.js +0 -18
- package/dist/check-version.d.ts +0 -1
- package/dist/check-version.js +0 -14
- package/dist/config/ffmpeg-executable.d.ts +0 -5
- package/dist/config/ffmpeg-executable.js +0 -21
- package/dist/config/quality.d.ts +0 -2
- package/dist/config/quality.js +0 -17
- package/dist/editor/components/ClipboardIcon.d.ts +0 -2
- package/dist/editor/components/ClipboardIcon.js +0 -12
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -4
- package/dist/editor/components/CollapsedCompositionSelector.js +0 -39
- package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -2
- package/dist/editor/components/KeyboardShortcutsModal.js +0 -67
- package/dist/editor/components/RichTimelineToggle.d.ts +0 -2
- package/dist/editor/components/RichTimelineToggle.js +0 -29
- package/dist/editor/components/Thumbnail.d.ts +0 -8
- package/dist/editor/components/Thumbnail.js +0 -76
- package/dist/editor/helpers/use-compact-ui.d.ts +0 -1
- package/dist/editor/icons/film.d.ts +0 -3
- package/dist/editor/icons/film.js +0 -8
- package/dist/editor/icons/timeline.d.ts +0 -3
- package/dist/editor/icons/timeline.js +0 -9
- package/dist/editor/state/rich-timeline.d.ts +0 -9
- package/dist/editor/state/rich-timeline.js +0 -17
- package/dist/find-closest-package-json.d.ts +0 -2
- package/dist/find-closest-package-json.js +0 -35
- package/dist/get-render-media-options.d.ts +0 -7
- package/dist/get-render-media-options.js +0 -44
- package/dist/initialize-render-cli.d.ts +0 -1
- package/dist/initialize-render-cli.js +0 -22
- package/dist/is-javascript.d.ts +0 -2
- package/dist/is-javascript.js +0 -9
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -1
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -1
- package/dist/preview-server/hot-middleware/strip-ansi.js +0 -21
- package/dist/preview.d.ts +0 -1
- package/dist/preview.js +0 -75
- package/dist/validate-ffmpeg-version.d.ts +0 -3
- package/dist/validate-ffmpeg-version.js +0 -17
- package/dist/validate-image-format.d.ts +0 -2
- package/dist/validate-image-format.js +0 -15
- package/dist/warn-about-ffmpeg-version.d.ts +0 -5
- package/dist/warn-about-ffmpeg-version.js +0 -38
- package/tsconfig.json +0 -17
- package/vitest.config.ts +0 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export type PackageManager = 'npm' | 'yarn' | 'pnpm';
|
|
2
|
+
type LockfilePath = {
|
|
3
3
|
manager: PackageManager;
|
|
4
4
|
path: string;
|
|
5
5
|
installCommand: string;
|
|
6
6
|
startCommand: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const lockFilePaths: LockfilePath[];
|
|
9
|
-
export declare const getPackageManager: (remotionRoot: string) => LockfilePath | 'unknown';
|
|
9
|
+
export declare const getPackageManager: (remotionRoot: string, packageManager: string | undefined) => LockfilePath | 'unknown';
|
|
10
10
|
export {};
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getPackageManager = exports.lockFilePaths = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
exports.lockFilePaths = [
|
|
10
10
|
{
|
|
11
11
|
path: 'package-lock.json',
|
|
@@ -26,8 +26,17 @@ exports.lockFilePaths = [
|
|
|
26
26
|
startCommand: 'pnpm start',
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
|
-
const getPackageManager = (remotionRoot) => {
|
|
30
|
-
|
|
29
|
+
const getPackageManager = (remotionRoot, packageManager) => {
|
|
30
|
+
if (packageManager) {
|
|
31
|
+
const manager = exports.lockFilePaths.find((p) => p.manager === packageManager);
|
|
32
|
+
if (!manager) {
|
|
33
|
+
throw new Error(`The package manager ${packageManager} is not supported. Supported package managers are ${exports.lockFilePaths
|
|
34
|
+
.map((p) => p.manager)
|
|
35
|
+
.join(', ')}`);
|
|
36
|
+
}
|
|
37
|
+
return manager;
|
|
38
|
+
}
|
|
39
|
+
const existingPkgManagers = exports.lockFilePaths.filter((p) => node_fs_1.default.existsSync(node_path_1.default.join(remotionRoot, p.path)));
|
|
31
40
|
if (existingPkgManagers.length === 0) {
|
|
32
41
|
return 'unknown';
|
|
33
42
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
+
import type { ApiHandler } from './api-types';
|
|
3
|
+
export declare const handleRequest: <Req, Res>({ remotionRoot, request, response, entryPoint, handler, }: {
|
|
4
|
+
remotionRoot: string;
|
|
5
|
+
request: IncomingMessage;
|
|
6
|
+
response: ServerResponse;
|
|
7
|
+
entryPoint: string;
|
|
8
|
+
handler: ApiHandler<Req, Res>;
|
|
9
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleRequest = void 0;
|
|
4
|
+
const parse_body_1 = require("./parse-body");
|
|
5
|
+
const handleRequest = async ({ remotionRoot, request, response, entryPoint, handler, }) => {
|
|
6
|
+
if (request.method === 'OPTIONS') {
|
|
7
|
+
response.statusCode = 200;
|
|
8
|
+
response.end();
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
response.setHeader('content-type', 'application/json');
|
|
12
|
+
response.writeHead(200);
|
|
13
|
+
try {
|
|
14
|
+
const body = (await (0, parse_body_1.parseRequestBody)(request));
|
|
15
|
+
const outputData = await handler({
|
|
16
|
+
entryPoint,
|
|
17
|
+
remotionRoot,
|
|
18
|
+
request,
|
|
19
|
+
response,
|
|
20
|
+
input: body,
|
|
21
|
+
});
|
|
22
|
+
response.end(JSON.stringify({
|
|
23
|
+
success: true,
|
|
24
|
+
data: outputData,
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
catch (err) {
|
|
28
|
+
response.end(JSON.stringify({
|
|
29
|
+
success: false,
|
|
30
|
+
error: err.message,
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.handleRequest = handleRequest;
|
|
@@ -10,7 +10,7 @@ declare global {
|
|
|
10
10
|
__webpack_hot_middleware_reporter__: Reporter;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type Reporter = ReturnType<typeof createReporter>;
|
|
14
14
|
declare function createReporter(): {
|
|
15
15
|
cleanProblemsCache(): void;
|
|
16
16
|
problems(type: 'errors' | 'warnings', obj: HotMiddlewareMessage): boolean;
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
* https://github.com/webpack-contrib/webpack-hot-middleware#readme
|
|
7
7
|
* and rewritten in TypeScript. This file is MIT licensed
|
|
8
8
|
*/
|
|
9
|
+
const ansi_split_1 = require("../../ansi/ansi-split");
|
|
9
10
|
const process_update_1 = require("./process-update");
|
|
10
|
-
const strip_ansi_1 = require("./strip-ansi");
|
|
11
11
|
const types_1 = require("./types");
|
|
12
12
|
if (typeof window === 'undefined') {
|
|
13
13
|
// do nothing
|
|
@@ -107,7 +107,7 @@ function createReporter() {
|
|
|
107
107
|
}
|
|
108
108
|
const newProblems = obj[type]
|
|
109
109
|
.map((msg) => {
|
|
110
|
-
return (0,
|
|
110
|
+
return (0, ansi_split_1.stripAnsi)(msg);
|
|
111
111
|
})
|
|
112
112
|
.join('\n');
|
|
113
113
|
if (previousProblems === newProblems) {
|
|
@@ -4,5 +4,99 @@
|
|
|
4
4
|
* and rewritten in TypeScript. This file is MIT licensed
|
|
5
5
|
*/
|
|
6
6
|
import type { webpack } from '@remotion/bundler';
|
|
7
|
-
import type { IncomingMessage, ServerResponse } from 'http';
|
|
7
|
+
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
8
|
+
declare global {
|
|
9
|
+
const __webpack_hash__: unknown;
|
|
10
|
+
interface HotNotifierInfo {
|
|
11
|
+
type: 'self-declined' | 'declined' | 'unaccepted' | 'accepted' | 'disposed' | 'accept-errored' | 'self-accept-errored' | 'self-accept-error-handler-errored';
|
|
12
|
+
/**
|
|
13
|
+
* The module in question.
|
|
14
|
+
*/
|
|
15
|
+
moduleId: number;
|
|
16
|
+
/**
|
|
17
|
+
* For errors: the module id owning the accept handler.
|
|
18
|
+
*/
|
|
19
|
+
dependencyId?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* For declined/accepted/unaccepted: the chain from where the update was propagated.
|
|
22
|
+
*/
|
|
23
|
+
chain?: number[] | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* For declined: the module id of the declining parent
|
|
26
|
+
*/
|
|
27
|
+
parentId?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* For accepted: the modules that are outdated and will be disposed
|
|
30
|
+
*/
|
|
31
|
+
outdatedModules?: number[] | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* For accepted: The location of accept handlers that will handle the update
|
|
34
|
+
*/
|
|
35
|
+
outdatedDependencies?: {
|
|
36
|
+
[dependencyId: number]: number[];
|
|
37
|
+
} | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* For errors: the thrown error
|
|
40
|
+
*/
|
|
41
|
+
error?: Error | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* For self-accept-error-handler-errored: the error thrown by the module
|
|
44
|
+
* before the error handler tried to handle it.
|
|
45
|
+
*/
|
|
46
|
+
originalError?: Error | undefined;
|
|
47
|
+
}
|
|
48
|
+
interface AcceptOptions {
|
|
49
|
+
/**
|
|
50
|
+
* If true the update process continues even if some modules are not accepted (and would bubble to the entry point).
|
|
51
|
+
*/
|
|
52
|
+
ignoreUnaccepted?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Ignore changes made to declined modules.
|
|
55
|
+
*/
|
|
56
|
+
ignoreDeclined?: boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Ignore errors throw in accept handlers, error handlers and while reevaluating module.
|
|
59
|
+
*/
|
|
60
|
+
ignoreErrored?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Notifier for declined modules.
|
|
63
|
+
*/
|
|
64
|
+
onDeclined?: ((info: HotNotifierInfo) => void) | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Notifier for unaccepted modules.
|
|
67
|
+
*/
|
|
68
|
+
onUnaccepted?: ((info: HotNotifierInfo) => void) | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Notifier for accepted modules.
|
|
71
|
+
*/
|
|
72
|
+
onAccepted?: ((info: HotNotifierInfo) => void) | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Notifier for disposed modules.
|
|
75
|
+
*/
|
|
76
|
+
onDisposed?: ((info: HotNotifierInfo) => void) | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Notifier for errors.
|
|
79
|
+
*/
|
|
80
|
+
onErrored?: ((info: HotNotifierInfo) => void) | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Indicates that apply() is automatically called by check function
|
|
83
|
+
*/
|
|
84
|
+
autoApply?: boolean | undefined;
|
|
85
|
+
}
|
|
86
|
+
const __webpack_module__: {
|
|
87
|
+
id: string;
|
|
88
|
+
exports: unknown;
|
|
89
|
+
hot: {
|
|
90
|
+
accept: () => void;
|
|
91
|
+
dispose: (onDispose: (data: Record<string, unknown>) => void) => void;
|
|
92
|
+
invalidate: () => void;
|
|
93
|
+
data?: Record<string, unknown>;
|
|
94
|
+
addStatusHandler(callback: (status: string) => void): void;
|
|
95
|
+
status(): string;
|
|
96
|
+
apply(options?: AcceptOptions): Promise<ModuleId[]>;
|
|
97
|
+
check(autoApply?: boolean): Promise<null | ModuleId[]>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
type ModuleId = string | number;
|
|
101
|
+
}
|
|
8
102
|
export declare const webpackHotMiddleware: (compiler: webpack.Compiler) => (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.webpackHotMiddleware = void 0;
|
|
9
|
-
const
|
|
9
|
+
const node_url_1 = require("node:url");
|
|
10
10
|
const log_1 = require("../../log");
|
|
11
11
|
const types_1 = require("./types");
|
|
12
12
|
const pathMatch = function (url, path) {
|
|
13
13
|
try {
|
|
14
|
-
return (0,
|
|
14
|
+
return (0, node_url_1.parse)(url).pathname === path;
|
|
15
15
|
}
|
|
16
16
|
catch (e) {
|
|
17
17
|
return false;
|
|
@@ -24,7 +24,7 @@ const webpackHotMiddleware = (compiler) => {
|
|
|
24
24
|
compiler.hooks.done.tap('remotion', onDone);
|
|
25
25
|
function onInvalid() {
|
|
26
26
|
latestStats = null;
|
|
27
|
-
log_1.Log.info('
|
|
27
|
+
log_1.Log.info('Building...');
|
|
28
28
|
eventStream === null || eventStream === void 0 ? void 0 : eventStream.publish({
|
|
29
29
|
action: 'building',
|
|
30
30
|
});
|
|
@@ -114,7 +114,6 @@ function publishStats(action, statsResult, eventStream) {
|
|
|
114
114
|
if (bundles.length === 1 && !name && statsResult.compilation) {
|
|
115
115
|
name = statsResult.compilation.name || '';
|
|
116
116
|
}
|
|
117
|
-
log_1.Log.info(`webpack built in ${_stats.time}ms`);
|
|
118
117
|
eventStream === null || eventStream === void 0 ? void 0 : eventStream.publish({
|
|
119
118
|
name,
|
|
120
119
|
action,
|
|
File without changes
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.processUpdate = void 0;
|
|
10
|
-
|
|
11
|
-
if (!module.hot) {
|
|
10
|
+
if (!__webpack_module__.hot) {
|
|
12
11
|
throw new Error('[Fast refresh] Hot Module Replacement is disabled.');
|
|
13
12
|
}
|
|
14
13
|
const hmrDocsUrl = 'https://webpack.js.org/concepts/hot-module-replacement/'; // eslint-disable-line max-len
|
|
@@ -44,7 +43,7 @@ function upToDate(hash) {
|
|
|
44
43
|
const processUpdate = function (hash, moduleMap, options) {
|
|
45
44
|
var _a;
|
|
46
45
|
const { reload } = options;
|
|
47
|
-
if (!upToDate(hash) && ((_a =
|
|
46
|
+
if (!upToDate(hash) && ((_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.status()) === 'idle') {
|
|
48
47
|
check();
|
|
49
48
|
}
|
|
50
49
|
async function check() {
|
|
@@ -69,7 +68,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
69
68
|
}
|
|
70
69
|
logUpdates(updatedModules, renewedModules);
|
|
71
70
|
};
|
|
72
|
-
const applyResult = (_a =
|
|
71
|
+
const applyResult = (_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.apply(applyOptions);
|
|
73
72
|
if (applyResult === null || applyResult === void 0 ? void 0 : applyResult.then) {
|
|
74
73
|
// HotModuleReplacement.runtime.js refers to the result as `outdatedModules`
|
|
75
74
|
applyResult
|
|
@@ -80,7 +79,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
81
|
try {
|
|
83
|
-
const result = await ((_a =
|
|
82
|
+
const result = await ((_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.check(false));
|
|
84
83
|
cb(null, result);
|
|
85
84
|
}
|
|
86
85
|
catch (err) {
|
|
@@ -119,7 +118,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
119
118
|
}
|
|
120
119
|
function handleError(err) {
|
|
121
120
|
var _a, _b;
|
|
122
|
-
if (((_b = (_a =
|
|
121
|
+
if (((_b = (_a = __webpack_module__.hot) === null || _a === void 0 ? void 0 : _a.status()) !== null && _b !== void 0 ? _b : 'nope') in failureStatuses) {
|
|
123
122
|
if (options.warn) {
|
|
124
123
|
console.warn('[Fast refresh] Cannot check for update (Full reload needed)');
|
|
125
124
|
console.warn('[Fast refresh] ' + (err.stack || err.message));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { webpack } from '@remotion/bundler';
|
|
2
|
-
export
|
|
2
|
+
export type HotMiddlewareMessage = {
|
|
3
3
|
action: 'building';
|
|
4
4
|
name?: string;
|
|
5
5
|
} | {
|
|
@@ -20,8 +20,8 @@ export declare const hotMiddlewareOptions: {
|
|
|
20
20
|
warn: boolean;
|
|
21
21
|
heartbeat: number;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type HotMiddlewareOptions = typeof hotMiddlewareOptions;
|
|
24
|
+
export type WebpackStats = ReturnType<webpack.Stats['toJson']>;
|
|
25
|
+
export type ModuleMap = {
|
|
26
26
|
[key: string]: string;
|
|
27
27
|
};
|
|
File without changes
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import type { IncomingMessage, ServerResponse } from 'http';
|
|
2
|
+
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
3
3
|
import type { EventSourceEvent } from '../event-source-events';
|
|
4
|
-
export
|
|
4
|
+
export type LiveEventsServer = {
|
|
5
5
|
sendEventToClient: (event: EventSourceEvent) => void;
|
|
6
6
|
router: (request: IncomingMessage, response: ServerResponse) => void;
|
|
7
7
|
};
|
|
8
8
|
export declare const makeLiveEventsRouter: () => LiveEventsServer;
|
|
9
|
+
export declare const waitForLiveEventsListener: () => Promise<LiveEventsServer>;
|
|
10
|
+
export declare const setLiveEventsListener: (listener: LiveEventsServer) => void;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeLiveEventsRouter = void 0;
|
|
3
|
+
exports.setLiveEventsListener = exports.waitForLiveEventsListener = exports.makeLiveEventsRouter = void 0;
|
|
4
|
+
const server_ready_comment_1 = require("../server-ready-comment");
|
|
5
|
+
const file_existence_watchers_1 = require("./file-existence-watchers");
|
|
4
6
|
const serializeMessage = (message) => {
|
|
5
7
|
return `data: ${JSON.stringify(message)}\n\n`;
|
|
6
8
|
};
|
|
9
|
+
let printPortMessageTimeout = null;
|
|
7
10
|
const makeLiveEventsRouter = () => {
|
|
8
11
|
let clients = [];
|
|
9
12
|
const router = (request, response) => {
|
|
@@ -17,15 +20,28 @@ const makeLiveEventsRouter = () => {
|
|
|
17
20
|
response.end();
|
|
18
21
|
return;
|
|
19
22
|
}
|
|
20
|
-
response.write(serializeMessage({ type: 'init' }));
|
|
21
23
|
const clientId = String(Math.random());
|
|
24
|
+
response.write(serializeMessage({ type: 'init', clientId }));
|
|
22
25
|
const newClient = {
|
|
23
26
|
id: clientId,
|
|
24
27
|
response,
|
|
25
28
|
};
|
|
26
29
|
clients.push(newClient);
|
|
30
|
+
if (printPortMessageTimeout) {
|
|
31
|
+
clearTimeout(printPortMessageTimeout);
|
|
32
|
+
}
|
|
27
33
|
request.on('close', () => {
|
|
34
|
+
(0, file_existence_watchers_1.unsubscribeClientFileExistenceWatchers)(clientId);
|
|
28
35
|
clients = clients.filter((client) => client.id !== clientId);
|
|
36
|
+
// If all clients disconnected, print a comment so user can easily restart it.
|
|
37
|
+
if (clients.length === 0) {
|
|
38
|
+
if (printPortMessageTimeout) {
|
|
39
|
+
clearTimeout(printPortMessageTimeout);
|
|
40
|
+
}
|
|
41
|
+
printPortMessageTimeout = setTimeout(() => {
|
|
42
|
+
(0, server_ready_comment_1.printServerReadyComment)('To restart');
|
|
43
|
+
}, 2500);
|
|
44
|
+
}
|
|
29
45
|
});
|
|
30
46
|
};
|
|
31
47
|
const sendEventToClient = (event) => {
|
|
@@ -39,3 +55,21 @@ const makeLiveEventsRouter = () => {
|
|
|
39
55
|
};
|
|
40
56
|
};
|
|
41
57
|
exports.makeLiveEventsRouter = makeLiveEventsRouter;
|
|
58
|
+
let liveEventsListener = null;
|
|
59
|
+
const waiters = [];
|
|
60
|
+
const waitForLiveEventsListener = () => {
|
|
61
|
+
if (liveEventsListener) {
|
|
62
|
+
return Promise.resolve(liveEventsListener);
|
|
63
|
+
}
|
|
64
|
+
return new Promise((resolve) => {
|
|
65
|
+
waiters.push((list) => {
|
|
66
|
+
resolve(list);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
exports.waitForLiveEventsListener = waitForLiveEventsListener;
|
|
71
|
+
const setLiveEventsListener = (listener) => {
|
|
72
|
+
liveEventsListener = listener;
|
|
73
|
+
waiters.forEach((w) => w(listener));
|
|
74
|
+
};
|
|
75
|
+
exports.setLiveEventsListener = setLiveEventsListener;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseRequestBody = void 0;
|
|
4
|
+
const parseRequestBody = async (req) => {
|
|
5
|
+
const body = await new Promise((_resolve) => {
|
|
6
|
+
let data = '';
|
|
7
|
+
req.on('data', (chunk) => {
|
|
8
|
+
data += chunk;
|
|
9
|
+
});
|
|
10
|
+
req.on('end', () => {
|
|
11
|
+
_resolve(data.toString());
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
return JSON.parse(body);
|
|
15
|
+
};
|
|
16
|
+
exports.parseRequestBody = parseRequestBody;
|
|
@@ -4,18 +4,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getProjectInfo = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const node_fs_1 = require("node:fs");
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
const getProjectInfo = (remotionRoot) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const pathsToLookFor = [
|
|
12
|
-
|
|
11
|
+
const pathsToLookFor = [
|
|
12
|
+
'src/Root.tsx',
|
|
13
|
+
'src/Root.jsx',
|
|
14
|
+
'remotion/Root.tsx',
|
|
15
|
+
'remotion/Root.jsx',
|
|
16
|
+
'app/remotion/Root.tsx',
|
|
17
|
+
'src/Video.tsx',
|
|
18
|
+
'src/Video.jsx',
|
|
19
|
+
].map((p) => {
|
|
20
|
+
return node_path_1.default.join(remotionRoot, p);
|
|
13
21
|
});
|
|
14
|
-
const videoFile = (_a = pathsToLookFor.find((p) => (0,
|
|
22
|
+
const videoFile = (_a = pathsToLookFor.find((p) => (0, node_fs_1.existsSync)(p))) !== null && _a !== void 0 ? _a : null;
|
|
15
23
|
return Promise.resolve({
|
|
16
24
|
videoFile,
|
|
17
25
|
relativeVideoFile: videoFile
|
|
18
|
-
?
|
|
26
|
+
? node_path_1.default.relative(remotionRoot, videoFile)
|
|
19
27
|
: null,
|
|
20
28
|
});
|
|
21
29
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StaticFile } from 'remotion';
|
|
2
|
+
export declare const initPublicFolderWatch: ({ publicDir, onUpdate, staticHash, }: {
|
|
3
|
+
publicDir: string;
|
|
4
|
+
remotionRoot: string;
|
|
5
|
+
onUpdate: () => void;
|
|
6
|
+
staticHash: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
export declare const fetchFolder: ({ publicDir, staticHash, }: {
|
|
9
|
+
publicDir: string;
|
|
10
|
+
staticHash: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
export declare const getFiles: () => StaticFile[];
|
|
@@ -0,0 +1,55 @@
|
|
|
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.getFiles = exports.fetchFolder = exports.initPublicFolderWatch = void 0;
|
|
7
|
+
const bundler_1 = require("@remotion/bundler");
|
|
8
|
+
const node_fs_1 = require("node:fs");
|
|
9
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
10
|
+
const env_supports_fs_recursive_1 = require("./env-supports-fs-recursive");
|
|
11
|
+
let files = [];
|
|
12
|
+
const initPublicFolderWatch = ({ publicDir, onUpdate, staticHash, }) => {
|
|
13
|
+
(0, exports.fetchFolder)({ publicDir, staticHash });
|
|
14
|
+
watchPublicFolder({ publicDir, onUpdate, staticHash });
|
|
15
|
+
};
|
|
16
|
+
exports.initPublicFolderWatch = initPublicFolderWatch;
|
|
17
|
+
const fetchFolder = ({ publicDir, staticHash, }) => {
|
|
18
|
+
files = bundler_1.BundlerInternals.readRecursively({
|
|
19
|
+
folder: '.',
|
|
20
|
+
startPath: publicDir,
|
|
21
|
+
staticHash,
|
|
22
|
+
limit: 1000,
|
|
23
|
+
}).map((f) => {
|
|
24
|
+
return {
|
|
25
|
+
...f,
|
|
26
|
+
name: f.name.split(node_path_1.default.sep).join('/'),
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.fetchFolder = fetchFolder;
|
|
31
|
+
const watchPublicFolder = ({ publicDir, onUpdate, staticHash, }) => {
|
|
32
|
+
if (!(0, node_fs_1.existsSync)(publicDir)) {
|
|
33
|
+
const parentDir = node_path_1.default.dirname(publicDir);
|
|
34
|
+
const onDirChange = () => {
|
|
35
|
+
if ((0, node_fs_1.existsSync)(publicDir)) {
|
|
36
|
+
watchPublicFolder({
|
|
37
|
+
publicDir,
|
|
38
|
+
onUpdate,
|
|
39
|
+
staticHash,
|
|
40
|
+
});
|
|
41
|
+
watcher.close();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const watcher = (0, node_fs_1.watch)(parentDir, {}, onDirChange);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
(0, node_fs_1.watch)(publicDir, { recursive: (0, env_supports_fs_recursive_1.envSupportsFsRecursive)() }, () => {
|
|
48
|
+
(0, exports.fetchFolder)({ publicDir, staticHash });
|
|
49
|
+
onUpdate();
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
const getFiles = () => {
|
|
53
|
+
return files;
|
|
54
|
+
};
|
|
55
|
+
exports.getFiles = getFiles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Codec } from '@remotion/renderer';
|
|
2
|
+
import type { RenderType } from '../../editor/components/RenderModal/RenderModalAdvanced';
|
|
3
|
+
export declare const getDefaultCodecs: ({ defaultCodec, isStill, }: {
|
|
4
|
+
defaultCodec: Codec;
|
|
5
|
+
isStill: boolean;
|
|
6
|
+
}) => {
|
|
7
|
+
initialAudioCodec: Codec;
|
|
8
|
+
initialVideoCodec: Codec;
|
|
9
|
+
initialRenderType: RenderType;
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefaultCodecs = void 0;
|
|
4
|
+
const client_1 = require("@remotion/renderer/client");
|
|
5
|
+
const getDefaultCodecs = ({ defaultCodec, isStill, }) => {
|
|
6
|
+
const isAudioCodec = client_1.BrowserSafeApis.isAudioCodec(defaultCodec);
|
|
7
|
+
return {
|
|
8
|
+
initialAudioCodec: isAudioCodec ? defaultCodec : 'mp3',
|
|
9
|
+
initialVideoCodec: isAudioCodec ? 'h264' : defaultCodec,
|
|
10
|
+
initialRenderType: isStill ? 'still' : isAudioCodec ? 'audio' : 'video',
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.getDefaultCodecs = getDefaultCodecs;
|