@remotion/cli 4.0.0-alpha.217 → 4.0.0-alpha4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ansi/ansi-diff.d.ts +1 -2
- package/dist/ansi/ansi-diff.js +20 -14
- package/dist/ansi/ansi-split.d.ts +0 -1
- package/dist/ansi/ansi-split.js +3 -16
- package/dist/benchmark.js +23 -64
- package/dist/composition-prompts.d.ts +4 -3
- package/dist/composition-prompts.js +1 -0
- package/dist/compositions.js +4 -10
- package/dist/config/bitrate.d.ts +2 -2
- package/dist/config/bitrate.js +2 -2
- package/dist/config/browser.d.ts +3 -1
- package/dist/config/browser.js +12 -2
- package/dist/config/codec.d.ts +4 -0
- package/dist/config/codec.js +21 -1
- package/dist/config/image-format.d.ts +3 -5
- package/dist/config/image-format.js +10 -32
- package/dist/config/index.d.ts +14 -255
- package/dist/config/index.js +49 -16
- package/dist/config/public-dir.d.ts +1 -1
- package/dist/config/scale.d.ts +1 -2
- package/dist/determine-image-format.d.ts +4 -5
- package/dist/determine-image-format.js +4 -17
- package/dist/download-progress.d.ts +2 -2
- package/dist/download-progress.js +3 -11
- package/dist/editor/components/Canvas.js +0 -3
- package/dist/editor/components/CompositionSelector.js +4 -2
- package/dist/editor/components/CompositionSelectorItem.d.ts +3 -3
- package/dist/editor/components/CompositionSelectorItem.js +6 -24
- package/dist/editor/components/CurrentComposition.js +19 -4
- package/dist/editor/components/Editor.js +11 -2
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.js +86 -10
- package/dist/editor/components/GlobalKeybindings.js +0 -4
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/KeyboardShortcutsExplainer.js +4 -5
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -0
- package/dist/editor/components/Menu/MenuSubItem.js +3 -15
- package/dist/editor/components/Menu/is-menu-item.d.ts +0 -2
- package/dist/editor/components/Menu/is-menu-item.js +1 -3
- package/dist/editor/components/Menu/styles.d.ts +0 -4
- package/dist/editor/components/Menu/styles.js +4 -13
- package/dist/editor/components/MenuToolbar.js +1 -2
- package/dist/editor/components/ModalContainer.d.ts +0 -2
- package/dist/editor/components/ModalContainer.js +3 -12
- package/dist/editor/components/ModalHeader.js +2 -6
- package/dist/editor/components/NewComposition/CancelButton.js +0 -3
- package/dist/editor/components/NewComposition/ComboBox.js +15 -23
- package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -4
- package/dist/editor/components/NewComposition/InputDragger.js +7 -12
- package/dist/editor/components/NewComposition/MenuContent.js +1 -14
- package/dist/editor/components/NewComposition/NewCompDuration.js +2 -2
- package/dist/editor/components/NewComposition/NewComposition.js +5 -8
- package/dist/editor/components/NewComposition/RemInput.d.ts +2 -14
- package/dist/editor/components/NewComposition/RemInput.js +9 -24
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -2
- package/dist/editor/components/NewComposition/ValidationMessage.js +8 -18
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -1
- package/dist/editor/components/Notifications/NotificationCenter.js +1 -11
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +4 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +14 -4
- package/dist/editor/components/PlayPause.js +0 -6
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +0 -3
- package/dist/editor/components/PlaybackRateSelector.d.ts +2 -0
- package/dist/editor/components/PlaybackRateSelector.js +6 -5
- package/dist/editor/components/Preview.d.ts +1 -0
- package/dist/editor/components/Preview.js +4 -4
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +3 -8
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +2 -4
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +27 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +3 -2
- package/dist/editor/components/SizeSelector.d.ts +1 -0
- package/dist/editor/components/SizeSelector.js +3 -3
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +2 -1
- package/dist/editor/components/Splitter/SplitterHandle.js +7 -15
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +1 -1
- package/dist/editor/components/Timeline/Timeline.js +1 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +5 -4
- package/dist/editor/components/Timeline/TimelineListItem.js +1 -2
- package/dist/editor/components/Timeline/TimelineScrollable.js +1 -2
- package/dist/editor/components/Timeline/TimelineSequence.js +14 -2
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +1 -2
- package/dist/editor/components/Timeline/TimelineZoomControls.js +5 -2
- package/dist/editor/components/Timeline/imperative-state.d.ts +4 -0
- package/dist/editor/components/Timeline/imperative-state.js +13 -13
- package/dist/editor/components/Timeline/is-collapsed.js +3 -2
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +1 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +6 -5
- package/dist/editor/components/TimelineInOutToggle.js +0 -3
- package/dist/editor/components/TopPanel.d.ts +0 -1
- package/dist/editor/components/TopPanel.js +16 -30
- package/dist/editor/components/ZoomPersistor.d.ts +1 -0
- package/dist/editor/components/ZoomPersistor.js +3 -2
- package/dist/editor/components/layout.d.ts +1 -3
- package/dist/editor/components/layout.js +7 -9
- package/dist/editor/helpers/calculate-timeline.d.ts +4 -0
- package/dist/editor/helpers/colors.d.ts +1 -3
- package/dist/editor/helpers/colors.js +3 -6
- package/dist/editor/helpers/create-folder-tree.d.ts +3 -2
- package/dist/editor/helpers/create-folder-tree.js +4 -3
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -2
- package/dist/editor/helpers/is-composition-still.d.ts +2 -2
- package/dist/editor/helpers/is-composition-still.js +0 -3
- package/dist/editor/helpers/use-keybinding.d.ts +0 -1
- package/dist/editor/helpers/use-keybinding.js +0 -9
- package/dist/editor/helpers/use-menu-structure.js +51 -99
- package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/caret.d.ts +1 -4
- package/dist/editor/icons/caret.js +1 -17
- package/dist/editor/icons/folder.d.ts +2 -6
- package/dist/editor/icons/folder.js +4 -4
- package/dist/editor/icons/still.d.ts +1 -3
- package/dist/editor/icons/still.js +2 -2
- package/dist/editor/state/keybindings.d.ts +1 -2
- package/dist/editor/state/modals.d.ts +0 -38
- package/dist/editor/state/preview-size.d.ts +1 -0
- package/dist/editor/state/preview-size.js +4 -3
- package/dist/editor/state/sidebar.d.ts +3 -7
- package/dist/editor/state/sidebar.js +13 -42
- package/dist/editor/state/timeline-ref.d.ts +1 -2
- package/dist/editor/state/z-index.d.ts +5 -0
- package/dist/editor/state/z-index.js +6 -16
- package/dist/event-source-events.d.ts +0 -15
- package/dist/event-source.d.ts +0 -2
- package/dist/event-source.js +5 -31
- package/dist/get-cli-options.d.ts +12 -3
- package/dist/get-cli-options.js +60 -7
- package/dist/get-composition-id.d.ts +3 -7
- package/dist/get-composition-id.js +3 -17
- package/dist/get-composition-with-dimension-override.d.ts +4 -5
- package/dist/get-composition-with-dimension-override.js +2 -6
- package/dist/get-config-file-name.d.ts +2 -0
- package/dist/get-config-file-name.js +7 -7
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +48 -39
- package/dist/get-filename.d.ts +1 -5
- package/dist/get-filename.js +4 -6
- package/dist/get-final-output-codec.d.ts +1 -2
- package/dist/get-final-output-codec.js +1 -4
- package/dist/get-input-props.d.ts +5 -1
- package/dist/get-input-props.js +13 -11
- package/dist/image-formats.d.ts +2 -5
- package/dist/image-formats.js +6 -16
- package/dist/index.d.ts +22 -91
- package/dist/index.js +13 -12
- package/dist/list-of-remotion-packages.js +0 -1
- package/dist/load-config.js +1 -1
- package/dist/log.d.ts +0 -14
- package/dist/log.js +8 -24
- package/dist/parse-command-line.d.ts +5 -5
- package/dist/parse-command-line.js +14 -6
- package/dist/preview-server/dev-middleware/middleware.d.ts +1 -0
- package/dist/preview-server/dev-middleware/middleware.js +2 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +4 -8
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +8 -12
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +1 -2
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +1 -16
- package/dist/preview-server/hot-middleware/client.js +2 -2
- package/dist/preview-server/live-events.d.ts +0 -2
- package/dist/preview-server/live-events.js +2 -22
- package/dist/preview-server/public-folder.d.ts +5 -0
- package/dist/preview-server/public-folder.js +4 -3
- package/dist/preview-server/routes.d.ts +1 -2
- package/dist/preview-server/routes.js +13 -71
- package/dist/preview-server/start-server.js +0 -1
- package/dist/preview.js +21 -8
- package/dist/previewEntry.js +3 -2
- package/dist/print-compositions.d.ts +2 -2
- package/dist/print-error.js +2 -4
- package/dist/print-help.js +8 -4
- package/dist/progress-bar.d.ts +37 -17
- package/dist/progress-bar.js +41 -102
- package/dist/render.js +232 -42
- package/dist/select-composition.d.ts +1 -2
- package/dist/setup-cache.d.ts +9 -12
- package/dist/setup-cache.js +20 -29
- package/dist/still.js +130 -25
- package/dist/user-passed-output-location.js +7 -2
- package/package.json +72 -88
- package/styles/styles.css +3 -13
- package/dist/codemods/update-default-props.d.ts +0 -5
- package/dist/codemods/update-default-props.js +0 -143
- package/dist/color-math.d.ts +0 -2
- package/dist/color-math.js +0 -11
- package/dist/config/jpeg-quality.d.ts +0 -2
- package/dist/config/jpeg-quality.js +0 -17
- package/dist/convert-entry-point-to-serve-url.d.ts +0 -1
- package/dist/convert-entry-point-to-serve-url.js +0 -15
- package/dist/editor/components/Checkbox.d.ts +0 -6
- package/dist/editor/components/Checkbox.js +0 -42
- package/dist/editor/components/CheckerboardProvider.d.ts +0 -4
- package/dist/editor/components/CheckerboardProvider.js +0 -24
- package/dist/editor/components/CollapsableOptions.d.ts +0 -6
- package/dist/editor/components/CollapsableOptions.js +0 -35
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +0 -3
- package/dist/editor/components/CurrentCompositionSideEffects.js +0 -51
- package/dist/editor/components/InlineAction.d.ts +0 -5
- package/dist/editor/components/InlineAction.js +0 -35
- package/dist/editor/components/MediaVolumeProvider.d.ts +0 -4
- package/dist/editor/components/MediaVolumeProvider.js +0 -25
- package/dist/editor/components/Modals.d.ts +0 -2
- package/dist/editor/components/Modals.js +0 -23
- package/dist/editor/components/ModalsProvider.d.ts +0 -4
- package/dist/editor/components/ModalsProvider.js +0 -17
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +0 -7
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +0 -53
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +0 -7
- package/dist/editor/components/NewComposition/RemTextarea.js +0 -92
- package/dist/editor/components/PlayerEmitterContext.d.ts +0 -4
- package/dist/editor/components/PlayerEmitterContext.js +0 -11
- package/dist/editor/components/RenderButton.d.ts +0 -6
- package/dist/editor/components/RenderButton.js +0 -80
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/CliCopyButton.js +0 -22
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +0 -16
- package/dist/editor/components/RenderModal/CrfSetting.js +0 -43
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +0 -16
- package/dist/editor/components/RenderModal/EnvInput.d.ts +0 -11
- package/dist/editor/components/RenderModal/EnvInput.js +0 -74
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +0 -42
- package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +0 -5
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +0 -78
- package/dist/editor/components/RenderModal/InfoBubble.d.ts +0 -5
- package/dist/editor/components/RenderModal/InfoBubble.js +0 -115
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +0 -5
- package/dist/editor/components/RenderModal/InfoTooltip.js +0 -40
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +0 -5
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +0 -14
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +0 -12
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +0 -12
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/MutedSetting.js +0 -16
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +0 -26
- package/dist/editor/components/RenderModal/NumberSetting.d.ts +0 -12
- package/dist/editor/components/RenderModal/NumberSetting.js +0 -29
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +0 -5
- package/dist/editor/components/RenderModal/OptionExplainer.js +0 -45
- package/dist/editor/components/RenderModal/RenderModal.d.ts +0 -35
- package/dist/editor/components/RenderModal/RenderModal.js +0 -575
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +0 -26
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +0 -61
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +0 -17
- package/dist/editor/components/RenderModal/RenderModalAudio.js +0 -46
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +0 -23
- package/dist/editor/components/RenderModal/RenderModalBasic.js +0 -79
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +0 -9
- package/dist/editor/components/RenderModal/RenderModalData.js +0 -210
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +0 -5
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +0 -55
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +0 -9
- package/dist/editor/components/RenderModal/RenderModalGif.js +0 -19
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +0 -2
- package/dist/editor/components/RenderModal/RenderModalHr.js +0 -18
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +0 -10
- package/dist/editor/components/RenderModal/RenderModalInput.js +0 -13
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.d.ts +0 -10
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.js +0 -118
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +0 -28
- package/dist/editor/components/RenderModal/RenderModalPicture.js +0 -56
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +0 -4
- package/dist/editor/components/RenderModal/RenderStatusModal.js +0 -72
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/ScaleSetting.js +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +0 -39
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.js +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +0 -11
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +0 -55
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +0 -40
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +0 -84
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +0 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +0 -28
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +0 -116
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +0 -76
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +0 -55
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +0 -72
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +0 -5
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +0 -23
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +0 -8
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +0 -88
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +0 -64
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +0 -52
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +0 -48
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +0 -81
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +0 -49
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +0 -158
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +0 -21
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +0 -2
- package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +0 -6
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +0 -49
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +0 -11
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +0 -26
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +0 -18
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-codec.js +0 -36
- package/dist/editor/components/RenderModal/layout.d.ts +0 -7
- package/dist/editor/components/RenderModal/layout.js +0 -45
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +0 -14
- package/dist/editor/components/RenderModal/out-name-checker.js +0 -80
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +0 -5
- package/dist/editor/components/RenderQueue/CircularProgress.js +0 -18
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueError.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +0 -40
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +0 -22
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +0 -43
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +0 -22
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +0 -33
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +0 -22
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +0 -2
- package/dist/editor/components/RenderQueue/SuccessIcon.js +0 -14
- package/dist/editor/components/RenderQueue/actions.d.ts +0 -58
- package/dist/editor/components/RenderQueue/actions.js +0 -119
- package/dist/editor/components/RenderQueue/context.d.ts +0 -18
- package/dist/editor/components/RenderQueue/context.js +0 -49
- package/dist/editor/components/RenderQueue/index.d.ts +0 -2
- package/dist/editor/components/RenderQueue/index.js +0 -43
- package/dist/editor/components/RenderQueue/item-style.d.ts +0 -2
- package/dist/editor/components/RenderQueue/item-style.js +0 -21
- package/dist/editor/components/RenderToolbarIcon.d.ts +0 -2
- package/dist/editor/components/RenderToolbarIcon.js +0 -101
- package/dist/editor/components/RendersTab.d.ts +0 -6
- package/dist/editor/components/RendersTab.js +0 -43
- package/dist/editor/components/RightPanel.d.ts +0 -8
- package/dist/editor/components/RightPanel.js +0 -76
- package/dist/editor/components/SegmentedControl.d.ts +0 -11
- package/dist/editor/components/SegmentedControl.js +0 -62
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +0 -4
- package/dist/editor/components/SetTimelineInOutProvider.js +0 -19
- package/dist/editor/components/SidebarCollapserControls.d.ts +0 -2
- package/dist/editor/components/SidebarCollapserControls.js +0 -122
- package/dist/editor/components/Tabs/index.d.ts +0 -11
- package/dist/editor/components/Tabs/index.js +0 -58
- package/dist/editor/components/Tabs/vertical.d.ts +0 -7
- package/dist/editor/components/Tabs/vertical.js +0 -43
- package/dist/editor/components/ZoomGesturesProvider.d.ts +0 -4
- package/dist/editor/components/ZoomGesturesProvider.js +0 -24
- package/dist/editor/components/get-zod-if-possible.d.ts +0 -10
- package/dist/editor/components/get-zod-if-possible.js +0 -79
- package/dist/editor/helpers/client-id.d.ts +0 -17
- package/dist/editor/helpers/client-id.js +0 -46
- package/dist/editor/helpers/convert-env-variables.d.ts +0 -2
- package/dist/editor/helpers/convert-env-variables.js +0 -20
- package/dist/editor/helpers/prores-labels.d.ts +0 -2
- package/dist/editor/helpers/prores-labels.js +0 -25
- package/dist/editor/helpers/render-modal-sections.d.ts +0 -10
- package/dist/editor/helpers/render-modal-sections.js +0 -32
- package/dist/editor/helpers/use-breakpoint.d.ts +0 -1
- package/dist/editor/helpers/use-breakpoint.js +0 -17
- package/dist/editor/helpers/use-file-existence.d.ts +0 -1
- package/dist/editor/helpers/use-file-existence.js +0 -66
- package/dist/editor/icons/RenderStillIcon.d.ts +0 -3
- package/dist/editor/icons/RenderStillIcon.js +0 -8
- package/dist/editor/icons/audio.d.ts +0 -2
- package/dist/editor/icons/audio.js +0 -6
- package/dist/editor/icons/data.d.ts +0 -2
- package/dist/editor/icons/data.js +0 -8
- package/dist/editor/icons/file.d.ts +0 -2
- package/dist/editor/icons/file.js +0 -6
- package/dist/editor/icons/frame.d.ts +0 -2
- package/dist/editor/icons/frame.js +0 -6
- package/dist/editor/icons/gear.d.ts +0 -2
- package/dist/editor/icons/gear.js +0 -6
- package/dist/editor/icons/gif.d.ts +0 -2
- package/dist/editor/icons/gif.js +0 -6
- package/dist/editor/icons/render.d.ts +0 -8
- package/dist/editor/icons/render.js +0 -12
- package/dist/editor/icons/video.d.ts +0 -5
- package/dist/editor/icons/video.js +0 -8
- package/dist/ffmpeg.d.ts +0 -2
- package/dist/ffmpeg.js +0 -21
- package/dist/file-watcher.d.ts +0 -9
- package/dist/file-watcher.js +0 -35
- package/dist/get-default-out-name.d.ts +0 -5
- package/dist/get-default-out-name.js +0 -10
- package/dist/preview-server/api-routes.d.ts +0 -4
- package/dist/preview-server/api-routes.js +0 -21
- package/dist/preview-server/api-types.d.ts +0 -25
- package/dist/preview-server/api-types.js +0 -2
- package/dist/preview-server/file-existence-watchers.d.ts +0 -13
- package/dist/preview-server/file-existence-watchers.js +0 -62
- package/dist/preview-server/handler.d.ts +0 -9
- package/dist/preview-server/handler.js +0 -34
- package/dist/preview-server/parse-body.d.ts +0 -2
- package/dist/preview-server/parse-body.js +0 -16
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +0 -10
- package/dist/preview-server/render-queue/get-default-video-contexts.js +0 -13
- package/dist/preview-server/render-queue/job.d.ts +0 -138
- package/dist/preview-server/render-queue/job.js +0 -2
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +0 -3
- package/dist/preview-server/render-queue/make-retry-payload.js +0 -91
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +0 -1
- package/dist/preview-server/render-queue/open-directory-in-finder.js +0 -43
- package/dist/preview-server/render-queue/process-still.d.ts +0 -8
- package/dist/preview-server/render-queue/process-still.js +0 -46
- package/dist/preview-server/render-queue/process-video.d.ts +0 -8
- package/dist/preview-server/render-queue/process-video.js +0 -63
- package/dist/preview-server/render-queue/queue.d.ts +0 -9
- package/dist/preview-server/render-queue/queue.js +0 -212
- package/dist/preview-server/routes/add-render.d.ts +0 -3
- package/dist/preview-server/routes/add-render.js +0 -76
- package/dist/preview-server/routes/can-update-default-props.d.ts +0 -4
- package/dist/preview-server/routes/can-update-default-props.js +0 -39
- package/dist/preview-server/routes/cancel-render.d.ts +0 -3
- package/dist/preview-server/routes/cancel-render.js +0 -9
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +0 -3
- package/dist/preview-server/routes/open-in-file-explorer.js +0 -8
- package/dist/preview-server/routes/remove-render.d.ts +0 -3
- package/dist/preview-server/routes/remove-render.js +0 -9
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/subscribe-to-file-existence.js +0 -13
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +0 -13
- package/dist/preview-server/routes/update-default-props.d.ts +0 -3
- package/dist/preview-server/routes/update-default-props.js +0 -24
- package/dist/progress-types.d.ts +0 -32
- package/dist/progress-types.js +0 -17
- package/dist/render-flows/render.d.ts +0 -47
- package/dist/render-flows/render.js +0 -293
- package/dist/render-flows/still.d.ts +0 -29
- package/dist/render-flows/still.js +0 -174
- package/dist/required-chromium-options.d.ts +0 -3
- package/dist/required-chromium-options.js +0 -2
|
@@ -15,9 +15,9 @@ const checkerboard_1 = require("../state/checkerboard");
|
|
|
15
15
|
const editor_zoom_gestures_1 = require("../state/editor-zoom-gestures");
|
|
16
16
|
const modals_1 = require("../state/modals");
|
|
17
17
|
const preview_size_1 = require("../state/preview-size");
|
|
18
|
+
const rich_timeline_1 = require("../state/rich-timeline");
|
|
18
19
|
const sidebar_1 = require("../state/sidebar");
|
|
19
20
|
const timeline_ref_1 = require("../state/timeline-ref");
|
|
20
|
-
const client_id_1 = require("./client-id");
|
|
21
21
|
const open_in_editor_1 = require("./open-in-editor");
|
|
22
22
|
const pick_color_1 = require("./pick-color");
|
|
23
23
|
const use_keybinding_1 = require("./use-keybinding");
|
|
@@ -32,9 +32,9 @@ const useMenuStructure = (closeMenu) => {
|
|
|
32
32
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
33
33
|
const { checkerboard, setCheckerboard } = (0, react_1.useContext)(checkerboard_1.CheckerboardContext);
|
|
34
34
|
const { editorZoomGestures, setEditorZoomGestures } = (0, react_1.useContext)(editor_zoom_gestures_1.EditorZoomGesturesContext);
|
|
35
|
+
const { richTimeline, setRichTimeline } = (0, react_1.useContext)(rich_timeline_1.RichTimelineContext);
|
|
35
36
|
const { size, setSize } = (0, react_1.useContext)(preview_size_1.PreviewSizeContext);
|
|
36
|
-
const {
|
|
37
|
-
const { setSidebarCollapsedState, sidebarCollapsedStateLeft, sidebarCollapsedStateRight, } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
37
|
+
const { setSidebarCollapsedState, sidebarCollapsedState } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
38
38
|
const sizes = (0, SizeSelector_1.getUniqueSizes)(size);
|
|
39
39
|
const structure = (0, react_1.useMemo)(() => {
|
|
40
40
|
const struct = [
|
|
@@ -127,35 +127,6 @@ const useMenuStructure = (closeMenu) => {
|
|
|
127
127
|
subMenu: null,
|
|
128
128
|
quickSwitcherLabel: 'New still...',
|
|
129
129
|
},
|
|
130
|
-
{
|
|
131
|
-
type: 'divider',
|
|
132
|
-
id: 'new-divider',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: 'render',
|
|
136
|
-
value: 'render',
|
|
137
|
-
label: 'Render...',
|
|
138
|
-
onClick: () => {
|
|
139
|
-
closeMenu();
|
|
140
|
-
if (type !== 'connected') {
|
|
141
|
-
(0, NotificationCenter_1.sendErrorNotification)('Preview server is offline');
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
const renderButton = document.getElementById('render-modal-button');
|
|
145
|
-
renderButton.click();
|
|
146
|
-
},
|
|
147
|
-
type: 'item',
|
|
148
|
-
keyHint: 'R',
|
|
149
|
-
leftItem: null,
|
|
150
|
-
subMenu: null,
|
|
151
|
-
quickSwitcherLabel: 'Render...',
|
|
152
|
-
},
|
|
153
|
-
window.remotion_editorName
|
|
154
|
-
? {
|
|
155
|
-
type: 'divider',
|
|
156
|
-
id: 'open-in-editor-divider',
|
|
157
|
-
}
|
|
158
|
-
: null,
|
|
159
130
|
window.remotion_editorName
|
|
160
131
|
? {
|
|
161
132
|
id: 'open-in-editor',
|
|
@@ -171,13 +142,25 @@ const useMenuStructure = (closeMenu) => {
|
|
|
171
142
|
})
|
|
172
143
|
.then((res) => res.json())
|
|
173
144
|
.then(({ success }) => {
|
|
145
|
+
var _a;
|
|
174
146
|
if (!success) {
|
|
175
|
-
(
|
|
147
|
+
(_a = NotificationCenter_1.notificationCenter.current) === null || _a === void 0 ? void 0 : _a.addNotification({
|
|
148
|
+
content: `Could not open ${window.remotion_editorName}`,
|
|
149
|
+
duration: 2000,
|
|
150
|
+
created: Date.now(),
|
|
151
|
+
id: String(Math.random()),
|
|
152
|
+
});
|
|
176
153
|
}
|
|
177
154
|
})
|
|
178
155
|
.catch((err) => {
|
|
156
|
+
var _a;
|
|
179
157
|
console.error(err);
|
|
180
|
-
(
|
|
158
|
+
(_a = NotificationCenter_1.notificationCenter.current) === null || _a === void 0 ? void 0 : _a.addNotification({
|
|
159
|
+
content: `Could not open ${window.remotion_editorName}`,
|
|
160
|
+
duration: 2000,
|
|
161
|
+
created: Date.now(),
|
|
162
|
+
id: String(Math.random()),
|
|
163
|
+
});
|
|
181
164
|
});
|
|
182
165
|
},
|
|
183
166
|
type: 'item',
|
|
@@ -246,7 +229,7 @@ const useMenuStructure = (closeMenu) => {
|
|
|
246
229
|
},
|
|
247
230
|
{
|
|
248
231
|
id: 'left-sidebar',
|
|
249
|
-
label: '
|
|
232
|
+
label: 'Sidebar',
|
|
250
233
|
keyHint: null,
|
|
251
234
|
type: 'item',
|
|
252
235
|
value: 'preview-size',
|
|
@@ -257,74 +240,27 @@ const useMenuStructure = (closeMenu) => {
|
|
|
257
240
|
preselectIndex: 0,
|
|
258
241
|
items: [
|
|
259
242
|
{
|
|
260
|
-
id: '
|
|
243
|
+
id: 'sidebar-responsive',
|
|
261
244
|
keyHint: null,
|
|
262
245
|
label: 'Responsive',
|
|
263
|
-
leftItem:
|
|
246
|
+
leftItem: sidebarCollapsedState === 'responsive' ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
|
|
264
247
|
onClick: () => {
|
|
265
248
|
closeMenu();
|
|
266
|
-
setSidebarCollapsedState(
|
|
267
|
-
left: 'responsive',
|
|
268
|
-
right: null,
|
|
269
|
-
});
|
|
249
|
+
setSidebarCollapsedState('responsive');
|
|
270
250
|
},
|
|
271
251
|
subMenu: null,
|
|
272
252
|
type: 'item',
|
|
273
253
|
value: 'responsive',
|
|
274
254
|
quickSwitcherLabel: null,
|
|
275
255
|
},
|
|
276
|
-
{
|
|
277
|
-
id: 'left-sidebar-expanded',
|
|
278
|
-
keyHint: null,
|
|
279
|
-
label: 'Expanded',
|
|
280
|
-
leftItem: sidebarCollapsedStateLeft === 'expanded' ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
|
|
281
|
-
onClick: () => {
|
|
282
|
-
closeMenu();
|
|
283
|
-
setSidebarCollapsedState({ left: 'expanded', right: null });
|
|
284
|
-
},
|
|
285
|
-
subMenu: null,
|
|
286
|
-
type: 'item',
|
|
287
|
-
value: 'expanded',
|
|
288
|
-
quickSwitcherLabel: 'Expand',
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
id: 'left-sidebar-collapsed',
|
|
292
|
-
keyHint: null,
|
|
293
|
-
label: 'Collapsed',
|
|
294
|
-
leftItem: sidebarCollapsedStateLeft === 'collapsed' ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
|
|
295
|
-
onClick: () => {
|
|
296
|
-
closeMenu();
|
|
297
|
-
setSidebarCollapsedState({ left: 'collapsed', right: null });
|
|
298
|
-
},
|
|
299
|
-
subMenu: null,
|
|
300
|
-
type: 'item',
|
|
301
|
-
value: 'collapsed',
|
|
302
|
-
quickSwitcherLabel: 'Collapse',
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
},
|
|
306
|
-
onClick: () => undefined,
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
id: 'right-sidebar',
|
|
310
|
-
label: 'Right Sidebar',
|
|
311
|
-
keyHint: null,
|
|
312
|
-
type: 'item',
|
|
313
|
-
value: 'preview-size',
|
|
314
|
-
leftItem: null,
|
|
315
|
-
quickSwitcherLabel: null,
|
|
316
|
-
subMenu: {
|
|
317
|
-
leaveLeftSpace: true,
|
|
318
|
-
preselectIndex: 0,
|
|
319
|
-
items: [
|
|
320
256
|
{
|
|
321
257
|
id: 'sidebar-expanded',
|
|
322
258
|
keyHint: null,
|
|
323
259
|
label: 'Expanded',
|
|
324
|
-
leftItem:
|
|
260
|
+
leftItem: sidebarCollapsedState === 'expanded' ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
|
|
325
261
|
onClick: () => {
|
|
326
262
|
closeMenu();
|
|
327
|
-
setSidebarCollapsedState(
|
|
263
|
+
setSidebarCollapsedState('expanded');
|
|
328
264
|
},
|
|
329
265
|
subMenu: null,
|
|
330
266
|
type: 'item',
|
|
@@ -332,13 +268,13 @@ const useMenuStructure = (closeMenu) => {
|
|
|
332
268
|
quickSwitcherLabel: 'Expand',
|
|
333
269
|
},
|
|
334
270
|
{
|
|
335
|
-
id: '
|
|
271
|
+
id: 'sidebar-collapsed',
|
|
336
272
|
keyHint: null,
|
|
337
273
|
label: 'Collapsed',
|
|
338
|
-
leftItem:
|
|
274
|
+
leftItem: sidebarCollapsedState === 'collapsed' ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
|
|
339
275
|
onClick: () => {
|
|
340
276
|
closeMenu();
|
|
341
|
-
setSidebarCollapsedState(
|
|
277
|
+
setSidebarCollapsedState('collapsed');
|
|
342
278
|
},
|
|
343
279
|
subMenu: null,
|
|
344
280
|
type: 'item',
|
|
@@ -373,6 +309,22 @@ const useMenuStructure = (closeMenu) => {
|
|
|
373
309
|
id: 'timeline-divider-3',
|
|
374
310
|
type: 'divider',
|
|
375
311
|
},
|
|
312
|
+
{
|
|
313
|
+
id: 'rich-timeline',
|
|
314
|
+
keyHint: null,
|
|
315
|
+
label: 'Rich timeline',
|
|
316
|
+
onClick: () => {
|
|
317
|
+
closeMenu();
|
|
318
|
+
setRichTimeline((r) => !r);
|
|
319
|
+
},
|
|
320
|
+
type: 'item',
|
|
321
|
+
value: 'rich-timeline',
|
|
322
|
+
leftItem: richTimeline ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
|
|
323
|
+
subMenu: null,
|
|
324
|
+
quickSwitcherLabel: richTimeline
|
|
325
|
+
? 'Timeline: Disable Rich Timeline'
|
|
326
|
+
: 'Timeline: Enable Rich Timeline',
|
|
327
|
+
},
|
|
376
328
|
{
|
|
377
329
|
id: 'expand-all',
|
|
378
330
|
keyHint: null,
|
|
@@ -634,19 +586,19 @@ const useMenuStructure = (closeMenu) => {
|
|
|
634
586
|
].filter(remotion_1.Internals.truthy);
|
|
635
587
|
return struct;
|
|
636
588
|
}, [
|
|
637
|
-
sizes,
|
|
638
|
-
editorZoomGestures,
|
|
639
|
-
sidebarCollapsedStateLeft,
|
|
640
|
-
sidebarCollapsedStateRight,
|
|
641
589
|
checkerboard,
|
|
642
590
|
closeMenu,
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
setSize,
|
|
591
|
+
editorZoomGestures,
|
|
592
|
+
richTimeline,
|
|
593
|
+
setCheckerboard,
|
|
647
594
|
setEditorZoomGestures,
|
|
595
|
+
setRichTimeline,
|
|
596
|
+
setSelectedModal,
|
|
648
597
|
setSidebarCollapsedState,
|
|
649
|
-
|
|
598
|
+
setSize,
|
|
599
|
+
sidebarCollapsedState,
|
|
600
|
+
size.size,
|
|
601
|
+
sizes,
|
|
650
602
|
]);
|
|
651
603
|
return structure;
|
|
652
604
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const validateCompositionName: (compName: string, compositions:
|
|
1
|
+
import type { TComposition } from 'remotion';
|
|
2
|
+
export declare const validateCompositionName: (compName: string, compositions: TComposition<unknown>[]) => string | null;
|
|
3
3
|
export declare const validateCompositionDimension: (dimension: 'Width' | 'Height', value: string) => string | null;
|
|
4
4
|
export declare const validateCompositionDuration: (value: string) => string | null;
|
|
@@ -6,5 +6,5 @@ const style = {
|
|
|
6
6
|
width: 14,
|
|
7
7
|
height: 14,
|
|
8
8
|
};
|
|
9
|
-
const Checkmark = () => ((0, jsx_runtime_1.jsx)("svg", { focusable: "false", role: "img", viewBox: "0 0 512 512", style: style, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z" }) }));
|
|
9
|
+
const Checkmark = () => ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check", className: "svg-inline--fa fa-check fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", style: style, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z" }) }));
|
|
10
10
|
exports.Checkmark = Checkmark;
|
|
@@ -1,32 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CaretDown = exports.CaretRight = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const colors_1 = require("../helpers/colors");
|
|
7
5
|
const caret = {
|
|
8
6
|
height: 12,
|
|
9
7
|
};
|
|
10
8
|
const caretDown = {
|
|
11
9
|
width: 10,
|
|
12
10
|
};
|
|
13
|
-
const angleDown = {
|
|
14
|
-
width: 10,
|
|
15
|
-
};
|
|
16
11
|
const CaretRight = () => ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 192 512", style: caret, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
|
|
17
12
|
exports.CaretRight = CaretRight;
|
|
18
13
|
const CaretDown = () => {
|
|
19
14
|
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 320 512", style: caretDown, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
20
15
|
};
|
|
21
16
|
exports.CaretDown = CaretDown;
|
|
22
|
-
const AngleDown = ({ down }) => {
|
|
23
|
-
const style = (0, react_1.useMemo)(() => {
|
|
24
|
-
return {
|
|
25
|
-
...angleDown,
|
|
26
|
-
transform: down ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
27
|
-
marginTop: 1,
|
|
28
|
-
};
|
|
29
|
-
}, [down]);
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)("svg", { style: style, viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { fill: colors_1.LIGHT_TEXT, d: "M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" }) }));
|
|
31
|
-
};
|
|
32
|
-
exports.AngleDown = AngleDown;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare const CollapsedFolderIcon: React.FC<SVGProps<SVGSVGElement
|
|
4
|
-
|
|
5
|
-
}>;
|
|
6
|
-
export declare const ExpandedFolderIcon: React.FC<SVGProps<SVGSVGElement> & {
|
|
7
|
-
color: string;
|
|
8
|
-
}>;
|
|
3
|
+
export declare const CollapsedFolderIcon: React.FC<SVGProps<SVGSVGElement>>;
|
|
4
|
+
export declare const ExpandedFolderIcon: React.FC<SVGProps<SVGSVGElement>>;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExpandedFolderIcon = exports.CollapsedFolderIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const CollapsedFolderIcon = (
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill:
|
|
5
|
+
const CollapsedFolderIcon = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.CollapsedFolderIcon = CollapsedFolderIcon;
|
|
9
|
-
const ExpandedFolderIcon = (
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 576 512",
|
|
9
|
+
const ExpandedFolderIcon = (props) => {
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z" }) }));
|
|
11
11
|
};
|
|
12
12
|
exports.ExpandedFolderIcon = ExpandedFolderIcon;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StillIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const StillIcon = (
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", {
|
|
5
|
+
const StillIcon = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.StillIcon = StillIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type KeyEventType = 'keydown' | 'keyup' | 'keypress';
|
|
3
|
-
declare type KeyListenerCallback = (e: KeyboardEvent) => void;
|
|
3
|
+
export declare type KeyListenerCallback = (e: KeyboardEvent) => void;
|
|
4
4
|
export declare type RegisteredKeybinding = {
|
|
5
5
|
registeredFromPane: string;
|
|
6
6
|
id: string;
|
|
@@ -17,4 +17,3 @@ export declare const KeybindingContext: React.Context<KeybindingContextType>;
|
|
|
17
17
|
export declare const KeybindingContextProvider: React.FC<{
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
}>;
|
|
20
|
-
export {};
|
|
@@ -1,48 +1,10 @@
|
|
|
1
|
-
import type { AudioCodec, Codec, OpenGlRenderer, PixelFormat, ProResProfile, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
1
|
import type React from 'react';
|
|
3
2
|
import type { QuickSwitcherMode } from '../components/QuickSwitcher/NoResults';
|
|
4
|
-
import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
|
|
5
3
|
import type { UpdateInfo } from '../components/UpdateCheck';
|
|
6
4
|
export declare type CompType = 'composition' | 'still';
|
|
7
|
-
export declare type RenderModalState = {
|
|
8
|
-
type: 'render';
|
|
9
|
-
compositionId: string;
|
|
10
|
-
initialFrame: number;
|
|
11
|
-
initialStillImageFormat: StillImageFormat;
|
|
12
|
-
initialVideoImageFormat: VideoImageFormat;
|
|
13
|
-
initialJpegQuality: number;
|
|
14
|
-
initialOutName: string;
|
|
15
|
-
initialScale: number;
|
|
16
|
-
initialVerbose: boolean;
|
|
17
|
-
initialRenderType: RenderType;
|
|
18
|
-
initialVideoCodecForAudioTab: Codec;
|
|
19
|
-
initialVideoCodecForVideoTab: Codec;
|
|
20
|
-
initialAudioCodec: AudioCodec | null;
|
|
21
|
-
initialConcurrency: number;
|
|
22
|
-
initialMuted: boolean;
|
|
23
|
-
initialEnforceAudioTrack: boolean;
|
|
24
|
-
initialProResProfile: ProResProfile;
|
|
25
|
-
initialPixelFormat: PixelFormat;
|
|
26
|
-
initialVideoBitrate: string | null;
|
|
27
|
-
initialAudioBitrate: string | null;
|
|
28
|
-
initialEveryNthFrame: number;
|
|
29
|
-
initialNumberOfGifLoops: number | null;
|
|
30
|
-
initialDelayRenderTimeout: number;
|
|
31
|
-
initialEnvVariables: Record<string, string>;
|
|
32
|
-
initialDisableWebSecurity: boolean;
|
|
33
|
-
initialOpenGlRenderer: OpenGlRenderer | null;
|
|
34
|
-
initialIgnoreCertificateErrors: boolean;
|
|
35
|
-
initialHeadless: boolean;
|
|
36
|
-
minConcurrency: number;
|
|
37
|
-
maxConcurrency: number;
|
|
38
|
-
defaultProps: unknown;
|
|
39
|
-
};
|
|
40
5
|
export declare type ModalState = {
|
|
41
6
|
type: 'new-comp';
|
|
42
7
|
compType: CompType;
|
|
43
|
-
} | RenderModalState | {
|
|
44
|
-
type: 'render-progress';
|
|
45
|
-
jobId: string;
|
|
46
8
|
} | {
|
|
47
9
|
type: 'update';
|
|
48
10
|
info: UpdateInfo;
|
|
@@ -5,6 +5,7 @@ declare type PreviewSizeCtx = {
|
|
|
5
5
|
setSize: (cb: (oldSize: PreviewSize) => PreviewSize) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const persistPreviewSizeOption: (option: PreviewSize) => void;
|
|
8
|
+
export declare const loadPreviewSizeOption: () => PreviewSize;
|
|
8
9
|
export declare const PreviewSizeContext: React.Context<PreviewSizeCtx>;
|
|
9
10
|
export declare const PreviewSizeProvider: React.FC<{
|
|
10
11
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PreviewSizeProvider = exports.PreviewSizeContext = exports.persistPreviewSizeOption = void 0;
|
|
3
|
+
exports.PreviewSizeProvider = exports.PreviewSizeContext = exports.loadPreviewSizeOption = exports.persistPreviewSizeOption = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const editor_zoom_gestures_1 = require("./editor-zoom-gestures");
|
|
@@ -22,12 +22,13 @@ const loadPreviewSizeOption = () => {
|
|
|
22
22
|
}
|
|
23
23
|
return JSON.parse(item);
|
|
24
24
|
};
|
|
25
|
+
exports.loadPreviewSizeOption = loadPreviewSizeOption;
|
|
25
26
|
exports.PreviewSizeContext = (0, react_1.createContext)({
|
|
26
27
|
setSize: () => undefined,
|
|
27
|
-
size: loadPreviewSizeOption(),
|
|
28
|
+
size: (0, exports.loadPreviewSizeOption)(),
|
|
28
29
|
});
|
|
29
30
|
const PreviewSizeProvider = ({ children }) => {
|
|
30
|
-
const [size, setSizeState] = (0, react_1.useState)(() => loadPreviewSizeOption());
|
|
31
|
+
const [size, setSizeState] = (0, react_1.useState)(() => (0, exports.loadPreviewSizeOption)());
|
|
31
32
|
const [translation, setTranslation] = (0, react_1.useState)(() => {
|
|
32
33
|
return {
|
|
33
34
|
x: 0,
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type SidebarCollapsedState = 'collapsed' | 'expanded' | 'responsive';
|
|
3
|
-
declare type RightSidebarCollapsedState = Exclude<SidebarCollapsedState, 'responsive'>;
|
|
4
3
|
declare type Context = {
|
|
5
|
-
|
|
6
|
-
setSidebarCollapsedState: (
|
|
7
|
-
left: null | React.SetStateAction<SidebarCollapsedState>;
|
|
8
|
-
right: null | React.SetStateAction<RightSidebarCollapsedState>;
|
|
9
|
-
}) => void;
|
|
10
|
-
sidebarCollapsedStateRight: RightSidebarCollapsedState;
|
|
4
|
+
sidebarCollapsedState: SidebarCollapsedState;
|
|
5
|
+
setSidebarCollapsedState: (newState: SidebarCollapsedState) => void;
|
|
11
6
|
};
|
|
7
|
+
export declare const getSavedCollapsedState: () => SidebarCollapsedState;
|
|
12
8
|
export declare const SidebarContext: React.Context<Context>;
|
|
13
9
|
export declare const SidebarContextProvider: React.FC<{
|
|
14
10
|
children: React.ReactNode;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SidebarContextProvider = exports.SidebarContext = void 0;
|
|
3
|
+
exports.SidebarContextProvider = exports.SidebarContext = exports.getSavedCollapsedState = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const storageKey =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
return 'remotion.sidebarCollapsing';
|
|
11
|
-
};
|
|
12
|
-
const getSavedCollapsedStateLeft = () => {
|
|
13
|
-
const state = window.localStorage.getItem(storageKey('left'));
|
|
6
|
+
const storageKey = 'remotion.sidebarCollapsing';
|
|
7
|
+
const getSavedCollapsedState = () => {
|
|
8
|
+
const state = window.localStorage.getItem(storageKey);
|
|
14
9
|
if (state === 'collapsed') {
|
|
15
10
|
return 'collapsed';
|
|
16
11
|
}
|
|
@@ -19,49 +14,25 @@ const getSavedCollapsedStateLeft = () => {
|
|
|
19
14
|
}
|
|
20
15
|
return 'responsive';
|
|
21
16
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return 'expanded';
|
|
26
|
-
}
|
|
27
|
-
return 'collapsed';
|
|
28
|
-
};
|
|
29
|
-
const saveCollapsedState = (type, sidebar) => {
|
|
30
|
-
window.localStorage.setItem(storageKey(sidebar), type);
|
|
17
|
+
exports.getSavedCollapsedState = getSavedCollapsedState;
|
|
18
|
+
const setSavedCollapsedState = (type) => {
|
|
19
|
+
window.localStorage.setItem(storageKey, type);
|
|
31
20
|
};
|
|
32
21
|
exports.SidebarContext = (0, react_1.createContext)({
|
|
33
|
-
|
|
22
|
+
sidebarCollapsedState: 'collapsed',
|
|
34
23
|
setSidebarCollapsedState: () => {
|
|
35
24
|
throw new Error('sidebar collapsed state');
|
|
36
25
|
},
|
|
37
|
-
sidebarCollapsedStateRight: 'collapsed',
|
|
38
26
|
});
|
|
39
27
|
const SidebarContextProvider = ({ children }) => {
|
|
40
|
-
const [sidebarCollapsedState, setSidebarCollapsedState] = (0, react_1.useState)(() => (
|
|
41
|
-
left: getSavedCollapsedStateLeft(),
|
|
42
|
-
right: getSavedCollapsedStateRight(),
|
|
43
|
-
}));
|
|
28
|
+
const [sidebarCollapsedState, setSidebarCollapsedState] = (0, react_1.useState)(() => (0, exports.getSavedCollapsedState)());
|
|
44
29
|
const value = (0, react_1.useMemo)(() => {
|
|
45
30
|
return {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const { left, right } = options;
|
|
50
|
-
setSidebarCollapsedState((f) => {
|
|
51
|
-
const copied = { ...f };
|
|
52
|
-
if (left) {
|
|
53
|
-
const updatedLeft = typeof left === 'function' ? left(f.left) : left;
|
|
54
|
-
saveCollapsedState(updatedLeft, 'left');
|
|
55
|
-
copied.left = updatedLeft;
|
|
56
|
-
}
|
|
57
|
-
if (right) {
|
|
58
|
-
const updatedRight = typeof right === 'function' ? right(f.right) : right;
|
|
59
|
-
saveCollapsedState(updatedRight, 'right');
|
|
60
|
-
copied.right = updatedRight;
|
|
61
|
-
}
|
|
62
|
-
return copied;
|
|
63
|
-
});
|
|
31
|
+
setSidebarCollapsedState: (state) => {
|
|
32
|
+
setSidebarCollapsedState(state);
|
|
33
|
+
setSavedCollapsedState(state);
|
|
64
34
|
},
|
|
35
|
+
sidebarCollapsedState,
|
|
65
36
|
};
|
|
66
37
|
}, [sidebarCollapsedState]);
|
|
67
38
|
return ((0, jsx_runtime_1.jsx)(exports.SidebarContext.Provider, { value: value, children: children }));
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
declare type ZIndex = {
|
|
3
|
+
currentIndex: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const ZIndexContext: React.Context<ZIndex>;
|
|
2
6
|
export declare const HigherZIndex: React.FC<{
|
|
3
7
|
onEscape: () => void;
|
|
4
8
|
onOutsideClick: () => void;
|
|
@@ -10,3 +14,4 @@ export declare const useZIndex: () => {
|
|
|
10
14
|
isHighestContext: boolean;
|
|
11
15
|
tabIndex: number;
|
|
12
16
|
};
|
|
17
|
+
export {};
|