@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
|
@@ -54,6 +54,8 @@ const TimelineZoomControls = () => {
|
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
const zoom = (_a = zoomMap[canvasContent.compositionId]) !== null && _a !== void 0 ? _a : timeline_zoom_1.TIMELINE_MIN_ZOOM;
|
|
57
|
-
return (
|
|
57
|
+
return (jsx_runtime_1.jsxs("div", { style: container, children: [
|
|
58
|
+
jsx_runtime_1.jsx(ControlButton_1.ControlButton, { onClick: onMinusClicked, style: buttonStyle, title: "Zoom out timeline", role: 'ControlButton', type: "button", disabled: timeline_zoom_1.TIMELINE_MIN_ZOOM === zoom, children: jsx_runtime_1.jsx(minus_1.Minus, { style: iconStyle }) }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx("input", { title: `Timeline zoom (${zoom}x)`, alt: `Timeline zoom (${zoom}x)`, type: 'range', min: timeline_zoom_1.TIMELINE_MIN_ZOOM, step: 0.1, value: zoom, max: timeline_zoom_1.TIMELINE_MAX_ZOOM, onChange: onChange, className: "__remotion-timeline-slider", tabIndex: tabIndex }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(ControlButton_1.ControlButton, { onClick: onPlusClicked, style: buttonStyle, title: "Zoom in timeline", role: 'button', type: "button", disabled: timeline_zoom_1.TIMELINE_MAX_ZOOM === zoom, children: jsx_runtime_1.jsx(plus_1.Plus, { color: "currentcolor", style: iconStyle }) })
|
|
59
|
+
] }));
|
|
58
60
|
};
|
|
59
61
|
exports.TimelineZoomControls = TimelineZoomControls;
|
|
@@ -11,7 +11,7 @@ export declare const isCursorInViewport: ({ frame, durationInFrames, }: {
|
|
|
11
11
|
durationInFrames: number;
|
|
12
12
|
}) => boolean;
|
|
13
13
|
export declare const ensureFrameIsInViewport: ({ direction, durationInFrames, frame, }: {
|
|
14
|
-
direction: "
|
|
14
|
+
direction: "center" | "fit-left" | "fit-right" | "page-left" | "page-right";
|
|
15
15
|
durationInFrames: number;
|
|
16
16
|
frame: number;
|
|
17
17
|
}) => void;
|
|
@@ -44,9 +44,10 @@ const getFrameWhileScrollingLeft = ({ durationInFrames, width, }) => {
|
|
|
44
44
|
};
|
|
45
45
|
exports.getFrameWhileScrollingLeft = getFrameWhileScrollingLeft;
|
|
46
46
|
const isCursorInViewport = ({ frame, durationInFrames, }) => {
|
|
47
|
-
var _a, _b
|
|
48
|
-
|
|
49
|
-
const
|
|
47
|
+
var _a, _b;
|
|
48
|
+
var _c, _d;
|
|
49
|
+
const width = (_c = (_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) !== null && _c !== void 0 ? _c : 0;
|
|
50
|
+
const scrollLeft = (_d = (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollLeft) !== null && _d !== void 0 ? _d : 0;
|
|
50
51
|
const scrollPosOnRightEdge = (0, exports.getScrollPositionForCursorOnRightEdge)({
|
|
51
52
|
nextFrame: frame,
|
|
52
53
|
durationInFrames,
|
|
@@ -68,10 +69,11 @@ const isCursorInViewport = ({ frame, durationInFrames, }) => {
|
|
|
68
69
|
};
|
|
69
70
|
exports.isCursorInViewport = isCursorInViewport;
|
|
70
71
|
const ensureFrameIsInViewport = ({ direction, durationInFrames, frame, }) => {
|
|
71
|
-
var _a, _b, _c
|
|
72
|
+
var _a, _b, _c;
|
|
73
|
+
var _d, _e;
|
|
72
74
|
(_a = TimelineSlider_1.redrawTimelineSliderFast.current) === null || _a === void 0 ? void 0 : _a.draw(frame);
|
|
73
|
-
const width = (
|
|
74
|
-
const scrollLeft = (_e = (
|
|
75
|
+
const width = (_d = (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollWidth) !== null && _d !== void 0 ? _d : 0;
|
|
76
|
+
const scrollLeft = (_e = (_c = timeline_refs_1.scrollableRef.current) === null || _c === void 0 ? void 0 : _c.scrollLeft) !== null && _e !== void 0 ? _e : 0;
|
|
75
77
|
if (direction === 'fit-left') {
|
|
76
78
|
const currentFrameLeft = (0, exports.getFrameFromX)({
|
|
77
79
|
clientX: scrollLeft,
|
|
@@ -164,7 +166,8 @@ const getScrollPositionForCursorOnRightEdge = ({ nextFrame, durationInFrames, })
|
|
|
164
166
|
};
|
|
165
167
|
exports.getScrollPositionForCursorOnRightEdge = getScrollPositionForCursorOnRightEdge;
|
|
166
168
|
const getFrameIncrement = (durationInFrames) => {
|
|
167
|
-
var _a
|
|
169
|
+
var _a;
|
|
170
|
+
var _b;
|
|
168
171
|
const width = (_b = (_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) !== null && _b !== void 0 ? _b : 0;
|
|
169
172
|
return (0, exports.getFrameIncrementFromWidth)(durationInFrames, width);
|
|
170
173
|
};
|
|
@@ -198,7 +201,8 @@ const getFrameFromX = ({ clientX, durationInFrames, width, extrapolate, }) => {
|
|
|
198
201
|
};
|
|
199
202
|
exports.getFrameFromX = getFrameFromX;
|
|
200
203
|
const zoomAndPreserveCursor = ({ oldZoom, newZoom, currentFrame, currentDurationInFrames, }) => {
|
|
201
|
-
var _a, _b
|
|
204
|
+
var _a, _b;
|
|
205
|
+
var _c;
|
|
202
206
|
const ratio = newZoom / oldZoom;
|
|
203
207
|
if (ratio === 1) {
|
|
204
208
|
return;
|
|
@@ -59,7 +59,8 @@ const TimelineInOutPointToggle = () => {
|
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
61
|
setInAndOutFrames((prev) => {
|
|
62
|
-
var _a, _b
|
|
62
|
+
var _a, _b;
|
|
63
|
+
var _c, _d, _e;
|
|
63
64
|
const prevOut = (_a = prev[videoConfig.id]) === null || _a === void 0 ? void 0 : _a.outFrame;
|
|
64
65
|
const biggestPossible = prevOut === undefined || prevOut === null ? Infinity : prevOut - 1;
|
|
65
66
|
const selected = Math.min(getCurrentFrame(), biggestPossible);
|
|
@@ -67,12 +68,12 @@ const TimelineInOutPointToggle = () => {
|
|
|
67
68
|
return {
|
|
68
69
|
...prev,
|
|
69
70
|
[videoConfig.id]: {
|
|
70
|
-
...((
|
|
71
|
+
...((_c = prev[videoConfig.id]) !== null && _c !== void 0 ? _c : exports.defaultInOutValue),
|
|
71
72
|
inFrame: null,
|
|
72
73
|
},
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
|
-
const prevIn = (
|
|
76
|
+
const prevIn = (_b = prev[videoConfig.id]) === null || _b === void 0 ? void 0 : _b.inFrame;
|
|
76
77
|
if (prevIn !== null && prevIn !== undefined) {
|
|
77
78
|
// Disable if already at this position
|
|
78
79
|
if (prevIn === selected) {
|
|
@@ -144,7 +145,8 @@ const TimelineInOutPointToggle = () => {
|
|
|
144
145
|
return;
|
|
145
146
|
}
|
|
146
147
|
setInAndOutFrames((prev) => {
|
|
147
|
-
var _a, _b
|
|
148
|
+
var _a, _b;
|
|
149
|
+
var _c, _d, _e;
|
|
148
150
|
const prevInFrame = (_a = prev[videoConfig.id]) === null || _a === void 0 ? void 0 : _a.inFrame;
|
|
149
151
|
const smallestPossible = prevInFrame === null || prevInFrame === undefined
|
|
150
152
|
? -Infinity
|
|
@@ -154,12 +156,12 @@ const TimelineInOutPointToggle = () => {
|
|
|
154
156
|
return {
|
|
155
157
|
...prev,
|
|
156
158
|
[videoConfig.id]: {
|
|
157
|
-
...((
|
|
159
|
+
...((_c = prev[videoConfig.id]) !== null && _c !== void 0 ? _c : exports.defaultInOutValue),
|
|
158
160
|
outFrame: null,
|
|
159
161
|
},
|
|
160
162
|
};
|
|
161
163
|
}
|
|
162
|
-
const prevOut = (
|
|
164
|
+
const prevOut = (_b = prev[videoConfig.id]) === null || _b === void 0 ? void 0 : _b.outFrame;
|
|
163
165
|
if (prevOut !== null && prevOut !== undefined) {
|
|
164
166
|
if (prevOut === selected) {
|
|
165
167
|
return {
|
|
@@ -236,6 +238,8 @@ const TimelineInOutPointToggle = () => {
|
|
|
236
238
|
outMarkClick: onOutMark,
|
|
237
239
|
};
|
|
238
240
|
}, [confId, onInMark, onInOutClear, onOutMark]);
|
|
239
|
-
return (
|
|
241
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
242
|
+
jsx_runtime_1.jsx(ControlButton_1.ControlButton, { title: getTooltipText('In', 'I'), "aria-label": getTooltipText('In', 'I'), onClick: onInMark, onContextMenu: clearInMark, disabled: !videoConfig || isFirstFrame, children: jsx_runtime_1.jsx(timelineInOutPointer_1.TimelineInPointer, { color: inFrame === null ? 'white' : colors_1.BLUE, style: style }) }), jsx_runtime_1.jsx(ControlButton_1.ControlButton, { title: getTooltipText('Out', 'O'), "aria-label": getTooltipText('Out', 'O'), onClick: onOutMark, onContextMenu: clearOutMark, disabled: !videoConfig || isLastFrame, children: jsx_runtime_1.jsx(timelineInOutPointer_1.TimelineOutPointer, { color: outFrame === null ? 'white' : colors_1.BLUE, style: style }) })
|
|
243
|
+
] }));
|
|
240
244
|
};
|
|
241
245
|
exports.TimelineInOutPointToggle = TimelineInOutPointToggle;
|
|
@@ -74,6 +74,10 @@ const TopPanel = ({ readOnlyStudio, onMounted, drawRef, bufferStateDelayInMillis
|
|
|
74
74
|
setSidebarCollapsedState({ left: null, right: 'collapsed' });
|
|
75
75
|
}, [setSidebarCollapsedState]);
|
|
76
76
|
const isMobileLayout = (0, mobile_layout_1.useMobileLayout)();
|
|
77
|
-
return (
|
|
77
|
+
return (jsx_runtime_1.jsxs("div", { style: container, children: [
|
|
78
|
+
jsx_runtime_1.jsx("div", { style: row, children: jsx_runtime_1.jsxs(SplitterContainer_1.SplitterContainer, { minFlex: 0.15, maxFlex: 0.4, defaultFlex: 0.2, id: "sidebar-to-preview", orientation: "vertical", children: [actualStateLeft === 'expanded' ? (isMobileLayout ? (jsx_runtime_1.jsx(MobilePanel_1.default, { onClose: onCollapseLeft, children: jsx_runtime_1.jsx(ExplorerPanel_1.ExplorerPanel, { readOnlyStudio: readOnlyStudio }) })) : (jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { sticky: null, type: "flexer", children: jsx_runtime_1.jsx(ExplorerPanel_1.ExplorerPanel, { readOnlyStudio: readOnlyStudio }) }))) : null, actualStateLeft === 'expanded' ? (jsx_runtime_1.jsx(SplitterHandle_1.SplitterHandle, { allowToCollapse: "left", onCollapse: onCollapseLeft })) : null, jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { sticky: null, type: "anti-flexer", children: jsx_runtime_1.jsxs(SplitterContainer_1.SplitterContainer, { minFlex: 0.5, maxFlex: 0.8, defaultFlex: 0.7, id: "canvas-to-right-sidebar", orientation: "vertical", children: [
|
|
79
|
+
jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { sticky: null, type: "flexer", children: jsx_runtime_1.jsx("div", { ref: drawRef, style: canvasContainerStyle, children: jsx_runtime_1.jsx(CanvasIfSizeIsAvailable_1.CanvasIfSizeIsAvailable, {}) }) }), actualStateRight === 'expanded' ? (jsx_runtime_1.jsx(SplitterHandle_1.SplitterHandle, { allowToCollapse: "right", onCollapse: onCollapseRight })) : null, actualStateRight === 'expanded' ? (isMobileLayout ? (jsx_runtime_1.jsx(MobilePanel_1.default, { onClose: onCollapseRight, children: jsx_runtime_1.jsx(OptionsPanel_1.OptionsPanel, { readOnlyStudio: readOnlyStudio }) })) : (jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { sticky: null, type: "anti-flexer", children: jsx_runtime_1.jsx(OptionsPanel_1.OptionsPanel, { readOnlyStudio: readOnlyStudio }) }))) : null] }) })
|
|
80
|
+
] }) }), jsx_runtime_1.jsx(PreviewToolbar_1.PreviewToolbar, { bufferStateDelayInMilliseconds: bufferStateDelayInMilliseconds, readOnlyStudio: readOnlyStudio }), jsx_runtime_1.jsx(CurrentCompositionSideEffects_1.CurrentCompositionKeybindings, { readOnlyStudio: readOnlyStudio }), jsx_runtime_1.jsx(CurrentCompositionSideEffects_1.TitleUpdater, {})
|
|
81
|
+
] }));
|
|
78
82
|
};
|
|
79
83
|
exports.TopPanel = TopPanel;
|
|
@@ -87,9 +87,9 @@ const UpdateCheck = () => {
|
|
|
87
87
|
if (!info.updateAvailable) {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
return (
|
|
90
|
+
return (jsx_runtime_1.jsx("button", { tabIndex: tabIndex, style: dynButtonStyle, onClick: openModal, type: "button", title: hasKnownBugs ? 'Bugfixes available' : 'Update available', children: hasKnownBugs ? ('Bugfixes available') : (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", style: {
|
|
91
91
|
height: 16,
|
|
92
92
|
width: 16,
|
|
93
|
-
}, viewBox: "0 0 512 512", children:
|
|
93
|
+
}, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: "currentcolor", d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM135.1 217.4c-4.5 4.2-7.1 10.1-7.1 16.3c0 12.3 10 22.3 22.3 22.3H208v96c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V256h57.7c12.3 0 22.3-10 22.3-22.3c0-6.2-2.6-12.1-7.1-16.3L269.8 117.5c-3.8-3.5-8.7-5.5-13.8-5.5s-10.1 2-13.8 5.5L135.1 217.4z" }) })) }));
|
|
94
94
|
};
|
|
95
95
|
exports.UpdateCheck = UpdateCheck;
|
|
@@ -25,13 +25,13 @@ const OpenIssueButton = ({ link }) => {
|
|
|
25
25
|
const svgFillColor = (0, react_1.useMemo)(() => {
|
|
26
26
|
return hovered ? 'white' : colors_1.LIGHT_TEXT;
|
|
27
27
|
}, [hovered]);
|
|
28
|
-
const openInEditorSvg = (
|
|
28
|
+
const openInEditorSvg = (jsx_runtime_1.jsx("svg", { viewBox: "0 0 512 512", style: svgStyle, children: jsx_runtime_1.jsx("path", { fill: svgFillColor, d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" }) }));
|
|
29
29
|
const onPointerEnter = (0, react_1.useCallback)(() => {
|
|
30
30
|
setHovered(true);
|
|
31
31
|
}, []);
|
|
32
32
|
const onPointerLeave = (0, react_1.useCallback)(() => {
|
|
33
33
|
setHovered(false);
|
|
34
34
|
}, []);
|
|
35
|
-
return (
|
|
35
|
+
return (jsx_runtime_1.jsx("button", { title: buttonTooltip, type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: buttonStyle, onClick: handleClick, children: openInEditorSvg }));
|
|
36
36
|
};
|
|
37
37
|
exports.OpenIssueButton = OpenIssueButton;
|
|
@@ -53,6 +53,13 @@ const UpdateModal = ({ info, knownBugs }) => {
|
|
|
53
53
|
(0, NotificationCenter_1.showNotification)(`Could not copy: ${err.message}`, 2000);
|
|
54
54
|
});
|
|
55
55
|
}, [command]);
|
|
56
|
-
return (
|
|
56
|
+
return (jsx_runtime_1.jsxs(DismissableModal_1.DismissableModal, { children: [
|
|
57
|
+
jsx_runtime_1.jsx(ModalHeader_1.ModalHeader, { title: "Update available" }), jsx_runtime_1.jsxs("div", { style: container, children: [hasKnownBugs ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
58
|
+
jsx_runtime_1.jsxs("div", { style: title, children: ["The currently installed version ", info.currentVersion, " has the following known bugs:"] }), jsx_runtime_1.jsx(KnownBugs_1.KnownBugs, { bugs: knownBugs }), jsx_runtime_1.jsx("div", { style: { height: '20px' } }), jsx_runtime_1.jsx("div", { style: text, children: "To upgrade, run the following command:" })
|
|
59
|
+
] })) : (jsx_runtime_1.jsx("div", { style: title, children: "A new update for Remotion is available! Run the following command:" })), jsx_runtime_1.jsxs(layout_1.Row, { align: "center", children: [
|
|
60
|
+
jsx_runtime_1.jsx(layout_1.Flex, { children: jsx_runtime_1.jsx("pre", { onClick: onClick, style: code, children: command }) }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx(CopyButton_1.CopyButton, { textToCopy: command, label: "Copy", labelWhenCopied: "Copied!" })
|
|
61
|
+
] }), jsx_runtime_1.jsxs("div", { style: text, children: ["This will upgrade Remotion from ", info.currentVersion, " to", ' ', info.latestVersion, "."] }), jsx_runtime_1.jsxs("div", { style: text, children: ["Read the", ' ', jsx_runtime_1.jsx("a", { style: link, target: "_blank", href: "https://github.com/remotion-dev/remotion/releases", children: "Release notes" }), ' ', "to know what", "'s", " new in Remotion."] })
|
|
62
|
+
] })
|
|
63
|
+
] }));
|
|
57
64
|
};
|
|
58
65
|
exports.UpdateModal = UpdateModal;
|
|
@@ -34,7 +34,7 @@ const ClickableFileName = ({ originalFileName, }) => {
|
|
|
34
34
|
}
|
|
35
35
|
await (0, open_in_editor_1.openOriginalPositionInEditor)(originalFileName.originalFileName);
|
|
36
36
|
}, [originalFileName]);
|
|
37
|
-
return (
|
|
37
|
+
return (jsx_runtime_1.jsx("div", { style: container, children: jsx_runtime_1.jsx("span", { style: style, onClick: onClick, onPointerEnter: onTitlePointerEnter, onPointerLeave: onTitlePointerLeave, children: originalFileName.type === 'loaded'
|
|
38
38
|
? (0, source_attribution_1.getOriginalSourceAttribution)(originalFileName.originalFileName)
|
|
39
39
|
: originalFileName.type === 'loading'
|
|
40
40
|
? 'Loading...'
|
|
@@ -90,6 +90,8 @@ const VisualControlHandle = ({ value, keyName }) => {
|
|
|
90
90
|
(0, react_1.useEffect)(() => {
|
|
91
91
|
setSaving(false);
|
|
92
92
|
}, [fastRefreshes]);
|
|
93
|
-
return (
|
|
93
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
94
|
+
jsx_runtime_1.jsx(VisualControlHandleHeader_1.VisualControlHandleHeader, { originalFileName: originalFileName }), jsx_runtime_1.jsx(layout_1.Spacing, { block: true, y: 0.5 }), jsx_runtime_1.jsx(RevisionContextProvider, { children: jsx_runtime_1.jsx(ZodSwitch_1.ZodSwitch, { mayPad: true, schema: value.schema, showSaveButton: !disableSave, saving: saving, saveDisabledByParent: false, onSave: onSave, jsonPath: [keyName], value: localValue.value, defaultValue: value.valueInCode, setValue: onChange, onRemove: null }) })
|
|
95
|
+
] }));
|
|
94
96
|
};
|
|
95
97
|
exports.VisualControlHandle = VisualControlHandle;
|
|
@@ -4,6 +4,6 @@ exports.VisualControlHandleHeader = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ClickableFileName_1 = require("./ClickableFileName");
|
|
6
6
|
const VisualControlHandleHeader = ({ originalFileName }) => {
|
|
7
|
-
return
|
|
7
|
+
return jsx_runtime_1.jsx(ClickableFileName_1.ClickableFileName, { originalFileName: originalFileName });
|
|
8
8
|
};
|
|
9
9
|
exports.VisualControlHandleHeader = VisualControlHandleHeader;
|
|
@@ -46,8 +46,9 @@ const container = {
|
|
|
46
46
|
const VisualControlsContent = () => {
|
|
47
47
|
const { handles } = (0, react_1.useContext)(VisualControls_1.VisualControlsContext);
|
|
48
48
|
const entries = Object.entries(handles);
|
|
49
|
-
return (
|
|
50
|
-
return (
|
|
49
|
+
return (jsx_runtime_1.jsx("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: entries.map(([key, value], i) => {
|
|
50
|
+
return (jsx_runtime_1.jsxs(react_1.default.Fragment, { children: [
|
|
51
|
+
jsx_runtime_1.jsx(VisualControlHandle_1.VisualControlHandle, { keyName: key, value: value }), i === entries.length - 1 ? null : jsx_runtime_1.jsx(SchemaSeparationLine_1.SchemaSeparationLine, {})] }, key));
|
|
51
52
|
}) }));
|
|
52
53
|
};
|
|
53
54
|
exports.VisualControlsContent = VisualControlsContent;
|
|
@@ -19,6 +19,6 @@ const ZoomGesturesProvider = ({ children }) => {
|
|
|
19
19
|
setEditorZoomGestures,
|
|
20
20
|
};
|
|
21
21
|
}, [editorZoomGestures, setEditorZoomGestures]);
|
|
22
|
-
return (
|
|
22
|
+
return (jsx_runtime_1.jsx(editor_zoom_gestures_1.EditorZoomGesturesContext.Provider, { value: editorZoomGesturesCtx, children: children }));
|
|
23
23
|
};
|
|
24
24
|
exports.ZoomGesturesProvider = ZoomGesturesProvider;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ApiRoutes } from '@remotion/studio-shared';
|
|
2
|
-
export declare const callApi: <Endpoint extends keyof ApiRoutes>(endpoint: Endpoint, body: ApiRoutes[Endpoint]["Request"], signal?: AbortSignal) => Promise<ApiRoutes[Endpoint]["Response"]>;
|
|
2
|
+
export declare const callApi: <Endpoint extends keyof ApiRoutes>(endpoint: Endpoint, body: ApiRoutes[Endpoint]["Request"], signal?: AbortSignal | undefined) => Promise<ApiRoutes[Endpoint]["Response"]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ZodType = Awaited<typeof import('zod')>['z'];
|
|
3
3
|
export type ZodTypesType = Awaited<typeof import('@remotion/zod-types')>;
|
|
4
|
-
export declare
|
|
5
|
-
export declare const getZTypesIfPossible: () => Promise<
|
|
6
|
-
export declare
|
|
4
|
+
export declare function getZodIfPossible(): Promise<ZodType | null>;
|
|
5
|
+
export declare const getZTypesIfPossible: () => Promise<typeof import("@remotion/zod-types") | null>;
|
|
6
|
+
export declare function useZodIfPossible(): ZodType | null;
|
|
7
7
|
export declare const useZodTypesIfPossible: () => typeof import("@remotion/zod-types") | null;
|
|
8
8
|
export declare const ZodProvider: React.FC<{
|
|
9
9
|
readonly children: React.ReactNode;
|
|
@@ -33,10 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ZodProvider = exports.useZodTypesIfPossible = exports.
|
|
36
|
+
exports.ZodProvider = exports.useZodTypesIfPossible = exports.getZTypesIfPossible = void 0;
|
|
37
|
+
exports.getZodIfPossible = getZodIfPossible;
|
|
38
|
+
exports.useZodIfPossible = useZodIfPossible;
|
|
37
39
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
40
|
const react_1 = require("react");
|
|
39
|
-
|
|
41
|
+
async function getZodIfPossible() {
|
|
40
42
|
try {
|
|
41
43
|
const { z } = await Promise.resolve().then(() => __importStar(require('zod')));
|
|
42
44
|
return z;
|
|
@@ -44,8 +46,7 @@ const getZodIfPossible = async () => {
|
|
|
44
46
|
catch (_a) {
|
|
45
47
|
return null;
|
|
46
48
|
}
|
|
47
|
-
}
|
|
48
|
-
exports.getZodIfPossible = getZodIfPossible;
|
|
49
|
+
}
|
|
49
50
|
const getZTypesIfPossible = async () => {
|
|
50
51
|
try {
|
|
51
52
|
const mod = await Promise.resolve().then(() => __importStar(require('@remotion/zod-types')));
|
|
@@ -56,12 +57,11 @@ const getZTypesIfPossible = async () => {
|
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
59
|
exports.getZTypesIfPossible = getZTypesIfPossible;
|
|
59
|
-
|
|
60
|
+
function useZodIfPossible() {
|
|
60
61
|
var _a;
|
|
61
62
|
const context = (0, react_1.useContext)(ZodContext);
|
|
62
63
|
return (_a = context === null || context === void 0 ? void 0 : context.zod) !== null && _a !== void 0 ? _a : null;
|
|
63
|
-
}
|
|
64
|
-
exports.useZodIfPossible = useZodIfPossible;
|
|
64
|
+
}
|
|
65
65
|
const useZodTypesIfPossible = () => {
|
|
66
66
|
var _a;
|
|
67
67
|
const context = (0, react_1.useContext)(ZodContext);
|
|
@@ -73,7 +73,7 @@ const ZodProvider = ({ children }) => {
|
|
|
73
73
|
const [zod, setZod] = (0, react_1.useState)(null);
|
|
74
74
|
const [zodTypes, setZodTypes] = (0, react_1.useState)(null);
|
|
75
75
|
(0, react_1.useEffect)(() => {
|
|
76
|
-
|
|
76
|
+
getZodIfPossible().then((z) => setZod(z));
|
|
77
77
|
}, []);
|
|
78
78
|
(0, react_1.useEffect)(() => {
|
|
79
79
|
(0, exports.getZTypesIfPossible)().then((z) => setZodTypes(z));
|
|
@@ -84,6 +84,6 @@ const ZodProvider = ({ children }) => {
|
|
|
84
84
|
zodTypes,
|
|
85
85
|
};
|
|
86
86
|
}, [zod, zodTypes]);
|
|
87
|
-
return (
|
|
87
|
+
return (jsx_runtime_1.jsx(ZodContext.Provider, { value: contextValue, children: children }));
|
|
88
88
|
};
|
|
89
89
|
exports.ZodProvider = ZodProvider;
|
|
@@ -13,11 +13,11 @@ const Spacing = ({ x = 0, y = 0, block = false }) => {
|
|
|
13
13
|
flexShrink: 0,
|
|
14
14
|
};
|
|
15
15
|
}, [block, x, y]);
|
|
16
|
-
return
|
|
16
|
+
return jsx_runtime_1.jsx("div", { style: style });
|
|
17
17
|
};
|
|
18
18
|
exports.Spacing = Spacing;
|
|
19
19
|
const flexCss = { flex: 1 };
|
|
20
|
-
const Flex = ({ children }) =>
|
|
20
|
+
const Flex = ({ children }) => jsx_runtime_1.jsx("div", { style: flexCss, children: children });
|
|
21
21
|
exports.Flex = Flex;
|
|
22
22
|
const Row = ({ children, justify, className, align, flex, style = {}, ...other }) => {
|
|
23
23
|
const finalStyle = (0, react_1.useMemo)(() => {
|
|
@@ -30,7 +30,7 @@ const Row = ({ children, justify, className, align, flex, style = {}, ...other }
|
|
|
30
30
|
flex: flex !== null && flex !== void 0 ? flex : undefined,
|
|
31
31
|
};
|
|
32
32
|
}, [align, flex, justify, style]);
|
|
33
|
-
return (
|
|
33
|
+
return (jsx_runtime_1.jsx("div", { className: className, style: finalStyle, ...other, children: children }));
|
|
34
34
|
};
|
|
35
35
|
exports.Row = Row;
|
|
36
36
|
const Column = ({ children, justify, className, align, style = {} }) => {
|
|
@@ -43,6 +43,6 @@ const Column = ({ children, justify, className, align, style = {} }) => {
|
|
|
43
43
|
alignItems: align !== null && align !== void 0 ? align : 'flex-start',
|
|
44
44
|
};
|
|
45
45
|
}, [align, justify, style]);
|
|
46
|
-
return (
|
|
46
|
+
return (jsx_runtime_1.jsx("div", { className: className, style: finalStyle, children: children }));
|
|
47
47
|
};
|
|
48
48
|
exports.Column = Column;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.useStaticFiles = exports.StaticFilesProvider = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const remotion_1 = require("remotion");
|
|
39
|
+
const get_static_files_1 = require("../api/get-static-files");
|
|
40
|
+
const watch_public_folder_1 = require("../api/watch-public-folder");
|
|
41
|
+
const StaticFilesContext = (0, react_1.createContext)([]);
|
|
42
|
+
const StaticFilesProvider = ({ children }) => {
|
|
43
|
+
const [files, setFiles] = (0, react_1.useState)(() => (0, get_static_files_1.getStaticFiles)());
|
|
44
|
+
const env = (0, remotion_1.useRemotionEnvironment)();
|
|
45
|
+
(0, react_1.useEffect)(() => {
|
|
46
|
+
if (!env.isStudio) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (env.isReadOnlyStudio) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const { cancel } = (0, watch_public_folder_1.watchPublicFolder)((newFiles) => {
|
|
53
|
+
setFiles(newFiles);
|
|
54
|
+
});
|
|
55
|
+
return cancel;
|
|
56
|
+
}, [env.isStudio, env.isReadOnlyStudio]);
|
|
57
|
+
return react_1.default.createElement(StaticFilesContext.Provider, { value: files }, children);
|
|
58
|
+
};
|
|
59
|
+
exports.StaticFilesProvider = StaticFilesProvider;
|
|
60
|
+
const useStaticFiles = () => {
|
|
61
|
+
return (0, react_1.useContext)(StaticFilesContext);
|
|
62
|
+
};
|
|
63
|
+
exports.useStaticFiles = useStaticFiles;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { SomeStackFrame, StackFrame } from '@remotion/studio-shared';
|
|
8
8
|
export declare function parseStack(stack: string[]): StackFrame[];
|
|
9
|
-
export declare const parseError: (error:
|
|
9
|
+
export declare const parseError: (error: string | string[] | Error, contextLines: number) => Promise<SomeStackFrame[]>;
|
|
@@ -30,6 +30,6 @@ const AskOnDiscord = ({ canHaveKeyboardShortcuts }) => {
|
|
|
30
30
|
});
|
|
31
31
|
return () => unregister();
|
|
32
32
|
}, [canHaveKeyboardShortcuts, openInBrowser, registerKeybinding]);
|
|
33
|
-
return (
|
|
33
|
+
return (jsx_runtime_1.jsxs(Button_1.Button, { onClick: openInBrowser, children: ["Ask on Discord", ' ', canHaveKeyboardShortcuts ? (jsx_runtime_1.jsx(ShortcutHint_1.ShortcutHint, { keyToPress: "d", cmdOrCtrl: true })) : null] }));
|
|
34
34
|
};
|
|
35
35
|
exports.AskOnDiscord = AskOnDiscord;
|
|
@@ -5,7 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const styles_1 = require("../../components/Menu/styles");
|
|
6
6
|
const colors_1 = require("../../helpers/colors");
|
|
7
7
|
const CalculateMetadataErrorExplainer = () => {
|
|
8
|
-
return (
|
|
8
|
+
return (jsx_runtime_1.jsxs("div", { style: style, children: ["This error occured while calling", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "calculateMetadata()" }),
|
|
9
|
+
"."] }));
|
|
9
10
|
};
|
|
10
11
|
exports.CalculateMetadataErrorExplainer = CalculateMetadataErrorExplainer;
|
|
11
12
|
const style = {
|
|
@@ -28,12 +28,13 @@ const lineNumber = {
|
|
|
28
28
|
fontFamily: 'monospace',
|
|
29
29
|
};
|
|
30
30
|
const CodeFrame = ({ source, lineNumberWidth }) => {
|
|
31
|
-
return (
|
|
32
|
-
return (
|
|
31
|
+
return (jsx_runtime_1.jsx("div", { style: frame, className: is_menu_item_1.HORIZONTAL_SCROLLBAR_CLASSNAME, children: source.map((s, j) => {
|
|
32
|
+
return (jsx_runtime_1.jsxs("div", { style: container, children: [
|
|
33
|
+
jsx_runtime_1.jsx("div", { style: {
|
|
33
34
|
...lineNumber,
|
|
34
35
|
backgroundColor: s.highlight ? 'white' : '#121212',
|
|
35
36
|
color: s.highlight ? 'black' : 'rgba(255, 255, 255, 0.6)',
|
|
36
|
-
}, children: String(s.lineNumber).padStart(lineNumberWidth, ' ') }),
|
|
37
|
+
}, children: String(s.lineNumber).padStart(lineNumberWidth, ' ') }), jsx_runtime_1.jsx("div", { style: {
|
|
37
38
|
fontFamily: 'monospace',
|
|
38
39
|
whiteSpace: 'pre',
|
|
39
40
|
tabSize: 2,
|
|
@@ -42,7 +43,8 @@ const CodeFrame = ({ source, lineNumberWidth }) => {
|
|
|
42
43
|
lineHeight: 1.7,
|
|
43
44
|
paddingRight: 12,
|
|
44
45
|
paddingLeft: 12,
|
|
45
|
-
}, children: s.content })
|
|
46
|
+
}, children: s.content })
|
|
47
|
+
] }, j));
|
|
46
48
|
}) }));
|
|
47
49
|
};
|
|
48
50
|
exports.CodeFrame = CodeFrame;
|
|
@@ -24,7 +24,7 @@ exports.listItemHoverStyle = {
|
|
|
24
24
|
};
|
|
25
25
|
const CompositionIdListItem = ({ id, isActive, onSelect }) => {
|
|
26
26
|
const [hover, setHover] = react_1.default.useState(false);
|
|
27
|
-
return (
|
|
27
|
+
return (jsx_runtime_1.jsx("div", { role: "button", onPointerEnter: () => setHover(true), onPointerLeave: () => setHover(false), onClick: () => onSelect(id), style: {
|
|
28
28
|
...exports.listItemStyle,
|
|
29
29
|
...(hover ? exports.listItemHoverStyle : {}),
|
|
30
30
|
...(isActive ? exports.listItemActiveStyle : {}),
|
|
@@ -86,18 +86,23 @@ const CompositionIdsDropdown = ({ compositionIds, currentId }) => {
|
|
|
86
86
|
document.removeEventListener('keydown', onKey);
|
|
87
87
|
};
|
|
88
88
|
}, [open, containerRef]);
|
|
89
|
-
return (
|
|
89
|
+
return (jsx_runtime_1.jsxs("div", { ref: containerRef, style: containerStyle, children: [
|
|
90
|
+
jsx_runtime_1.jsxs(Button_1.Button, { onClick: () => setOpen((p) => !p), buttonContainerStyle: {
|
|
90
91
|
display: 'flex',
|
|
91
92
|
alignItems: 'center',
|
|
92
93
|
justifyContent: 'space-between',
|
|
93
94
|
gap: 8,
|
|
94
95
|
minWidth: 180,
|
|
95
|
-
}, children: [
|
|
96
|
+
}, children: [
|
|
97
|
+
jsx_runtime_1.jsx("span", { style: {
|
|
96
98
|
overflow: 'hidden',
|
|
97
99
|
textOverflow: 'ellipsis',
|
|
98
100
|
whiteSpace: 'nowrap',
|
|
99
101
|
fontSize: '14px',
|
|
100
102
|
lineHeight: '24px',
|
|
101
|
-
}, children: currentId !== null && currentId !== void 0 ? currentId : 'Select composition' }),
|
|
103
|
+
}, children: currentId !== null && currentId !== void 0 ? currentId : 'Select composition' }), jsx_runtime_1.jsx(carets_1.CaretDown, { size: 20, invert: open })
|
|
104
|
+
] }), open ? (jsx_runtime_1.jsxs("div", { style: dropdownStyle, children: [
|
|
105
|
+
jsx_runtime_1.jsx("input", { value: query, onChange: (e) => setQuery(e.target.value), placeholder: "Search compositions...", style: searchStyle, "aria-label": "Search compositions" }), jsx_runtime_1.jsx("div", { children: filtered.length === 0 ? (jsx_runtime_1.jsx("div", { style: { opacity: 0.7, padding: 8, textAlign: 'center' }, children: "No compositions found" })) : (filtered.map((id) => (jsx_runtime_1.jsx(CompositionIdListItem_1.CompositionIdListItem, { id: id, isActive: id === currentId, onSelect: onSelect }, id)))) })
|
|
106
|
+
] })) : null] }));
|
|
102
107
|
};
|
|
103
108
|
exports.CompositionIdsDropdown = CompositionIdsDropdown;
|
|
@@ -19,6 +19,6 @@ const DismissButton = () => {
|
|
|
19
19
|
const dismiss = (0, react_1.useCallback)(() => {
|
|
20
20
|
(0, url_state_1.clearUrl)();
|
|
21
21
|
}, []);
|
|
22
|
-
return (
|
|
22
|
+
return (jsx_runtime_1.jsx("button", { type: "button", style: style, onClick: dismiss, children: jsx_runtime_1.jsx("svg", { focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size, children: jsx_runtime_1.jsx("path", { fill: "white", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }) }));
|
|
23
23
|
};
|
|
24
24
|
exports.DismissButton = DismissButton;
|
|
@@ -32,7 +32,10 @@ const ErrorDisplay = ({ display, keyboardShortcuts, onRetry, canHaveDismissButto
|
|
|
32
32
|
const highestLineNumber = Math.max(...display.stackFrames
|
|
33
33
|
.map((s) => s.originalScriptCode)
|
|
34
34
|
.flat(1)
|
|
35
|
-
.map((s) => {
|
|
35
|
+
.map((s) => {
|
|
36
|
+
var _a;
|
|
37
|
+
return (_a = s === null || s === void 0 ? void 0 : s.lineNumber) !== null && _a !== void 0 ? _a : 0;
|
|
38
|
+
}));
|
|
36
39
|
const message = (0, react_1.useMemo)(() => {
|
|
37
40
|
// Format compilation errors
|
|
38
41
|
const location = (0, studio_shared_1.getLocationFromBuildError)(display.error);
|
|
@@ -53,10 +56,22 @@ const ErrorDisplay = ({ display, keyboardShortcuts, onRetry, canHaveDismissButto
|
|
|
53
56
|
const id = route.startsWith('/') ? route.slice(1) : route;
|
|
54
57
|
return compositionIds.includes(id) ? id : ((_a = compositionIds[0]) !== null && _a !== void 0 ? _a : null);
|
|
55
58
|
};
|
|
56
|
-
return (
|
|
57
|
-
|
|
59
|
+
return (jsx_runtime_1.jsxs("div", { children: [
|
|
60
|
+
jsx_runtime_1.jsx(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: display.error.name, message: message, canHaveDismissButton: canHaveDismissButton }), helpLink ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
61
|
+
jsx_runtime_1.jsx(HelpLink_1.HelpLink, { link: helpLink, canHaveKeyboardShortcuts: keyboardShortcuts }), jsx_runtime_1.jsx("div", { style: spacer })
|
|
62
|
+
] })) : null, display.stackFrames.length > 0 && window.remotion_editorName ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
63
|
+
jsx_runtime_1.jsx(OpenInEditor_1.OpenInEditor, { canHaveKeyboardShortcuts: keyboardShortcuts, stack: display.stackFrames[0] }), jsx_runtime_1.jsx("div", { style: spacer })
|
|
64
|
+
] })) : null, compositionIds.length > 0 ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
65
|
+
jsx_runtime_1.jsx(CompositionIdsDropdown_1.CompositionIdsDropdown, { compositionIds: compositionIds, currentId: getCurrentCompositionId() }), jsx_runtime_1.jsx("div", { style: spacer })
|
|
66
|
+
] })) : null, jsx_runtime_1.jsx(SearchGitHubIssues_1.SearchGithubIssues, { canHaveKeyboardShortcuts: keyboardShortcuts, message: display.error.message }), jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsx(AskOnDiscord_1.AskOnDiscord, { canHaveKeyboardShortcuts: keyboardShortcuts }), onRetry ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
67
|
+
jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsx(Retry_1.RetryButton, { onClick: onRetry })
|
|
68
|
+
] })) : null, calculateMetadata ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
69
|
+
jsx_runtime_1.jsx("br", {}), jsx_runtime_1.jsx(layout_1.Spacing, { y: 0.5 }), jsx_runtime_1.jsx(CalculateMetadataErrorExplainer_1.CalculateMetadataErrorExplainer, {})
|
|
70
|
+
] })) : null, jsx_runtime_1.jsx("div", { style: stack, className: is_menu_item_1.HORIZONTAL_SCROLLBAR_CLASSNAME, children: display.stackFrames.map((s, i) => {
|
|
71
|
+
return (jsx_runtime_1.jsx(StackFrame_1.StackElement
|
|
58
72
|
// eslint-disable-next-line react/no-array-index-key
|
|
59
73
|
, { isFirst: i === 0, s: s, lineNumberWidth: lineNumberWidth, defaultFunctionName: '(anonymous function)' }, i));
|
|
60
|
-
}) })
|
|
74
|
+
}) })
|
|
75
|
+
] }));
|
|
61
76
|
};
|
|
62
77
|
exports.ErrorDisplay = ErrorDisplay;
|