@remotion/studio 4.0.503 → 4.0.504
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/api/install-package.d.ts +2 -1
- package/dist/api/install-package.js +6 -2
- package/dist/components/AssetSelectorItem.js +2 -14
- package/dist/components/Canvas.js +12 -5
- package/dist/components/CheckboardToggle.js +3 -1
- package/dist/components/CompositionSelectorItem.js +2 -3
- package/dist/components/ControlButton.d.ts +4 -2
- package/dist/components/ControlButton.js +6 -20
- package/dist/components/EditorContent.js +1 -1
- package/dist/components/EffectPickerModal.js +68 -7
- package/dist/components/FullscreenToggle.js +1 -2
- package/dist/components/InitialCompositionLoader.js +1 -14
- package/dist/components/InlineAction.d.ts +3 -4
- package/dist/components/InlineAction.js +5 -3
- package/dist/components/InspectorPanel/CompositionMetadata.js +7 -6
- package/dist/components/InspectorPanel/KeyframeInspector.js +2 -3
- package/dist/components/InspectorPanel/styles.js +4 -0
- package/dist/components/LoopToggle.js +1 -1
- package/dist/components/MenuBuildIndicator.d.ts +3 -1
- package/dist/components/MenuBuildIndicator.js +5 -3
- package/dist/components/MenuToolbar.js +1 -1
- package/dist/components/MobilePanel.d.ts +1 -2
- package/dist/components/MobilePanel.js +6 -10
- package/dist/components/MuteToggle.js +2 -1
- package/dist/components/NewComposition/ComboBox.d.ts +1 -0
- package/dist/components/NewComposition/ComboBox.js +2 -2
- package/dist/components/NewComposition/InputDragger.d.ts +4 -0
- package/dist/components/NewComposition/InputDragger.js +7 -3
- package/dist/components/Notifications/NotificationCenter.js +12 -2
- package/dist/components/OutlineToggle.js +10 -2
- package/dist/components/PlayPause.js +1 -5
- package/dist/components/PlaybackRateSelector.js +2 -1
- package/dist/components/PreviewToolbar.js +8 -7
- package/dist/components/PreviewToolbarOverflowButton.d.ts +0 -1
- package/dist/components/PreviewToolbarOverflowButton.js +2 -75
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -2
- package/dist/components/RenderButton.d.ts +0 -1
- package/dist/components/RenderButton.js +10 -9
- package/dist/components/RenderModal/FrameRangeSetting.js +6 -1
- package/dist/components/RenderModal/MultiRangeSlider.js +8 -8
- package/dist/components/RenderModal/RenderModalEnvironmentVariables.js +1 -9
- package/dist/components/RenderModal/RenderModalOutputName.js +11 -2
- package/dist/components/RenderModal/ServerRenderModal.js +2 -17
- package/dist/components/RenderModal/WebRenderModal.js +3 -17
- package/dist/components/RenderModal/layout.js +7 -5
- package/dist/components/RenderModal/render-modals.js +18 -15
- package/dist/components/RenderQueue/RenderQueueRepeat.js +1 -14
- package/dist/components/SelectedOutlineElement.js +4 -12
- package/dist/components/SidebarRenderButton.js +1 -15
- package/dist/components/SizeSelector.js +2 -1
- package/dist/components/SnappingToggle.js +1 -2
- package/dist/components/Spinner.d.ts +1 -0
- package/dist/components/Spinner.js +2 -2
- package/dist/components/Splitter/SplitterContainer.d.ts +1 -0
- package/dist/components/Splitter/SplitterContainer.js +4 -1
- package/dist/components/Splitter/SplitterContext.d.ts +4 -3
- package/dist/components/Splitter/SplitterContext.js +3 -2
- package/dist/components/Splitter/SplitterElement.js +6 -1
- package/dist/components/Splitter/SplitterHandle.js +1 -0
- package/dist/components/Tabs/vertical.d.ts +1 -0
- package/dist/components/Tabs/vertical.js +8 -10
- package/dist/components/TimeValue.js +26 -8
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineClipboardKeybindings.js +3 -6
- package/dist/components/Timeline/TimelineDeleteKeybindings.js +5 -7
- package/dist/components/Timeline/TimelineExpandedKeyframeRow.js +2 -1
- package/dist/components/Timeline/TimelineKeyframeEasingLine.d.ts +1 -1
- package/dist/components/Timeline/TimelineKeyframeEasingLine.js +2 -2
- package/dist/components/Timeline/TimelineSelection.js +2 -3
- package/dist/components/Timeline/TimelineZoomControls.d.ts +3 -1
- package/dist/components/Timeline/TimelineZoomControls.js +24 -12
- package/dist/components/Timeline/use-expanded-track-keyframe-rows.js +2 -3
- package/dist/components/Timeline/use-timeline-asset-drop.js +3 -3
- package/dist/components/TimelineInOutToggle.js +3 -3
- package/dist/components/TopPanel.js +3 -2
- package/dist/components/UndoRedoButtons.js +6 -5
- package/dist/components/UpdateCheck.js +18 -5
- package/dist/components/UpdateModal/UpdateModal.js +35 -12
- package/dist/components/composition-menu-items.d.ts +2 -4
- package/dist/components/composition-menu-items.js +31 -54
- package/dist/components/import-assets.d.ts +2 -1
- package/dist/components/import-assets.js +1 -1
- package/dist/esm/{chunk-bj1r1hh5.js → chunk-43m68z1k.js} +4824 -4457
- package/dist/esm/internals.mjs +4824 -4457
- package/dist/esm/previewEntry.mjs +4801 -4434
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/inject-css.js +40 -23
- package/dist/helpers/install-required-package.d.ts +3 -2
- package/dist/helpers/install-required-package.js +20 -15
- package/dist/helpers/use-menu-structure.js +85 -49
- package/dist/icons/audio.d.ts +1 -1
- package/dist/icons/audio.js +1 -1
- package/dist/icons/caret.js +1 -1
- package/dist/icons/certificate.d.ts +1 -1
- package/dist/icons/certificate.js +1 -1
- package/dist/icons/data.d.ts +1 -1
- package/dist/icons/data.js +2 -2
- package/dist/icons/effects.d.ts +5 -0
- package/dist/icons/effects.js +8 -0
- package/dist/icons/ellipsis.js +1 -1
- package/dist/icons/external-link.d.ts +5 -0
- package/dist/icons/external-link.js +10 -0
- package/dist/icons/fullscreen.js +1 -1
- package/dist/icons/gear.d.ts +1 -1
- package/dist/icons/gear.js +1 -1
- package/dist/icons/gif.d.ts +1 -1
- package/dist/icons/gif.js +1 -1
- package/dist/icons/input-props.d.ts +2 -0
- package/dist/icons/input-props.js +9 -0
- package/dist/icons/jump-to-start.js +2 -2
- package/dist/icons/magnet.d.ts +3 -1
- package/dist/icons/magnet.js +2 -2
- package/dist/icons/media-volume.d.ts +6 -2
- package/dist/icons/media-volume.js +8 -6
- package/dist/icons/minus.d.ts +3 -1
- package/dist/icons/minus.js +2 -2
- package/dist/icons/pause.js +1 -1
- package/dist/icons/play.js +1 -1
- package/dist/icons/plus.js +1 -1
- package/dist/icons/redo.js +2 -2
- package/dist/icons/step-back.js +2 -2
- package/dist/icons/step-forward.js +2 -2
- package/dist/icons/timelineInOutPointer.js +2 -2
- package/dist/icons/undo.js +2 -2
- package/package.json +12 -12
|
@@ -19,6 +19,7 @@ const file_1 = require("../../icons/file");
|
|
|
19
19
|
const frame_1 = require("../../icons/frame");
|
|
20
20
|
const gear_1 = require("../../icons/gear");
|
|
21
21
|
const gif_1 = require("../../icons/gif");
|
|
22
|
+
const input_props_1 = require("../../icons/input-props");
|
|
22
23
|
const video_1 = require("../../icons/video");
|
|
23
24
|
const modals_1 = require("../../state/modals");
|
|
24
25
|
const sidebar_1 = require("../../state/sidebar");
|
|
@@ -989,23 +990,7 @@ const RenderModal = ({ readOnlyStudio, initialFrame, initialVideoImageFormat, in
|
|
|
989
990
|
: 'Rendering...', jsx_runtime_1.jsx(ShortcutHint_1.ShortcutHint, { keyToPress: "\u21B5", cmdOrCtrl: true })
|
|
990
991
|
] })
|
|
991
992
|
] }), jsx_runtime_1.jsxs("div", { style: render_modals_1.horizontalLayout, children: [
|
|
992
|
-
jsx_runtime_1.jsxs("div", { style: render_modals_1.leftSidebar, children: [shownTabs.includes('general') ? (jsx_runtime_1.
|
|
993
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(file_1.FileIcon, { style: render_modals_1.icon }) }),
|
|
994
|
-
"General"] })) : null, shownTabs.includes('data') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'data', onClick: () => setTab('data'), children: [
|
|
995
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(data_1.DataIcon, { style: render_modals_1.icon }) }),
|
|
996
|
-
"Input Props"] })) : null, shownTabs.includes('picture') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'picture', onClick: () => setTab('picture'), children: [
|
|
997
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(frame_1.PicIcon, { style: render_modals_1.icon }) }),
|
|
998
|
-
"Picture"] })) : null, shownTabs.includes('audio') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'audio', onClick: () => setTab('audio'), children: [
|
|
999
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(audio_1.AudioIcon, { style: render_modals_1.icon }) }),
|
|
1000
|
-
"Audio"] })) : null, shownTabs.includes('gif') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'gif', onClick: () => setTab('gif'), children: [
|
|
1001
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gif_1.GifIcon, { style: render_modals_1.icon }) }),
|
|
1002
|
-
"GIF"] })) : null, shownTabs.includes('encoding') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'encoding', onClick: () => setTab('encoding'), children: [
|
|
1003
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(video_1.FilmIcon, { style: render_modals_1.icon, color: colors_1.CURRENT_COLOR_LOWERCASE }) }),
|
|
1004
|
-
"Encoding"] })) : null, shownTabs.includes('environment') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'environment', onClick: () => setTab('environment'), children: [
|
|
1005
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(data_1.DataIcon, { style: render_modals_1.icon }) }),
|
|
1006
|
-
"Environment"] })) : null, shownTabs.includes('advanced') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), children: [
|
|
1007
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gear_1.GearIcon, { style: render_modals_1.icon }) }),
|
|
1008
|
-
"Other"] })) : null] }), jsx_runtime_1.jsx("div", { style: render_modals_1.optionsPanel, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: tab === 'general' ? (jsx_runtime_1.jsx(RenderModalBasic_1.RenderModalBasic, { codec: codec, resolvedComposition: resolvedComposition, frame: frame, imageFormatOptions: imageFormatOptions, outName: outName, proResProfile: proResProfile, renderMode: renderMode, setVideoCodec: setCodec, setFrame: setFrame, setOutName: setOutName, setProResProfile: setProResProfile, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, setVerboseLogging: setLogLevel, logLevel: logLevel, showOutputName: !readOnlyStudio, startFrame: startFrame, validationMessage: outnameValidation.valid ? null : outnameValidation.error.message })) : tab === 'picture' ? (jsx_runtime_1.jsx(RenderModalPicture_1.RenderModalPicture, { renderMode: renderMode, scale: scale, setScale: setScale, imageFormatOptions: imageFormatOptions, jpegQuality: jpegQuality, setJpegQuality: setJpegQuality, videoImageFormat: videoImageFormat, stillImageFormat: stillImageFormat, compositionWidth: resolvedComposition.width, compositionHeight: resolvedComposition.height })) : tab === 'audio' ? (jsx_runtime_1.jsx(RenderModalAudio_1.RenderModalAudio, { muted: muted, renderMode: renderMode, setMuted: setMuted, codec: codec, audioCodec: audioCodec, setAudioCodec: setAudioCodec, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrackState: setEnforceAudioTrackState, customTargetAudioBitrate: customTargetAudioBitrate, setCustomTargetAudioBitrateValue: setCustomTargetAudioBitrateValue, setShouldHaveCustomTargetAudioBitrate: setShouldHaveCustomTargetAudioBitrate, shouldHaveCustomTargetAudioBitrate: shouldHaveCustomTargetAudioBitrate, forSeamlessAacConcatenation: forSeamlessAacConcatenation, setForSeamlessAacConcatenation: setForSeamlessAacConcatenation, separateAudioTo: separateAudioTo, setSeparateAudioTo: setSeparateAudioTo, outName: outName, sampleRate: sampleRate, setSampleRate: setSampleRate })) : tab === 'gif' ? (jsx_runtime_1.jsx(RenderModalGif_1.RenderModalGif, { everyNthFrame: everyNthFrame, limitNumberOfGifLoops: limitNumberOfGifLoops, numberOfGifLoopsSetting: numberOfGifLoopsSetting, setEveryNthFrameSetting: setEveryNthFrameSetting, setLimitNumberOfGifLoops: setLimitNumberOfGifLoops, setNumberOfGifLoopsSetting: setNumberOfGifLoopsSetting })) : tab === 'encoding' ? (jsx_runtime_1.jsx(RenderModalEncoding_1.RenderModalEncoding, { renderMode: renderMode, codec: codec, qualityControlType: qualityControlType, setQualityControl: setQualityControl, shouldDisplayQualityControlPicker: supportsBothQualityControls, crf: crf, setCrf: setCrf, maxCrf: maxCrf, minCrf: minCrf, customTargetVideoBitrate: customTargetVideoBitrate, setCustomTargetVideoBitrateValue: setCustomTargetVideoBitrateValue, encodingBufferSize: encodingBufferSize, setEncodingBufferSize: setEncodingBufferSize, encodingMaxRate: encodingMaxRate, setEncodingMaxRate: setEncodingMaxRate, pixelFormat: pixelFormat, pixelFormatOptions: pixelFormatOptions, colorSpace: colorSpace, setColorSpace: setColorSpace, x264Preset: x264Preset, setx264Preset: setx264Preset, gopSize: gopSize, setGopSize: setGopSize, hardwareAcceleration: hardwareAcceleration, setHardwareAcceleration: setHardwareAcceleration, disallowParallelEncoding: disallowParallelEncoding, setDisallowParallelEncoding: setDisallowParallelEncoding })) : tab === 'environment' ? (jsx_runtime_1.jsx(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })) : tab === 'data' ? (jsx_runtime_1.jsx(DataEditor_1.DataEditor, { defaultProps: inputProps, setDefaultProps: setInputProps, unresolvedComposition: unresolvedComposition, propsEditType: "input-props", canSaveDefaultProps: {
|
|
993
|
+
jsx_runtime_1.jsxs("div", { style: render_modals_1.leftSidebar, children: [shownTabs.includes('general') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'general', onClick: () => setTab('general'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(file_1.FileIcon, { color: color, style: render_modals_1.icon }) })), children: "General" })) : null, shownTabs.includes('data') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'data', onClick: () => setTab('data'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(input_props_1.InputPropsIcon, { color: color, style: render_modals_1.icon }) })), children: "Input Props" })) : null, shownTabs.includes('picture') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'picture', onClick: () => setTab('picture'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(frame_1.PicIcon, { color: color, style: render_modals_1.icon }) })), children: "Picture" })) : null, shownTabs.includes('audio') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'audio', onClick: () => setTab('audio'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(audio_1.AudioIcon, { color: color, style: render_modals_1.icon }) })), children: "Audio" })) : null, shownTabs.includes('gif') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'gif', onClick: () => setTab('gif'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gif_1.GifIcon, { color: color, style: render_modals_1.icon }) })), children: "GIF" })) : null, shownTabs.includes('encoding') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'encoding', onClick: () => setTab('encoding'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(video_1.FilmIcon, { color: color, style: render_modals_1.icon }) })), children: "Encoding" })) : null, shownTabs.includes('environment') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'environment', onClick: () => setTab('environment'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(data_1.DataIcon, { color: color, style: render_modals_1.icon }) })), children: "Environment" })) : null, shownTabs.includes('advanced') ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gear_1.GearIcon, { color: color, style: render_modals_1.icon }) })), children: "Other" })) : null] }), jsx_runtime_1.jsx("div", { style: render_modals_1.optionsPanel, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: tab === 'general' ? (jsx_runtime_1.jsx(RenderModalBasic_1.RenderModalBasic, { codec: codec, resolvedComposition: resolvedComposition, frame: frame, imageFormatOptions: imageFormatOptions, outName: outName, proResProfile: proResProfile, renderMode: renderMode, setVideoCodec: setCodec, setFrame: setFrame, setOutName: setOutName, setProResProfile: setProResProfile, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, setVerboseLogging: setLogLevel, logLevel: logLevel, showOutputName: !readOnlyStudio, startFrame: startFrame, validationMessage: outnameValidation.valid ? null : outnameValidation.error.message })) : tab === 'picture' ? (jsx_runtime_1.jsx(RenderModalPicture_1.RenderModalPicture, { renderMode: renderMode, scale: scale, setScale: setScale, imageFormatOptions: imageFormatOptions, jpegQuality: jpegQuality, setJpegQuality: setJpegQuality, videoImageFormat: videoImageFormat, stillImageFormat: stillImageFormat, compositionWidth: resolvedComposition.width, compositionHeight: resolvedComposition.height })) : tab === 'audio' ? (jsx_runtime_1.jsx(RenderModalAudio_1.RenderModalAudio, { muted: muted, renderMode: renderMode, setMuted: setMuted, codec: codec, audioCodec: audioCodec, setAudioCodec: setAudioCodec, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrackState: setEnforceAudioTrackState, customTargetAudioBitrate: customTargetAudioBitrate, setCustomTargetAudioBitrateValue: setCustomTargetAudioBitrateValue, setShouldHaveCustomTargetAudioBitrate: setShouldHaveCustomTargetAudioBitrate, shouldHaveCustomTargetAudioBitrate: shouldHaveCustomTargetAudioBitrate, forSeamlessAacConcatenation: forSeamlessAacConcatenation, setForSeamlessAacConcatenation: setForSeamlessAacConcatenation, separateAudioTo: separateAudioTo, setSeparateAudioTo: setSeparateAudioTo, outName: outName, sampleRate: sampleRate, setSampleRate: setSampleRate })) : tab === 'gif' ? (jsx_runtime_1.jsx(RenderModalGif_1.RenderModalGif, { everyNthFrame: everyNthFrame, limitNumberOfGifLoops: limitNumberOfGifLoops, numberOfGifLoopsSetting: numberOfGifLoopsSetting, setEveryNthFrameSetting: setEveryNthFrameSetting, setLimitNumberOfGifLoops: setLimitNumberOfGifLoops, setNumberOfGifLoopsSetting: setNumberOfGifLoopsSetting })) : tab === 'encoding' ? (jsx_runtime_1.jsx(RenderModalEncoding_1.RenderModalEncoding, { renderMode: renderMode, codec: codec, qualityControlType: qualityControlType, setQualityControl: setQualityControl, shouldDisplayQualityControlPicker: supportsBothQualityControls, crf: crf, setCrf: setCrf, maxCrf: maxCrf, minCrf: minCrf, customTargetVideoBitrate: customTargetVideoBitrate, setCustomTargetVideoBitrateValue: setCustomTargetVideoBitrateValue, encodingBufferSize: encodingBufferSize, setEncodingBufferSize: setEncodingBufferSize, encodingMaxRate: encodingMaxRate, setEncodingMaxRate: setEncodingMaxRate, pixelFormat: pixelFormat, pixelFormatOptions: pixelFormatOptions, colorSpace: colorSpace, setColorSpace: setColorSpace, x264Preset: x264Preset, setx264Preset: setx264Preset, gopSize: gopSize, setGopSize: setGopSize, hardwareAcceleration: hardwareAcceleration, setHardwareAcceleration: setHardwareAcceleration, disallowParallelEncoding: disallowParallelEncoding, setDisallowParallelEncoding: setDisallowParallelEncoding })) : tab === 'environment' ? (jsx_runtime_1.jsx(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })) : tab === 'data' ? (jsx_runtime_1.jsx(DataEditor_1.DataEditor, { defaultProps: inputProps, setDefaultProps: setInputProps, unresolvedComposition: unresolvedComposition, propsEditType: "input-props", canSaveDefaultProps: {
|
|
1009
994
|
canUpdate: false,
|
|
1010
995
|
reason: 'render dialogue',
|
|
1011
996
|
determined: false,
|
|
@@ -8,10 +8,10 @@ const react_1 = require("react");
|
|
|
8
8
|
const ShortcutHint_1 = require("../../error-overlay/remotion-overlay/ShortcutHint");
|
|
9
9
|
const audio_1 = require("../../icons/audio");
|
|
10
10
|
const certificate_1 = require("../../icons/certificate");
|
|
11
|
-
const data_1 = require("../../icons/data");
|
|
12
11
|
const file_1 = require("../../icons/file");
|
|
13
12
|
const frame_1 = require("../../icons/frame");
|
|
14
13
|
const gear_1 = require("../../icons/gear");
|
|
14
|
+
const input_props_1 = require("../../icons/input-props");
|
|
15
15
|
const modals_1 = require("../../state/modals");
|
|
16
16
|
const sidebar_1 = require("../../state/sidebar");
|
|
17
17
|
const Button_1 = require("../Button");
|
|
@@ -414,24 +414,10 @@ const WebRenderModal = ({ initialFrame, defaultProps, inFrameMark, outFrameMark,
|
|
|
414
414
|
jsx_runtime_1.jsx(SegmentedControl_1.SegmentedControl, { items: renderTabOptions, needsWrapping: false }), jsx_runtime_1.jsx("div", { style: render_modals_1.flexer }), jsx_runtime_1.jsxs(Button_1.Button, { autoFocus: true, onClick: onAddToQueue, style: render_modals_1.buttonStyle, disabled: !outnameValidation.valid, children: ["Render ", renderMode, jsx_runtime_1.jsx(ShortcutHint_1.ShortcutHint, { keyToPress: "\u21B5", cmdOrCtrl: true })
|
|
415
415
|
] })
|
|
416
416
|
] }), jsx_runtime_1.jsxs("div", { style: render_modals_1.horizontalLayout, children: [
|
|
417
|
-
jsx_runtime_1.jsxs("div", { style: render_modals_1.leftSidebar, children: [
|
|
418
|
-
jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'general', onClick: () => setTab('general'), children: [
|
|
419
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(file_1.FileIcon, { style: render_modals_1.icon }) }),
|
|
420
|
-
"General"] }), jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'data', onClick: () => setTab('data'), children: [
|
|
421
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(data_1.DataIcon, { style: render_modals_1.icon }) }),
|
|
422
|
-
"Input Props"] }), renderMode !== 'audio' ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'picture', onClick: () => setTab('picture'), children: [
|
|
423
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(frame_1.PicIcon, { style: render_modals_1.icon }) }),
|
|
424
|
-
"Picture"] })) : null, renderMode === 'video' || renderMode === 'audio' ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'audio', onClick: () => setTab('audio'), children: [
|
|
425
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(audio_1.AudioIcon, { style: render_modals_1.icon }) }),
|
|
426
|
-
"Audio"] })) : null, jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), children: [
|
|
427
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gear_1.GearIcon, { style: render_modals_1.icon }) }),
|
|
428
|
-
"Other"] }), jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: false, onClick: () => setSelectedModal({
|
|
417
|
+
jsx_runtime_1.jsxs("div", { style: render_modals_1.leftSidebar, children: [jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'general', onClick: () => setTab('general'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(file_1.FileIcon, { color: color, style: render_modals_1.icon }) })), children: "General" }), jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'data', onClick: () => setTab('data'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(input_props_1.InputPropsIcon, { color: color, style: render_modals_1.icon }) })), children: "Input Props" }), renderMode !== 'audio' ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'picture', onClick: () => setTab('picture'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(frame_1.PicIcon, { color: color, style: render_modals_1.icon }) })), children: "Picture" })) : null, renderMode === 'video' || renderMode === 'audio' ? (jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'audio', onClick: () => setTab('audio'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(audio_1.AudioIcon, { color: color, style: render_modals_1.icon }) })), children: "Audio" })) : null, jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gear_1.GearIcon, { color: color, style: render_modals_1.icon }) })), children: "Other" }), jsx_runtime_1.jsx(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: false, onClick: () => setSelectedModal({
|
|
429
418
|
type: 'configure-license',
|
|
430
419
|
initialPublicLicenseKey: publicLicenseKey,
|
|
431
|
-
}), children:
|
|
432
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(certificate_1.CertificateIcon, { style: render_modals_1.icon }) }),
|
|
433
|
-
"License"] })
|
|
434
|
-
] }), jsx_runtime_1.jsx("div", { style: render_modals_1.optionsPanel, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: tab === 'general' ? (jsx_runtime_1.jsx(WebRenderModalBasic_1.WebRenderModalBasic, { renderMode: renderMode, resolvedComposition: resolvedComposition, imageFormat: imageFormat, setStillFormat: setStillFormat, frame: frame, onFrameChanged: onFrameChanged, onFrameSetDirectly: onFrameSetDirectly, container: container, setContainerFormat: setContainerFormat, setCodec: setCodecWithContainer, encodableVideoCodecs: encodableVideoCodecs, effectiveVideoCodec: effectiveVideoCodec, startFrame: finalStartFrame, setStartFrame: setStartFrame, endFrame: finalEndFrame, setEndFrame: setEndFrame, outName: outName, onOutNameChange: onOutNameChange, validationMessage: outnameValidation.valid ? null : outnameValidation.error.message, logLevel: logLevel, setLogLevel: setLogLevel })) : tab === 'data' ? (jsx_runtime_1.jsx(DataEditor_1.DataEditor, { defaultProps: inputProps, setDefaultProps: setInputProps, unresolvedComposition: unresolvedComposition, propsEditType: "input-props", canSaveDefaultProps: {
|
|
420
|
+
}), renderIcon: (color) => (jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(certificate_1.CertificateIcon, { color: color, style: render_modals_1.icon }) })), children: "License" })] }), jsx_runtime_1.jsx("div", { style: render_modals_1.optionsPanel, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: tab === 'general' ? (jsx_runtime_1.jsx(WebRenderModalBasic_1.WebRenderModalBasic, { renderMode: renderMode, resolvedComposition: resolvedComposition, imageFormat: imageFormat, setStillFormat: setStillFormat, frame: frame, onFrameChanged: onFrameChanged, onFrameSetDirectly: onFrameSetDirectly, container: container, setContainerFormat: setContainerFormat, setCodec: setCodecWithContainer, encodableVideoCodecs: encodableVideoCodecs, effectiveVideoCodec: effectiveVideoCodec, startFrame: finalStartFrame, setStartFrame: setStartFrame, endFrame: finalEndFrame, setEndFrame: setEndFrame, outName: outName, onOutNameChange: onOutNameChange, validationMessage: outnameValidation.valid ? null : outnameValidation.error.message, logLevel: logLevel, setLogLevel: setLogLevel })) : tab === 'data' ? (jsx_runtime_1.jsx(DataEditor_1.DataEditor, { defaultProps: inputProps, setDefaultProps: setInputProps, unresolvedComposition: unresolvedComposition, propsEditType: "input-props", canSaveDefaultProps: {
|
|
435
421
|
canUpdate: false,
|
|
436
422
|
reason: 'render dialogue',
|
|
437
423
|
determined: false,
|
|
@@ -8,12 +8,12 @@ exports.optionRow = {
|
|
|
8
8
|
minHeight: 40,
|
|
9
9
|
paddingLeft: 16,
|
|
10
10
|
paddingRight: 16,
|
|
11
|
-
paddingTop:
|
|
12
|
-
paddingBottom:
|
|
11
|
+
paddingTop: 4,
|
|
12
|
+
paddingBottom: 4,
|
|
13
13
|
};
|
|
14
14
|
exports.label = {
|
|
15
|
-
|
|
16
|
-
fontSize:
|
|
15
|
+
minWidth: 0,
|
|
16
|
+
fontSize: 14,
|
|
17
17
|
lineHeight: '40px',
|
|
18
18
|
color: colors_1.LIGHT_TEXT,
|
|
19
19
|
fontFamily: 'sans-serif',
|
|
@@ -24,12 +24,14 @@ exports.label = {
|
|
|
24
24
|
exports.rightRow = {
|
|
25
25
|
display: 'flex',
|
|
26
26
|
flexDirection: 'row',
|
|
27
|
+
alignItems: 'center',
|
|
27
28
|
justifyContent: 'flex-end',
|
|
28
29
|
alignSelf: 'center',
|
|
29
30
|
flex: 1,
|
|
31
|
+
minWidth: 0,
|
|
30
32
|
};
|
|
31
33
|
exports.input = {
|
|
32
|
-
minWidth:
|
|
34
|
+
minWidth: 0,
|
|
33
35
|
};
|
|
34
36
|
exports.fieldSetText = {
|
|
35
37
|
color: colors_1.LIGHT_TEXT,
|
|
@@ -4,8 +4,8 @@ exports.flexer = exports.buttonStyle = exports.icon = exports.iconContainer = ex
|
|
|
4
4
|
const colors_1 = require("../../helpers/colors");
|
|
5
5
|
const ModalContainer_1 = require("../ModalContainer");
|
|
6
6
|
exports.outerModalStyle = {
|
|
7
|
-
width: (0, ModalContainer_1.getMaxModalWidth)(
|
|
8
|
-
height: (0, ModalContainer_1.getMaxModalHeight)(
|
|
7
|
+
width: (0, ModalContainer_1.getMaxModalWidth)(800),
|
|
8
|
+
height: (0, ModalContainer_1.getMaxModalHeight)(490),
|
|
9
9
|
overflow: 'hidden',
|
|
10
10
|
display: 'flex',
|
|
11
11
|
flexDirection: 'column',
|
|
@@ -19,7 +19,8 @@ exports.container = {
|
|
|
19
19
|
};
|
|
20
20
|
exports.optionsPanel = {
|
|
21
21
|
display: 'flex',
|
|
22
|
-
|
|
22
|
+
flex: 1,
|
|
23
|
+
minWidth: 0,
|
|
23
24
|
};
|
|
24
25
|
exports.horizontalLayout = {
|
|
25
26
|
display: 'flex',
|
|
@@ -28,31 +29,33 @@ exports.horizontalLayout = {
|
|
|
28
29
|
flex: 1,
|
|
29
30
|
};
|
|
30
31
|
exports.leftSidebar = {
|
|
31
|
-
padding:
|
|
32
|
+
padding: 6,
|
|
32
33
|
};
|
|
33
34
|
exports.horizontalTab = {
|
|
34
|
-
width:
|
|
35
|
+
width: 150,
|
|
35
36
|
display: 'flex',
|
|
36
37
|
flexDirection: 'row',
|
|
37
38
|
alignItems: 'center',
|
|
38
39
|
textAlign: 'left',
|
|
39
|
-
fontSize:
|
|
40
|
-
fontWeight: '
|
|
41
|
-
paddingLeft:
|
|
42
|
-
paddingTop:
|
|
43
|
-
paddingBottom:
|
|
40
|
+
fontSize: 14,
|
|
41
|
+
fontWeight: 'normal',
|
|
42
|
+
paddingLeft: 8,
|
|
43
|
+
paddingTop: 6,
|
|
44
|
+
paddingBottom: 6,
|
|
45
|
+
borderRadius: 4,
|
|
44
46
|
};
|
|
45
47
|
exports.iconContainer = {
|
|
46
|
-
width:
|
|
47
|
-
height:
|
|
48
|
-
marginRight:
|
|
48
|
+
width: 18,
|
|
49
|
+
height: 18,
|
|
50
|
+
marginRight: 8,
|
|
51
|
+
color: 'inherit',
|
|
49
52
|
display: 'inline-flex',
|
|
50
53
|
justifyContent: 'center',
|
|
51
54
|
alignItems: 'center',
|
|
52
55
|
};
|
|
53
56
|
exports.icon = {
|
|
54
|
-
color:
|
|
55
|
-
height:
|
|
57
|
+
color: 'inherit',
|
|
58
|
+
height: 18,
|
|
56
59
|
};
|
|
57
60
|
exports.buttonStyle = {
|
|
58
61
|
backgroundColor: colors_1.BLUE,
|
|
@@ -4,16 +4,12 @@ exports.RenderQueueRepeatItem = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const colors_1 = require("../../helpers/colors");
|
|
7
|
-
const mobile_layout_1 = require("../../helpers/mobile-layout");
|
|
8
7
|
const retry_payload_1 = require("../../helpers/retry-payload");
|
|
9
8
|
const modals_1 = require("../../state/modals");
|
|
10
|
-
const sidebar_1 = require("../../state/sidebar");
|
|
11
9
|
const InlineAction_1 = require("../InlineAction");
|
|
12
10
|
const context_1 = require("./context");
|
|
13
11
|
const RenderQueueRepeatItem = ({ job }) => {
|
|
14
12
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
15
|
-
const isMobileLayout = (0, mobile_layout_1.useMobileLayout)();
|
|
16
|
-
const { setSidebarCollapsedState } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
17
13
|
const isClientJob = (0, context_1.isClientRenderJob)(job);
|
|
18
14
|
const onClick = (0, react_1.useCallback)((e) => {
|
|
19
15
|
e.stopPropagation();
|
|
@@ -25,16 +21,7 @@ const RenderQueueRepeatItem = ({ job }) => {
|
|
|
25
21
|
const retryPayload = (0, retry_payload_1.makeRetryPayload)(job);
|
|
26
22
|
setSelectedModal(retryPayload);
|
|
27
23
|
}
|
|
28
|
-
|
|
29
|
-
setSidebarCollapsedState({ left: 'collapsed', right: 'collapsed' });
|
|
30
|
-
}
|
|
31
|
-
}, [
|
|
32
|
-
isMobileLayout,
|
|
33
|
-
job,
|
|
34
|
-
isClientJob,
|
|
35
|
-
setSelectedModal,
|
|
36
|
-
setSidebarCollapsedState,
|
|
37
|
-
]);
|
|
24
|
+
}, [job, isClientJob, setSelectedModal]);
|
|
38
25
|
const icon = (0, react_1.useMemo)(() => {
|
|
39
26
|
return {
|
|
40
27
|
height: 12,
|
|
@@ -66,6 +66,7 @@ const disable_sequence_interactivity_1 = require("./Timeline/disable-sequence-in
|
|
|
66
66
|
const duplicate_selected_timeline_item_1 = require("./Timeline/duplicate-selected-timeline-item");
|
|
67
67
|
const focus_inspector_field_1 = require("./Timeline/focus-inspector-field");
|
|
68
68
|
const get_sequence_context_menu_items_1 = require("./Timeline/get-sequence-context-menu-items");
|
|
69
|
+
const imperative_state_1 = require("./Timeline/imperative-state");
|
|
69
70
|
const save_sequence_prop_1 = require("./Timeline/save-sequence-prop");
|
|
70
71
|
const timeline_asset_link_1 = require("./Timeline/timeline-asset-link");
|
|
71
72
|
const timeline_translate_utils_1 = require("./Timeline/timeline-translate-utils");
|
|
@@ -309,9 +310,6 @@ const SelectedOutlinePolygon = ({ allDragTargets, allDragOutlines, contextMenuVa
|
|
|
309
310
|
const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
|
|
310
311
|
const { setPropStatuses, setDragOverrides, clearDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
|
|
311
312
|
const { editorSnapping } = (0, react_1.useContext)(editor_snapping_1.EditorSnappingContext);
|
|
312
|
-
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
313
|
-
const timelinePositionRef = (0, react_1.useRef)(timelinePosition);
|
|
314
|
-
timelinePositionRef.current = timelinePosition;
|
|
315
313
|
const polygonRef = (0, react_1.useRef)(null);
|
|
316
314
|
const points = (0, react_1.useMemo)(() => outline.points.map(selected_outline_measurement_1.pointToString).join(' '), [outline.points]);
|
|
317
315
|
const drag = (_a = target === null || target === void 0 ? void 0 : target.drag) !== null && _a !== void 0 ? _a : null;
|
|
@@ -342,7 +340,7 @@ const SelectedOutlinePolygon = ({ allDragTargets, allDragOutlines, contextMenuVa
|
|
|
342
340
|
const dragStates = (0, selected_outline_drag_1.getSelectedOutlineDragStates)({
|
|
343
341
|
dragTargets: selected ? allDragTargets : [drag],
|
|
344
342
|
getDragOverrides,
|
|
345
|
-
timelinePosition:
|
|
343
|
+
timelinePosition: (0, imperative_state_1.getCurrentFrame)(),
|
|
346
344
|
});
|
|
347
345
|
let lastValues = new Map();
|
|
348
346
|
let currentPointerX = startPointerX;
|
|
@@ -575,9 +573,6 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
|
|
|
575
573
|
var _a, _b;
|
|
576
574
|
const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
|
|
577
575
|
const { setPropStatuses, setDragOverrides, clearDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
|
|
578
|
-
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
579
|
-
const timelinePositionRef = (0, react_1.useRef)(timelinePosition);
|
|
580
|
-
timelinePositionRef.current = timelinePosition;
|
|
581
576
|
const scaleDrag = (_a = target === null || target === void 0 ? void 0 : target.scaleDrag) !== null && _a !== void 0 ? _a : null;
|
|
582
577
|
const selected = (_b = target === null || target === void 0 ? void 0 : target.selected) !== null && _b !== void 0 ? _b : false;
|
|
583
578
|
const lineRef = (0, react_1.useRef)(null);
|
|
@@ -603,7 +598,7 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
|
|
|
603
598
|
const dragStates = (0, selected_outline_drag_1.getSelectedOutlineScaleDragStates)({
|
|
604
599
|
dragTargets: selected ? allScaleDragTargets : [scaleDrag],
|
|
605
600
|
getDragOverrides,
|
|
606
|
-
timelinePosition:
|
|
601
|
+
timelinePosition: (0, imperative_state_1.getCurrentFrame)(),
|
|
607
602
|
});
|
|
608
603
|
let lastValues = new Map();
|
|
609
604
|
let dragStarted = false;
|
|
@@ -744,9 +739,6 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
|
|
|
744
739
|
const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
|
|
745
740
|
const { setPropStatuses, setDragOverrides, clearDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
|
|
746
741
|
const { editorSnapping } = (0, react_1.useContext)(editor_snapping_1.EditorSnappingContext);
|
|
747
|
-
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
748
|
-
const timelinePositionRef = (0, react_1.useRef)(timelinePosition);
|
|
749
|
-
timelinePositionRef.current = timelinePosition;
|
|
750
742
|
const rotationDrag = (_a = target === null || target === void 0 ? void 0 : target.rotationDrag) !== null && _a !== void 0 ? _a : null;
|
|
751
743
|
const selected = (_b = target === null || target === void 0 ? void 0 : target.selected) !== null && _b !== void 0 ? _b : false;
|
|
752
744
|
const circleRef = (0, react_1.useRef)(null);
|
|
@@ -786,7 +778,7 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
|
|
|
786
778
|
const dragStates = (0, selected_outline_drag_1.getSelectedOutlineRotationDragStates)({
|
|
787
779
|
dragTargets: selected ? allRotationDragTargets : [rotationDrag],
|
|
788
780
|
getDragOverrides,
|
|
789
|
-
timelinePosition:
|
|
781
|
+
timelinePosition: (0, imperative_state_1.getCurrentFrame)(),
|
|
790
782
|
});
|
|
791
783
|
let previousAngle = (0, selected_outline_measurement_1.getAngleDegrees)(center, {
|
|
792
784
|
x: event.clientX,
|
|
@@ -5,15 +5,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
7
|
const client_id_1 = require("../helpers/client-id");
|
|
8
|
-
const mobile_layout_1 = require("../helpers/mobile-layout");
|
|
9
8
|
const render_1 = require("../icons/render");
|
|
10
9
|
const modals_1 = require("../state/modals");
|
|
11
|
-
const sidebar_1 = require("../state/sidebar");
|
|
12
10
|
const InlineAction_1 = require("./InlineAction");
|
|
13
11
|
const SidebarRenderButton = ({ composition, visible }) => {
|
|
14
12
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
15
|
-
const { setSidebarCollapsedState } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
16
|
-
const isMobileLayout = (0, mobile_layout_1.useMobileLayout)();
|
|
17
13
|
const iconStyle = (0, react_1.useMemo)(() => {
|
|
18
14
|
return {
|
|
19
15
|
style: {
|
|
@@ -84,17 +80,7 @@ const SidebarRenderButton = ({ composition, visible }) => {
|
|
|
84
80
|
initialDarkMode: defaults.darkMode,
|
|
85
81
|
readOnlyStudio: false,
|
|
86
82
|
});
|
|
87
|
-
|
|
88
|
-
setSidebarCollapsedState({ left: 'collapsed', right: 'collapsed' });
|
|
89
|
-
}
|
|
90
|
-
}, [
|
|
91
|
-
composition.defaultProps,
|
|
92
|
-
composition.id,
|
|
93
|
-
isMobileLayout,
|
|
94
|
-
props,
|
|
95
|
-
setSelectedModal,
|
|
96
|
-
setSidebarCollapsedState,
|
|
97
|
-
]);
|
|
83
|
+
}, [composition.defaultProps, composition.id, props, setSelectedModal]);
|
|
98
84
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
99
85
|
return jsx_runtime_1.jsx(render_1.ThinRenderIcon, { fill: color, svgProps: iconStyle });
|
|
100
86
|
}, [iconStyle]);
|
|
@@ -4,6 +4,7 @@ exports.SizeSelector = exports.usePreviewSizeMenuItems = exports.getUniqueSizes
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
|
+
const colors_1 = require("../helpers/colors");
|
|
7
8
|
const get_preview_file_type_1 = require("../helpers/get-preview-file-type");
|
|
8
9
|
const Checkmark_1 = require("../icons/Checkmark");
|
|
9
10
|
const ControlButton_1 = require("./ControlButton");
|
|
@@ -123,6 +124,6 @@ const SizeSelector = () => {
|
|
|
123
124
|
if (!zoomable) {
|
|
124
125
|
return null;
|
|
125
126
|
}
|
|
126
|
-
return (jsx_runtime_1.jsx("div", { style: style, "aria-label": accessibilityLabel, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { size: "compact", title: accessibilityLabel, style: comboStyle, selectedId: selectedId, values: items }) }));
|
|
127
|
+
return (jsx_runtime_1.jsx("div", { style: style, "aria-label": accessibilityLabel, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { size: "compact", title: accessibilityLabel, style: comboStyle, selectedId: selectedId, values: items, unhoveredIconColor: colors_1.WHITE_ALPHA_80 }) }));
|
|
127
128
|
};
|
|
128
129
|
exports.SizeSelector = SizeSelector;
|
|
@@ -14,13 +14,12 @@ const SnappingToggle = () => {
|
|
|
14
14
|
const onClick = (0, react_1.useCallback)(() => {
|
|
15
15
|
setEditorSnapping((current) => !current);
|
|
16
16
|
}, [setEditorSnapping]);
|
|
17
|
-
const color = editorSnapping ? colors_1.BLUE : colors_1.WHITE;
|
|
18
17
|
const accessibilityLabel = [
|
|
19
18
|
editorSnapping ? 'Disable snapping' : 'Enable snapping',
|
|
20
19
|
(0, use_keybinding_1.areKeyboardShortcutsDisabled)() ? null : '(Shift+M)',
|
|
21
20
|
]
|
|
22
21
|
.filter(no_react_1.NoReactInternals.truthy)
|
|
23
22
|
.join(' ');
|
|
24
|
-
return (jsx_runtime_1.jsx(ControlButton_1.ControlButton, { title: accessibilityLabel, "aria-label": accessibilityLabel, "aria-pressed": editorSnapping, "aria-keyshortcuts": "Shift+M", onClick: onClick, children: jsx_runtime_1.jsx(magnet_1.MagnetIcon, { style: { width:
|
|
23
|
+
return (jsx_runtime_1.jsx(ControlButton_1.ControlButton, { title: accessibilityLabel, "aria-label": accessibilityLabel, "aria-pressed": editorSnapping, "aria-keyshortcuts": "Shift+M", onClick: onClick, children: (color) => (jsx_runtime_1.jsx(magnet_1.MagnetIcon, { style: { width: 18, height: 18, transform: 'translateY(1px)' }, color: editorSnapping ? colors_1.BLUE : color, "aria-hidden": "true", focusable: "false" })) }));
|
|
25
24
|
};
|
|
26
25
|
exports.SnappingToggle = SnappingToggle;
|
|
@@ -10,7 +10,7 @@ const className = '__remotion_spinner_line';
|
|
|
10
10
|
const remotionSpinnerAnimation = '__remotion_spinner_animation';
|
|
11
11
|
// Generated from https://github.com/remotion-dev/template-next/commit/9282c93f7c51ada31a42e18a94680fa09a14eee3
|
|
12
12
|
const translated = 'M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z';
|
|
13
|
-
const Spinner = ({ size, duration }) => {
|
|
13
|
+
const Spinner = ({ size, duration, color = colors_1.LIGHT_TEXT }) => {
|
|
14
14
|
const style = (0, react_1.useMemo)(() => {
|
|
15
15
|
return {
|
|
16
16
|
width: size,
|
|
@@ -36,7 +36,7 @@ const Spinner = ({ size, duration }) => {
|
|
|
36
36
|
rotate: `${(index * Math.PI * 2) / lines}rad`,
|
|
37
37
|
transformOrigin: 'center center',
|
|
38
38
|
animationDelay: `${index * (duration / lines) - duration}s`,
|
|
39
|
-
}, d: translated, fill:
|
|
39
|
+
}, d: translated, fill: color }, index));
|
|
40
40
|
}) })
|
|
41
41
|
] }));
|
|
42
42
|
};
|
|
@@ -8,6 +8,7 @@ export declare const SplitterContainer: React.FC<{
|
|
|
8
8
|
readonly maxFlexerSize: number | null;
|
|
9
9
|
readonly minFlexerSize: number | null;
|
|
10
10
|
readonly maxAntiFlexerSize: number | null;
|
|
11
|
+
readonly minAntiFlexerSize: number | null;
|
|
11
12
|
readonly id: string;
|
|
12
13
|
readonly defaultFlex: number;
|
|
13
14
|
readonly children: React.ReactNode;
|
|
@@ -20,7 +20,7 @@ exports.containerColumn = {
|
|
|
20
20
|
flex: 1,
|
|
21
21
|
height: 0,
|
|
22
22
|
};
|
|
23
|
-
const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFlex, maxFlexerSize, minFlexerSize, maxAntiFlexerSize, id, }) => {
|
|
23
|
+
const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFlex, maxFlexerSize, minFlexerSize, maxAntiFlexerSize, minAntiFlexerSize, id, }) => {
|
|
24
24
|
const [initialTimelineFlex, persistFlex] = (0, timeline_1.useTimelineFlex)(id);
|
|
25
25
|
const [flexValue, setFlexValue] = (0, react_1.useState)(initialTimelineFlex !== null && initialTimelineFlex !== void 0 ? initialTimelineFlex : defaultFlex);
|
|
26
26
|
const ref = (0, react_1.useRef)(null);
|
|
@@ -39,6 +39,7 @@ const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFle
|
|
|
39
39
|
maxAntiFlexerSize,
|
|
40
40
|
maxFlex,
|
|
41
41
|
maxFlexerSize,
|
|
42
|
+
minAntiFlexerSize,
|
|
42
43
|
minFlex,
|
|
43
44
|
minFlexerSize,
|
|
44
45
|
});
|
|
@@ -55,6 +56,7 @@ const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFle
|
|
|
55
56
|
maxFlexerSize,
|
|
56
57
|
minFlexerSize,
|
|
57
58
|
maxAntiFlexerSize,
|
|
59
|
+
minAntiFlexerSize,
|
|
58
60
|
defaultFlex,
|
|
59
61
|
persistFlex,
|
|
60
62
|
};
|
|
@@ -66,6 +68,7 @@ const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFle
|
|
|
66
68
|
maxFlexerSize,
|
|
67
69
|
minFlexerSize,
|
|
68
70
|
maxAntiFlexerSize,
|
|
71
|
+
minAntiFlexerSize,
|
|
69
72
|
minFlex,
|
|
70
73
|
orientation,
|
|
71
74
|
persistFlex,
|
|
@@ -14,6 +14,7 @@ export type TSplitterContext = {
|
|
|
14
14
|
maxFlexerSize: number | null;
|
|
15
15
|
minFlexerSize: number | null;
|
|
16
16
|
maxAntiFlexerSize: number | null;
|
|
17
|
+
minAntiFlexerSize: number | null;
|
|
17
18
|
defaultFlex: number;
|
|
18
19
|
id: string;
|
|
19
20
|
persistFlex: (value: number) => void;
|
|
@@ -22,14 +23,14 @@ export type TSplitterContext = {
|
|
|
22
23
|
y: number;
|
|
23
24
|
}>;
|
|
24
25
|
};
|
|
25
|
-
type SplitterFlexBounds = Pick<TSplitterContext, 'maxAntiFlexerSize' | 'maxFlex' | 'maxFlexerSize' | 'minFlex' | 'minFlexerSize'> & {
|
|
26
|
+
type SplitterFlexBounds = Pick<TSplitterContext, 'maxAntiFlexerSize' | 'maxFlex' | 'maxFlexerSize' | 'minAntiFlexerSize' | 'minFlex' | 'minFlexerSize'> & {
|
|
26
27
|
readonly availableSize: number | null;
|
|
27
28
|
};
|
|
28
|
-
export declare const getSplitterFlexBounds: ({ availableSize, maxAntiFlexerSize, maxFlex, maxFlexerSize, minFlex, minFlexerSize, }: SplitterFlexBounds) => {
|
|
29
|
+
export declare const getSplitterFlexBounds: ({ availableSize, maxAntiFlexerSize, maxFlex, maxFlexerSize, minAntiFlexerSize, minFlex, minFlexerSize, }: SplitterFlexBounds) => {
|
|
29
30
|
minFlex: number;
|
|
30
31
|
maxFlex: number;
|
|
31
32
|
};
|
|
32
|
-
export declare const getClampedSplitterFlex: ({ flexValue, ...bounds }: Pick<TSplitterContext, "maxAntiFlexerSize" | "maxFlex" | "maxFlexerSize" | "minFlex" | "minFlexerSize"> & {
|
|
33
|
+
export declare const getClampedSplitterFlex: ({ flexValue, ...bounds }: Pick<TSplitterContext, "maxAntiFlexerSize" | "maxFlex" | "maxFlexerSize" | "minAntiFlexerSize" | "minFlex" | "minFlexerSize"> & {
|
|
33
34
|
readonly availableSize: number | null;
|
|
34
35
|
} & {
|
|
35
36
|
readonly flexValue: number;
|
|
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SplitterContext = exports.getClampedSplitterFlex = exports.getSplitterFlexBounds = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const getSplitterFlexBounds = ({ availableSize, maxAntiFlexerSize, maxFlex, maxFlexerSize, minFlex, minFlexerSize, }) => {
|
|
8
|
+
const getSplitterFlexBounds = ({ availableSize, maxAntiFlexerSize, maxFlex, maxFlexerSize, minAntiFlexerSize, minFlex, minFlexerSize, }) => {
|
|
9
9
|
if (availableSize === null || availableSize <= 0) {
|
|
10
10
|
return { minFlex, maxFlex };
|
|
11
11
|
}
|
|
12
12
|
const minimum = Math.min(1, Math.max(minFlex, minFlexerSize === null ? 0 : minFlexerSize / availableSize, maxAntiFlexerSize === null ? 0 : 1 - maxAntiFlexerSize / availableSize));
|
|
13
|
-
const maximum = Math.max(minimum, Math.min(maxFlex, maxFlexerSize === null ? 1 : maxFlexerSize / availableSize));
|
|
13
|
+
const maximum = Math.max(minimum, Math.min(maxFlex, maxFlexerSize === null ? 1 : maxFlexerSize / availableSize, minAntiFlexerSize === null ? 1 : 1 - minAntiFlexerSize / availableSize));
|
|
14
14
|
return { minFlex: minimum, maxFlex: maximum };
|
|
15
15
|
};
|
|
16
16
|
exports.getSplitterFlexBounds = getSplitterFlexBounds;
|
|
@@ -30,6 +30,7 @@ exports.SplitterContext = react_1.default.createContext({
|
|
|
30
30
|
maxFlexerSize: null,
|
|
31
31
|
minFlexerSize: null,
|
|
32
32
|
maxAntiFlexerSize: null,
|
|
33
|
+
minAntiFlexerSize: null,
|
|
33
34
|
defaultFlex: 1,
|
|
34
35
|
id: '--',
|
|
35
36
|
persistFlex: () => undefined,
|
|
@@ -9,6 +9,7 @@ const SplitterContext_1 = require("./SplitterContext");
|
|
|
9
9
|
const SplitterElement = ({ children, type, sticky }) => {
|
|
10
10
|
const context = (0, react_1.useContext)(SplitterContext_1.SplitterContext);
|
|
11
11
|
const maxSize = type === 'flexer' ? context.maxFlexerSize : context.maxAntiFlexerSize;
|
|
12
|
+
const minSize = type === 'flexer' ? context.minFlexerSize : context.minAntiFlexerSize;
|
|
12
13
|
const style = (0, react_1.useMemo)(() => {
|
|
13
14
|
return {
|
|
14
15
|
flex:
|
|
@@ -22,8 +23,12 @@ const SplitterElement = ({ children, type, sticky }) => {
|
|
|
22
23
|
maxHeight: context.orientation === 'horizontal'
|
|
23
24
|
? (maxSize !== null && maxSize !== void 0 ? maxSize : undefined)
|
|
24
25
|
: undefined,
|
|
26
|
+
minWidth: context.orientation === 'vertical' ? (minSize !== null && minSize !== void 0 ? minSize : undefined) : undefined,
|
|
27
|
+
minHeight: context.orientation === 'horizontal'
|
|
28
|
+
? (minSize !== null && minSize !== void 0 ? minSize : undefined)
|
|
29
|
+
: undefined,
|
|
25
30
|
};
|
|
26
|
-
}, [context.flexValue, context.orientation, maxSize, type]);
|
|
31
|
+
}, [context.flexValue, context.orientation, maxSize, minSize, type]);
|
|
27
32
|
const stickStyle = (0, react_1.useMemo)(() => {
|
|
28
33
|
return {
|
|
29
34
|
position: 'absolute',
|
|
@@ -54,6 +54,7 @@ const SplitterHandle = ({ allowToCollapse, onCollapse }) => {
|
|
|
54
54
|
maxAntiFlexerSize: dragContext.maxAntiFlexerSize,
|
|
55
55
|
maxFlex: dragContext.maxFlex,
|
|
56
56
|
maxFlexerSize: dragContext.maxFlexerSize,
|
|
57
|
+
minAntiFlexerSize: dragContext.minAntiFlexerSize,
|
|
57
58
|
minFlex: dragContext.minFlex,
|
|
58
59
|
minFlexerSize: dragContext.minFlexerSize,
|
|
59
60
|
});
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const VerticalTab: React.FC<{
|
|
3
3
|
readonly children: React.ReactNode;
|
|
4
4
|
readonly onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
readonly renderIcon?: (color: string) => React.ReactNode;
|
|
5
6
|
readonly style?: React.CSSProperties;
|
|
6
7
|
readonly selected: boolean;
|
|
7
8
|
}>;
|
|
@@ -12,13 +12,14 @@ const selectorButton = {
|
|
|
12
12
|
paddingLeft: 16,
|
|
13
13
|
display: 'flex',
|
|
14
14
|
flexDirection: 'row',
|
|
15
|
+
fontFamily: 'sans-serif',
|
|
15
16
|
fontSize: 14,
|
|
16
17
|
color: 'inherit',
|
|
17
18
|
alignItems: 'center',
|
|
18
19
|
userSelect: 'none',
|
|
19
20
|
WebkitUserSelect: 'none',
|
|
20
21
|
};
|
|
21
|
-
const VerticalTab = ({ children, onClick, style, selected }) => {
|
|
22
|
+
const VerticalTab = ({ children, onClick, renderIcon, style, selected }) => {
|
|
22
23
|
const [hovered, setHovered] = (0, react_1.useState)(false);
|
|
23
24
|
const { tabIndex } = (0, z_index_1.useZIndex)();
|
|
24
25
|
const onPointerEnter = (0, react_1.useCallback)(() => {
|
|
@@ -27,19 +28,16 @@ const VerticalTab = ({ children, onClick, style, selected }) => {
|
|
|
27
28
|
const onPointerLeave = (0, react_1.useCallback)(() => {
|
|
28
29
|
setHovered(false);
|
|
29
30
|
}, []);
|
|
31
|
+
const color = selected || hovered ? colors_1.WHITE : colors_1.LIGHT_TEXT;
|
|
30
32
|
const definiteStyle = (0, react_1.useMemo)(() => {
|
|
31
33
|
return {
|
|
32
34
|
...selectorButton,
|
|
33
|
-
backgroundColor: selected
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
? colors_1.WHITE_ALPHA_06
|
|
37
|
-
: colors_1.TRANSPARENT,
|
|
38
|
-
color: selected ? colors_1.WHITE : colors_1.LIGHT_TEXT,
|
|
39
|
-
boxShadow: selected ? 'none' : undefined,
|
|
35
|
+
backgroundColor: selected || hovered ? colors_1.WHITE_ALPHA_06 : colors_1.TRANSPARENT,
|
|
36
|
+
color,
|
|
37
|
+
boxShadow: 'none',
|
|
40
38
|
...style,
|
|
41
39
|
};
|
|
42
|
-
}, [hovered, selected, style]);
|
|
43
|
-
return (jsx_runtime_1.
|
|
40
|
+
}, [color, hovered, selected, style]);
|
|
41
|
+
return (jsx_runtime_1.jsxs("button", { style: definiteStyle, type: "button", onClick: onClick, tabIndex: tabIndex, onPointerLeave: onPointerLeave, onPointerEnter: onPointerEnter, children: [renderIcon ? renderIcon(color) : null, children] }));
|
|
44
42
|
};
|
|
45
43
|
exports.VerticalTab = VerticalTab;
|