@remotion/studio 4.0.422 → 4.0.424
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/FastRefreshProvider.js +1 -1
- package/dist/ResolveCompositionConfigInStudio.js +1 -1
- package/dist/Studio.js +6 -4
- package/dist/api/create-composition.js +2 -2
- package/dist/api/focus-default-props-path.d.ts +1 -1
- package/dist/api/get-zod-schema-from-primitive.d.ts +3 -2
- package/dist/api/get-zod-schema-from-primitive.js +3 -4
- package/dist/api/helpers/calc-new-props.d.ts +2 -2
- package/dist/api/play.d.ts +1 -1
- package/dist/api/save-render-output.d.ts +7 -0
- package/dist/api/save-render-output.js +45 -0
- package/dist/api/toggle.d.ts +1 -1
- package/dist/components/AskAiModal.js +3 -1
- package/dist/components/AssetSelector.js +21 -58
- package/dist/components/AssetSelectorItem.js +15 -9
- package/dist/components/AudioWaveform.js +5 -4
- package/dist/components/AudioWaveformBar.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Canvas.js +2 -1
- package/dist/components/CanvasIfSizeIsAvailable.js +1 -1
- package/dist/components/CanvasOrLoading.js +12 -6
- package/dist/components/CheckboardToggle.js +1 -1
- package/dist/components/Checkbox.js +3 -1
- package/dist/components/CheckerboardProvider.js +1 -1
- package/dist/components/CompSelectorRef.js +1 -1
- package/dist/components/CompositionContextButton.js +2 -2
- package/dist/components/CompositionSelector.js +4 -3
- package/dist/components/CompositionSelectorItem.js +6 -3
- package/dist/components/ContextMenu.js +3 -2
- package/dist/components/ControlButton.d.ts +1 -1
- package/dist/components/ControlButton.js +1 -1
- package/dist/components/CopyButton.js +3 -2
- package/dist/components/CurrentAsset.d.ts +3 -0
- package/dist/components/CurrentAsset.js +113 -0
- package/dist/components/CurrentComposition.js +3 -2
- package/dist/components/Editor.js +6 -1
- package/dist/components/EditorContent.js +6 -1
- package/dist/components/EditorContexts.js +3 -1
- package/dist/components/EditorGuides/Guide.js +1 -1
- package/dist/components/EditorGuides/index.js +2 -2
- package/dist/components/EditorRuler/Ruler.js +1 -1
- package/dist/components/EditorRuler/index.js +3 -1
- package/dist/components/ExplorerPanel.js +4 -1
- package/dist/components/FilePreview.js +8 -6
- package/dist/components/FpsCounter.js +1 -1
- package/dist/components/FullscreenToggle.js +1 -1
- package/dist/components/GlobalPropsEditorUpdateButton.js +3 -1
- package/dist/components/InitialCompositionLoader.d.ts +1 -2
- package/dist/components/InitialCompositionLoader.js +3 -3
- package/dist/components/InlineAction.js +1 -1
- package/dist/components/InlineDropdown.js +3 -2
- package/dist/components/InstallPackage.js +19 -9
- package/dist/components/InstallablePackage.js +5 -3
- package/dist/components/JSONViewer.js +1 -1
- package/dist/components/KeyboardShortcutsExplainer.js +91 -1
- package/dist/components/KnownBugs.js +4 -2
- package/dist/components/LoopToggle.js +1 -1
- package/dist/components/MediaVolumeProvider.js +1 -1
- package/dist/components/Menu/MenuDivider.js +1 -1
- package/dist/components/Menu/MenuItem.js +3 -2
- package/dist/components/Menu/MenuSubItem.js +4 -2
- package/dist/components/Menu/SubMenu.js +1 -1
- package/dist/components/MenuBuildIndicator.js +1 -1
- package/dist/components/MenuToolbar.js +5 -3
- package/dist/components/MobilePanel.d.ts +1 -1
- package/dist/components/MobilePanel.js +2 -1
- package/dist/components/ModalButton.js +1 -1
- package/dist/components/ModalContainer.js +1 -1
- package/dist/components/ModalFooter.js +1 -1
- package/dist/components/ModalHeader.js +3 -1
- package/dist/components/Modals.js +2 -2
- package/dist/components/ModalsProvider.js +1 -1
- package/dist/components/MuteToggle.js +1 -1
- package/dist/components/NewComposition/CancelButton.js +1 -1
- package/dist/components/NewComposition/CodemodFooter.js +5 -2
- package/dist/components/NewComposition/ComboBox.js +6 -2
- package/dist/components/NewComposition/DeleteComposition.js +10 -2
- package/dist/components/NewComposition/DiffPreview.js +5 -3
- package/dist/components/NewComposition/DismissableModal.js +1 -1
- package/dist/components/NewComposition/DuplicateComposition.js +28 -3
- package/dist/components/NewComposition/InputDragger.d.ts +1 -1
- package/dist/components/NewComposition/InputDragger.js +2 -2
- package/dist/components/NewComposition/MenuContent.js +3 -3
- package/dist/components/NewComposition/NewCompDuration.js +7 -2
- package/dist/components/NewComposition/RemInput.d.ts +2 -2
- package/dist/components/NewComposition/RemInput.js +2 -2
- package/dist/components/NewComposition/RemInputTypeColor.js +1 -1
- package/dist/components/NewComposition/RemTextarea.js +1 -1
- package/dist/components/NewComposition/RenameComposition.js +11 -2
- package/dist/components/NewComposition/ValidationMessage.js +4 -2
- package/dist/components/NoRegisterRoot.js +4 -1
- package/dist/components/Notifications/ColorDot.js +1 -1
- package/dist/components/Notifications/Notification.js +1 -1
- package/dist/components/Notifications/NotificationCenter.js +2 -2
- package/dist/components/Notifications/ServerDisconnected.js +2 -1
- package/dist/components/OpenEditorButton.js +2 -2
- package/dist/components/OptionsPanel.js +7 -4
- package/dist/components/OverrideInputProps.js +7 -2
- package/dist/components/PlayPause.js +3 -1
- package/dist/components/PlaybackRateSelector.js +2 -2
- package/dist/components/Preview.js +8 -8
- package/dist/components/PreviewToolbar.js +11 -1
- package/dist/components/QuickSwitcher/AlgoliaCredit.js +1 -1
- package/dist/components/QuickSwitcher/NoResults.js +1 -1
- package/dist/components/QuickSwitcher/QuickSwitcher.js +1 -1
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +12 -3
- package/dist/components/QuickSwitcher/QuickSwitcherResult.js +6 -3
- package/dist/components/RefreshCompositionOverlay.js +1 -1
- package/dist/components/RenderButton.js +26 -9
- package/dist/components/RenderModal/CliCopyButton.js +3 -3
- package/dist/components/RenderModal/ClientRenderProgress.js +18 -13
- package/dist/components/RenderModal/CrfSetting.d.ts +1 -2
- package/dist/components/RenderModal/CrfSetting.js +1 -1
- package/dist/components/RenderModal/DataEditor.js +15 -8
- package/dist/components/RenderModal/EnforceAudioTrackSetting.js +5 -1
- package/dist/components/RenderModal/EnvInput.js +4 -1
- package/dist/components/RenderModal/FrameRangeSetting.js +5 -1
- package/dist/components/RenderModal/GuiRenderStatus.js +15 -10
- package/dist/components/RenderModal/InfoBubble.js +3 -2
- package/dist/components/RenderModal/InfoTooltip.js +3 -2
- package/dist/components/RenderModal/InlineEyeIcon.js +2 -2
- package/dist/components/RenderModal/InlineRemoveButton.js +2 -2
- package/dist/components/RenderModal/JpegQualitySetting.js +1 -1
- package/dist/components/RenderModal/MultiRangeSlider.js +3 -1
- package/dist/components/RenderModal/MutedSetting.js +5 -1
- package/dist/components/RenderModal/NumberOfLoopsSetting.js +3 -1
- package/dist/components/RenderModal/NumberSetting.js +6 -2
- package/dist/components/RenderModal/OptionExplainer.js +14 -1
- package/dist/components/RenderModal/OptionExplainerBubble.js +1 -1
- package/dist/components/RenderModal/RenderModalAdvanced.js +66 -7
- package/dist/components/RenderModal/RenderModalAudio.js +21 -4
- package/dist/components/RenderModal/RenderModalBasic.js +18 -3
- package/dist/components/RenderModal/RenderModalEnvironmentVariables.js +5 -3
- package/dist/components/RenderModal/RenderModalGif.js +6 -1
- package/dist/components/RenderModal/RenderModalHr.js +1 -1
- package/dist/components/RenderModal/RenderModalJSONPropsEditor.js +5 -2
- package/dist/components/RenderModal/RenderModalOutputName.js +8 -1
- package/dist/components/RenderModal/RenderModalPicture.js +30 -3
- package/dist/components/RenderModal/RenderStatusModal.js +12 -2
- package/dist/components/RenderModal/ResolveCompositionBeforeModal.js +6 -3
- package/dist/components/RenderModal/ScaleSetting.js +3 -2
- package/dist/components/RenderModal/SchemaEditor/Fieldset.js +2 -2
- package/dist/components/RenderModal/SchemaEditor/SchemaEditor.js +4 -4
- package/dist/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +31 -6
- package/dist/components/RenderModal/SchemaEditor/SchemaLabel.js +3 -3
- package/dist/components/RenderModal/SchemaEditor/SchemaResetButton.js +2 -2
- package/dist/components/RenderModal/SchemaEditor/SchemaSaveButton.js +2 -2
- package/dist/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +9 -5
- package/dist/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +3 -1
- package/dist/components/RenderModal/SchemaEditor/ZodArrayEditor.js +9 -5
- package/dist/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +3 -1
- package/dist/components/RenderModal/SchemaEditor/ZodColorEditor.js +8 -2
- package/dist/components/RenderModal/SchemaEditor/ZodDateEditor.js +5 -1
- package/dist/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.js +6 -4
- package/dist/components/RenderModal/SchemaEditor/ZodEffectEditor.js +3 -1
- package/dist/components/RenderModal/SchemaEditor/ZodEnumEditor.js +4 -2
- package/dist/components/RenderModal/SchemaEditor/ZodErrorMessages.js +6 -4
- package/dist/components/RenderModal/SchemaEditor/ZodFieldValidation.js +8 -2
- package/dist/components/RenderModal/SchemaEditor/ZodMatrixEditor.js +8 -6
- package/dist/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +3 -1
- package/dist/components/RenderModal/SchemaEditor/ZodNullableEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodNumberEditor.js +5 -1
- package/dist/components/RenderModal/SchemaEditor/ZodObjectEditor.js +6 -5
- package/dist/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +4 -1
- package/dist/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +8 -5
- package/dist/components/RenderModal/SchemaEditor/ZodStringEditor.js +5 -1
- package/dist/components/RenderModal/SchemaEditor/ZodSwitch.js +24 -24
- package/dist/components/RenderModal/SchemaEditor/ZodTextareaEditor.js +5 -1
- package/dist/components/RenderModal/SchemaEditor/ZodTupleEditor.js +9 -5
- package/dist/components/RenderModal/SchemaEditor/ZodTupleItemEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodUnionEditor.js +5 -5
- package/dist/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -2
- package/dist/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +4 -4
- package/dist/components/RenderModal/SchemaEditor/local-state.js +1 -1
- package/dist/components/RenderModal/SeparateAudioOption.js +7 -2
- package/dist/components/RenderModal/ServerRenderModal.js +28 -6
- package/dist/components/RenderModal/WarningIndicatorButton.js +4 -2
- package/dist/components/RenderModal/WebRenderModal.js +35 -7
- package/dist/components/RenderModal/WebRenderModalAdvanced.js +11 -4
- package/dist/components/RenderModal/WebRenderModalAudio.js +12 -2
- package/dist/components/RenderModal/WebRenderModalBasic.js +23 -5
- package/dist/components/RenderModal/WebRenderModalLicense.js +24 -2
- package/dist/components/RenderModal/WebRenderModalLicenseKeyDetails.js +12 -1
- package/dist/components/RenderModal/WebRenderModalPicture.js +8 -1
- package/dist/components/RenderModal/WebRendererExperimentalBadge.js +3 -1
- package/dist/components/RenderModal/get-default-codecs.d.ts +7 -8
- package/dist/components/RenderModal/human-readable-audio-codecs.d.ts +1 -2
- package/dist/components/RenderModal/human-readable-codec.d.ts +1 -2
- package/dist/components/RenderModal/human-readable-loglevel.d.ts +1 -2
- package/dist/components/RenderModal/out-name-checker.d.ts +4 -5
- package/dist/components/RenderModal/quality-options.js +1 -1
- package/dist/components/RenderPreview.js +4 -4
- package/dist/components/RenderQueue/CircularProgress.js +1 -1
- package/dist/components/RenderQueue/ClientRenderQueueProcessor.d.ts +1 -0
- package/dist/components/RenderQueue/ClientRenderQueueProcessor.js +34 -5
- package/dist/components/RenderQueue/RenderQueueCancelledMessage.js +1 -1
- package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +2 -2
- package/dist/components/RenderQueue/RenderQueueDownloadItem.d.ts +5 -0
- package/dist/components/RenderQueue/RenderQueueDownloadItem.js +35 -0
- package/dist/components/RenderQueue/RenderQueueError.js +1 -1
- package/dist/components/RenderQueue/RenderQueueItem.js +51 -16
- package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +2 -2
- package/dist/components/RenderQueue/RenderQueueItemStatus.js +10 -7
- package/dist/components/RenderQueue/RenderQueueOpenInFolder.d.ts +2 -2
- package/dist/components/RenderQueue/RenderQueueOpenInFolder.js +2 -2
- package/dist/components/RenderQueue/RenderQueueOutputName.js +2 -9
- package/dist/components/RenderQueue/RenderQueueProgressMessage.js +4 -2
- package/dist/components/RenderQueue/RenderQueueRemoveItem.js +6 -4
- package/dist/components/RenderQueue/RenderQueueRepeat.js +2 -2
- package/dist/components/RenderQueue/RenderQueueSavingMessage.d.ts +2 -0
- package/dist/components/RenderQueue/RenderQueueSavingMessage.js +13 -0
- package/dist/components/RenderQueue/SuccessIcon.js +1 -1
- package/dist/components/RenderQueue/actions.d.ts +21 -24
- package/dist/components/RenderQueue/client-side-render-types.d.ts +11 -9
- package/dist/components/RenderQueue/client-side-render-types.js +5 -0
- package/dist/components/RenderQueue/context.d.ts +6 -3
- package/dist/components/RenderQueue/context.js +39 -8
- package/dist/components/RenderQueue/index.js +11 -19
- package/dist/components/RendersTab.js +3 -1
- package/dist/components/ResetZoomButton.js +1 -1
- package/dist/components/RunningCalculateMetadata.js +5 -1
- package/dist/components/SegmentedControl.js +3 -3
- package/dist/components/SetTimelineInOutProvider.js +1 -1
- package/dist/components/ShowGuidesProvider.js +1 -1
- package/dist/components/ShowRulersProvider.js +1 -1
- package/dist/components/SidebarCollapserControls.js +5 -3
- package/dist/components/SidebarRenderButton.js +2 -2
- package/dist/components/SizeSelector.js +2 -2
- package/dist/components/Spinner.js +6 -4
- package/dist/components/Splitter/SplitterContainer.js +1 -1
- package/dist/components/Splitter/SplitterElement.js +3 -1
- package/dist/components/Splitter/SplitterHandle.js +1 -1
- package/dist/components/StaticFilePreview.js +5 -5
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Tabs/vertical.js +1 -1
- package/dist/components/TextViewer.js +1 -1
- package/dist/components/TimeValue.js +3 -1
- package/dist/components/Timeline/LoopedIndicator.js +4 -2
- package/dist/components/Timeline/LoopedTimelineIndicators.js +5 -4
- package/dist/components/Timeline/MaxTimelineTracks.js +1 -1
- package/dist/components/Timeline/Timeline.js +5 -1
- package/dist/components/Timeline/TimelineCollapseToggle.js +2 -2
- package/dist/components/Timeline/TimelineDragHandler.js +5 -3
- package/dist/components/Timeline/TimelineInOutPointer.js +2 -2
- package/dist/components/Timeline/TimelineInOutPointerHandle.js +2 -2
- package/dist/components/Timeline/TimelineLayerEye.js +3 -3
- package/dist/components/Timeline/TimelineList.js +3 -2
- package/dist/components/Timeline/TimelineListItem.js +3 -1
- package/dist/components/Timeline/TimelineScrollable.js +1 -1
- package/dist/components/Timeline/TimelineSequence.js +6 -6
- package/dist/components/Timeline/TimelineSequenceFrame.js +1 -1
- package/dist/components/Timeline/TimelineSlider.d.ts +1 -1
- package/dist/components/Timeline/TimelineSlider.js +6 -3
- package/dist/components/Timeline/TimelineSliderHandle.js +1 -1
- package/dist/components/Timeline/TimelineStack/index.js +5 -2
- package/dist/components/Timeline/TimelineTimeIndicators.js +5 -5
- package/dist/components/Timeline/TimelineTracks.js +6 -4
- package/dist/components/Timeline/TimelineVideoInfo.js +1 -1
- package/dist/components/Timeline/TimelineWidthProvider.js +1 -1
- package/dist/components/Timeline/TimelineZoomControls.js +3 -1
- package/dist/components/Timeline/timeline-scroll-logic.d.ts +1 -1
- package/dist/components/Timeline/timeline-scroll-logic.js +12 -8
- package/dist/components/TimelineInOutToggle.js +11 -7
- package/dist/components/TopPanel.js +5 -1
- package/dist/components/UpdateCheck.js +2 -2
- package/dist/components/UpdateModal/OpenIssueButton.js +2 -2
- package/dist/components/UpdateModal/UpdateModal.js +8 -1
- package/dist/components/VisualControls/ClickableFileName.js +1 -1
- package/dist/components/VisualControls/VisualControlHandle.js +3 -1
- package/dist/components/VisualControls/VisualControlHandleHeader.js +1 -1
- package/dist/components/VisualControls/VisualControlsContent.js +3 -2
- package/dist/components/ZoomGesturesProvider.js +1 -1
- package/dist/components/call-api.d.ts +1 -1
- package/dist/components/get-zod-if-possible.d.ts +3 -3
- package/dist/components/get-zod-if-possible.js +9 -9
- package/dist/components/layout.js +4 -4
- package/dist/components/use-static-files.d.ts +6 -0
- package/dist/components/use-static-files.js +63 -0
- package/dist/error-overlay/react-overlay/utils/parser.d.ts +1 -1
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +1 -1
- package/dist/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +2 -1
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +6 -4
- package/dist/error-overlay/remotion-overlay/CompositionIdListItem.js +1 -1
- package/dist/error-overlay/remotion-overlay/CompositionIdsDropdown.js +8 -3
- package/dist/error-overlay/remotion-overlay/DismissButton.js +1 -1
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +19 -4
- package/dist/error-overlay/remotion-overlay/ErrorLoader.js +8 -4
- package/dist/error-overlay/remotion-overlay/ErrorMessage.js +2 -1
- package/dist/error-overlay/remotion-overlay/ErrorTitle.js +7 -1
- package/dist/error-overlay/remotion-overlay/HelpLink.js +1 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js +1 -1
- package/dist/error-overlay/remotion-overlay/Overlay.js +2 -2
- package/dist/error-overlay/remotion-overlay/Retry.js +1 -1
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -1
- package/dist/error-overlay/remotion-overlay/ShortcutHint.js +2 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.js +6 -2
- package/dist/error-overlay/remotion-overlay/Symbolicating.js +3 -1
- package/dist/error-overlay/remotion-overlay/carets.d.ts +1 -1
- package/dist/error-overlay/remotion-overlay/carets.js +2 -2
- package/dist/error-overlay/remotion-overlay/index.js +2 -2
- package/dist/esm/{chunk-4153e552.js → chunk-3g77e2p9.js} +4722 -19219
- package/dist/esm/internals.mjs +4722 -19219
- package/dist/esm/previewEntry.mjs +4747 -19244
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/client-id.js +5 -2
- package/dist/helpers/color-math.d.ts +1 -2
- package/dist/helpers/create-folder-tree.d.ts +2 -2
- package/dist/helpers/document-title.js +2 -2
- package/dist/helpers/editor-ruler.d.ts +3 -3
- package/dist/helpers/extract-frames.d.ts +1 -1
- package/dist/helpers/pick-color.js +5 -1
- package/dist/helpers/presets-labels.d.ts +1 -2
- package/dist/helpers/prores-labels.d.ts +1 -2
- package/dist/helpers/render-modal-sections.d.ts +1 -2
- package/dist/helpers/retry-payload.d.ts +2 -2
- package/dist/helpers/timeline-layout.d.ts +1 -1
- package/dist/helpers/use-asset-drag-events.d.ts +1 -1
- package/dist/helpers/use-menu-structure.d.ts +1 -1
- package/dist/helpers/use-menu-structure.js +11 -11
- package/dist/helpers/use-studio-canvas-dimensions.d.ts +1 -1
- package/dist/helpers/validate-new-comp-data.d.ts +2 -3
- package/dist/hot-middleware-client/client.d.ts +1 -1
- package/dist/hot-middleware-client/process-update.d.ts +8 -2
- package/dist/hot-middleware-client/process-update.js +2 -1
- package/dist/icons/Checkmark.js +1 -1
- package/dist/icons/audio.js +1 -1
- package/dist/icons/caret.js +3 -3
- package/dist/icons/certificate.d.ts +1 -1
- package/dist/icons/certificate.js +1 -1
- package/dist/icons/check-circle-filled.js +1 -1
- package/dist/icons/clipboard.js +1 -1
- package/dist/icons/data.js +1 -1
- package/dist/icons/ellipsis.js +1 -1
- package/dist/icons/file.js +1 -1
- package/dist/icons/folder.js +3 -3
- package/dist/icons/frame.js +1 -1
- package/dist/icons/gear.js +1 -1
- package/dist/icons/gif.js +1 -1
- package/dist/icons/jump-to-start.js +1 -1
- package/dist/icons/keys.js +3 -3
- package/dist/icons/media-volume.js +2 -2
- package/dist/icons/minus.js +1 -1
- package/dist/icons/pause.js +1 -1
- package/dist/icons/play.js +1 -1
- package/dist/icons/plus.js +1 -1
- package/dist/icons/render.js +1 -1
- package/dist/icons/step-back.js +1 -1
- package/dist/icons/step-forward.js +1 -1
- package/dist/icons/still.js +1 -1
- package/dist/icons/timelineInOutPointer.js +2 -2
- package/dist/icons/video.js +1 -1
- package/dist/index.js +16 -16
- package/dist/internals.d.ts +1 -1
- package/dist/previewEntry.js +2 -2
- package/dist/renderEntry.js +10 -8
- package/dist/state/folders.js +1 -1
- package/dist/state/highest-z-index.js +1 -1
- package/dist/state/in-out.js +4 -3
- package/dist/state/keybindings.js +1 -1
- package/dist/state/preview-size.js +1 -1
- package/dist/state/sidebar.js +1 -1
- package/dist/state/timeline-zoom.js +1 -1
- package/dist/state/z-index.js +2 -1
- package/dist/visual-controls/VisualControls.js +1 -1
- package/dist/visual-controls/get-current-edited-value.js +2 -1
- package/package.json +13 -12
|
@@ -19,6 +19,6 @@ const ShowRulersProvider = ({ children }) => {
|
|
|
19
19
|
setEditorShowRulers,
|
|
20
20
|
};
|
|
21
21
|
}, [editorShowRulers, setEditorShowRulers]);
|
|
22
|
-
return (
|
|
22
|
+
return (jsx_runtime_1.jsx(editor_rulers_1.EditorShowRulersContext.Provider, { value: editorShowRulersCtx, children: children }));
|
|
23
23
|
};
|
|
24
24
|
exports.ShowRulersProvider = ShowRulersProvider;
|
|
@@ -128,11 +128,13 @@ const SidebarCollapserControls = () => {
|
|
|
128
128
|
};
|
|
129
129
|
}, []);
|
|
130
130
|
const toggleLeftAction = (0, react_1.useCallback)((color) => {
|
|
131
|
-
return (
|
|
131
|
+
return (jsx_runtime_1.jsx("div", { style: colorStyle(color), title: toggleLeftTooltip, children: jsx_runtime_1.jsx("div", { style: leftIcon(color) }) }));
|
|
132
132
|
}, [colorStyle, leftIcon, toggleLeftTooltip]);
|
|
133
133
|
const toggleRightAction = (0, react_1.useCallback)((color) => {
|
|
134
|
-
return (
|
|
134
|
+
return (jsx_runtime_1.jsx("div", { style: colorStyle(color), title: toggleRightTooltip, children: jsx_runtime_1.jsx("div", { style: rightIcon(color) }) }));
|
|
135
135
|
}, [colorStyle, rightIcon, toggleRightTooltip]);
|
|
136
|
-
return (
|
|
136
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
137
|
+
jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: toggleLeft, renderAction: toggleLeftAction }), jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: toggleRight, renderAction: toggleRightAction })
|
|
138
|
+
] }));
|
|
137
139
|
};
|
|
138
140
|
exports.SidebarCollapserControls = SidebarCollapserControls;
|
|
@@ -93,11 +93,11 @@ const SidebarRenderButton = ({ composition, visible }) => {
|
|
|
93
93
|
setSidebarCollapsedState,
|
|
94
94
|
]);
|
|
95
95
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
96
|
-
return
|
|
96
|
+
return jsx_runtime_1.jsx(render_1.ThinRenderIcon, { fill: color, svgProps: iconStyle });
|
|
97
97
|
}, [iconStyle]);
|
|
98
98
|
if (!visible || connectionStatus !== 'connected') {
|
|
99
99
|
return null;
|
|
100
100
|
}
|
|
101
|
-
return
|
|
101
|
+
return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick });
|
|
102
102
|
};
|
|
103
103
|
exports.SidebarRenderButton = SidebarRenderButton;
|
|
@@ -105,7 +105,7 @@ const SizeSelector = () => {
|
|
|
105
105
|
type: 'item',
|
|
106
106
|
value: newSize.size,
|
|
107
107
|
keyHint: newSize.size === 'auto' ? '0' : null,
|
|
108
|
-
leftItem: String(size.size) === String(newSize.size) ?
|
|
108
|
+
leftItem: String(size.size) === String(newSize.size) ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
|
|
109
109
|
subMenu: null,
|
|
110
110
|
quickSwitcherLabel: null,
|
|
111
111
|
};
|
|
@@ -114,6 +114,6 @@ const SizeSelector = () => {
|
|
|
114
114
|
if (!zoomable) {
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
return (
|
|
117
|
+
return (jsx_runtime_1.jsx("div", { style: style, "aria-label": accessibilityLabel, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { title: accessibilityLabel, style: comboStyle, selectedId: String(size.size), values: items }) }));
|
|
118
118
|
};
|
|
119
119
|
exports.SizeSelector = SizeSelector;
|
|
@@ -17,7 +17,8 @@ const Spinner = ({ size, duration }) => {
|
|
|
17
17
|
height: size,
|
|
18
18
|
};
|
|
19
19
|
}, [size]);
|
|
20
|
-
return (
|
|
20
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
21
|
+
jsx_runtime_1.jsx("style", { type: "text/css", children: `
|
|
21
22
|
@keyframes ${remotionSpinnerAnimation} {
|
|
22
23
|
0% {
|
|
23
24
|
opacity: 1;
|
|
@@ -30,12 +31,13 @@ const Spinner = ({ size, duration }) => {
|
|
|
30
31
|
.${className} {
|
|
31
32
|
animation: ${remotionSpinnerAnimation} ${duration}s linear infinite;
|
|
32
33
|
}
|
|
33
|
-
` }),
|
|
34
|
-
return (
|
|
34
|
+
` }), jsx_runtime_1.jsx("svg", { style: style, viewBox: `0 0 ${viewBox} ${viewBox}`, children: new Array(lines).fill(true).map((_, index) => {
|
|
35
|
+
return (jsx_runtime_1.jsx("path", { className: className, style: {
|
|
35
36
|
rotate: `${(index * Math.PI * 2) / lines}rad`,
|
|
36
37
|
transformOrigin: 'center center',
|
|
37
38
|
animationDelay: `${index * (duration / lines) - duration}s`,
|
|
38
39
|
}, d: translated, fill: colors_1.LIGHT_TEXT }, index));
|
|
39
|
-
}) })
|
|
40
|
+
}) })
|
|
41
|
+
] }));
|
|
40
42
|
};
|
|
41
43
|
exports.Spinner = Spinner;
|
|
@@ -46,6 +46,6 @@ const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFle
|
|
|
46
46
|
persistFlex,
|
|
47
47
|
ref,
|
|
48
48
|
]);
|
|
49
|
-
return (
|
|
49
|
+
return (jsx_runtime_1.jsx(SplitterContext_1.SplitterContext.Provider, { value: value, children: jsx_runtime_1.jsx("div", { ref: ref, style: orientation === 'horizontal' ? exports.containerColumn : containerRow, children: children }) }));
|
|
50
50
|
};
|
|
51
51
|
exports.SplitterContainer = SplitterContainer;
|
|
@@ -27,6 +27,8 @@ const SplitterElement = ({ children, type, sticky }) => {
|
|
|
27
27
|
backgroundColor: (0, remotion_1.interpolateColors)((0, remotion_1.random)(context.flexValue), [0, 1], ['red', 'blue']),
|
|
28
28
|
};
|
|
29
29
|
}, [context.flexValue, type]);
|
|
30
|
-
return (
|
|
30
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
31
|
+
jsx_runtime_1.jsx("div", { style: style, children: children }), jsx_runtime_1.jsx("div", { style: stickStyle, children: sticky !== null && sticky !== void 0 ? sticky : null })
|
|
32
|
+
] }));
|
|
31
33
|
};
|
|
32
34
|
exports.SplitterElement = SplitterElement;
|
|
@@ -144,7 +144,7 @@ const SplitterHandle = ({ allowToCollapse, onCollapse }) => {
|
|
|
144
144
|
window.removeEventListener('mouseup', onMouseUp);
|
|
145
145
|
};
|
|
146
146
|
}, []);
|
|
147
|
-
return (
|
|
147
|
+
return (jsx_runtime_1.jsx("div", { ref: ref, className: [
|
|
148
148
|
'remotion-splitter',
|
|
149
149
|
context.orientation === 'horizontal'
|
|
150
150
|
? 'remotion-splitter-horizontal'
|
|
@@ -4,11 +4,11 @@ exports.StaticFilePreview = void 0;
|
|
|
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 get_static_files_1 = require("../api/get-static-files");
|
|
8
7
|
const client_id_1 = require("../helpers/client-id");
|
|
9
8
|
const colors_1 = require("../helpers/colors");
|
|
10
9
|
const FilePreview_1 = require("./FilePreview");
|
|
11
10
|
const Preview_1 = require("./Preview");
|
|
11
|
+
const use_static_files_1 = require("./use-static-files");
|
|
12
12
|
const msgStyle = {
|
|
13
13
|
fontSize: 13,
|
|
14
14
|
color: 'white',
|
|
@@ -23,19 +23,19 @@ const errMsgStyle = {
|
|
|
23
23
|
const StaticFilePreview = ({ currentAsset, assetMetadata }) => {
|
|
24
24
|
const fileType = (0, Preview_1.getPreviewFileType)(currentAsset);
|
|
25
25
|
const staticFileSrc = (0, remotion_1.staticFile)(currentAsset);
|
|
26
|
-
const staticFiles = (0,
|
|
26
|
+
const staticFiles = (0, use_static_files_1.useStaticFiles)();
|
|
27
27
|
const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
|
|
28
28
|
.previewServerState.type;
|
|
29
29
|
const exists = staticFiles.find((file) => file.name === currentAsset);
|
|
30
30
|
if (connectionStatus === 'disconnected') {
|
|
31
|
-
return
|
|
31
|
+
return jsx_runtime_1.jsx("div", { style: errMsgStyle, children: "Studio server disconnected" });
|
|
32
32
|
}
|
|
33
33
|
if (!exists) {
|
|
34
|
-
return (
|
|
34
|
+
return (jsx_runtime_1.jsxs("div", { style: errMsgStyle, children: [currentAsset, " does not exist in your public folder."] }));
|
|
35
35
|
}
|
|
36
36
|
if (!currentAsset) {
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
|
-
return (
|
|
39
|
+
return (jsx_runtime_1.jsx(FilePreview_1.FilePreview, { currentAsset: currentAsset, fileType: fileType, src: `${staticFileSrc}?date=${assetMetadata && assetMetadata.type === 'found' ? assetMetadata.fetchedAt : 0}`, assetMetadata: assetMetadata }));
|
|
40
40
|
};
|
|
41
41
|
exports.StaticFilePreview = StaticFilePreview;
|
|
@@ -16,7 +16,7 @@ const Tabs = ({ children, style }) => {
|
|
|
16
16
|
...style,
|
|
17
17
|
};
|
|
18
18
|
}, [style]);
|
|
19
|
-
return
|
|
19
|
+
return jsx_runtime_1.jsx("div", { style: definiteStyle, children: children });
|
|
20
20
|
};
|
|
21
21
|
exports.Tabs = Tabs;
|
|
22
22
|
const selectorButton = {
|
|
@@ -53,6 +53,6 @@ const Tab = ({ children, onClick, style, selected }) => {
|
|
|
53
53
|
boxShadow: selected ? 'none' : undefined,
|
|
54
54
|
...style,
|
|
55
55
|
}), [hovered, selected, style]);
|
|
56
|
-
return (
|
|
56
|
+
return (jsx_runtime_1.jsx("div", { style: definiteStyle, role: "button", onClick: onClick, tabIndex: tabIndex, onPointerLeave: onPointerLeave, onPointerEnter: onPointerEnter, children: children }));
|
|
57
57
|
};
|
|
58
58
|
exports.Tab = Tab;
|
|
@@ -38,6 +38,6 @@ const VerticalTab = ({ children, onClick, style, selected }) => {
|
|
|
38
38
|
...style,
|
|
39
39
|
};
|
|
40
40
|
}, [hovered, selected, style]);
|
|
41
|
-
return (
|
|
41
|
+
return (jsx_runtime_1.jsx("button", { style: definiteStyle, type: "button", onClick: onClick, tabIndex: tabIndex, onPointerLeave: onPointerLeave, onPointerEnter: onPointerEnter, children: children }));
|
|
42
42
|
};
|
|
43
43
|
exports.VerticalTab = VerticalTab;
|
|
@@ -21,6 +21,6 @@ const TextViewer = ({ src }) => {
|
|
|
21
21
|
setTxt(text);
|
|
22
22
|
});
|
|
23
23
|
}, [src]);
|
|
24
|
-
return
|
|
24
|
+
return jsx_runtime_1.jsxs("div", { style: textStyle, children: [txt, " "] });
|
|
25
25
|
};
|
|
26
26
|
exports.TextViewer = TextViewer;
|
|
@@ -82,6 +82,8 @@ const TimeValue = () => {
|
|
|
82
82
|
if (isStill) {
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
return (
|
|
85
|
+
return (jsx_runtime_1.jsxs("div", { style: text, children: [
|
|
86
|
+
jsx_runtime_1.jsx("div", { style: time, children: (0, render_frame_1.renderFrame)(frame, config.fps) }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }), jsx_runtime_1.jsx(layout_1.Flex, {}), jsx_runtime_1.jsx(InputDragger_1.InputDragger, { ref: ref, value: frame, onTextChange: onTextChange, onValueChange: onValueChange, rightAlign: true, status: "ok", style: frameStyle })
|
|
87
|
+
] }));
|
|
86
88
|
};
|
|
87
89
|
exports.TimeValue = TimeValue;
|
|
@@ -13,7 +13,7 @@ const width = {
|
|
|
13
13
|
const icon = {
|
|
14
14
|
height: 12,
|
|
15
15
|
};
|
|
16
|
-
const Icon = () => (
|
|
16
|
+
const Icon = () => (jsx_runtime_1.jsx("svg", { viewBox: "0 0 512 512", style: icon, children: jsx_runtime_1.jsx("path", { fill: colors_1.LIGHT_COLOR, d: "M512 256c0 88.224-71.775 160-160 160H170.067l34.512 32.419c9.875 9.276 10.119 24.883.539 34.464l-10.775 10.775c-9.373 9.372-24.568 9.372-33.941 0l-92.686-92.686c-9.373-9.373-9.373-24.568 0-33.941l92.686-92.686c9.373-9.373 24.568-9.373 33.941 0l10.775 10.775c9.581 9.581 9.337 25.187-.539 34.464L170.067 352H352c52.935 0 96-43.065 96-96 0-13.958-2.996-27.228-8.376-39.204-4.061-9.039-2.284-19.626 4.723-26.633l12.183-12.183c11.499-11.499 30.965-8.526 38.312 5.982C505.814 205.624 512 230.103 512 256zM72.376 295.204C66.996 283.228 64 269.958 64 256c0-52.935 43.065-96 96-96h181.933l-34.512 32.419c-9.875 9.276-10.119 24.883-.539 34.464l10.775 10.775c9.373 9.372 24.568 9.372 33.941 0l92.686-92.686c9.373-9.373 9.373-24.568 0-33.941l-92.686-92.686c-9.373-9.373-24.568-9.373-33.941 0L306.882 29.12c-9.581 9.581-9.337 25.187.539 34.464L341.933 96H160C71.775 96 0 167.776 0 256c0 25.897 6.186 50.376 17.157 72.039 7.347 14.508 26.813 17.481 38.312 5.982l12.183-12.183c7.008-7.008 8.786-17.595 4.724-26.634z" }) }));
|
|
17
17
|
const topLine = {
|
|
18
18
|
top: 0,
|
|
19
19
|
height: 2,
|
|
@@ -39,6 +39,8 @@ const bottomContainer = {
|
|
|
39
39
|
alignItems: 'center',
|
|
40
40
|
};
|
|
41
41
|
const LoopedIndicator = () => {
|
|
42
|
-
return (
|
|
42
|
+
return (jsx_runtime_1.jsxs("div", { style: width, children: [
|
|
43
|
+
jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: topContainer, children: jsx_runtime_1.jsx("div", { style: topLine }) }), jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: bottomContainer, children: jsx_runtime_1.jsx("div", { style: bottomLine }) }), jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: centerContainer, children: jsx_runtime_1.jsx(Icon, {}) })
|
|
44
|
+
] }));
|
|
43
45
|
};
|
|
44
46
|
exports.LoopedIndicator = LoopedIndicator;
|
|
@@ -14,10 +14,11 @@ const row = {
|
|
|
14
14
|
};
|
|
15
15
|
const LoopedTimelineIndicator = ({ loops }) => {
|
|
16
16
|
const leftOver = loops % 1;
|
|
17
|
-
return (
|
|
18
|
-
return (
|
|
17
|
+
return (jsx_runtime_1.jsxs(remotion_1.AbsoluteFill, { style: row, children: [new Array(Math.floor(loops)).fill(true).map((_l, i) => {
|
|
18
|
+
return (jsx_runtime_1.jsxs(react_1.default.Fragment
|
|
19
19
|
// eslint-disable-next-line
|
|
20
|
-
, { children: [
|
|
21
|
-
|
|
20
|
+
, { children: [
|
|
21
|
+
jsx_runtime_1.jsx(layout_1.Flex, {}), i === loops - 1 ? null : jsx_runtime_1.jsx(LoopedIndicator_1.LoopedIndicator, {})] }, i));
|
|
22
|
+
}), leftOver > 0 ? jsx_runtime_1.jsx("div", { style: { flex: leftOver } }) : null] }));
|
|
22
23
|
};
|
|
23
24
|
exports.LoopedTimelineIndicator = LoopedTimelineIndicator;
|
|
@@ -20,6 +20,6 @@ const container = {
|
|
|
20
20
|
paddingLeft: timeline_layout_1.TIMELINE_PADDING + 5,
|
|
21
21
|
};
|
|
22
22
|
const MaxTimelineTracksReached = () => {
|
|
23
|
-
return (
|
|
23
|
+
return (jsx_runtime_1.jsxs("div", { style: container, children: ["Limited display to ", exports.MAX_TIMELINE_TRACKS, " tracks to sustain performance.", '', "You can change this by setting Config.setMaxTimelineTracks() in your remotion.config.ts file."] }));
|
|
24
24
|
};
|
|
25
25
|
exports.MaxTimelineTracksReached = MaxTimelineTracksReached;
|
|
@@ -71,6 +71,10 @@ const Timeline = () => {
|
|
|
71
71
|
overflowX: 'hidden',
|
|
72
72
|
};
|
|
73
73
|
}, [hasBeenCut, shown]);
|
|
74
|
-
return (
|
|
74
|
+
return (jsx_runtime_1.jsx("div", { ref: timeline_refs_1.timelineVerticalScroll, style: container, className: 'css-reset ' + is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: jsx_runtime_1.jsx(TimelineWidthProvider_1.TimelineWidthProvider, { children: jsx_runtime_1.jsx("div", { style: inner, children: jsx_runtime_1.jsxs(SplitterContainer_1.SplitterContainer, { orientation: "vertical", defaultFlex: 0.2, id: "names-to-timeline", maxFlex: 0.5, minFlex: 0.15, children: [
|
|
75
|
+
jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { type: "flexer", sticky: jsx_runtime_1.jsx(TimelineTimeIndicators_1.TimelineTimePlaceholders, {}), children: jsx_runtime_1.jsx(TimelineList_1.TimelineList, { timeline: shown }) }), jsx_runtime_1.jsx(SplitterHandle_1.SplitterHandle, { onCollapse: noop, allowToCollapse: "none" }), jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { type: "anti-flexer", sticky: null, children: jsx_runtime_1.jsxs(TimelineScrollable_1.TimelineScrollable, { children: [
|
|
76
|
+
jsx_runtime_1.jsx(TimelineTracks_1.TimelineTracks, { timeline: shown, hasBeenCut: hasBeenCut }), jsx_runtime_1.jsx(TimelineInOutPointer_1.TimelineInOutPointer, {}), jsx_runtime_1.jsx(TimelinePlayCursorSyncer_1.TimelinePlayCursorSyncer, {}), jsx_runtime_1.jsx(TimelineDragHandler_1.TimelineDragHandler, {}), jsx_runtime_1.jsx(TimelineTimeIndicators_1.TimelineTimeIndicators, {}), jsx_runtime_1.jsx(TimelineSlider_1.TimelineSlider, {})
|
|
77
|
+
] }) })
|
|
78
|
+
] }) }) }) }));
|
|
75
79
|
};
|
|
76
80
|
exports.Timeline = Timeline;
|
|
@@ -10,9 +10,9 @@ const container = {
|
|
|
10
10
|
alignItems: 'center',
|
|
11
11
|
};
|
|
12
12
|
const Icon = ({ color, ...props }) => {
|
|
13
|
-
return (
|
|
13
|
+
return (jsx_runtime_1.jsx("svg", { viewBox: "0 0 8 10", ...props, style: { height: 10, width: 8 }, children: jsx_runtime_1.jsx("path", { d: "M 0 0 L 8 5 L 0 10 z", fill: color }) }));
|
|
14
14
|
};
|
|
15
15
|
const TimelineCollapseToggle = ({ collapsed, color }) => {
|
|
16
|
-
return (
|
|
16
|
+
return (jsx_runtime_1.jsx("div", { style: collapsed ? container : { ...container, transform: 'rotate(90deg)' }, children: jsx_runtime_1.jsx(Icon, { color: color }) }));
|
|
17
17
|
};
|
|
18
18
|
exports.TimelineCollapseToggle = TimelineCollapseToggle;
|
|
@@ -58,11 +58,12 @@ const TimelineDragHandler = () => {
|
|
|
58
58
|
if (!canvasContent || canvasContent.type !== 'composition') {
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
|
-
return (
|
|
61
|
+
return (jsx_runtime_1.jsx("div", { ref: timeline_refs_1.sliderAreaRef, style: containerStyle, children: video ? jsx_runtime_1.jsx(Inner, {}) : null }));
|
|
62
62
|
};
|
|
63
63
|
exports.TimelineDragHandler = TimelineDragHandler;
|
|
64
64
|
const Inner = () => {
|
|
65
|
-
var _a
|
|
65
|
+
var _a;
|
|
66
|
+
var _b, _c;
|
|
66
67
|
const videoConfig = (0, remotion_1.useVideoConfig)();
|
|
67
68
|
const size = player_1.PlayerInternals.useElementSize(timeline_refs_1.scrollableRef, {
|
|
68
69
|
triggerOnWindowResize: true,
|
|
@@ -456,5 +457,6 @@ const Inner = () => {
|
|
|
456
457
|
},
|
|
457
458
|
];
|
|
458
459
|
}, [setInAndOutFrames, videoConfig.id]);
|
|
459
|
-
return (
|
|
460
|
+
return (jsx_runtime_1.jsxs("div", { style: style, onPointerDown: onPointerDown, children: [
|
|
461
|
+
jsx_runtime_1.jsx("div", { style: inner, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME }), inFrame !== null && (jsx_runtime_1.jsx(ContextMenu_1.ContextMenu, { values: inContextMenu, children: jsx_runtime_1.jsx(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "in", atFrame: inFrame, dragging: inOutDragging.dragging === 'in' }) })), outFrame !== null && (jsx_runtime_1.jsx(ContextMenu_1.ContextMenu, { values: outContextMenu, children: jsx_runtime_1.jsx(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "out", dragging: inOutDragging.dragging === 'out', atFrame: outFrame }) }))] }));
|
|
460
462
|
};
|
|
@@ -23,11 +23,11 @@ const TimelineInOutPointer = () => {
|
|
|
23
23
|
if (!videoConfig || timelineWidth === null) {
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
|
-
return (
|
|
26
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [inFrame !== null && (jsx_runtime_1.jsx("div", { ref: exports.inMarkerAreaRef, style: {
|
|
27
27
|
...areaHighlight,
|
|
28
28
|
left: 0,
|
|
29
29
|
width: (0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(inFrame, videoConfig.durationInFrames, timelineWidth),
|
|
30
|
-
} })), outFrame !== null && (
|
|
30
|
+
} })), outFrame !== null && (jsx_runtime_1.jsx("div", { ref: exports.outMarkerAreaRef, style: {
|
|
31
31
|
...areaHighlight,
|
|
32
32
|
left: (0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(outFrame, videoConfig.durationInFrames, timelineWidth),
|
|
33
33
|
width: timelineWidth -
|
|
@@ -29,7 +29,7 @@ const InnerTimelineInOutPointerHandle = ({ atFrame, dragging, timelineWidth, typ
|
|
|
29
29
|
transform: `translateX(${(0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(atFrame, videoConfig.durationInFrames, timelineWidth)}px)`,
|
|
30
30
|
};
|
|
31
31
|
}, [atFrame, dragging, timelineWidth, videoConfig.durationInFrames]);
|
|
32
|
-
return (
|
|
32
|
+
return (jsx_runtime_1.jsx("div", { ref: type === 'in' ? exports.inPointerHandle : exports.outPointerHandle, style: style }));
|
|
33
33
|
};
|
|
34
34
|
const TimelineInOutPointerHandle = ({ dragging, type, atFrame, }) => {
|
|
35
35
|
const timelineWidth = (0, react_1.useContext)(TimelineWidthProvider_1.TimelineWidthContext);
|
|
@@ -38,6 +38,6 @@ const TimelineInOutPointerHandle = ({ dragging, type, atFrame, }) => {
|
|
|
38
38
|
if (timelineWidth === null) {
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
|
-
return (
|
|
41
|
+
return (jsx_runtime_1.jsx(InnerTimelineInOutPointerHandle, { atFrame: atFrame, dragging: dragging, timelineWidth: timelineWidth, type: type }));
|
|
42
42
|
};
|
|
43
43
|
exports.TimelineInOutPointerHandle = TimelineInOutPointerHandle;
|
|
@@ -32,9 +32,9 @@ const TimelineLayerEye = ({ onInvoked, hidden, type }) => {
|
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
34
34
|
if (type === 'speaker') {
|
|
35
|
-
return (
|
|
35
|
+
return (jsx_runtime_1.jsx("svg", { viewBox: "0 0 10 14", fill: "none", style: speakerIcon, children: jsx_runtime_1.jsx("path", { d: "M9.40938 0.0869018C9.76875 0.249402 10 0.605652 10 0.999402V12.9994C10 13.3932 9.76875 13.7494 9.40938 13.9119C9.05 14.0744 8.62813 14.0088 8.33438 13.7463L4.11875 9.9994H2C0.896875 9.9994 0 9.10253 0 7.9994V5.9994C0 4.89628 0.896875 3.9994 2 3.9994H4.11875L8.33438 0.252527C8.62813 -0.0099732 9.05 -0.0724732 9.40938 0.0869018Z", fill: color }) }));
|
|
36
36
|
}
|
|
37
|
-
return (
|
|
37
|
+
return (jsx_runtime_1.jsx("svg", { style: eyeIcon, viewBox: "0 0 24 16", fill: "none", children: jsx_runtime_1.jsx("path", { d: "M24 7.551C24 7.551 19.748 16 12.015 16C4.835 16 0 7.551 0 7.551C0 7.551 4.446 0 12.015 0C19.709 0 24 7.551 24 7.551ZM17 8C17 5.243 14.757 3 12 3C9.243 3 7 5.243 7 8C7 10.757 9.243 13 12 13C14.757 13 17 10.757 17 8Z", fill: color }) }));
|
|
38
38
|
}, [hidden, type]);
|
|
39
39
|
const onPointerDown = (0, react_1.useCallback)((e) => {
|
|
40
40
|
if (e.button !== 0) {
|
|
@@ -51,6 +51,6 @@ const TimelineLayerEye = ({ onInvoked, hidden, type }) => {
|
|
|
51
51
|
onInvoked(layerPointedDown);
|
|
52
52
|
}
|
|
53
53
|
}, [onInvoked]);
|
|
54
|
-
return (
|
|
54
|
+
return (jsx_runtime_1.jsx("div", { style: container, onPointerEnter: onPointerEnter, onPointerDown: onPointerDown, children: renderAction(colors_1.LIGHT_COLOR) }));
|
|
55
55
|
};
|
|
56
56
|
exports.TimelineLayerEye = TimelineLayerEye;
|
|
@@ -18,8 +18,9 @@ const TimelineList = ({ timeline }) => {
|
|
|
18
18
|
triggerOnWindowResize: false,
|
|
19
19
|
});
|
|
20
20
|
const isCompact = size ? size.width < 250 : false;
|
|
21
|
-
return (
|
|
22
|
-
|
|
21
|
+
return (jsx_runtime_1.jsxs("div", { ref: ref, style: container, children: [
|
|
22
|
+
jsx_runtime_1.jsx(TimelineTimeIndicators_1.TimelineTimePadding, {}), timeline.map((track) => {
|
|
23
|
+
return (jsx_runtime_1.jsx("div", { children: jsx_runtime_1.jsx(TimelineListItem_1.TimelineListItem, { nestedDepth: track.depth, sequence: track.sequence, isCompact: isCompact }, track.sequence.id) }, track.sequence.id));
|
|
23
24
|
})] }));
|
|
24
25
|
};
|
|
25
26
|
exports.TimelineList = TimelineList;
|
|
@@ -48,6 +48,8 @@ const TimelineListItem = ({ nestedDepth, sequence, isCompact }) => {
|
|
|
48
48
|
borderBottom: `1px solid ${colors_1.TIMELINE_TRACK_SEPARATOR}`,
|
|
49
49
|
};
|
|
50
50
|
}, [sequence.type]);
|
|
51
|
-
return (
|
|
51
|
+
return (jsx_runtime_1.jsxs("div", { style: outer, children: [
|
|
52
|
+
jsx_runtime_1.jsx(TimelineLayerEye_1.TimelineLayerEye, { type: sequence.type === 'audio' ? 'speaker' : 'eye', hidden: isItemHidden, onInvoked: onToggleVisibility }), jsx_runtime_1.jsx("div", { style: padder }), sequence.parent && nestedDepth > 0 ? jsx_runtime_1.jsx("div", { style: space }) : null, jsx_runtime_1.jsx(TimelineStack_1.TimelineStack, { sequence: sequence, isCompact: isCompact })
|
|
53
|
+
] }));
|
|
52
54
|
};
|
|
53
55
|
exports.TimelineListItem = TimelineListItem;
|
|
@@ -21,6 +21,6 @@ const TimelineScrollable = ({ children }) => {
|
|
|
21
21
|
minHeight: '100%',
|
|
22
22
|
};
|
|
23
23
|
}, []);
|
|
24
|
-
return (
|
|
24
|
+
return (jsx_runtime_1.jsx("div", { ref: timeline_refs_1.scrollableRef, style: outer, className: is_menu_item_1.HORIZONTAL_SCROLLBAR_CLASSNAME, children: jsx_runtime_1.jsx("div", { style: containerStyle, children: children }) }));
|
|
25
25
|
};
|
|
26
26
|
exports.TimelineScrollable = TimelineScrollable;
|
|
@@ -20,7 +20,7 @@ const TimelineSequence = ({ s }) => {
|
|
|
20
20
|
if (windowWidth === null) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return jsx_runtime_1.jsx(Inner, { windowWidth: windowWidth, s: s });
|
|
24
24
|
};
|
|
25
25
|
exports.TimelineSequence = TimelineSequence;
|
|
26
26
|
const Inner = ({ s, windowWidth }) => {
|
|
@@ -80,7 +80,7 @@ const Inner = ({ s, windowWidth }) => {
|
|
|
80
80
|
if (maxMediaDuration === null) {
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
|
-
return (
|
|
83
|
+
return (jsx_runtime_1.jsxs("div", { style: style, title: s.displayName, children: [premountWidth ? (jsx_runtime_1.jsx("div", { style: {
|
|
84
84
|
width: premountWidth,
|
|
85
85
|
height: '100%',
|
|
86
86
|
background: `repeating-linear-gradient(
|
|
@@ -91,7 +91,7 @@ const Inner = ({ s, windowWidth }) => {
|
|
|
91
91
|
rgba(255, 255, 255, ${isPremounting ? 0.5 : 0.2}) 4px
|
|
92
92
|
)`,
|
|
93
93
|
position: 'absolute',
|
|
94
|
-
} })) : null, postmountWidth ? (
|
|
94
|
+
} })) : null, postmountWidth ? (jsx_runtime_1.jsx("div", { style: {
|
|
95
95
|
width: postmountWidth,
|
|
96
96
|
height: '100%',
|
|
97
97
|
background: `repeating-linear-gradient(
|
|
@@ -103,13 +103,13 @@ const Inner = ({ s, windowWidth }) => {
|
|
|
103
103
|
)`,
|
|
104
104
|
position: 'absolute',
|
|
105
105
|
right: 0,
|
|
106
|
-
} })) : null, s.type === 'audio' ? (
|
|
106
|
+
} })) : null, s.type === 'audio' ? (jsx_runtime_1.jsx(AudioWaveform_1.AudioWaveform, { src: s.src, doesVolumeChange: s.doesVolumeChange, visualizationWidth: width, startFrom: s.startMediaFrom, durationInFrames: s.duration, volume: s.volume, playbackRate: s.playbackRate })) : null, s.type === 'video' ? (jsx_runtime_1.jsx(TimelineVideoInfo_1.TimelineVideoInfo, { src: s.src, visualizationWidth: width, naturalWidth: naturalWidth, trimBefore: s.startMediaFrom, durationInFrames: s.duration, playbackRate: s.playbackRate })) : null, s.loopDisplay === undefined ? null : (jsx_runtime_1.jsx(LoopedTimelineIndicators_1.LoopedTimelineIndicator, { loops: s.loopDisplay.numberOfTimes })), s.type !== 'audio' &&
|
|
107
107
|
s.type !== 'video' &&
|
|
108
108
|
s.loopDisplay === undefined &&
|
|
109
|
-
(isInRange || isPremounting || isPostmounting) ? (
|
|
109
|
+
(isInRange || isPremounting || isPostmounting) ? (jsx_runtime_1.jsx("div", { style: {
|
|
110
110
|
paddingLeft: 5 + (premountWidth !== null && premountWidth !== void 0 ? premountWidth : 0),
|
|
111
111
|
height: '100%',
|
|
112
112
|
display: 'flex',
|
|
113
113
|
alignItems: 'center',
|
|
114
|
-
}, children:
|
|
114
|
+
}, children: jsx_runtime_1.jsx(TimelineSequenceFrame_1.TimelineSequenceFrame, { premounted: isPremounting, postmounted: isPostmounting ? s.duration - 1 : null, roundedFrame: roundedFrame }) })) : null] }, s.id));
|
|
115
115
|
};
|
|
@@ -9,7 +9,7 @@ const relativeFrameStyle = {
|
|
|
9
9
|
opacity: 0.5,
|
|
10
10
|
};
|
|
11
11
|
const TimelineSequenceFrame = ({ roundedFrame, premounted, postmounted }) => {
|
|
12
|
-
return (
|
|
12
|
+
return (jsx_runtime_1.jsx("div", { style: relativeFrameStyle, children: premounted
|
|
13
13
|
? '0 (Premounted)'
|
|
14
14
|
: postmounted !== null
|
|
15
15
|
? `${postmounted} (Postmounted)`
|
|
@@ -28,7 +28,7 @@ const TimelineSlider = () => {
|
|
|
28
28
|
if (videoConfig === null || timelineWidth === null) {
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return jsx_runtime_1.jsx(Inner, {});
|
|
32
32
|
};
|
|
33
33
|
exports.TimelineSlider = TimelineSlider;
|
|
34
34
|
const Inner = () => {
|
|
@@ -49,7 +49,8 @@ const Inner = () => {
|
|
|
49
49
|
(0, react_1.useImperativeHandle)(exports.redrawTimelineSliderFast, () => {
|
|
50
50
|
return {
|
|
51
51
|
draw: (frame, width) => {
|
|
52
|
-
var _a
|
|
52
|
+
var _a;
|
|
53
|
+
var _b;
|
|
53
54
|
const { current } = ref;
|
|
54
55
|
if (!current) {
|
|
55
56
|
throw new Error('unexpectedly did not have ref to timelineslider');
|
|
@@ -75,5 +76,7 @@ const Inner = () => {
|
|
|
75
76
|
current.removeEventListener('scroll', onScroll);
|
|
76
77
|
};
|
|
77
78
|
}, []);
|
|
78
|
-
return (
|
|
79
|
+
return (jsx_runtime_1.jsxs("div", { ref: ref, style: style, children: [
|
|
80
|
+
jsx_runtime_1.jsx("div", { style: line }), jsx_runtime_1.jsx(TimelineSliderHandle_1.TimelineSliderHandle, {})
|
|
81
|
+
] }));
|
|
79
82
|
};
|
|
@@ -9,6 +9,6 @@ const container = {
|
|
|
9
9
|
marginLeft: -8,
|
|
10
10
|
};
|
|
11
11
|
const TimelineSliderHandle = () => {
|
|
12
|
-
return (
|
|
12
|
+
return (jsx_runtime_1.jsx("div", { style: container, children: jsx_runtime_1.jsx("svg", { width: 17, viewBox: "0 0 159 212", children: jsx_runtime_1.jsx("path", { d: "M17.0234375,1.07763419 L143.355469,1.07763419 C151.63974,1.07763419 158.355469,7.79336295 158.355469,16.0776342 L158.355469,69.390507 C158.355469,73.7938677 156.420655,77.9748242 153.064021,80.8248415 L89.3980057,134.881757 C83.7986799,139.635978 75.5802263,139.635978 69.9809005,134.881757 L6.66764807,81.1243622 C3.0872392,78.0843437 1.0234375,73.6246568 1.0234375,68.9277387 L1.0234375,17.0776342 C1.0234375,8.2410782 8.1868815,1.07763419 17.0234375,1.07763419 Z", fill: "#f02c00" }) }) }));
|
|
13
13
|
};
|
|
14
14
|
exports.TimelineSliderHandle = TimelineSliderHandle;
|
|
@@ -169,8 +169,11 @@ const TimelineStack = ({ isCompact, sequence }) => {
|
|
|
169
169
|
const text = sequence.displayName.length > 1000
|
|
170
170
|
? sequence.displayName.slice(0, 1000) + '...'
|
|
171
171
|
: sequence.displayName;
|
|
172
|
-
return (
|
|
172
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
173
|
+
jsx_runtime_1.jsx("div", { onPointerEnter: onTitlePointerEnter, onPointerLeave: onTitlePointerLeave, title: originalLocation
|
|
173
174
|
? (0, source_attribution_1.getOriginalSourceAttribution)(originalLocation)
|
|
174
|
-
: text || '<Sequence>', style: titleStyle, onClick: onClickTitle, children: text || '<Sequence>' }), isCompact || !originalLocation ? null : (
|
|
175
|
+
: text || '<Sequence>', style: titleStyle, onClick: onClickTitle, children: text || '<Sequence>' }), isCompact || !originalLocation ? null : (jsx_runtime_1.jsx("div", { onPointerEnter: onStackPointerEnter, onPointerLeave: onStackPointerLeave, onClick: onClickStack, style: style, children: (0, source_attribution_1.getOriginalSourceAttribution)(originalLocation) })), opening ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
176
|
+
jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(Spinner_1.Spinner, { duration: 0.5, size: 12 })
|
|
177
|
+
] })) : null] }));
|
|
175
178
|
};
|
|
176
179
|
exports.TimelineStack = TimelineStack;
|
|
@@ -48,11 +48,11 @@ const timeValue = {
|
|
|
48
48
|
borderBottom: `${timeline_layout_1.TIMELINE_ITEM_BORDER_BOTTOM}px solid ${colors_1.TIMELINE_TRACK_SEPARATOR}`,
|
|
49
49
|
};
|
|
50
50
|
const TimelineTimePlaceholders = () => {
|
|
51
|
-
return (
|
|
51
|
+
return (jsx_runtime_1.jsx("div", { style: timeValue, children: jsx_runtime_1.jsx(TimeValue_1.TimeValue, {}) }));
|
|
52
52
|
};
|
|
53
53
|
exports.TimelineTimePlaceholders = TimelineTimePlaceholders;
|
|
54
54
|
const TimelineTimePadding = () => {
|
|
55
|
-
return (
|
|
55
|
+
return (jsx_runtime_1.jsx("div", { style: {
|
|
56
56
|
height: exports.TIMELINE_TIME_INDICATOR_HEIGHT,
|
|
57
57
|
} }));
|
|
58
58
|
};
|
|
@@ -66,7 +66,7 @@ const TimelineTimeIndicators = () => {
|
|
|
66
66
|
if (video === null) {
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
|
-
return (
|
|
69
|
+
return (jsx_runtime_1.jsx(Inner, { durationInFrames: video.durationInFrames, fps: video.fps, windowWidth: sliderTrack }));
|
|
70
70
|
};
|
|
71
71
|
exports.TimelineTimeIndicators = TimelineTimeIndicators;
|
|
72
72
|
const Inner = ({ windowWidth, durationInFrames, fps }) => {
|
|
@@ -148,7 +148,7 @@ const Inner = ({ windowWidth, durationInFrames, fps }) => {
|
|
|
148
148
|
return !alreadyUsed;
|
|
149
149
|
});
|
|
150
150
|
}, [durationInFrames, fps, windowWidth]);
|
|
151
|
-
return (
|
|
152
|
-
return (
|
|
151
|
+
return (jsx_runtime_1.jsx("div", { ref: ref, style: style, children: ticks.map((t) => {
|
|
152
|
+
return (jsx_runtime_1.jsx("div", { style: t.style, children: t.showTime ? (jsx_runtime_1.jsx("div", { style: tickLabel, children: (0, render_frame_1.renderFrame)(t.frame, fps) })) : null }, t.frame));
|
|
153
153
|
}) }));
|
|
154
154
|
};
|
|
@@ -23,14 +23,16 @@ const TimelineTracks = ({ timeline, hasBeenCut }) => {
|
|
|
23
23
|
width: 100 + '%',
|
|
24
24
|
};
|
|
25
25
|
}, []);
|
|
26
|
-
return (
|
|
26
|
+
return (jsx_runtime_1.jsxs("div", { style: timelineStyle, children: [
|
|
27
|
+
jsx_runtime_1.jsxs("div", { style: content, children: [
|
|
28
|
+
jsx_runtime_1.jsx(TimelineTimeIndicators_1.TimelineTimePadding, {}), timeline.map((track) => {
|
|
27
29
|
if ((0, is_collapsed_1.isTrackHidden)(track)) {
|
|
28
30
|
return null;
|
|
29
31
|
}
|
|
30
|
-
return (
|
|
32
|
+
return (jsx_runtime_1.jsx("div", { style: {
|
|
31
33
|
height: (0, timeline_layout_1.getTimelineLayerHeight)(track.sequence.type === 'video' ? 'video' : 'other'),
|
|
32
34
|
marginBottom: timeline_layout_1.TIMELINE_ITEM_BORDER_BOTTOM,
|
|
33
|
-
}, children:
|
|
34
|
-
})] }), hasBeenCut ?
|
|
35
|
+
}, children: jsx_runtime_1.jsx(TimelineSequence_1.TimelineSequence, { s: track.sequence }) }, track.sequence.id));
|
|
36
|
+
})] }), hasBeenCut ? jsx_runtime_1.jsx(MaxTimelineTracks_1.MaxTimelineTracksReached, {}) : null] }));
|
|
35
37
|
};
|
|
36
38
|
exports.TimelineTracks = TimelineTracks;
|
|
@@ -283,6 +283,6 @@ const TimelineVideoInfo = ({ src, visualizationWidth, naturalWidth, trimBefore,
|
|
|
283
283
|
trimBefore,
|
|
284
284
|
visualizationWidth,
|
|
285
285
|
]);
|
|
286
|
-
return
|
|
286
|
+
return jsx_runtime_1.jsx("div", { ref: ref, style: containerStyle });
|
|
287
287
|
};
|
|
288
288
|
exports.TimelineVideoInfo = TimelineVideoInfo;
|
|
@@ -12,6 +12,6 @@ const TimelineWidthProvider = ({ children }) => {
|
|
|
12
12
|
triggerOnWindowResize: false,
|
|
13
13
|
shouldApplyCssTransforms: true,
|
|
14
14
|
});
|
|
15
|
-
return (
|
|
15
|
+
return (jsx_runtime_1.jsx(exports.TimelineWidthContext.Provider, { value: (_a = size === null || size === void 0 ? void 0 : size.width) !== null && _a !== void 0 ? _a : null, children: children }));
|
|
16
16
|
};
|
|
17
17
|
exports.TimelineWidthProvider = TimelineWidthProvider;
|