@remotion/cli 4.0.0-webhook.26 → 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
|
@@ -3,22 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MenuToolbar = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const remotion_1 = require("remotion");
|
|
7
6
|
const colors_1 = require("../helpers/colors");
|
|
8
|
-
const
|
|
9
|
-
const use_keybinding_1 = require("../helpers/use-keybinding");
|
|
10
|
-
const Checkmark_1 = require("../icons/Checkmark");
|
|
11
|
-
const checkerboard_1 = require("../state/checkerboard");
|
|
12
|
-
const modals_1 = require("../state/modals");
|
|
13
|
-
const preview_size_1 = require("../state/preview-size");
|
|
14
|
-
const rich_timeline_1 = require("../state/rich-timeline");
|
|
15
|
-
const sidebar_1 = require("../state/sidebar");
|
|
16
|
-
const timeline_ref_1 = require("../state/timeline-ref");
|
|
7
|
+
const use_menu_structure_1 = require("../helpers/use-menu-structure");
|
|
17
8
|
const layout_1 = require("./layout");
|
|
18
9
|
const MenuItem_1 = require("./Menu/MenuItem");
|
|
19
10
|
const MenuBuildIndicator_1 = require("./MenuBuildIndicator");
|
|
20
|
-
const
|
|
21
|
-
const TimelineInOutToggle_1 = require("./TimelineInOutToggle");
|
|
11
|
+
const SidebarCollapserControls_1 = require("./SidebarCollapserControls");
|
|
22
12
|
const UpdateCheck_1 = require("./UpdateCheck");
|
|
23
13
|
const row = {
|
|
24
14
|
alignItems: 'center',
|
|
@@ -31,23 +21,23 @@ const row = {
|
|
|
31
21
|
paddingRight: 10,
|
|
32
22
|
backgroundColor: colors_1.BACKGROUND,
|
|
33
23
|
};
|
|
34
|
-
const
|
|
35
|
-
|
|
24
|
+
const fixedWidthRight = {
|
|
25
|
+
minWidth: '350px',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'flex-end',
|
|
36
29
|
};
|
|
37
|
-
const
|
|
38
|
-
|
|
30
|
+
const fixedWidthLeft = {
|
|
31
|
+
minWidth: '350px',
|
|
32
|
+
display: 'flex',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
justifyContent: 'flex-start',
|
|
39
35
|
};
|
|
40
|
-
const
|
|
41
|
-
|
|
36
|
+
const flex = {
|
|
37
|
+
flex: 1,
|
|
42
38
|
};
|
|
43
|
-
const ICON_SIZE = 16;
|
|
44
39
|
const MenuToolbar = () => {
|
|
45
40
|
const [selected, setSelected] = (0, react_1.useState)(null);
|
|
46
|
-
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
47
|
-
const { checkerboard, setCheckerboard } = (0, react_1.useContext)(checkerboard_1.CheckerboardContext);
|
|
48
|
-
const { richTimeline, setRichTimeline } = (0, react_1.useContext)(rich_timeline_1.RichTimelineContext);
|
|
49
|
-
const { size, setSize } = (0, react_1.useContext)(preview_size_1.PreviewSizeContext);
|
|
50
|
-
const { setSidebarCollapsedState, sidebarCollapsedState } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
51
41
|
const itemClicked = (0, react_1.useCallback)((itemId) => {
|
|
52
42
|
setSelected(itemId);
|
|
53
43
|
}, [setSelected]);
|
|
@@ -56,433 +46,10 @@ const MenuToolbar = () => {
|
|
|
56
46
|
setSelected(itemId);
|
|
57
47
|
}
|
|
58
48
|
}, [selected, setSelected]);
|
|
59
|
-
const
|
|
49
|
+
const closeMenu = (0, react_1.useCallback)(() => {
|
|
60
50
|
setSelected(null);
|
|
61
51
|
}, []);
|
|
62
|
-
const
|
|
63
|
-
const structure = (0, react_1.useMemo)(() => {
|
|
64
|
-
const struct = [
|
|
65
|
-
{
|
|
66
|
-
id: 'remotion',
|
|
67
|
-
label: ((0, jsx_runtime_1.jsx)(layout_1.Row, { align: "center", justify: "center", children: (0, jsx_runtime_1.jsx)("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "-100 -100 400 400", style: rotate, children: (0, jsx_runtime_1.jsx)("path", { fill: "#fff", stroke: "#fff", strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }) })),
|
|
68
|
-
leaveLeftPadding: false,
|
|
69
|
-
items: [
|
|
70
|
-
{
|
|
71
|
-
id: 'about',
|
|
72
|
-
value: 'about',
|
|
73
|
-
label: 'About Remotion',
|
|
74
|
-
onClick: () => {
|
|
75
|
-
close();
|
|
76
|
-
openExternal('https://remotion.dev');
|
|
77
|
-
},
|
|
78
|
-
type: 'item',
|
|
79
|
-
keyHint: null,
|
|
80
|
-
leftItem: null,
|
|
81
|
-
subMenu: null,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
id: 'changelog',
|
|
85
|
-
value: 'changelog',
|
|
86
|
-
label: 'Changelog',
|
|
87
|
-
onClick: () => {
|
|
88
|
-
close();
|
|
89
|
-
openExternal('https://github.com/remotion-dev/remotion/releases');
|
|
90
|
-
},
|
|
91
|
-
type: 'item',
|
|
92
|
-
keyHint: null,
|
|
93
|
-
leftItem: null,
|
|
94
|
-
subMenu: null,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: 'license',
|
|
98
|
-
value: 'license',
|
|
99
|
-
label: 'License',
|
|
100
|
-
onClick: () => {
|
|
101
|
-
close();
|
|
102
|
-
openExternal('https://github.com/remotion-dev/remotion/blob/main/LICENSE.md');
|
|
103
|
-
},
|
|
104
|
-
type: 'item',
|
|
105
|
-
keyHint: null,
|
|
106
|
-
leftItem: null,
|
|
107
|
-
subMenu: null,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: 'file',
|
|
113
|
-
label: 'File',
|
|
114
|
-
leaveLeftPadding: false,
|
|
115
|
-
items: [
|
|
116
|
-
{
|
|
117
|
-
id: 'new-sequence',
|
|
118
|
-
value: 'new-sequence',
|
|
119
|
-
label: 'New composition...',
|
|
120
|
-
onClick: () => {
|
|
121
|
-
close();
|
|
122
|
-
setSelectedModal({
|
|
123
|
-
compType: 'composition',
|
|
124
|
-
type: 'new-comp',
|
|
125
|
-
});
|
|
126
|
-
},
|
|
127
|
-
type: 'item',
|
|
128
|
-
keyHint: 'N',
|
|
129
|
-
leftItem: null,
|
|
130
|
-
subMenu: null,
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: 'new-still',
|
|
134
|
-
value: 'new-still',
|
|
135
|
-
label: 'New still...',
|
|
136
|
-
onClick: () => {
|
|
137
|
-
close();
|
|
138
|
-
setSelectedModal({
|
|
139
|
-
compType: 'still',
|
|
140
|
-
type: 'new-comp',
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
type: 'item',
|
|
144
|
-
keyHint: null,
|
|
145
|
-
leftItem: null,
|
|
146
|
-
subMenu: null,
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
id: 'view',
|
|
152
|
-
label: 'View',
|
|
153
|
-
leaveLeftPadding: true,
|
|
154
|
-
items: [
|
|
155
|
-
{
|
|
156
|
-
id: 'preview-size',
|
|
157
|
-
keyHint: null,
|
|
158
|
-
label: 'Preview size',
|
|
159
|
-
onClick: () => undefined,
|
|
160
|
-
type: 'item',
|
|
161
|
-
value: 'preview-size',
|
|
162
|
-
leftItem: null,
|
|
163
|
-
subMenu: {
|
|
164
|
-
leaveLeftSpace: true,
|
|
165
|
-
preselectIndex: sizes.findIndex((s) => String(size.size) === String(s.size)),
|
|
166
|
-
items: sizes.map((newSize) => ({
|
|
167
|
-
id: String(newSize.size),
|
|
168
|
-
keyHint: newSize.size === 1 ? '0' : null,
|
|
169
|
-
label: (0, SizeSelector_1.getPreviewSizeLabel)(newSize),
|
|
170
|
-
leftItem: String(newSize.size) === String(size.size) ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
|
|
171
|
-
onClick: () => {
|
|
172
|
-
close();
|
|
173
|
-
setSize(() => newSize);
|
|
174
|
-
},
|
|
175
|
-
subMenu: null,
|
|
176
|
-
type: 'item',
|
|
177
|
-
value: newSize.size,
|
|
178
|
-
})),
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: 'timeline-divider',
|
|
183
|
-
type: 'divider',
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
id: 'left-sidebar',
|
|
187
|
-
label: 'Sidebar',
|
|
188
|
-
keyHint: null,
|
|
189
|
-
type: 'item',
|
|
190
|
-
value: 'preview-size',
|
|
191
|
-
leftItem: null,
|
|
192
|
-
subMenu: {
|
|
193
|
-
leaveLeftSpace: true,
|
|
194
|
-
preselectIndex: 0,
|
|
195
|
-
items: [
|
|
196
|
-
{
|
|
197
|
-
id: 'sidebar-responsive',
|
|
198
|
-
keyHint: null,
|
|
199
|
-
label: 'Responsive',
|
|
200
|
-
leftItem: sidebarCollapsedState === 'responsive' ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
|
|
201
|
-
onClick: () => {
|
|
202
|
-
setSidebarCollapsedState('responsive');
|
|
203
|
-
},
|
|
204
|
-
subMenu: null,
|
|
205
|
-
type: 'item',
|
|
206
|
-
value: 'responsive',
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
id: 'sidebar-expanded',
|
|
210
|
-
keyHint: null,
|
|
211
|
-
label: 'Expanded',
|
|
212
|
-
leftItem: sidebarCollapsedState === 'expanded' ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
|
|
213
|
-
onClick: () => {
|
|
214
|
-
setSidebarCollapsedState('expanded');
|
|
215
|
-
},
|
|
216
|
-
subMenu: null,
|
|
217
|
-
type: 'item',
|
|
218
|
-
value: 'expanded',
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
id: 'sidebar-collapsed',
|
|
222
|
-
keyHint: null,
|
|
223
|
-
label: 'Collapsed',
|
|
224
|
-
leftItem: sidebarCollapsedState === 'collapsed' ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
|
|
225
|
-
onClick: () => {
|
|
226
|
-
setSidebarCollapsedState('collapsed');
|
|
227
|
-
},
|
|
228
|
-
subMenu: null,
|
|
229
|
-
type: 'item',
|
|
230
|
-
value: 'collapsed',
|
|
231
|
-
},
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
onClick: () => undefined,
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: 'timeline-divider',
|
|
238
|
-
type: 'divider',
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
id: 'checkerboard',
|
|
242
|
-
keyHint: 'T',
|
|
243
|
-
label: 'Transparency as checkerboard',
|
|
244
|
-
onClick: () => {
|
|
245
|
-
close();
|
|
246
|
-
setCheckerboard((c) => !c);
|
|
247
|
-
},
|
|
248
|
-
type: 'item',
|
|
249
|
-
value: 'checkerboard',
|
|
250
|
-
leftItem: checkerboard ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
|
|
251
|
-
subMenu: null,
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
id: 'timeline-divider',
|
|
255
|
-
type: 'divider',
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
id: 'rich-timeline',
|
|
259
|
-
keyHint: null,
|
|
260
|
-
label: 'Rich timeline',
|
|
261
|
-
onClick: () => {
|
|
262
|
-
close();
|
|
263
|
-
setRichTimeline((r) => !r);
|
|
264
|
-
},
|
|
265
|
-
type: 'item',
|
|
266
|
-
value: 'rich-timeline',
|
|
267
|
-
leftItem: richTimeline ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
|
|
268
|
-
subMenu: null,
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
id: 'expand-all',
|
|
272
|
-
keyHint: null,
|
|
273
|
-
label: 'Expand all',
|
|
274
|
-
onClick: () => {
|
|
275
|
-
var _a;
|
|
276
|
-
close();
|
|
277
|
-
(_a = timeline_ref_1.timelineRef.current) === null || _a === void 0 ? void 0 : _a.expandAll();
|
|
278
|
-
},
|
|
279
|
-
type: 'item',
|
|
280
|
-
value: 'expand-all',
|
|
281
|
-
leftItem: null,
|
|
282
|
-
subMenu: null,
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
id: 'collapse-all',
|
|
286
|
-
keyHint: null,
|
|
287
|
-
label: 'Collapse all',
|
|
288
|
-
onClick: () => {
|
|
289
|
-
var _a;
|
|
290
|
-
close();
|
|
291
|
-
(_a = timeline_ref_1.timelineRef.current) === null || _a === void 0 ? void 0 : _a.collapseAll();
|
|
292
|
-
},
|
|
293
|
-
type: 'item',
|
|
294
|
-
value: 'collapse-all',
|
|
295
|
-
leftItem: null,
|
|
296
|
-
subMenu: null,
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
id: 'in-out-divider',
|
|
300
|
-
type: 'divider',
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
id: 'in-mark',
|
|
304
|
-
keyHint: 'I',
|
|
305
|
-
label: 'In Mark',
|
|
306
|
-
leftItem: null,
|
|
307
|
-
onClick: () => {
|
|
308
|
-
var _a;
|
|
309
|
-
close();
|
|
310
|
-
(_a = TimelineInOutToggle_1.inOutHandles.current) === null || _a === void 0 ? void 0 : _a.inMarkClick(null);
|
|
311
|
-
},
|
|
312
|
-
subMenu: null,
|
|
313
|
-
type: 'item',
|
|
314
|
-
value: 'in-mark',
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
id: 'out-mark',
|
|
318
|
-
keyHint: 'O',
|
|
319
|
-
label: 'Out Mark',
|
|
320
|
-
leftItem: null,
|
|
321
|
-
onClick: () => {
|
|
322
|
-
var _a;
|
|
323
|
-
close();
|
|
324
|
-
(_a = TimelineInOutToggle_1.inOutHandles.current) === null || _a === void 0 ? void 0 : _a.outMarkClick(null);
|
|
325
|
-
},
|
|
326
|
-
subMenu: null,
|
|
327
|
-
type: 'item',
|
|
328
|
-
value: 'out-mark',
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
id: 'x-mark',
|
|
332
|
-
keyHint: 'X',
|
|
333
|
-
label: 'Clear In/Out Marks',
|
|
334
|
-
leftItem: null,
|
|
335
|
-
onClick: () => {
|
|
336
|
-
var _a;
|
|
337
|
-
close();
|
|
338
|
-
(_a = TimelineInOutToggle_1.inOutHandles.current) === null || _a === void 0 ? void 0 : _a.clearMarks();
|
|
339
|
-
},
|
|
340
|
-
subMenu: null,
|
|
341
|
-
type: 'item',
|
|
342
|
-
value: 'clear-marks',
|
|
343
|
-
},
|
|
344
|
-
],
|
|
345
|
-
},
|
|
346
|
-
'EyeDropper' in window
|
|
347
|
-
? {
|
|
348
|
-
id: 'tools',
|
|
349
|
-
label: 'Tools',
|
|
350
|
-
leaveLeftPadding: false,
|
|
351
|
-
items: [
|
|
352
|
-
{
|
|
353
|
-
id: 'color-picker',
|
|
354
|
-
value: 'color-picker',
|
|
355
|
-
label: 'Color Picker',
|
|
356
|
-
onClick: () => (0, pick_color_1.pickColor)(),
|
|
357
|
-
leftItem: null,
|
|
358
|
-
keyHint: null,
|
|
359
|
-
subMenu: null,
|
|
360
|
-
type: 'item',
|
|
361
|
-
},
|
|
362
|
-
],
|
|
363
|
-
}
|
|
364
|
-
: null,
|
|
365
|
-
{
|
|
366
|
-
id: 'help',
|
|
367
|
-
label: 'Help',
|
|
368
|
-
leaveLeftPadding: false,
|
|
369
|
-
items: [
|
|
370
|
-
{
|
|
371
|
-
id: 'shortcuts',
|
|
372
|
-
value: 'shortcuts',
|
|
373
|
-
label: (0, use_keybinding_1.areKeyboardShortcutsDisabled)()
|
|
374
|
-
? 'Shortcuts (disabled)'
|
|
375
|
-
: 'Shortcuts',
|
|
376
|
-
onClick: () => {
|
|
377
|
-
close();
|
|
378
|
-
setSelectedModal({
|
|
379
|
-
type: 'shortcuts',
|
|
380
|
-
});
|
|
381
|
-
},
|
|
382
|
-
keyHint: '?',
|
|
383
|
-
leftItem: null,
|
|
384
|
-
subMenu: null,
|
|
385
|
-
type: 'item',
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
id: 'docs',
|
|
389
|
-
value: 'docs',
|
|
390
|
-
label: 'Docs',
|
|
391
|
-
onClick: () => {
|
|
392
|
-
close();
|
|
393
|
-
openExternal('https://remotion.dev/docs');
|
|
394
|
-
},
|
|
395
|
-
type: 'item',
|
|
396
|
-
keyHint: null,
|
|
397
|
-
leftItem: null,
|
|
398
|
-
subMenu: null,
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
id: 'file-issue',
|
|
402
|
-
value: 'file-issue',
|
|
403
|
-
label: 'File an issue',
|
|
404
|
-
onClick: () => {
|
|
405
|
-
close();
|
|
406
|
-
openExternal('https://github.com/remotion-dev/remotion/issues/new/choose');
|
|
407
|
-
},
|
|
408
|
-
type: 'item',
|
|
409
|
-
keyHint: null,
|
|
410
|
-
leftItem: null,
|
|
411
|
-
subMenu: null,
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
id: 'discord',
|
|
415
|
-
value: 'discord',
|
|
416
|
-
label: 'Join Discord community',
|
|
417
|
-
onClick: () => {
|
|
418
|
-
close();
|
|
419
|
-
openExternal('https://discord.com/invite/6VzzNDwUwV');
|
|
420
|
-
},
|
|
421
|
-
type: 'item',
|
|
422
|
-
keyHint: null,
|
|
423
|
-
leftItem: null,
|
|
424
|
-
subMenu: null,
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
id: 'help-divider',
|
|
428
|
-
type: 'divider',
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
id: 'insta',
|
|
432
|
-
value: 'insta',
|
|
433
|
-
label: 'Instagram',
|
|
434
|
-
onClick: () => {
|
|
435
|
-
close();
|
|
436
|
-
openExternal('https://instagram.com/remotion.dev');
|
|
437
|
-
},
|
|
438
|
-
type: 'item',
|
|
439
|
-
keyHint: null,
|
|
440
|
-
leftItem: null,
|
|
441
|
-
subMenu: null,
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
id: 'twitter',
|
|
445
|
-
value: 'twitter',
|
|
446
|
-
label: 'Twitter',
|
|
447
|
-
onClick: () => {
|
|
448
|
-
close();
|
|
449
|
-
openExternal('https://twitter.com/remotion_dev');
|
|
450
|
-
},
|
|
451
|
-
type: 'item',
|
|
452
|
-
keyHint: null,
|
|
453
|
-
leftItem: null,
|
|
454
|
-
subMenu: null,
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
id: 'tiktok',
|
|
458
|
-
value: 'tiktok',
|
|
459
|
-
label: 'TikTok',
|
|
460
|
-
onClick: () => {
|
|
461
|
-
close();
|
|
462
|
-
openExternal('https://www.tiktok.com/@remotion.dev');
|
|
463
|
-
},
|
|
464
|
-
type: 'item',
|
|
465
|
-
keyHint: null,
|
|
466
|
-
leftItem: null,
|
|
467
|
-
subMenu: null,
|
|
468
|
-
},
|
|
469
|
-
],
|
|
470
|
-
},
|
|
471
|
-
].filter(remotion_1.Internals.truthy);
|
|
472
|
-
return struct;
|
|
473
|
-
}, [
|
|
474
|
-
checkerboard,
|
|
475
|
-
close,
|
|
476
|
-
richTimeline,
|
|
477
|
-
setCheckerboard,
|
|
478
|
-
setRichTimeline,
|
|
479
|
-
setSelectedModal,
|
|
480
|
-
setSidebarCollapsedState,
|
|
481
|
-
setSize,
|
|
482
|
-
sidebarCollapsedState,
|
|
483
|
-
size.size,
|
|
484
|
-
sizes,
|
|
485
|
-
]);
|
|
52
|
+
const structure = (0, use_menu_structure_1.useMenuStructure)(closeMenu);
|
|
486
53
|
const menus = (0, react_1.useMemo)(() => {
|
|
487
54
|
return structure.map((s) => s.id);
|
|
488
55
|
}, [structure]);
|
|
@@ -508,8 +75,8 @@ const MenuToolbar = () => {
|
|
|
508
75
|
const onItemQuit = (0, react_1.useCallback)(() => {
|
|
509
76
|
setSelected(null);
|
|
510
77
|
}, [setSelected]);
|
|
511
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", className: "css-reset", style: row, children: [structure.map((s) => {
|
|
512
|
-
|
|
513
|
-
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Row, { justify: "center", align: "center", className: "css-reset", style: row, children: [(0, jsx_runtime_1.jsxs)("div", { style: fixedWidthLeft, children: [structure.map((s) => {
|
|
79
|
+
return ((0, jsx_runtime_1.jsx)(MenuItem_1.MenuItem, { selected: selected === s.id, onItemSelected: itemClicked, onItemHovered: itemHovered, id: s.id, label: s.label, onItemQuit: onItemQuit, menu: s, onPreviousMenu: onPreviousMenu, onNextMenu: onNextMenu, leaveLeftPadding: s.leaveLeftPadding }, s.id));
|
|
80
|
+
}), (0, jsx_runtime_1.jsx)(UpdateCheck_1.UpdateCheck, {})] }), (0, jsx_runtime_1.jsx)("div", { style: flex }), (0, jsx_runtime_1.jsx)(MenuBuildIndicator_1.MenuBuildIndicator, {}), (0, jsx_runtime_1.jsx)("div", { style: flex }), (0, jsx_runtime_1.jsx)("div", { style: fixedWidthRight, children: (0, jsx_runtime_1.jsx)(SidebarCollapserControls_1.SidebarCollapserControls, {}) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 })] }));
|
|
514
81
|
};
|
|
515
82
|
exports.MenuToolbar = MenuToolbar;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModalContainer = void 0;
|
|
3
|
+
exports.ModalContainer = exports.getMaxModalHeight = exports.getMaxModalWidth = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const colors_1 = require("../helpers/colors");
|
|
6
6
|
const z_index_1 = require("../state/z-index");
|
|
7
|
+
const padding = 20;
|
|
8
|
+
const getMaxModalWidth = (width) => {
|
|
9
|
+
return `min(calc(100vw - ${padding * 2}px), calc(${width}px - ${padding * 2}px))`;
|
|
10
|
+
};
|
|
11
|
+
exports.getMaxModalWidth = getMaxModalWidth;
|
|
12
|
+
const getMaxModalHeight = (height) => {
|
|
13
|
+
return `min(calc(100vh - ${padding * 2}px), calc(${height}px - ${padding * 2}px))`;
|
|
14
|
+
};
|
|
15
|
+
exports.getMaxModalHeight = getMaxModalHeight;
|
|
7
16
|
const backgroundOverlay = {
|
|
8
17
|
backgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
9
18
|
backdropFilter: `blur(1px)`,
|
|
@@ -11,13 +20,13 @@ const backgroundOverlay = {
|
|
|
11
20
|
height: '100%',
|
|
12
21
|
width: '100%',
|
|
13
22
|
display: 'flex',
|
|
14
|
-
|
|
15
|
-
alignItems: 'center',
|
|
23
|
+
padding,
|
|
16
24
|
};
|
|
17
25
|
const panel = {
|
|
18
26
|
backgroundColor: colors_1.BACKGROUND,
|
|
19
27
|
boxShadow: '0 0 4px black',
|
|
20
28
|
color: 'white',
|
|
29
|
+
margin: 'auto',
|
|
21
30
|
};
|
|
22
31
|
const ModalContainer = ({ children, onEscape, onOutsideClick }) => {
|
|
23
32
|
return ((0, jsx_runtime_1.jsx)("div", { className: "css-reset", style: backgroundOverlay, role: "dialog", "aria-modal": "true", children: (0, jsx_runtime_1.jsx)(z_index_1.HigherZIndex, { onOutsideClick: onOutsideClick, onEscape: onEscape, children: (0, jsx_runtime_1.jsx)("div", { style: panel, children: children }) }) }));
|
|
File without changes
|
|
@@ -10,10 +10,14 @@ const container = {
|
|
|
10
10
|
display: 'flex',
|
|
11
11
|
flexDirection: 'row',
|
|
12
12
|
alignItems: 'center',
|
|
13
|
-
padding:
|
|
13
|
+
padding: '12px 16px',
|
|
14
14
|
width: '100%',
|
|
15
15
|
borderBottom: '1px solid black',
|
|
16
16
|
};
|
|
17
|
+
const titleStyle = {
|
|
18
|
+
fontSize: 14,
|
|
19
|
+
color: 'white',
|
|
20
|
+
};
|
|
17
21
|
const icon = {
|
|
18
22
|
height: 20,
|
|
19
23
|
width: 20,
|
|
@@ -23,6 +27,6 @@ const NewCompHeader = ({ title }) => {
|
|
|
23
27
|
const onPress = (0, react_1.useCallback)(() => {
|
|
24
28
|
setSelectedModal(null);
|
|
25
29
|
}, [setSelectedModal]);
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { children: title }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(CancelButton_1.CancelButton, { style: icon, onPress: onPress })] }));
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: titleStyle, children: title }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(CancelButton_1.CancelButton, { style: icon, onPress: onPress })] }));
|
|
27
31
|
};
|
|
28
32
|
exports.NewCompHeader = NewCompHeader;
|
|
@@ -0,0 +1,23 @@
|
|
|
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.Modals = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const client_id_1 = require("../helpers/client-id");
|
|
10
|
+
const modals_1 = require("../state/modals");
|
|
11
|
+
const NewComposition_1 = __importDefault(require("./NewComposition/NewComposition"));
|
|
12
|
+
const QuickSwitcher_1 = __importDefault(require("./QuickSwitcher/QuickSwitcher"));
|
|
13
|
+
const RenderModal_1 = require("./RenderModal/RenderModal");
|
|
14
|
+
const RenderStatusModal_1 = require("./RenderModal/RenderStatusModal");
|
|
15
|
+
const UpdateModal_1 = require("./UpdateModal/UpdateModal");
|
|
16
|
+
const Modals = () => {
|
|
17
|
+
const { selectedModal: modalContextType } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
18
|
+
const canRender = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx).type === 'connected';
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [modalContextType && modalContextType.type === 'new-comp' && ((0, jsx_runtime_1.jsx)(NewComposition_1.default, { initialCompType: modalContextType.compType })), modalContextType && canRender && modalContextType.type === 'render' && ((0, jsx_runtime_1.jsx)(RenderModal_1.RenderModalWithLoader, { initialFrame: modalContextType.initialFrame, compositionId: modalContextType.compositionId, initialVideoImageFormat: modalContextType.initialVideoImageFormat, initialJpegQuality: modalContextType.initialJpegQuality, initialOutName: modalContextType.initialOutName, initialScale: modalContextType.initialScale, initialVerbose: modalContextType.initialVerbose, initialRenderType: modalContextType.initialRenderType, initialVideoCodecForAudioTab: modalContextType.initialVideoCodecForAudioTab, initialVideoCodecForVideoTab: modalContextType.initialVideoCodecForVideoTab, initialConcurrency: modalContextType.initialConcurrency, maxConcurrency: modalContextType.maxConcurrency, minConcurrency: modalContextType.minConcurrency, initialStillImageFormat: modalContextType.initialStillImageFormat, initialMuted: modalContextType.initialMuted, initialEnforceAudioTrack: modalContextType.initialEnforceAudioTrack, initialProResProfile: modalContextType.initialProResProfile, initialPixelFormat: modalContextType.initialPixelFormat, initialAudioBitrate: modalContextType.initialAudioBitrate, initialVideoBitrate: modalContextType.initialVideoBitrate, initialEveryNthFrame: modalContextType.initialEveryNthFrame, initialNumberOfGifLoops: modalContextType.initialNumberOfGifLoops, initialDelayRenderTimeout: modalContextType.initialDelayRenderTimeout, initialAudioCodec: modalContextType.initialAudioCodec, initialEnvVariables: modalContextType.initialEnvVariables, initialDisableWebSecurity: modalContextType.initialDisableWebSecurity, initialGl: modalContextType.initialOpenGlRenderer, initialHeadless: modalContextType.initialHeadless, initialIgnoreCertificateErrors: modalContextType.initialIgnoreCertificateErrors, defaultProps: modalContextType.defaultProps, inFrameMark: modalContextType.inFrameMark, outFrameMark: modalContextType.outFrameMark })), modalContextType &&
|
|
20
|
+
canRender &&
|
|
21
|
+
modalContextType.type === 'render-progress' && ((0, jsx_runtime_1.jsx)(RenderStatusModal_1.RenderStatusModal, { jobId: modalContextType.jobId })), modalContextType && modalContextType.type === 'update' && ((0, jsx_runtime_1.jsx)(UpdateModal_1.UpdateModal, { info: modalContextType.info })), modalContextType && modalContextType.type === 'quick-switcher' && ((0, jsx_runtime_1.jsx)(QuickSwitcher_1.default, { invocationTimestamp: modalContextType.invocationTimestamp, initialMode: modalContextType.mode }))] }));
|
|
22
|
+
};
|
|
23
|
+
exports.Modals = Modals;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModalsProvider = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const modals_1 = require("../state/modals");
|
|
7
|
+
const ModalsProvider = ({ children }) => {
|
|
8
|
+
const [modalContextType, setModalContextType] = (0, react_1.useState)(null);
|
|
9
|
+
const modalsContext = (0, react_1.useMemo)(() => {
|
|
10
|
+
return {
|
|
11
|
+
selectedModal: modalContextType,
|
|
12
|
+
setSelectedModal: setModalContextType,
|
|
13
|
+
};
|
|
14
|
+
}, [modalContextType]);
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(modals_1.ModalsContext.Provider, { value: modalsContext, children: children }));
|
|
16
|
+
};
|
|
17
|
+
exports.ModalsProvider = ModalsProvider;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,6 +9,9 @@ const style = {
|
|
|
9
9
|
backgroundColor: 'transparent',
|
|
10
10
|
color: 'white',
|
|
11
11
|
cursor: 'pointer',
|
|
12
|
+
display: 'inline-flex',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
alignItems: 'center',
|
|
12
15
|
};
|
|
13
16
|
const CancelButton = ({ onPress, ...props }) => {
|
|
14
17
|
const { tabIndex } = (0, z_index_1.useZIndex)();
|