@remotion/studio 4.0.235 → 4.0.237
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/.turbo/turbo-formatting.log +7 -0
- package/.turbo/turbo-lint.log +15 -0
- package/.turbo/turbo-make.log +1 -1
- package/.turbo/turbo-test.log +86 -0
- package/dist/components/CompositionSelector.d.ts +1 -1
- package/dist/components/EditorRuler/index.d.ts +1 -1
- package/dist/components/ExplorerPanel.d.ts +1 -1
- package/dist/components/OptionsPanel.d.ts +1 -1
- package/dist/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +1 -0
- package/dist/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +17 -4
- package/dist/components/RenderModal/SchemaEditor/ZodArrayEditor.js +2 -2
- package/dist/components/RenderModal/SchemaEditor/ZodSwitch.js +4 -0
- package/dist/components/RenderModal/SchemaEditor/ZodTupleEditor.d.ts +17 -0
- package/dist/components/RenderModal/SchemaEditor/ZodTupleEditor.js +75 -0
- package/dist/components/RenderModal/SchemaEditor/ZodTupleItemEditor.d.ts +15 -0
- package/dist/components/RenderModal/SchemaEditor/ZodTupleItemEditor.js +30 -0
- package/dist/components/RenderModal/SchemaEditor/scroll-to-default-props-path.d.ts +1 -1
- package/dist/components/RenderQueue/context.d.ts +1 -1
- package/dist/components/Splitter/SplitterContext.d.ts +1 -1
- package/dist/components/TimeValue.d.ts +1 -1
- package/dist/components/Timeline/TimelineInOutPointer.d.ts +2 -2
- package/dist/components/Timeline/TimelineInOutPointerHandle.d.ts +2 -2
- package/dist/components/Timeline/TimelineSlider.d.ts +1 -1
- package/dist/components/Timeline/timeline-refs.d.ts +3 -3
- package/dist/components/TimelineInOutToggle.d.ts +1 -1
- package/dist/components/TopPanel.d.ts +1 -1
- package/dist/error-overlay/remotion-overlay/Overlay.d.ts +1 -1
- package/dist/error-overlay/remotion-overlay/index.js +5 -0
- package/dist/esm/internals.mjs +2087 -1891
- package/dist/helpers/editor-ruler.d.ts +1 -1
- package/dist/previewEntry.js +1 -0
- package/dist/state/canvas-ref.d.ts +2 -2
- package/dist/state/timeline-ref.d.ts +1 -1
- package/package.json +10 -10
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @remotion/studio@4.0.235 formatting /Users/jonathanburger/remotion/packages/studio
|
|
4
|
+
> prettier src --check
|
|
5
|
+
|
|
6
|
+
Checking formatting...
|
|
7
|
+
src/api/delete-static-file.ts[2K[1Gsrc/api/focus-default-props-path.ts[2K[1Gsrc/api/get-static-files.ts[2K[1Gsrc/api/helpers/calc-new-props.ts[2K[1Gsrc/api/install-package.ts[2K[1Gsrc/api/reevaluate-composition.ts[2K[1Gsrc/api/restart-studio.ts[2K[1Gsrc/api/save-default-props.ts[2K[1Gsrc/api/update-default-props.ts[2K[1Gsrc/api/watch-public-folder.ts[2K[1Gsrc/api/watch-static-file.ts[2K[1Gsrc/api/write-static-file.ts[2K[1Gsrc/components/.DS_Store[2K[1Gsrc/components/AssetSelector.tsx[2K[1Gsrc/components/AssetSelectorItem.tsx[2K[1Gsrc/components/AudioWaveform.tsx[2K[1Gsrc/components/AudioWaveformBar.tsx[2K[1Gsrc/components/Button.tsx[2K[1Gsrc/components/call-api.ts[2K[1Gsrc/components/Canvas.tsx[2K[1Gsrc/components/CanvasIfSizeIsAvailable.tsx[2K[1Gsrc/components/CanvasOrLoading.tsx[2K[1Gsrc/components/CheckboardToggle.tsx[2K[1Gsrc/components/Checkbox.tsx[2K[1Gsrc/components/CheckerboardProvider.tsx[2K[1Gsrc/components/CompositionContextButton.tsx[2K[1Gsrc/components/CompositionSelector.tsx[2K[1Gsrc/components/CompositionSelectorItem.tsx[2K[1Gsrc/components/ContextMenu.tsx[2K[1Gsrc/components/ControlButton.tsx[2K[1Gsrc/components/CopyButton.tsx[2K[1Gsrc/components/CurrentComposition.tsx[2K[1Gsrc/components/CurrentCompositionSideEffects.tsx[2K[1Gsrc/components/Editor.tsx[2K[1Gsrc/components/EditorContent.tsx[2K[1Gsrc/components/EditorContexts.tsx[2K[1Gsrc/components/EditorGuides/Guide.tsx[2K[1Gsrc/components/EditorGuides/index.tsx[2K[1Gsrc/components/EditorRuler/index.tsx[2K[1Gsrc/components/EditorRuler/Ruler.tsx[2K[1Gsrc/components/EditorRuler/use-is-ruler-visible.ts[2K[1Gsrc/components/ExplorerPanel.tsx[2K[1Gsrc/components/FilePreview.tsx[2K[1Gsrc/components/FpsCounter.tsx[2K[1Gsrc/components/FramePersistor.tsx[2K[1Gsrc/components/FullscreenToggle.tsx[2K[1Gsrc/components/get-zod-if-possible.tsx[2K[1Gsrc/components/GlobalKeybindings.tsx[2K[1Gsrc/components/GlobalPropsEditorUpdateButton.tsx[2K[1Gsrc/components/InitialCompositionLoader.tsx[2K[1Gsrc/components/InlineAction.tsx[2K[1Gsrc/components/InlineDropdown.tsx[2K[1Gsrc/components/InstallablePackage.tsx[2K[1Gsrc/components/InstallPackage.tsx[2K[1Gsrc/components/JSONViewer.tsx[2K[1Gsrc/components/KeyboardShortcutsExplainer.tsx[2K[1Gsrc/components/KnownBugs.tsx[2K[1Gsrc/components/layout.tsx[2K[1Gsrc/components/load-canvas-content-from-url.ts[2K[1Gsrc/components/LoopToggle.tsx[2K[1Gsrc/components/MediaVolumeProvider.tsx[2K[1Gsrc/components/Menu/is-menu-item.tsx[2K[1Gsrc/components/Menu/MenuDivider.tsx[2K[1Gsrc/components/Menu/MenuItem.tsx[2K[1Gsrc/components/Menu/MenuSubItem.tsx[2K[1Gsrc/components/Menu/portals.ts[2K[1Gsrc/components/Menu/styles.ts[2K[1Gsrc/components/Menu/SubMenu.tsx[2K[1Gsrc/components/MenuBuildIndicator.tsx[2K[1Gsrc/components/MenuToolbar.tsx[2K[1Gsrc/components/MobilePanel.tsx[2K[1Gsrc/components/ModalButton.tsx[2K[1Gsrc/components/ModalContainer.tsx[2K[1Gsrc/components/ModalFooter.tsx[2K[1Gsrc/components/ModalHeader.tsx[2K[1Gsrc/components/Modals.tsx[2K[1Gsrc/components/ModalsProvider.tsx[2K[1Gsrc/components/MuteToggle.tsx[2K[1Gsrc/components/NewComposition/CancelButton.tsx[2K[1Gsrc/components/NewComposition/CodemodFooter.tsx[2K[1Gsrc/components/NewComposition/ComboBox.tsx[2K[1Gsrc/components/NewComposition/DeleteComposition.tsx[2K[1Gsrc/components/NewComposition/DiffPreview.tsx[2K[1Gsrc/components/NewComposition/DismissableModal.tsx[2K[1Gsrc/components/NewComposition/DuplicateComposition.tsx[2K[1Gsrc/components/NewComposition/InputDragger.tsx[2K[1Gsrc/components/NewComposition/MenuContent.tsx[2K[1Gsrc/components/NewComposition/NewCompDuration.tsx[2K[1Gsrc/components/NewComposition/RemInput.tsx[2K[1Gsrc/components/NewComposition/RemInputTypeColor.tsx[2K[1Gsrc/components/NewComposition/RemTextarea.tsx[2K[1Gsrc/components/NewComposition/RenameComposition.tsx[2K[1Gsrc/components/NewComposition/render-aspect-ratio.tsx[2K[1Gsrc/components/NewComposition/ValidationMessage.tsx[2K[1Gsrc/components/NoRegisterRoot.tsx[2K[1Gsrc/components/Notifications/ColorDot.tsx[2K[1Gsrc/components/Notifications/Notification.tsx[2K[1Gsrc/components/Notifications/NotificationCenter.tsx[2K[1Gsrc/components/Notifications/ServerDisconnected.tsx[2K[1Gsrc/components/OpenEditorButton.tsx[2K[1Gsrc/components/OptionsPanel.tsx[2K[1Gsrc/components/PlaybackKeyboardShortcutsManager.tsx[2K[1Gsrc/components/PlaybackRatePersistor.tsx[2K[1Gsrc/components/PlaybackRateSelector.tsx[2K[1Gsrc/components/PlayBeepSound.tsx[2K[1Gsrc/components/PlayPause.tsx[2K[1Gsrc/components/Preview.tsx[2K[1Gsrc/components/PreviewToolbar.tsx[2K[1Gsrc/components/QuickSwitcher/algolia-search.ts[2K[1Gsrc/components/QuickSwitcher/AlgoliaCredit.tsx[2K[1Gsrc/components/QuickSwitcher/fuzzy-search.ts[2K[1Gsrc/components/QuickSwitcher/NoResults.tsx[2K[1Gsrc/components/QuickSwitcher/QuickSwitcher.tsx[2K[1Gsrc/components/QuickSwitcher/QuickSwitcherContent.tsx[2K[1Gsrc/components/QuickSwitcher/QuickSwitcherResult.tsx[2K[1Gsrc/components/RefreshCompositionOverlay.tsx[2K[1Gsrc/components/RenderButton.tsx[2K[1Gsrc/components/RenderModal/CliCopyButton.tsx[2K[1Gsrc/components/RenderModal/CrfSetting.tsx[2K[1Gsrc/components/RenderModal/DataEditor.tsx[2K[1Gsrc/components/RenderModal/EnforceAudioTrackSetting.tsx[2K[1Gsrc/components/RenderModal/EnvInput.tsx[2K[1Gsrc/components/RenderModal/FrameRangeSetting.tsx[2K[1Gsrc/components/RenderModal/get-default-codecs.ts[2K[1Gsrc/components/RenderModal/get-render-modal-warnings.ts[2K[1Gsrc/components/RenderModal/get-string-before-suffix.ts[2K[1Gsrc/components/RenderModal/GuiRenderStatus.tsx[2K[1Gsrc/components/RenderModal/human-readable-audio-codecs.ts[2K[1Gsrc/components/RenderModal/human-readable-codec.ts[2K[1Gsrc/components/RenderModal/InfoBubble.tsx[2K[1Gsrc/components/RenderModal/InfoTooltip.tsx[2K[1Gsrc/components/RenderModal/InlineEyeIcon.tsx[2K[1Gsrc/components/RenderModal/InlineRemoveButton.tsx[2K[1Gsrc/components/RenderModal/JpegQualitySetting.tsx[2K[1Gsrc/components/RenderModal/layout.ts[2K[1Gsrc/components/RenderModal/MultiRangeSlider.tsx[2K[1Gsrc/components/RenderModal/MutedSetting.tsx[2K[1Gsrc/components/RenderModal/NumberOfLoopsSetting.tsx[2K[1Gsrc/components/RenderModal/NumberSetting.tsx[2K[1Gsrc/components/RenderModal/OptionExplainer.tsx[2K[1Gsrc/components/RenderModal/OptionExplainerBubble.tsx[2K[1Gsrc/components/RenderModal/out-name-checker.ts[2K[1Gsrc/components/RenderModal/RenderModal.tsx[2K[1Gsrc/components/RenderModal/RenderModalAdvanced.tsx[2K[1Gsrc/components/RenderModal/RenderModalAudio.tsx[2K[1Gsrc/components/RenderModal/RenderModalBasic.tsx[2K[1Gsrc/components/RenderModal/RenderModalEnvironmentVariables.tsx[2K[1Gsrc/components/RenderModal/RenderModalGif.tsx[2K[1Gsrc/components/RenderModal/RenderModalHr.tsx[2K[1Gsrc/components/RenderModal/RenderModalJSONPropsEditor.tsx[2K[1Gsrc/components/RenderModal/RenderModalOutputName.tsx[2K[1Gsrc/components/RenderModal/RenderModalPicture.tsx[2K[1Gsrc/components/RenderModal/RenderStatusModal.tsx[2K[1Gsrc/components/RenderModal/ResolveCompositionBeforeModal.tsx[2K[1Gsrc/components/RenderModal/ScaleSetting.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/create-zod-values.ts[2K[1Gsrc/components/RenderModal/SchemaEditor/deep-equal.ts[2K[1Gsrc/components/RenderModal/SchemaEditor/extract-enum-json-paths.ts[2K[1Gsrc/components/RenderModal/SchemaEditor/Fieldset.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/get-schema-label.ts[2K[1Gsrc/components/RenderModal/SchemaEditor/local-state.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/SchemaEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/SchemaErrorMessages.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/SchemaLabel.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/SchemaResetButton.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/SchemaSaveButton.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/SchemaSeparationLine.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/SchemaVerticalGuide.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/scroll-to-default-props-path.ts[2K[1Gsrc/components/RenderModal/SchemaEditor/zod-types.ts[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodArrayEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodArrayItemEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodBooleanEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodColorEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodDateEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodDefaultEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodEffectEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodEnumEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodErrorMessages.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodFieldValidation.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodNonEditableValue.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodNullableEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodObjectEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodOptionalEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodOrNullishEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodStringEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodSwitch.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodTextareaEditor.tsx[2K[1Gsrc/components/RenderModal/SchemaEditor/ZodUnionEditor.tsx[2K[1Gsrc/components/RenderModal/SeparateAudioOption.tsx[2K[1Gsrc/components/RenderModal/WarningIndicatorButton.tsx[2K[1Gsrc/components/RenderPreview.tsx[2K[1Gsrc/components/RenderQueue/actions.ts[2K[1Gsrc/components/RenderQueue/CircularProgress.tsx[2K[1Gsrc/components/RenderQueue/context.tsx[2K[1Gsrc/components/RenderQueue/index.tsx[2K[1Gsrc/components/RenderQueue/item-style.ts[2K[1Gsrc/components/RenderQueue/RenderQueueCopyToClipboard.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueError.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueItem.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueItemCancelButton.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueItemStatus.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueOpenInFolder.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueOutputName.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueProgressMessage.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueRemoveItem.tsx[2K[1Gsrc/components/RenderQueue/RenderQueueRepeat.tsx[2K[1Gsrc/components/RenderQueue/SuccessIcon.tsx[2K[1Gsrc/components/RendersTab.tsx[2K[1Gsrc/components/ResetZoomButton.tsx[2K[1Gsrc/components/RunningCalculateMetadata.tsx[2K[1Gsrc/components/SegmentedControl.tsx[2K[1Gsrc/components/SetTimelineInOutProvider.tsx[2K[1Gsrc/components/ShowGuidesProvider.tsx[2K[1Gsrc/components/ShowRulersProvider.tsx[2K[1Gsrc/components/SidebarCollapserControls.tsx[2K[1Gsrc/components/SidebarRenderButton.tsx[2K[1Gsrc/components/SizeSelector.tsx[2K[1Gsrc/components/Spinner.tsx[2K[1Gsrc/components/Splitter/SplitterContainer.tsx[2K[1Gsrc/components/Splitter/SplitterContext.tsx[2K[1Gsrc/components/Splitter/SplitterElement.tsx[2K[1Gsrc/components/Splitter/SplitterHandle.tsx[2K[1Gsrc/components/StaticFilePreview.tsx[2K[1Gsrc/components/Tabs/index.tsx[2K[1Gsrc/components/Tabs/vertical.tsx[2K[1Gsrc/components/TextViewer.tsx[2K[1Gsrc/components/Timeline/imperative-state.ts[2K[1Gsrc/components/Timeline/is-collapsed.ts[2K[1Gsrc/components/Timeline/LoopedIndicator.tsx[2K[1Gsrc/components/Timeline/LoopedTimelineIndicators.tsx[2K[1Gsrc/components/Timeline/MaxTimelineTracks.tsx[2K[1Gsrc/components/Timeline/timeline-refs.ts[2K[1Gsrc/components/Timeline/timeline-scroll-logic.ts[2K[1Gsrc/components/Timeline/Timeline.tsx[2K[1Gsrc/components/Timeline/TimelineCollapseToggle.tsx[2K[1Gsrc/components/Timeline/TimelineDragHandler.tsx[2K[1Gsrc/components/Timeline/TimelineInOutPointer.tsx[2K[1Gsrc/components/Timeline/TimelineInOutPointerHandle.tsx[2K[1Gsrc/components/Timeline/TimelineLayerEye.tsx[2K[1Gsrc/components/Timeline/TimelineList.tsx[2K[1Gsrc/components/Timeline/TimelineListItem.tsx[2K[1Gsrc/components/Timeline/TimelinePlayCursorSyncer.tsx[2K[1Gsrc/components/Timeline/TimelineScrollable.tsx[2K[1Gsrc/components/Timeline/TimelineSequence.tsx[2K[1Gsrc/components/Timeline/TimelineSequenceFrame.tsx[2K[1Gsrc/components/Timeline/TimelineSlider.tsx[2K[1Gsrc/components/Timeline/TimelineSliderHandle.tsx[2K[1Gsrc/components/Timeline/TimelineStack/get-stack.ts[2K[1Gsrc/components/Timeline/TimelineStack/index.tsx[2K[1Gsrc/components/Timeline/TimelineStack/source-attribution.ts[2K[1Gsrc/components/Timeline/TimelineTimeIndicators.tsx[2K[1Gsrc/components/Timeline/TimelineTracks.tsx[2K[1Gsrc/components/Timeline/TimelineVideoInfo.tsx[2K[1Gsrc/components/Timeline/TimelineWidthProvider.tsx[2K[1Gsrc/components/Timeline/TimelineZoomControls.tsx[2K[1Gsrc/components/TimelineInOutToggle.tsx[2K[1Gsrc/components/TimeValue.tsx[2K[1Gsrc/components/TopPanel.tsx[2K[1Gsrc/components/UpdateCheck.tsx[2K[1Gsrc/components/UpdateModal/OpenIssueButton.tsx[2K[1Gsrc/components/UpdateModal/UpdateModal.tsx[2K[1Gsrc/components/ZoomGesturesProvider.tsx[2K[1Gsrc/components/ZoomPersistor.tsx[2K[1Gsrc/error-overlay/entry-basic.ts[2K[1Gsrc/error-overlay/react-overlay/effects/format-warning.ts[2K[1Gsrc/error-overlay/react-overlay/effects/proxy-console.ts[2K[1Gsrc/error-overlay/react-overlay/effects/resolve-file-source.ts[2K[1Gsrc/error-overlay/react-overlay/effects/stack-trace-limit.ts[2K[1Gsrc/error-overlay/react-overlay/effects/unhandled-error.ts[2K[1Gsrc/error-overlay/react-overlay/effects/unhandled-rejection.ts[2K[1Gsrc/error-overlay/react-overlay/index.ts[2K[1Gsrc/error-overlay/react-overlay/listen-to-runtime-errors.ts[2K[1Gsrc/error-overlay/react-overlay/utils/get-lines-around.ts[2K[1Gsrc/error-overlay/react-overlay/utils/get-source-map.ts[2K[1Gsrc/error-overlay/react-overlay/utils/get-stack-frames.ts[2K[1Gsrc/error-overlay/react-overlay/utils/make-stack-frame.ts[2K[1Gsrc/error-overlay/react-overlay/utils/parser.ts[2K[1Gsrc/error-overlay/react-overlay/utils/unmapper.ts[2K[1Gsrc/error-overlay/remotion-overlay/AskOnDiscord.tsx[2K[1Gsrc/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.tsx[2K[1Gsrc/error-overlay/remotion-overlay/carets.tsx[2K[1Gsrc/error-overlay/remotion-overlay/CodeFrame.tsx[2K[1Gsrc/error-overlay/remotion-overlay/DismissButton.tsx[2K[1Gsrc/error-overlay/remotion-overlay/ErrorDisplay.tsx[2K[1Gsrc/error-overlay/remotion-overlay/ErrorLoader.tsx[2K[1Gsrc/error-overlay/remotion-overlay/ErrorMessage.tsx[2K[1Gsrc/error-overlay/remotion-overlay/ErrorTitle.tsx[2K[1Gsrc/error-overlay/remotion-overlay/format-location.ts[2K[1Gsrc/error-overlay/remotion-overlay/get-help-link.ts[2K[1Gsrc/error-overlay/remotion-overlay/HelpLink.tsx[2K[1Gsrc/error-overlay/remotion-overlay/index.tsx[2K[1Gsrc/error-overlay/remotion-overlay/OpenInEditor.tsx[2K[1Gsrc/error-overlay/remotion-overlay/Overlay.tsx[2K[1Gsrc/error-overlay/remotion-overlay/Retry.tsx[2K[1Gsrc/error-overlay/remotion-overlay/SearchGitHubIssues.tsx[2K[1Gsrc/error-overlay/remotion-overlay/ShortcutHint.tsx[2K[1Gsrc/error-overlay/remotion-overlay/StackFrame.tsx[2K[1Gsrc/error-overlay/remotion-overlay/Symbolicating.tsx[2K[1Gsrc/helpers/calculate-timeline.ts[2K[1Gsrc/helpers/check-fullscreen-support.ts[2K[1Gsrc/helpers/checkerboard-background.ts[2K[1Gsrc/helpers/client-id.tsx[2K[1Gsrc/helpers/color-math.ts[2K[1Gsrc/helpers/colors.ts[2K[1Gsrc/helpers/convert-env-variables.ts[2K[1Gsrc/helpers/copy-text.ts[2K[1Gsrc/helpers/create-folder-tree.ts[2K[1Gsrc/helpers/document-title.ts[2K[1Gsrc/helpers/editor-ruler.ts[2K[1Gsrc/helpers/get-asset-metadata.ts[2K[1Gsrc/helpers/get-effective-translation.ts[2K[1Gsrc/helpers/get-git-menu-item.ts[2K[1Gsrc/helpers/get-left-of-timeline-slider.ts[2K[1Gsrc/helpers/get-location-of-sequence.ts[2K[1Gsrc/helpers/get-sequence-visible-range.ts[2K[1Gsrc/helpers/get-timeline-nestedness.ts[2K[1Gsrc/helpers/get-timeline-sequence-hash.ts[2K[1Gsrc/helpers/get-timeline-sequence-layout.ts[2K[1Gsrc/helpers/get-timeline-sequence-sort-key.ts[2K[1Gsrc/helpers/inject-css.ts[2K[1Gsrc/helpers/is-composition-still.ts[2K[1Gsrc/helpers/is-current-selected-still.ts[2K[1Gsrc/helpers/mobile-layout.ts[2K[1Gsrc/helpers/noop.ts[2K[1Gsrc/helpers/open-in-editor.ts[2K[1Gsrc/helpers/persist-open-folders.ts[2K[1Gsrc/helpers/pick-color.tsx[2K[1Gsrc/helpers/presets-labels.ts[2K[1Gsrc/helpers/prores-labels.ts[2K[1Gsrc/helpers/render-modal-sections.ts[2K[1Gsrc/helpers/retry-payload.ts[2K[1Gsrc/helpers/smooth-zoom.ts[2K[1Gsrc/helpers/timeline-layout.ts[2K[1Gsrc/helpers/url-state.ts[2K[1Gsrc/helpers/use-asset-drag-events.ts[2K[1Gsrc/helpers/use-breakpoint.ts[2K[1Gsrc/helpers/use-file-existence.ts[2K[1Gsrc/helpers/use-keybinding.ts[2K[1Gsrc/helpers/use-menu-structure.tsx[2K[1Gsrc/helpers/use-studio-canvas-dimensions.ts[2K[1Gsrc/helpers/validate-new-comp-data.ts[2K[1Gsrc/hot-middleware-client/client.ts[2K[1Gsrc/hot-middleware-client/process-update.ts[2K[1Gsrc/icons/audio.tsx[2K[1Gsrc/icons/caret.tsx[2K[1Gsrc/icons/Checkmark.tsx[2K[1Gsrc/icons/clipboard.tsx[2K[1Gsrc/icons/data.tsx[2K[1Gsrc/icons/ellipsis.tsx[2K[1Gsrc/icons/file.tsx[2K[1Gsrc/icons/folder.tsx[2K[1Gsrc/icons/frame.tsx[2K[1Gsrc/icons/gear.tsx[2K[1Gsrc/icons/gif.tsx[2K[1Gsrc/icons/jump-to-start.tsx[2K[1Gsrc/icons/keys.tsx[2K[1Gsrc/icons/media-volume.tsx[2K[1Gsrc/icons/minus.tsx[2K[1Gsrc/icons/pause.tsx[2K[1Gsrc/icons/play.tsx[2K[1Gsrc/icons/plus.tsx[2K[1Gsrc/icons/render.tsx[2K[1Gsrc/icons/step-back.tsx[2K[1Gsrc/icons/step-forward.tsx[2K[1Gsrc/icons/still.tsx[2K[1Gsrc/icons/timelineInOutPointer.tsx[2K[1Gsrc/icons/video.tsx[2K[1Gsrc/index.ts[2K[1Gsrc/internals.ts[2K[1Gsrc/previewEntry.tsx[2K[1Gsrc/state/canvas-ref.ts[2K[1Gsrc/state/checkerboard.ts[2K[1Gsrc/state/editor-guides.ts[2K[1Gsrc/state/editor-rulers.ts[2K[1Gsrc/state/editor-zoom-gestures.ts[2K[1Gsrc/state/folders.tsx[2K[1Gsrc/state/highest-z-index.tsx[2K[1Gsrc/state/in-out.ts[2K[1Gsrc/state/input-dragger-click-lock.ts[2K[1Gsrc/state/keybindings.tsx[2K[1Gsrc/state/loop.ts[2K[1Gsrc/state/marks.ts[2K[1Gsrc/state/modals.ts[2K[1Gsrc/state/mute.ts[2K[1Gsrc/state/playbackrate.ts[2K[1Gsrc/state/preview-size.tsx[2K[1Gsrc/state/render-frame.ts[2K[1Gsrc/state/sidebar.tsx[2K[1Gsrc/state/timeline-ref.ts[2K[1Gsrc/state/timeline-zoom.tsx[2K[1Gsrc/state/timeline.ts[2K[1Gsrc/state/z-index.tsx[2K[1Gsrc/Studio.tsx[2K[1Gsrc/test/big-timeline.test.ts[2K[1Gsrc/test/color-math.test.ts[2K[1Gsrc/test/create-zod-values.test.ts[2K[1Gsrc/test/extract-zod-enums.test.ts[2K[1Gsrc/test/folder-tree.test.ts[2K[1Gsrc/test/format-time.test.ts[2K[1Gsrc/test/sequenced-timeline.test.ts[2K[1Gsrc/test/smooth-zoom.test.ts[2K[1Gsrc/test/stringify-default-props.test.ts[2K[1Gsrc/test/timeline-sequence-layout.test.ts[2K[1Gsrc/test/timeline.test.ts[2K[1Gsrc/test/validate-gui-output-filename.test.ts[2K[1GAll matched files use Prettier code style!
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @remotion/studio@4.0.235 lint /Users/jonathanburger/remotion/packages/studio
|
|
4
|
+
> eslint src
|
|
5
|
+
|
|
6
|
+
[0m[0m
|
|
7
|
+
[0m[4m/Users/jonathanburger/remotion/packages/studio/src/components/QuickSwitcher/fuzzy-search.ts[24m[0m
|
|
8
|
+
[0m [2m23:3[22m [33mwarning[39m Unused eslint-disable directive (no problems were reported from 'no-bitwise')[0m
|
|
9
|
+
[0m[0m
|
|
10
|
+
[0m[4m/Users/jonathanburger/remotion/packages/studio/src/error-overlay/react-overlay/utils/get-source-map.ts[24m[0m
|
|
11
|
+
[0m [2m54:1[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: Can import this from...' [2mno-warning-comments[22m[0m
|
|
12
|
+
[0m[0m
|
|
13
|
+
[0m[33m[1m✖ 2 problems (0 errors, 2 warnings)[22m[39m[0m
|
|
14
|
+
[0m[33m[1m[22m[39m[33m[1m 0 errors and 1 warning potentially fixable with the `--fix` option.[22m[39m[0m
|
|
15
|
+
[0m[33m[1m[22m[39m[0m
|
package/.turbo/turbo-make.log
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @remotion/studio@4.0.235 test /Users/jonathanburger/remotion/packages/studio
|
|
4
|
+
> bun test src
|
|
5
|
+
|
|
6
|
+
[0m[1mbun test [0m[2mv1.1.38 (bf2f153f)[0m
|
|
7
|
+
[0m
|
|
8
|
+
src/test/stringify-default-props.test.ts:
|
|
9
|
+
[0m[32m✓[0m[0m[1m Should stringify default props correctly[0m [0m[2m[0.67ms[0m[2m][0m
|
|
10
|
+
[0m[32m✓[0m[0m[1m Should stringify default props correctly[0m [0m[2m[0.81ms[0m[2m][0m
|
|
11
|
+
[0m
|
|
12
|
+
src/test/sequenced-timeline.test.ts:
|
|
13
|
+
[0m[32m✓[0m[0m[1m Should calculate sequences correctly[0m [0m[2m[1.97ms[0m[2m][0m
|
|
14
|
+
[0m
|
|
15
|
+
src/test/create-zod-values.test.ts:
|
|
16
|
+
[0m[32m✓[0m[0m[1m Should be able to create a string[0m [0m[2m[2.43ms[0m[2m][0m
|
|
17
|
+
[0m[32m✓[0m[0m[1m Should be able to create a number[0m [0m[2m[0.09ms[0m[2m][0m
|
|
18
|
+
[0m[32m✓[0m[0m[1m Should be able to create an object[0m [0m[2m[0.09ms[0m[2m][0m
|
|
19
|
+
[0m[32m✓[0m[0m[1m Should be able to create an array[0m [0m[2m[0.07ms[0m[2m][0m
|
|
20
|
+
[0m[32m✓[0m[0m[1m Should be able to create a union[0m [0m[2m[0.08ms[0m[2m][0m
|
|
21
|
+
[0m[32m✓[0m[0m[1m Zod literal[0m [0m[2m[0.06ms[0m[2m][0m
|
|
22
|
+
[0m[32m✓[0m[0m[1m Should be able to create a discriminated union[0m [0m[2m[0.39ms[0m[2m][0m
|
|
23
|
+
[0m[32m✓[0m[0m[1m Zod instanceof[0m [0m[2m[0.09ms[0m[2m][0m
|
|
24
|
+
[0m[32m✓[0m[0m[1m Zod intersection[0m [0m[2m[0.18ms[0m[2m][0m
|
|
25
|
+
[0m[32m✓[0m[0m[1m Zod tuples[0m [0m[2m[0.09ms[0m[2m][0m
|
|
26
|
+
[0m[32m✓[0m[0m[1m Zod record[0m [0m[2m[0.07ms[0m[2m][0m
|
|
27
|
+
[0m[32m✓[0m[0m[1m Zod map[0m [0m[2m[0.08ms[0m[2m][0m
|
|
28
|
+
[0m[32m✓[0m[0m[1m Zod lazy[0m [0m[2m[0.03ms[0m[2m][0m
|
|
29
|
+
[0m[32m✓[0m[0m[1m Zod set[0m [0m[2m[0.09ms[0m[2m][0m
|
|
30
|
+
[0m[32m✓[0m[0m[1m Zod function[0m [0m[2m[0.09ms[0m[2m][0m
|
|
31
|
+
[0m[32m✓[0m[0m[1m Zod undefined[0m [0m[2m[0.04ms[0m[2m][0m
|
|
32
|
+
[0m[32m✓[0m[0m[1m Zod null[0m [0m[2m[0.05ms[0m[2m][0m
|
|
33
|
+
[0m[32m✓[0m[0m[1m Zod enum[0m [0m[2m[0.05ms[0m[2m][0m
|
|
34
|
+
[0m[32m✓[0m[0m[1m Zod nativeEnum[0m [0m[2m[0.05ms[0m[2m][0m
|
|
35
|
+
[0m[32m✓[0m[0m[1m Zod optional[0m [0m[2m[0.06ms[0m[2m][0m
|
|
36
|
+
[0m[32m✓[0m[0m[1m Zod nullable[0m [0m[2m[0.06ms[0m[2m][0m
|
|
37
|
+
[0m[32m✓[0m[0m[1m Zod undefined[0m [0m[2m[0.05ms[0m[2m][0m
|
|
38
|
+
[0m[32m✓[0m[0m[1m Zod catch[0m [0m[2m[0.05ms[0m[2m][0m
|
|
39
|
+
[0m[32m✓[0m[0m[1m Zod promise[0m [0m[2m[0.05ms[0m[2m][0m
|
|
40
|
+
[0m[32m✓[0m[0m[1m Zod transform[0m [0m[2m[0.04ms[0m[2m][0m
|
|
41
|
+
[0m[32m✓[0m[0m[1m Zod branded[0m [0m[2m[0.05ms[0m[2m][0m
|
|
42
|
+
[0m[32m✓[0m[0m[1m Zod lazy[0m [0m[2m[0.05ms[0m[2m][0m
|
|
43
|
+
[0m[32m✓[0m[0m[1m Zod coerce[0m [0m[2m[0.05ms[0m[2m][0m
|
|
44
|
+
[0m[32m✓[0m[0m[1m Zod strict[0m [0m[2m[0.05ms[0m[2m][0m
|
|
45
|
+
[0m[32m✓[0m[0m[1m Should create a color[0m [0m[2m[0.06ms[0m[2m][0m
|
|
46
|
+
[0m[32m✓[0m[0m[1m Should create a textarea[0m [0m[2m[0.04ms[0m[2m][0m
|
|
47
|
+
[0m
|
|
48
|
+
src/test/folder-tree.test.ts:
|
|
49
|
+
[0m[32m✓[0m[0m[1m Should create a good folder tree with 1 item inside and 1 item outside[0m
|
|
50
|
+
[0m[32m✓[0m[0m[1m Should handle nested folders well[0m [0m[2m[0.52ms[0m[2m][0m
|
|
51
|
+
[0m[32m✓[0m[0m[1m Should throw if two folders with the same name[0m [0m[2m[0.16ms[0m[2m][0m
|
|
52
|
+
[0m
|
|
53
|
+
src/test/big-timeline.test.ts:
|
|
54
|
+
[0m[32m✓[0m[0m[1m Should calculate timeline as expected[0m [0m[2m[1.77ms[0m[2m][0m
|
|
55
|
+
[0m
|
|
56
|
+
src/test/smooth-zoom.test.ts:
|
|
57
|
+
[0m[32m✓[0m[0m[1m Smoothen zoom[0m
|
|
58
|
+
[0m[32m✓[0m[0m[1m Unsmoothen zoom[0m [0m[2m[0.02ms[0m[2m][0m
|
|
59
|
+
[0m
|
|
60
|
+
src/test/validate-gui-output-filename.test.ts:
|
|
61
|
+
[0m[32m✓[0m[0m[1m Should catch dot after slash[0m [0m[2m[0.29ms[0m[2m][0m
|
|
62
|
+
[0m[32m✓[0m[0m[1m Should catch dot in front [0m [0m[2m[0.09ms[0m[2m][0m
|
|
63
|
+
[0m
|
|
64
|
+
src/test/timeline-sequence-layout.test.ts:
|
|
65
|
+
[0m[32m✓[0m[0m[1m Should test timeline sequence layout without max media duration[0m [0m[2m[0.32ms[0m[2m][0m
|
|
66
|
+
[0m[32m✓[0m[0m[1m Should test timeline sequence layout with max media duration[0m [0m[2m[0.07ms[0m[2m][0m
|
|
67
|
+
[0m
|
|
68
|
+
src/test/extract-zod-enums.test.ts:
|
|
69
|
+
[0m[32m✓[0m[0m[1m Extract Zod enums[0m [0m[2m[0.19ms[0m[2m][0m
|
|
70
|
+
[0m[32m✓[0m[0m[1m Extract Zod enums #2[0m [0m[2m[0.82ms[0m[2m][0m
|
|
71
|
+
[0m
|
|
72
|
+
src/test/color-math.test.ts:
|
|
73
|
+
[0m[32m✓[0m[0m[1m Color math[0m [0m[2m[0.46ms[0m[2m][0m
|
|
74
|
+
[0m
|
|
75
|
+
src/test/format-time.test.ts:
|
|
76
|
+
[0m[32m✓[0m[0m[1m Format time[0m [0m[2m[0.10ms[0m[2m][0m
|
|
77
|
+
[0m
|
|
78
|
+
src/test/timeline.test.ts:
|
|
79
|
+
[0m[32m✓[0m[0m[1m Should calculate timeline with no sequences[0m [0m[2m[0.03ms[0m[2m][0m
|
|
80
|
+
[0m[32m✓[0m[0m[1m Should calculate a basic timeline[0m [0m[2m[0.07ms[0m[2m][0m
|
|
81
|
+
[0m[32m✓[0m[0m[1m Should follow order of nesting[0m [0m[2m[0.10ms[0m[2m][0m
|
|
82
|
+
|
|
83
|
+
[0m[32m 51 pass[0m
|
|
84
|
+
[0m[2m 0 fail[0m
|
|
85
|
+
67 expect() calls
|
|
86
|
+
Ran 51 tests across 12 files. [0m[2m[[1m57.00ms[0m[2m][0m
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export declare const getKeysToExpand: (initialFolderName: string, parentFolderName: string | null, initial?: string[]) => string[];
|
|
3
3
|
export declare const compositionSelectorRef: React.RefObject<{
|
|
4
4
|
expandComposition: (compName: string) => void;
|
|
5
|
-
}>;
|
|
5
|
+
} | null>;
|
|
6
6
|
export declare const CompositionSelector: React.FC;
|
|
@@ -6,5 +6,5 @@ export declare const EditorRulers: React.FC<{
|
|
|
6
6
|
readonly canvasSize: Size;
|
|
7
7
|
readonly contentDimensions: Dimensions | 'none' | null;
|
|
8
8
|
readonly assetMetadata: AssetMetadata | null;
|
|
9
|
-
readonly containerRef: React.RefObject<HTMLDivElement>;
|
|
9
|
+
readonly containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
10
|
}>;
|
|
@@ -3,7 +3,7 @@ type OptionsSidebarPanel = 'input-props' | 'renders';
|
|
|
3
3
|
export declare const persistSelectedOptionsSidebarPanel: (panel: OptionsSidebarPanel) => void;
|
|
4
4
|
export declare const optionsSidebarTabs: React.RefObject<{
|
|
5
5
|
selectRendersPanel: () => void;
|
|
6
|
-
}>;
|
|
6
|
+
} | null>;
|
|
7
7
|
export declare const OptionsPanel: React.FC<{
|
|
8
8
|
readonly readOnlyStudio: boolean;
|
|
9
9
|
}>;
|
|
@@ -6,5 +6,6 @@ export declare const SchemaArrayItemSeparationLine: React.FC<{
|
|
|
6
6
|
readonly onChange: (updater: (oldV: unknown[]) => unknown[], forceApply: boolean, increment: boolean) => void;
|
|
7
7
|
readonly index: number;
|
|
8
8
|
readonly schema: z.ZodTypeAny;
|
|
9
|
+
readonly showAddButton: boolean;
|
|
9
10
|
readonly isLast: boolean;
|
|
10
11
|
}>;
|
|
@@ -22,8 +22,9 @@ const arraySeparationLine = {
|
|
|
22
22
|
marginTop: -exports.VERTICAL_GUIDE_HEIGHT / 2,
|
|
23
23
|
pointerEvents: 'none',
|
|
24
24
|
width: '100%',
|
|
25
|
+
flexBasis: '100%',
|
|
25
26
|
};
|
|
26
|
-
const SchemaArrayItemSeparationLine = ({ onChange, index, schema, isLast }) => {
|
|
27
|
+
const SchemaArrayItemSeparationLine = ({ onChange, index, schema, isLast, showAddButton }) => {
|
|
27
28
|
const [outerHovered, setOuterHovered] = (0, react_1.useState)(false);
|
|
28
29
|
const [innerHovered, setInnerHovered] = (0, react_1.useState)(false);
|
|
29
30
|
const zodTypes = (0, get_zod_if_possible_1.useZodTypesIfPossible)();
|
|
@@ -47,8 +48,10 @@ const SchemaArrayItemSeparationLine = ({ onChange, index, schema, isLast }) => {
|
|
|
47
48
|
justifyContent: 'center',
|
|
48
49
|
height: exports.VERTICAL_GUIDE_HEIGHT,
|
|
49
50
|
opacity: outerHovered || isLast ? 1 : 0,
|
|
50
|
-
position: '
|
|
51
|
-
|
|
51
|
+
position: 'absolute',
|
|
52
|
+
top: '50%',
|
|
53
|
+
left: '50%',
|
|
54
|
+
transform: 'translate(-50%, -50%)',
|
|
52
55
|
};
|
|
53
56
|
}, [isLast, outerHovered]);
|
|
54
57
|
const inner = (0, react_1.useMemo)(() => {
|
|
@@ -70,7 +73,17 @@ const SchemaArrayItemSeparationLine = ({ onChange, index, schema, isLast }) => {
|
|
|
70
73
|
const onInnerMouseLeave = (0, react_1.useCallback)(() => {
|
|
71
74
|
setInnerHovered(false);
|
|
72
75
|
}, []);
|
|
73
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
76
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
77
|
+
display: 'flex',
|
|
78
|
+
flexDirection: 'row',
|
|
79
|
+
height: exports.VERTICAL_GUIDE_HEIGHT,
|
|
80
|
+
}, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
|
|
81
|
+
flex: 1,
|
|
82
|
+
position: 'relative',
|
|
83
|
+
display: 'flex',
|
|
84
|
+
flexDirection: 'column',
|
|
85
|
+
alignItems: 'flex-end',
|
|
86
|
+
}, children: [showAddButton && ((0, jsx_runtime_1.jsx)("div", { style: dynamicAddButtonStyle, onMouseEnter: onOuterMouseEnter, onMouseLeave: onOuterMouseLeave, children: (0, jsx_runtime_1.jsx)("div", { onClick: onAdd, style: inner, onMouseEnter: onInnerMouseEnter, onMouseLeave: onInnerMouseLeave, children: (0, jsx_runtime_1.jsx)(plus_1.Plus, { color: innerHovered ? 'white' : colors_1.LIGHT_TEXT, style: { height: exports.VERTICAL_GUIDE_HEIGHT / 2 } }) }) })), (0, jsx_runtime_1.jsx)("div", { style: arraySeparationLine })] }), isLast ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
74
87
|
...layout_2.fieldSetText,
|
|
75
88
|
alignItems: 'center',
|
|
76
89
|
display: 'flex',
|
|
@@ -69,7 +69,7 @@ const ZodArrayEditor = ({ schema, jsonPath, setValue, defaultValue, value, onSav
|
|
|
69
69
|
var _a;
|
|
70
70
|
return (
|
|
71
71
|
// eslint-disable-next-line react/no-array-index-key
|
|
72
|
-
(0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(ZodArrayItemEditor_1.ZodArrayItemEditor, { onChange: onChange, value: child, def: def, index: i, jsonPath: jsonPath, defaultValue: (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue[i]) !== null && _a !== void 0 ? _a : (0, create_zod_values_1.createZodValues)(def.type, z, zodTypes), onSave: onSave, showSaveButton: showSaveButton, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }), (0, jsx_runtime_1.jsx)(SchemaSeparationLine_1.SchemaArrayItemSeparationLine, { schema: schema, index: i, onChange: onChange, isLast: i === localValue.value.length - 1 })] }, `${i}${localValue.keyStabilityRevision}`));
|
|
73
|
-
}), value.length === 0 ? ((0, jsx_runtime_1.jsx)(SchemaSeparationLine_1.SchemaArrayItemSeparationLine, { schema: schema, index: 0, onChange: onChange, isLast: true })) : null] }) })) : null, (0, jsx_runtime_1.jsx)(ZodFieldValidation_1.ZodFieldValidation, { path: jsonPath, localValue: localValue })] }));
|
|
72
|
+
(0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(ZodArrayItemEditor_1.ZodArrayItemEditor, { onChange: onChange, value: child, def: def, index: i, jsonPath: jsonPath, defaultValue: (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue[i]) !== null && _a !== void 0 ? _a : (0, create_zod_values_1.createZodValues)(def.type, z, zodTypes), onSave: onSave, showSaveButton: showSaveButton, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }), (0, jsx_runtime_1.jsx)(SchemaSeparationLine_1.SchemaArrayItemSeparationLine, { schema: schema, index: i, onChange: onChange, isLast: i === localValue.value.length - 1, showAddButton: true })] }, `${i}${localValue.keyStabilityRevision}`));
|
|
73
|
+
}), value.length === 0 ? ((0, jsx_runtime_1.jsx)(SchemaSeparationLine_1.SchemaArrayItemSeparationLine, { schema: schema, index: 0, onChange: onChange, isLast: true, showAddButton: true })) : null] }) })) : null, (0, jsx_runtime_1.jsx)(ZodFieldValidation_1.ZodFieldValidation, { path: jsonPath, localValue: localValue })] }));
|
|
74
74
|
};
|
|
75
75
|
exports.ZodArrayEditor = ZodArrayEditor;
|
|
@@ -19,6 +19,7 @@ const ZodOptionalEditor_1 = require("./ZodOptionalEditor");
|
|
|
19
19
|
const ZodStaticFileEditor_1 = require("./ZodStaticFileEditor");
|
|
20
20
|
const ZodStringEditor_1 = require("./ZodStringEditor");
|
|
21
21
|
const ZodTextareaEditor_1 = require("./ZodTextareaEditor");
|
|
22
|
+
const ZodTupleEditor_1 = require("./ZodTupleEditor");
|
|
22
23
|
const ZodUnionEditor_1 = require("./ZodUnionEditor");
|
|
23
24
|
const ZodSwitch = ({ schema, jsonPath, value, setValue, defaultValue, onSave, showSaveButton, onRemove, saving, saveDisabledByParent, mayPad, }) => {
|
|
24
25
|
const def = schema._def;
|
|
@@ -96,6 +97,9 @@ const ZodSwitch = ({ schema, jsonPath, value, setValue, defaultValue, onSave, sh
|
|
|
96
97
|
if (typeName === z.ZodFirstPartyTypeKind.ZodDiscriminatedUnion) {
|
|
97
98
|
return ((0, jsx_runtime_1.jsx)(ZodDiscriminatedUnionEditor_1.ZodDiscriminatedUnionEditor, { defaultValue: defaultValue, mayPad: mayPad, schema: schema, setValue: setValue, value: value, jsonPath: jsonPath, onRemove: onRemove, onSave: onSave, saving: saving, saveDisabledByParent: saveDisabledByParent, showSaveButton: showSaveButton }));
|
|
98
99
|
}
|
|
100
|
+
if (typeName === z.ZodFirstPartyTypeKind.ZodTuple) {
|
|
101
|
+
return ((0, jsx_runtime_1.jsx)(ZodTupleEditor_1.ZodTupleEditor, { setValue: setValue, value: value, jsonPath: jsonPath, schema: schema, defaultValue: defaultValue, onSave: onSave, showSaveButton: showSaveButton, onRemove: onRemove, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }));
|
|
102
|
+
}
|
|
99
103
|
return ((0, jsx_runtime_1.jsx)(ZodNonEditableValue_1.ZonNonEditableValue, { jsonPath: jsonPath, showSaveButton: showSaveButton, label: `${typeName} (not editable)`, saving: saving, mayPad: mayPad }));
|
|
100
104
|
};
|
|
101
105
|
exports.ZodSwitch = ZodSwitch;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { JSONPath } from './zod-types';
|
|
4
|
+
import type { UpdaterFunction } from './ZodSwitch';
|
|
5
|
+
export declare const ZodTupleEditor: React.FC<{
|
|
6
|
+
readonly schema: z.ZodTypeAny;
|
|
7
|
+
readonly jsonPath: JSONPath;
|
|
8
|
+
readonly value: unknown[];
|
|
9
|
+
readonly defaultValue: unknown[];
|
|
10
|
+
readonly setValue: UpdaterFunction<unknown[]>;
|
|
11
|
+
readonly onSave: UpdaterFunction<unknown[]>;
|
|
12
|
+
readonly showSaveButton: boolean;
|
|
13
|
+
readonly onRemove: null | (() => void);
|
|
14
|
+
readonly saving: boolean;
|
|
15
|
+
readonly saveDisabledByParent: boolean;
|
|
16
|
+
readonly mayPad: boolean;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ZodTupleEditor = void 0;
|
|
27
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
const react_1 = __importStar(require("react"));
|
|
29
|
+
const get_zod_if_possible_1 = require("../../get-zod-if-possible");
|
|
30
|
+
const create_zod_values_1 = require("./create-zod-values");
|
|
31
|
+
const deep_equal_1 = require("./deep-equal");
|
|
32
|
+
const Fieldset_1 = require("./Fieldset");
|
|
33
|
+
const local_state_1 = require("./local-state");
|
|
34
|
+
const SchemaLabel_1 = require("./SchemaLabel");
|
|
35
|
+
const SchemaSeparationLine_1 = require("./SchemaSeparationLine");
|
|
36
|
+
const SchemaVerticalGuide_1 = require("./SchemaVerticalGuide");
|
|
37
|
+
const ZodFieldValidation_1 = require("./ZodFieldValidation");
|
|
38
|
+
const ZodTupleItemEditor_1 = require("./ZodTupleItemEditor");
|
|
39
|
+
const ZodTupleEditor = ({ schema, jsonPath, setValue, defaultValue, value, onSave, showSaveButton, onRemove, saving, saveDisabledByParent, mayPad, }) => {
|
|
40
|
+
const { localValue, onChange, RevisionContextProvider, reset } = (0, local_state_1.useLocalState)({
|
|
41
|
+
unsavedValue: value,
|
|
42
|
+
schema,
|
|
43
|
+
setValue,
|
|
44
|
+
savedValue: defaultValue,
|
|
45
|
+
});
|
|
46
|
+
const [expanded, setExpanded] = (0, react_1.useState)(true);
|
|
47
|
+
const def = schema._def;
|
|
48
|
+
const suffix = (0, react_1.useMemo)(() => {
|
|
49
|
+
return expanded ? ' [' : ' [...] ';
|
|
50
|
+
}, [expanded]);
|
|
51
|
+
const z = (0, get_zod_if_possible_1.useZodIfPossible)();
|
|
52
|
+
if (!z) {
|
|
53
|
+
throw new Error('expected zod');
|
|
54
|
+
}
|
|
55
|
+
const zodTypes = (0, get_zod_if_possible_1.useZodTypesIfPossible)();
|
|
56
|
+
const typeName = def.typeName;
|
|
57
|
+
if (typeName !== z.ZodFirstPartyTypeKind.ZodTuple) {
|
|
58
|
+
throw new Error('expected object');
|
|
59
|
+
}
|
|
60
|
+
const isDefaultValue = (0, react_1.useMemo)(() => {
|
|
61
|
+
return (0, deep_equal_1.deepEqual)(localValue.value, defaultValue);
|
|
62
|
+
}, [defaultValue, localValue]);
|
|
63
|
+
return ((0, jsx_runtime_1.jsxs)(Fieldset_1.Fieldset, { shouldPad: mayPad, success: localValue.zodValidation.success, children: [(0, jsx_runtime_1.jsx)("div", { style: {
|
|
64
|
+
display: 'flex',
|
|
65
|
+
flexDirection: 'row',
|
|
66
|
+
}, children: (0, jsx_runtime_1.jsx)(SchemaLabel_1.SchemaLabel, { onReset: reset, isDefaultValue: isDefaultValue, jsonPath: jsonPath, onRemove: onRemove, suffix: suffix, onSave: () => {
|
|
67
|
+
onSave(() => localValue.value, false, false);
|
|
68
|
+
}, saveDisabledByParent: saveDisabledByParent, saving: saving, showSaveButton: showSaveButton, valid: localValue.zodValidation.success, handleClick: () => setExpanded(!expanded) }) }), expanded ? ((0, jsx_runtime_1.jsx)(RevisionContextProvider, { children: (0, jsx_runtime_1.jsxs)(SchemaVerticalGuide_1.SchemaVerticalGuide, { isRoot: false, children: [localValue.value.map((child, i) => {
|
|
69
|
+
var _a;
|
|
70
|
+
return (
|
|
71
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
72
|
+
(0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(ZodTupleItemEditor_1.ZodTupleItemEditor, { onChange: onChange, value: child, def: def, index: i, jsonPath: jsonPath, defaultValue: (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue[i]) !== null && _a !== void 0 ? _a : (0, create_zod_values_1.createZodValues)(def.items[i], z, zodTypes), onSave: onSave, showSaveButton: showSaveButton, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }), (0, jsx_runtime_1.jsx)(SchemaSeparationLine_1.SchemaArrayItemSeparationLine, { schema: schema, index: i, onChange: onChange, isLast: i === localValue.value.length - 1, showAddButton: false })] }, `${i}${localValue.keyStabilityRevision}`));
|
|
73
|
+
}), value.length === 0 ? ((0, jsx_runtime_1.jsx)(SchemaSeparationLine_1.SchemaArrayItemSeparationLine, { schema: schema, index: 0, onChange: onChange, isLast: true, showAddButton: false })) : null] }) })) : null, (0, jsx_runtime_1.jsx)(ZodFieldValidation_1.ZodFieldValidation, { path: jsonPath, localValue: localValue })] }));
|
|
74
|
+
};
|
|
75
|
+
exports.ZodTupleEditor = ZodTupleEditor;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UpdaterFunction } from './ZodSwitch';
|
|
2
|
+
import type { JSONPath } from './zod-types';
|
|
3
|
+
export declare const ZodTupleItemEditor: React.FC<{
|
|
4
|
+
jsonPath: JSONPath;
|
|
5
|
+
onChange: UpdaterFunction<unknown[]>;
|
|
6
|
+
def: any;
|
|
7
|
+
index: number;
|
|
8
|
+
value: unknown;
|
|
9
|
+
defaultValue: unknown;
|
|
10
|
+
onSave: UpdaterFunction<unknown[]>;
|
|
11
|
+
showSaveButton: boolean;
|
|
12
|
+
saving: boolean;
|
|
13
|
+
saveDisabledByParent: boolean;
|
|
14
|
+
mayPad: boolean;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ZodTupleItemEditor = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const get_zod_if_possible_1 = require("../../get-zod-if-possible");
|
|
7
|
+
const ZodSwitch_1 = require("./ZodSwitch");
|
|
8
|
+
const ZodTupleItemEditor = ({ def, onChange, jsonPath, index, value, defaultValue, onSave: onSaveObject, showSaveButton, saving, saveDisabledByParent, mayPad, }) => {
|
|
9
|
+
const z = (0, get_zod_if_possible_1.useZodIfPossible)();
|
|
10
|
+
if (!z) {
|
|
11
|
+
throw new Error('expected zod');
|
|
12
|
+
}
|
|
13
|
+
const setValue = (0, react_1.useCallback)((val) => {
|
|
14
|
+
onChange((oldV) => [
|
|
15
|
+
...oldV.slice(0, index),
|
|
16
|
+
typeof val === 'function' ? val(oldV[index]) : val,
|
|
17
|
+
...oldV.slice(index + 1),
|
|
18
|
+
], false, false);
|
|
19
|
+
}, [index, onChange]);
|
|
20
|
+
const newJsonPath = (0, react_1.useMemo)(() => [...jsonPath, index], [index, jsonPath]);
|
|
21
|
+
const onSave = (0, react_1.useCallback)((updater) => {
|
|
22
|
+
onSaveObject((oldV) => [
|
|
23
|
+
...oldV.slice(0, index),
|
|
24
|
+
updater(oldV[index]),
|
|
25
|
+
...oldV.slice(index + 1),
|
|
26
|
+
], false, false);
|
|
27
|
+
}, [index, onSaveObject]);
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ZodSwitch_1.ZodSwitch, { jsonPath: newJsonPath, schema: def.items[index], value: value, setValue: setValue, defaultValue: defaultValue, onSave: onSave, showSaveButton: showSaveButton, onRemove: null, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: mayPad }) }));
|
|
29
|
+
};
|
|
30
|
+
exports.ZodTupleItemEditor = ZodTupleItemEditor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const DEFAULT_PROPS_PATH_CLASSNAME = "__remotion-default-props-editor-label";
|
|
3
3
|
export declare const DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME = "__remotion-default-props-editor-label-active";
|
|
4
|
-
export declare const defaultPropsEditorScrollableAreaRef: React.RefObject<HTMLDivElement>;
|
|
4
|
+
export declare const defaultPropsEditorScrollableAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -11,7 +11,7 @@ type RenderQueueContextType = {
|
|
|
11
11
|
export declare const RenderQueueContext: React.Context<RenderQueueContextType>;
|
|
12
12
|
export declare const renderJobsRef: React.RefObject<{
|
|
13
13
|
updateRenderJobs: (jobs: RenderJob[]) => void;
|
|
14
|
-
}>;
|
|
14
|
+
} | null>;
|
|
15
15
|
export declare const RenderQueueContextProvider: React.FC<{
|
|
16
16
|
readonly children: React.ReactNode;
|
|
17
17
|
}>;
|
|
@@ -8,7 +8,7 @@ export type TSplitterContext = {
|
|
|
8
8
|
flexValue: number;
|
|
9
9
|
setFlexValue: React.Dispatch<React.SetStateAction<number>>;
|
|
10
10
|
orientation: SplitterOrientation;
|
|
11
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
11
|
+
ref: React.RefObject<HTMLDivElement | null>;
|
|
12
12
|
maxFlex: number;
|
|
13
13
|
minFlex: number;
|
|
14
14
|
defaultFlex: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const inMarkerAreaRef: React.RefObject<HTMLDivElement>;
|
|
3
|
-
export declare const outMarkerAreaRef: React.RefObject<HTMLDivElement>;
|
|
2
|
+
export declare const inMarkerAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
3
|
+
export declare const outMarkerAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
4
4
|
export declare const TimelineInOutPointer: React.FC;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const inPointerHandle: React.RefObject<HTMLDivElement>;
|
|
3
|
-
export declare const outPointerHandle: React.RefObject<HTMLDivElement>;
|
|
2
|
+
export declare const inPointerHandle: React.RefObject<HTMLDivElement | null>;
|
|
3
|
+
export declare const outPointerHandle: React.RefObject<HTMLDivElement | null>;
|
|
4
4
|
type Props = {
|
|
5
5
|
readonly dragging: boolean;
|
|
6
6
|
readonly type: 'in' | 'out';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const sliderAreaRef: React.RefObject<HTMLDivElement>;
|
|
3
|
-
export declare const scrollableRef: React.RefObject<HTMLDivElement>;
|
|
4
|
-
export declare const timelineVerticalScroll: React.RefObject<HTMLDivElement>;
|
|
2
|
+
export declare const sliderAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
3
|
+
export declare const scrollableRef: React.RefObject<HTMLDivElement | null>;
|
|
4
|
+
export declare const timelineVerticalScroll: React.RefObject<HTMLDivElement | null>;
|
|
@@ -4,6 +4,6 @@ export declare const inOutHandles: React.RefObject<{
|
|
|
4
4
|
inMarkClick: (e: KeyboardEvent | null) => void;
|
|
5
5
|
outMarkClick: (e: KeyboardEvent | null) => void;
|
|
6
6
|
clearMarks: () => void;
|
|
7
|
-
}>;
|
|
7
|
+
} | null>;
|
|
8
8
|
export declare const defaultInOutValue: InOutValue;
|
|
9
9
|
export declare const TimelineInOutPointToggle: React.FC;
|
|
@@ -3,6 +3,6 @@ export declare const useResponsiveSidebarStatus: () => "collapsed" | "expanded";
|
|
|
3
3
|
export declare const TopPanel: React.FC<{
|
|
4
4
|
readonly readOnlyStudio: boolean;
|
|
5
5
|
readonly onMounted: () => void;
|
|
6
|
-
readonly drawRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
readonly drawRef: React.RefObject<HTMLDivElement | null>;
|
|
7
7
|
readonly bufferStateDelayInMilliseconds: number;
|
|
8
8
|
}>;
|
|
@@ -3,7 +3,7 @@ type SetErrors = {
|
|
|
3
3
|
setErrors: (errs: State) => void;
|
|
4
4
|
addError: (err: Error) => void;
|
|
5
5
|
};
|
|
6
|
-
export declare const setErrorsRef: React.RefObject<SetErrors>;
|
|
6
|
+
export declare const setErrorsRef: React.RefObject<SetErrors | null>;
|
|
7
7
|
type State = {
|
|
8
8
|
type: 'clear';
|
|
9
9
|
} | {
|
|
@@ -5,6 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.mountRemotionOverlay = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
// In React 18, you should use createRoot() from "react-dom/client".
|
|
9
|
+
// In React 18, you should use render from "react-dom".
|
|
10
|
+
// We support both, but Webpack chooses both of them and normalizes them to "react-dom/client",
|
|
11
|
+
// hence why we import the right thing all the time but need to differentiate here
|
|
8
12
|
const client_1 = __importDefault(require("react-dom/client"));
|
|
9
13
|
const Overlay_1 = require("./Overlay");
|
|
10
14
|
const mountRemotionOverlay = () => {
|
|
@@ -12,6 +16,7 @@ const mountRemotionOverlay = () => {
|
|
|
12
16
|
client_1.default.createRoot(document.getElementById('remotion-error-overlay')).render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}));
|
|
13
17
|
}
|
|
14
18
|
else {
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
20
|
client_1.default.render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}), document.getElementById('remotion-error-overlay'));
|
|
16
21
|
}
|
|
17
22
|
};
|