@remotion/studio 4.0.423 → 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/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 +16 -14
- 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 +8 -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 +27 -5
- package/dist/components/RenderModal/WarningIndicatorButton.js +4 -2
- package/dist/components/RenderModal/WebRenderModal.js +29 -6
- 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.js +0 -1
- package/dist/components/RenderQueue/RenderQueueCancelledMessage.js +1 -1
- package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +2 -2
- package/dist/components/RenderQueue/RenderQueueDownloadItem.js +2 -2
- package/dist/components/RenderQueue/RenderQueueError.js +1 -1
- package/dist/components/RenderQueue/RenderQueueItem.js +4 -1
- package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +2 -2
- package/dist/components/RenderQueue/RenderQueueItemStatus.js +8 -8
- package/dist/components/RenderQueue/RenderQueueOpenInFolder.js +2 -2
- package/dist/components/RenderQueue/RenderQueueOutputName.js +1 -1
- package/dist/components/RenderQueue/RenderQueueProgressMessage.js +4 -2
- package/dist/components/RenderQueue/RenderQueueRemoveItem.js +2 -2
- package/dist/components/RenderQueue/RenderQueueRepeat.js +2 -2
- package/dist/components/RenderQueue/RenderQueueSavingMessage.js +1 -1
- 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 +0 -1
- package/dist/components/RenderQueue/context.js +2 -2
- package/dist/components/RenderQueue/index.js +10 -5
- 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-112w480k.js → chunk-3g77e2p9.js} +4021 -19452
- package/dist/esm/internals.mjs +4021 -19452
- package/dist/esm/previewEntry.mjs +4052 -19483
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/client-id.js +1 -1
- 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/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
|
@@ -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;
|
|
@@ -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;
|