@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.
Files changed (360) hide show
  1. package/dist/FastRefreshProvider.js +1 -1
  2. package/dist/ResolveCompositionConfigInStudio.js +1 -1
  3. package/dist/Studio.js +6 -4
  4. package/dist/api/create-composition.js +2 -2
  5. package/dist/api/focus-default-props-path.d.ts +1 -1
  6. package/dist/api/get-zod-schema-from-primitive.d.ts +3 -2
  7. package/dist/api/get-zod-schema-from-primitive.js +3 -4
  8. package/dist/api/helpers/calc-new-props.d.ts +2 -2
  9. package/dist/api/play.d.ts +1 -1
  10. package/dist/api/toggle.d.ts +1 -1
  11. package/dist/components/AskAiModal.js +3 -1
  12. package/dist/components/AssetSelector.js +21 -58
  13. package/dist/components/AssetSelectorItem.js +15 -9
  14. package/dist/components/AudioWaveform.js +5 -4
  15. package/dist/components/AudioWaveformBar.js +1 -1
  16. package/dist/components/Button.js +1 -1
  17. package/dist/components/Canvas.js +2 -1
  18. package/dist/components/CanvasIfSizeIsAvailable.js +1 -1
  19. package/dist/components/CanvasOrLoading.js +12 -6
  20. package/dist/components/CheckboardToggle.js +1 -1
  21. package/dist/components/Checkbox.js +3 -1
  22. package/dist/components/CheckerboardProvider.js +1 -1
  23. package/dist/components/CompSelectorRef.js +1 -1
  24. package/dist/components/CompositionContextButton.js +2 -2
  25. package/dist/components/CompositionSelector.js +4 -3
  26. package/dist/components/CompositionSelectorItem.js +6 -3
  27. package/dist/components/ContextMenu.js +3 -2
  28. package/dist/components/ControlButton.d.ts +1 -1
  29. package/dist/components/ControlButton.js +1 -1
  30. package/dist/components/CopyButton.js +3 -2
  31. package/dist/components/CurrentAsset.d.ts +3 -0
  32. package/dist/components/CurrentAsset.js +113 -0
  33. package/dist/components/CurrentComposition.js +3 -2
  34. package/dist/components/Editor.js +6 -1
  35. package/dist/components/EditorContent.js +6 -1
  36. package/dist/components/EditorContexts.js +3 -1
  37. package/dist/components/EditorGuides/Guide.js +1 -1
  38. package/dist/components/EditorGuides/index.js +2 -2
  39. package/dist/components/EditorRuler/Ruler.js +1 -1
  40. package/dist/components/EditorRuler/index.js +3 -1
  41. package/dist/components/ExplorerPanel.js +4 -1
  42. package/dist/components/FilePreview.js +8 -6
  43. package/dist/components/FpsCounter.js +1 -1
  44. package/dist/components/FullscreenToggle.js +1 -1
  45. package/dist/components/GlobalPropsEditorUpdateButton.js +3 -1
  46. package/dist/components/InitialCompositionLoader.d.ts +1 -2
  47. package/dist/components/InitialCompositionLoader.js +3 -3
  48. package/dist/components/InlineAction.js +1 -1
  49. package/dist/components/InlineDropdown.js +3 -2
  50. package/dist/components/InstallPackage.js +19 -9
  51. package/dist/components/InstallablePackage.js +5 -3
  52. package/dist/components/JSONViewer.js +1 -1
  53. package/dist/components/KeyboardShortcutsExplainer.js +91 -1
  54. package/dist/components/KnownBugs.js +4 -2
  55. package/dist/components/LoopToggle.js +1 -1
  56. package/dist/components/MediaVolumeProvider.js +1 -1
  57. package/dist/components/Menu/MenuDivider.js +1 -1
  58. package/dist/components/Menu/MenuItem.js +3 -2
  59. package/dist/components/Menu/MenuSubItem.js +4 -2
  60. package/dist/components/Menu/SubMenu.js +1 -1
  61. package/dist/components/MenuBuildIndicator.js +1 -1
  62. package/dist/components/MenuToolbar.js +5 -3
  63. package/dist/components/MobilePanel.d.ts +1 -1
  64. package/dist/components/MobilePanel.js +2 -1
  65. package/dist/components/ModalButton.js +1 -1
  66. package/dist/components/ModalContainer.js +1 -1
  67. package/dist/components/ModalFooter.js +1 -1
  68. package/dist/components/ModalHeader.js +3 -1
  69. package/dist/components/Modals.js +2 -2
  70. package/dist/components/ModalsProvider.js +1 -1
  71. package/dist/components/MuteToggle.js +1 -1
  72. package/dist/components/NewComposition/CancelButton.js +1 -1
  73. package/dist/components/NewComposition/CodemodFooter.js +5 -2
  74. package/dist/components/NewComposition/ComboBox.js +6 -2
  75. package/dist/components/NewComposition/DeleteComposition.js +10 -2
  76. package/dist/components/NewComposition/DiffPreview.js +5 -3
  77. package/dist/components/NewComposition/DismissableModal.js +1 -1
  78. package/dist/components/NewComposition/DuplicateComposition.js +28 -3
  79. package/dist/components/NewComposition/InputDragger.d.ts +1 -1
  80. package/dist/components/NewComposition/InputDragger.js +2 -2
  81. package/dist/components/NewComposition/MenuContent.js +3 -3
  82. package/dist/components/NewComposition/NewCompDuration.js +7 -2
  83. package/dist/components/NewComposition/RemInput.d.ts +2 -2
  84. package/dist/components/NewComposition/RemInput.js +2 -2
  85. package/dist/components/NewComposition/RemInputTypeColor.js +1 -1
  86. package/dist/components/NewComposition/RemTextarea.js +1 -1
  87. package/dist/components/NewComposition/RenameComposition.js +11 -2
  88. package/dist/components/NewComposition/ValidationMessage.js +4 -2
  89. package/dist/components/NoRegisterRoot.js +4 -1
  90. package/dist/components/Notifications/ColorDot.js +1 -1
  91. package/dist/components/Notifications/Notification.js +1 -1
  92. package/dist/components/Notifications/NotificationCenter.js +2 -2
  93. package/dist/components/Notifications/ServerDisconnected.js +2 -1
  94. package/dist/components/OpenEditorButton.js +2 -2
  95. package/dist/components/OptionsPanel.js +7 -4
  96. package/dist/components/OverrideInputProps.js +7 -2
  97. package/dist/components/PlayPause.js +3 -1
  98. package/dist/components/PlaybackRateSelector.js +2 -2
  99. package/dist/components/Preview.js +8 -8
  100. package/dist/components/PreviewToolbar.js +11 -1
  101. package/dist/components/QuickSwitcher/AlgoliaCredit.js +1 -1
  102. package/dist/components/QuickSwitcher/NoResults.js +1 -1
  103. package/dist/components/QuickSwitcher/QuickSwitcher.js +1 -1
  104. package/dist/components/QuickSwitcher/QuickSwitcherContent.js +12 -3
  105. package/dist/components/QuickSwitcher/QuickSwitcherResult.js +6 -3
  106. package/dist/components/RefreshCompositionOverlay.js +1 -1
  107. package/dist/components/RenderButton.js +26 -9
  108. package/dist/components/RenderModal/CliCopyButton.js +3 -3
  109. package/dist/components/RenderModal/ClientRenderProgress.js +16 -14
  110. package/dist/components/RenderModal/CrfSetting.d.ts +1 -2
  111. package/dist/components/RenderModal/CrfSetting.js +1 -1
  112. package/dist/components/RenderModal/DataEditor.js +15 -8
  113. package/dist/components/RenderModal/EnforceAudioTrackSetting.js +5 -1
  114. package/dist/components/RenderModal/EnvInput.js +4 -1
  115. package/dist/components/RenderModal/FrameRangeSetting.js +5 -1
  116. package/dist/components/RenderModal/GuiRenderStatus.js +15 -10
  117. package/dist/components/RenderModal/InfoBubble.js +3 -2
  118. package/dist/components/RenderModal/InfoTooltip.js +3 -2
  119. package/dist/components/RenderModal/InlineEyeIcon.js +2 -2
  120. package/dist/components/RenderModal/InlineRemoveButton.js +2 -2
  121. package/dist/components/RenderModal/JpegQualitySetting.js +1 -1
  122. package/dist/components/RenderModal/MultiRangeSlider.js +3 -1
  123. package/dist/components/RenderModal/MutedSetting.js +5 -1
  124. package/dist/components/RenderModal/NumberOfLoopsSetting.js +3 -1
  125. package/dist/components/RenderModal/NumberSetting.js +6 -2
  126. package/dist/components/RenderModal/OptionExplainer.js +14 -1
  127. package/dist/components/RenderModal/OptionExplainerBubble.js +1 -1
  128. package/dist/components/RenderModal/RenderModalAdvanced.js +66 -7
  129. package/dist/components/RenderModal/RenderModalAudio.js +21 -4
  130. package/dist/components/RenderModal/RenderModalBasic.js +18 -3
  131. package/dist/components/RenderModal/RenderModalEnvironmentVariables.js +5 -3
  132. package/dist/components/RenderModal/RenderModalGif.js +6 -1
  133. package/dist/components/RenderModal/RenderModalHr.js +1 -1
  134. package/dist/components/RenderModal/RenderModalJSONPropsEditor.js +5 -2
  135. package/dist/components/RenderModal/RenderModalOutputName.js +8 -1
  136. package/dist/components/RenderModal/RenderModalPicture.js +30 -3
  137. package/dist/components/RenderModal/RenderStatusModal.js +8 -2
  138. package/dist/components/RenderModal/ResolveCompositionBeforeModal.js +6 -3
  139. package/dist/components/RenderModal/ScaleSetting.js +3 -2
  140. package/dist/components/RenderModal/SchemaEditor/Fieldset.js +2 -2
  141. package/dist/components/RenderModal/SchemaEditor/SchemaEditor.js +4 -4
  142. package/dist/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +31 -6
  143. package/dist/components/RenderModal/SchemaEditor/SchemaLabel.js +3 -3
  144. package/dist/components/RenderModal/SchemaEditor/SchemaResetButton.js +2 -2
  145. package/dist/components/RenderModal/SchemaEditor/SchemaSaveButton.js +2 -2
  146. package/dist/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +9 -5
  147. package/dist/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +3 -1
  148. package/dist/components/RenderModal/SchemaEditor/ZodArrayEditor.js +9 -5
  149. package/dist/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +1 -1
  150. package/dist/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +3 -1
  151. package/dist/components/RenderModal/SchemaEditor/ZodColorEditor.js +8 -2
  152. package/dist/components/RenderModal/SchemaEditor/ZodDateEditor.js +5 -1
  153. package/dist/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +1 -1
  154. package/dist/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.js +6 -4
  155. package/dist/components/RenderModal/SchemaEditor/ZodEffectEditor.js +3 -1
  156. package/dist/components/RenderModal/SchemaEditor/ZodEnumEditor.js +4 -2
  157. package/dist/components/RenderModal/SchemaEditor/ZodErrorMessages.js +6 -4
  158. package/dist/components/RenderModal/SchemaEditor/ZodFieldValidation.js +8 -2
  159. package/dist/components/RenderModal/SchemaEditor/ZodMatrixEditor.js +8 -6
  160. package/dist/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +3 -1
  161. package/dist/components/RenderModal/SchemaEditor/ZodNullableEditor.js +1 -1
  162. package/dist/components/RenderModal/SchemaEditor/ZodNumberEditor.js +5 -1
  163. package/dist/components/RenderModal/SchemaEditor/ZodObjectEditor.js +6 -5
  164. package/dist/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +1 -1
  165. package/dist/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +4 -1
  166. package/dist/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +8 -5
  167. package/dist/components/RenderModal/SchemaEditor/ZodStringEditor.js +5 -1
  168. package/dist/components/RenderModal/SchemaEditor/ZodSwitch.js +24 -24
  169. package/dist/components/RenderModal/SchemaEditor/ZodTextareaEditor.js +5 -1
  170. package/dist/components/RenderModal/SchemaEditor/ZodTupleEditor.js +9 -5
  171. package/dist/components/RenderModal/SchemaEditor/ZodTupleItemEditor.js +1 -1
  172. package/dist/components/RenderModal/SchemaEditor/ZodUnionEditor.js +5 -5
  173. package/dist/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -2
  174. package/dist/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +4 -4
  175. package/dist/components/RenderModal/SchemaEditor/local-state.js +1 -1
  176. package/dist/components/RenderModal/SeparateAudioOption.js +7 -2
  177. package/dist/components/RenderModal/ServerRenderModal.js +27 -5
  178. package/dist/components/RenderModal/WarningIndicatorButton.js +4 -2
  179. package/dist/components/RenderModal/WebRenderModal.js +29 -6
  180. package/dist/components/RenderModal/WebRenderModalAdvanced.js +11 -4
  181. package/dist/components/RenderModal/WebRenderModalAudio.js +12 -2
  182. package/dist/components/RenderModal/WebRenderModalBasic.js +23 -5
  183. package/dist/components/RenderModal/WebRenderModalLicense.js +24 -2
  184. package/dist/components/RenderModal/WebRenderModalLicenseKeyDetails.js +12 -1
  185. package/dist/components/RenderModal/WebRenderModalPicture.js +8 -1
  186. package/dist/components/RenderModal/WebRendererExperimentalBadge.js +3 -1
  187. package/dist/components/RenderModal/get-default-codecs.d.ts +7 -8
  188. package/dist/components/RenderModal/human-readable-audio-codecs.d.ts +1 -2
  189. package/dist/components/RenderModal/human-readable-codec.d.ts +1 -2
  190. package/dist/components/RenderModal/human-readable-loglevel.d.ts +1 -2
  191. package/dist/components/RenderModal/out-name-checker.d.ts +4 -5
  192. package/dist/components/RenderModal/quality-options.js +1 -1
  193. package/dist/components/RenderPreview.js +4 -4
  194. package/dist/components/RenderQueue/CircularProgress.js +1 -1
  195. package/dist/components/RenderQueue/ClientRenderQueueProcessor.js +0 -1
  196. package/dist/components/RenderQueue/RenderQueueCancelledMessage.js +1 -1
  197. package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +2 -2
  198. package/dist/components/RenderQueue/RenderQueueDownloadItem.js +2 -2
  199. package/dist/components/RenderQueue/RenderQueueError.js +1 -1
  200. package/dist/components/RenderQueue/RenderQueueItem.js +4 -1
  201. package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +2 -2
  202. package/dist/components/RenderQueue/RenderQueueItemStatus.js +8 -8
  203. package/dist/components/RenderQueue/RenderQueueOpenInFolder.js +2 -2
  204. package/dist/components/RenderQueue/RenderQueueOutputName.js +1 -1
  205. package/dist/components/RenderQueue/RenderQueueProgressMessage.js +4 -2
  206. package/dist/components/RenderQueue/RenderQueueRemoveItem.js +2 -2
  207. package/dist/components/RenderQueue/RenderQueueRepeat.js +2 -2
  208. package/dist/components/RenderQueue/RenderQueueSavingMessage.js +1 -1
  209. package/dist/components/RenderQueue/SuccessIcon.js +1 -1
  210. package/dist/components/RenderQueue/actions.d.ts +21 -24
  211. package/dist/components/RenderQueue/client-side-render-types.d.ts +0 -1
  212. package/dist/components/RenderQueue/context.js +2 -2
  213. package/dist/components/RenderQueue/index.js +10 -5
  214. package/dist/components/RendersTab.js +3 -1
  215. package/dist/components/ResetZoomButton.js +1 -1
  216. package/dist/components/RunningCalculateMetadata.js +5 -1
  217. package/dist/components/SegmentedControl.js +3 -3
  218. package/dist/components/SetTimelineInOutProvider.js +1 -1
  219. package/dist/components/ShowGuidesProvider.js +1 -1
  220. package/dist/components/ShowRulersProvider.js +1 -1
  221. package/dist/components/SidebarCollapserControls.js +5 -3
  222. package/dist/components/SidebarRenderButton.js +2 -2
  223. package/dist/components/SizeSelector.js +2 -2
  224. package/dist/components/Spinner.js +6 -4
  225. package/dist/components/Splitter/SplitterContainer.js +1 -1
  226. package/dist/components/Splitter/SplitterElement.js +3 -1
  227. package/dist/components/Splitter/SplitterHandle.js +1 -1
  228. package/dist/components/StaticFilePreview.js +5 -5
  229. package/dist/components/Tabs/index.js +2 -2
  230. package/dist/components/Tabs/vertical.js +1 -1
  231. package/dist/components/TextViewer.js +1 -1
  232. package/dist/components/TimeValue.js +3 -1
  233. package/dist/components/Timeline/LoopedIndicator.js +4 -2
  234. package/dist/components/Timeline/LoopedTimelineIndicators.js +5 -4
  235. package/dist/components/Timeline/MaxTimelineTracks.js +1 -1
  236. package/dist/components/Timeline/Timeline.js +5 -1
  237. package/dist/components/Timeline/TimelineCollapseToggle.js +2 -2
  238. package/dist/components/Timeline/TimelineDragHandler.js +5 -3
  239. package/dist/components/Timeline/TimelineInOutPointer.js +2 -2
  240. package/dist/components/Timeline/TimelineInOutPointerHandle.js +2 -2
  241. package/dist/components/Timeline/TimelineLayerEye.js +3 -3
  242. package/dist/components/Timeline/TimelineList.js +3 -2
  243. package/dist/components/Timeline/TimelineListItem.js +3 -1
  244. package/dist/components/Timeline/TimelineScrollable.js +1 -1
  245. package/dist/components/Timeline/TimelineSequence.js +6 -6
  246. package/dist/components/Timeline/TimelineSequenceFrame.js +1 -1
  247. package/dist/components/Timeline/TimelineSlider.d.ts +1 -1
  248. package/dist/components/Timeline/TimelineSlider.js +6 -3
  249. package/dist/components/Timeline/TimelineSliderHandle.js +1 -1
  250. package/dist/components/Timeline/TimelineStack/index.js +5 -2
  251. package/dist/components/Timeline/TimelineTimeIndicators.js +5 -5
  252. package/dist/components/Timeline/TimelineTracks.js +6 -4
  253. package/dist/components/Timeline/TimelineVideoInfo.js +1 -1
  254. package/dist/components/Timeline/TimelineWidthProvider.js +1 -1
  255. package/dist/components/Timeline/TimelineZoomControls.js +3 -1
  256. package/dist/components/Timeline/timeline-scroll-logic.d.ts +1 -1
  257. package/dist/components/Timeline/timeline-scroll-logic.js +12 -8
  258. package/dist/components/TimelineInOutToggle.js +11 -7
  259. package/dist/components/TopPanel.js +5 -1
  260. package/dist/components/UpdateCheck.js +2 -2
  261. package/dist/components/UpdateModal/OpenIssueButton.js +2 -2
  262. package/dist/components/UpdateModal/UpdateModal.js +8 -1
  263. package/dist/components/VisualControls/ClickableFileName.js +1 -1
  264. package/dist/components/VisualControls/VisualControlHandle.js +3 -1
  265. package/dist/components/VisualControls/VisualControlHandleHeader.js +1 -1
  266. package/dist/components/VisualControls/VisualControlsContent.js +3 -2
  267. package/dist/components/ZoomGesturesProvider.js +1 -1
  268. package/dist/components/call-api.d.ts +1 -1
  269. package/dist/components/get-zod-if-possible.d.ts +3 -3
  270. package/dist/components/get-zod-if-possible.js +9 -9
  271. package/dist/components/layout.js +4 -4
  272. package/dist/components/use-static-files.d.ts +6 -0
  273. package/dist/components/use-static-files.js +63 -0
  274. package/dist/error-overlay/react-overlay/utils/parser.d.ts +1 -1
  275. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +1 -1
  276. package/dist/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +2 -1
  277. package/dist/error-overlay/remotion-overlay/CodeFrame.js +6 -4
  278. package/dist/error-overlay/remotion-overlay/CompositionIdListItem.js +1 -1
  279. package/dist/error-overlay/remotion-overlay/CompositionIdsDropdown.js +8 -3
  280. package/dist/error-overlay/remotion-overlay/DismissButton.js +1 -1
  281. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +19 -4
  282. package/dist/error-overlay/remotion-overlay/ErrorLoader.js +8 -4
  283. package/dist/error-overlay/remotion-overlay/ErrorMessage.js +2 -1
  284. package/dist/error-overlay/remotion-overlay/ErrorTitle.js +7 -1
  285. package/dist/error-overlay/remotion-overlay/HelpLink.js +1 -1
  286. package/dist/error-overlay/remotion-overlay/OpenInEditor.js +1 -1
  287. package/dist/error-overlay/remotion-overlay/Overlay.js +2 -2
  288. package/dist/error-overlay/remotion-overlay/Retry.js +1 -1
  289. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -1
  290. package/dist/error-overlay/remotion-overlay/ShortcutHint.js +2 -1
  291. package/dist/error-overlay/remotion-overlay/StackFrame.js +6 -2
  292. package/dist/error-overlay/remotion-overlay/Symbolicating.js +3 -1
  293. package/dist/error-overlay/remotion-overlay/carets.d.ts +1 -1
  294. package/dist/error-overlay/remotion-overlay/carets.js +2 -2
  295. package/dist/error-overlay/remotion-overlay/index.js +2 -2
  296. package/dist/esm/{chunk-112w480k.js → chunk-3g77e2p9.js} +4021 -19452
  297. package/dist/esm/internals.mjs +4021 -19452
  298. package/dist/esm/previewEntry.mjs +4052 -19483
  299. package/dist/esm/renderEntry.mjs +1 -1
  300. package/dist/helpers/client-id.js +1 -1
  301. package/dist/helpers/color-math.d.ts +1 -2
  302. package/dist/helpers/create-folder-tree.d.ts +2 -2
  303. package/dist/helpers/document-title.js +2 -2
  304. package/dist/helpers/editor-ruler.d.ts +3 -3
  305. package/dist/helpers/extract-frames.d.ts +1 -1
  306. package/dist/helpers/pick-color.js +5 -1
  307. package/dist/helpers/presets-labels.d.ts +1 -2
  308. package/dist/helpers/prores-labels.d.ts +1 -2
  309. package/dist/helpers/render-modal-sections.d.ts +1 -2
  310. package/dist/helpers/timeline-layout.d.ts +1 -1
  311. package/dist/helpers/use-asset-drag-events.d.ts +1 -1
  312. package/dist/helpers/use-menu-structure.d.ts +1 -1
  313. package/dist/helpers/use-menu-structure.js +11 -11
  314. package/dist/helpers/use-studio-canvas-dimensions.d.ts +1 -1
  315. package/dist/helpers/validate-new-comp-data.d.ts +2 -3
  316. package/dist/hot-middleware-client/client.d.ts +1 -1
  317. package/dist/hot-middleware-client/process-update.d.ts +8 -2
  318. package/dist/hot-middleware-client/process-update.js +2 -1
  319. package/dist/icons/Checkmark.js +1 -1
  320. package/dist/icons/audio.js +1 -1
  321. package/dist/icons/caret.js +3 -3
  322. package/dist/icons/certificate.d.ts +1 -1
  323. package/dist/icons/certificate.js +1 -1
  324. package/dist/icons/check-circle-filled.js +1 -1
  325. package/dist/icons/clipboard.js +1 -1
  326. package/dist/icons/data.js +1 -1
  327. package/dist/icons/ellipsis.js +1 -1
  328. package/dist/icons/file.js +1 -1
  329. package/dist/icons/folder.js +3 -3
  330. package/dist/icons/frame.js +1 -1
  331. package/dist/icons/gear.js +1 -1
  332. package/dist/icons/gif.js +1 -1
  333. package/dist/icons/jump-to-start.js +1 -1
  334. package/dist/icons/keys.js +3 -3
  335. package/dist/icons/media-volume.js +2 -2
  336. package/dist/icons/minus.js +1 -1
  337. package/dist/icons/pause.js +1 -1
  338. package/dist/icons/play.js +1 -1
  339. package/dist/icons/plus.js +1 -1
  340. package/dist/icons/render.js +1 -1
  341. package/dist/icons/step-back.js +1 -1
  342. package/dist/icons/step-forward.js +1 -1
  343. package/dist/icons/still.js +1 -1
  344. package/dist/icons/timelineInOutPointer.js +2 -2
  345. package/dist/icons/video.js +1 -1
  346. package/dist/index.js +16 -16
  347. package/dist/internals.d.ts +1 -1
  348. package/dist/previewEntry.js +2 -2
  349. package/dist/renderEntry.js +10 -8
  350. package/dist/state/folders.js +1 -1
  351. package/dist/state/highest-z-index.js +1 -1
  352. package/dist/state/in-out.js +4 -3
  353. package/dist/state/keybindings.js +1 -1
  354. package/dist/state/preview-size.js +1 -1
  355. package/dist/state/sidebar.js +1 -1
  356. package/dist/state/timeline-zoom.js +1 -1
  357. package/dist/state/z-index.js +2 -1
  358. package/dist/visual-controls/VisualControls.js +1 -1
  359. package/dist/visual-controls/get-current-edited-value.js +2 -1
  360. package/package.json +13 -12
@@ -97,7 +97,7 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
97
97
  label: option === 'default' ? 'Default' : option,
98
98
  onClick: () => setOpenGlOption(option),
99
99
  key: option,
100
- leftItem: openGlOption === option ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
100
+ leftItem: openGlOption === option ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
101
101
  id: option,
102
102
  keyHint: null,
103
103
  quickSwitcherLabel: null,
@@ -113,7 +113,7 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
113
113
  label: option,
114
114
  onClick: () => setChromeModeOption(option),
115
115
  key: option,
116
- leftItem: chromeModeOption === option ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
116
+ leftItem: chromeModeOption === option ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
117
117
  id: option,
118
118
  keyHint: null,
119
119
  quickSwitcherLabel: null,
@@ -132,7 +132,7 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
132
132
  type: 'item',
133
133
  id: option,
134
134
  keyHint: null,
135
- leftItem: x264Preset === option ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
135
+ leftItem: x264Preset === option ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
136
136
  quickSwitcherLabel: null,
137
137
  subMenu: null,
138
138
  value: option,
@@ -144,7 +144,7 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
144
144
  return {
145
145
  label: option,
146
146
  onClick: () => setHardwareAcceleration(option),
147
- leftItem: hardwareAcceleration === option ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
147
+ leftItem: hardwareAcceleration === option ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
148
148
  subMenu: null,
149
149
  quickSwitcherLabel: null,
150
150
  type: 'item',
@@ -187,11 +187,70 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
187
187
  return cb;
188
188
  });
189
189
  }, [setOffthreadVideoThreads]);
190
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'still' ? null : ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: minConcurrency, max: maxConcurrency, step: 1, name: "Concurrency", formatter: (w) => `${w}x`, onValueChanged: setConcurrency, value: concurrency })), renderMode === 'video' && codec === 'h264' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["x264 Preset", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "x264Option" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: x264Preset, selectedId: x264Preset, values: x264PresetOptions }) })] })) : null, renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Hardware acceleration", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "hardwareAccelerationOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: hardwareAcceleration, selectedId: hardwareAcceleration, values: hardwareAccelerationValues }) })] })) : null, (0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting
190
+ return (jsx_runtime_1.jsxs("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'still' ? null : (jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { min: minConcurrency, max: maxConcurrency, step: 1, name: "Concurrency", formatter: (w) => `${w}x`, onValueChanged: setConcurrency, value: concurrency })), renderMode === 'video' && codec === 'h264' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
191
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["x264 Preset",
192
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "x264Option" })
193
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { title: x264Preset, selectedId: x264Preset, values: x264PresetOptions }) })
194
+ ] })) : null, renderMode === 'video' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
195
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Hardware acceleration",
196
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "hardwareAccelerationOption" })
197
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { title: hardwareAcceleration, selectedId: hardwareAcceleration, values: hardwareAccelerationValues }) })
198
+ ] })) : null, jsx_runtime_1.jsx(NumberSetting_1.NumberSetting
191
199
  // Also appears in packages/renderer/src/validate-puppeteer-timeout.ts
192
200
  , {
193
201
  // Also appears in packages/renderer/src/validate-puppeteer-timeout.ts
194
- min: 7000, max: 900000, name: "delayRender() timeout", onValueChanged: setDelayRenderTimeout, formatter: (w) => `${w}ms`, step: 1000, hint: "delayRenderTimeoutInMillisecondsOption", value: delayRenderTimeout }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "No parallel encoding" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: disallowParallelEncoding, onChange: onDisallowParallelEncodingChanged, name: "disallow-parallel-encoding" }) })] }), renderMode === 'audio' ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Custom @remotion/media cache size", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "mediaCacheSizeInBytesOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: mediaCacheSizeInBytes !== null, onChange: toggleCustomMediaCacheSizeInBytes, name: "media-cache-size" }) })] })), renderMode === 'audio' || mediaCacheSizeInBytes === null ? null : ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: 0, max: 2000 * 1024 * 1024, step: 1024, name: "@remotion/media cache size", formatter: (w) => `${w} bytes`, onValueChanged: changeMediaCacheSizeInBytes, value: mediaCacheSizeInBytes })), renderMode === 'audio' ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Custom OffthreadVideo cache", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "offthreadVideoCacheSizeInBytesOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: offthreadVideoCacheSizeInBytes !== null, onChange: toggleCustomOffthreadVideoCacheSizeInBytes, name: "custom-audio-bitrate" }) })] })), renderMode === 'audio' ||
195
- offthreadVideoCacheSizeInBytes === null ? null : ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: 0, max: 2000 * 1024 * 1024, step: 1024, name: "OffthreadVideo cache size", formatter: (w) => `${w} bytes`, onValueChanged: changeOffthreadVideoCacheSizeInBytes, value: offthreadVideoCacheSizeInBytes })), renderMode === 'audio' ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["OffthreadVideo threads ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "offthreadVideoThreadsOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: offthreadVideoThreads !== null, onChange: toggleCustomOffthreadVideoThreads, name: "offthread-video-threads" }) })] })), renderMode === 'audio' || offthreadVideoThreads === null ? null : ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: 0, max: 16, step: 1, name: "OffthreadVideo threads", formatter: (w) => `${w}x`, onValueChanged: changeOffthreadVideoThreads, value: offthreadVideoThreads })), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Disable web security" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: disableWebSecurity, onChange: onDisableWebSecurityChanged, name: "disable-web-security" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Ignore certificate errors" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: ignoreCertificateErrors, onChange: onIgnoreCertificatErrors, name: "ignore-certificate-errors" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Headless mode", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "headlessOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: headless, onChange: onHeadless, name: "headless" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Chrome Mode ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "chromeModeOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: chromeModeOptions, selectedId: chromeModeOption, title: "Chrome mode" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["OpenGL render backend ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "glOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: openGlOptions, selectedId: openGlOption, title: "OpenGl option" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Multi-process Chrome on Linux", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "enableMultiprocessOnLinuxOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: enableMultiProcessOnLinux, onChange: onEnableMultiProcessOnLinux, name: "enable-multi-process-on-linux" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Dark Mode", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "darkModeOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: darkMode, onChange: onDarkMode, name: "dark-mode" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Custom User Agent" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: userAgent !== null, onChange: toggleCustomUserAgent, name: "custom-user-agent" }) })] }), userAgent === null ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "User Agent" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_2.input, value: userAgent, onChange: onUserAgentChanged, status: "ok", rightAlign: true }) }) })] })), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Create a reproduction ", (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "reproOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: repro, onChange: onReproToggle, name: "repro" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Beep when finished ", (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "beepOnFinishOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: beep, onChange: onPlayBeepSound, name: "beep-when-finished" }) })] }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsx)(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })] }));
202
+ min: 7000, max: 900000, name: "delayRender() timeout", onValueChanged: setDelayRenderTimeout, formatter: (w) => `${w}ms`, step: 1000, hint: "delayRenderTimeoutInMillisecondsOption", value: delayRenderTimeout }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
203
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "No parallel encoding" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: disallowParallelEncoding, onChange: onDisallowParallelEncodingChanged, name: "disallow-parallel-encoding" }) })
204
+ ] }), renderMode === 'audio' ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
205
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Custom @remotion/media cache size",
206
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "mediaCacheSizeInBytesOption" })
207
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: mediaCacheSizeInBytes !== null, onChange: toggleCustomMediaCacheSizeInBytes, name: "media-cache-size" }) })
208
+ ] })), renderMode === 'audio' || mediaCacheSizeInBytes === null ? null : (jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { min: 0, max: 2000 * 1024 * 1024, step: 1024, name: "@remotion/media cache size", formatter: (w) => `${w} bytes`, onValueChanged: changeMediaCacheSizeInBytes, value: mediaCacheSizeInBytes })), renderMode === 'audio' ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
209
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Custom OffthreadVideo cache",
210
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "offthreadVideoCacheSizeInBytesOption" })
211
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: offthreadVideoCacheSizeInBytes !== null, onChange: toggleCustomOffthreadVideoCacheSizeInBytes, name: "custom-audio-bitrate" }) })
212
+ ] })), renderMode === 'audio' ||
213
+ offthreadVideoCacheSizeInBytes === null ? null : (jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { min: 0, max: 2000 * 1024 * 1024, step: 1024, name: "OffthreadVideo cache size", formatter: (w) => `${w} bytes`, onValueChanged: changeOffthreadVideoCacheSizeInBytes, value: offthreadVideoCacheSizeInBytes })), renderMode === 'audio' ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
214
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["OffthreadVideo threads ",
215
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "offthreadVideoThreadsOption" })
216
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: offthreadVideoThreads !== null, onChange: toggleCustomOffthreadVideoThreads, name: "offthread-video-threads" }) })
217
+ ] })), renderMode === 'audio' || offthreadVideoThreads === null ? null : (jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { min: 0, max: 16, step: 1, name: "OffthreadVideo threads", formatter: (w) => `${w}x`, onValueChanged: changeOffthreadVideoThreads, value: offthreadVideoThreads })), jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {}), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
218
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Disable web security" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: disableWebSecurity, onChange: onDisableWebSecurityChanged, name: "disable-web-security" }) })
219
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
220
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Ignore certificate errors" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: ignoreCertificateErrors, onChange: onIgnoreCertificatErrors, name: "ignore-certificate-errors" }) })
221
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
222
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Headless mode",
223
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "headlessOption" })
224
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: headless, onChange: onHeadless, name: "headless" }) })
225
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
226
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Chrome Mode ",
227
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "chromeModeOption" })
228
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: chromeModeOptions, selectedId: chromeModeOption, title: "Chrome mode" }) })
229
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
230
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["OpenGL render backend ",
231
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "glOption" })
232
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: openGlOptions, selectedId: openGlOption, title: "OpenGl option" }) })
233
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
234
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Multi-process Chrome on Linux",
235
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "enableMultiprocessOnLinuxOption" })
236
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: enableMultiProcessOnLinux, onChange: onEnableMultiProcessOnLinux, name: "enable-multi-process-on-linux" }) })
237
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
238
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Dark Mode",
239
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "darkModeOption" })
240
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: darkMode, onChange: onDarkMode, name: "dark-mode" }) })
241
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
242
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Custom User Agent" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: userAgent !== null, onChange: toggleCustomUserAgent, name: "custom-user-agent" }) })
243
+ ] }), userAgent === null ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
244
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "User Agent" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx("div", { children: jsx_runtime_1.jsx(RemInput_1.RemotionInput, { style: layout_2.input, value: userAgent, onChange: onUserAgentChanged, status: "ok", rightAlign: true }) }) })
245
+ ] })), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
246
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Create a reproduction ",
247
+ jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "reproOption" })
248
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: repro, onChange: onReproToggle, name: "repro" }) })
249
+ ] }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
250
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Beep when finished ",
251
+ jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "beepOnFinishOption" })
252
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: beep, onChange: onPlayBeepSound, name: "beep-when-finished" }) })
253
+ ] }), jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {}), jsx_runtime_1.jsx(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })
254
+ ] }));
196
255
  };
197
256
  exports.RenderModalAdvanced = RenderModalAdvanced;
@@ -37,7 +37,7 @@ const RenderModalAudio = ({ muted, setMuted, renderMode, enforceAudioTrack, setE
37
37
  label: (0, human_readable_audio_codecs_1.humanReadableAudioCodec)(audioCodecOption),
38
38
  onClick: () => setAudioCodec(audioCodecOption),
39
39
  key: audioCodecOption,
40
- leftItem: codec === audioCodecOption ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
40
+ leftItem: codec === audioCodecOption ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
41
41
  id: audioCodecOption,
42
42
  keyHint: null,
43
43
  quickSwitcherLabel: null,
@@ -47,10 +47,27 @@ const RenderModalAudio = ({ muted, setMuted, renderMode, enforceAudioTrack, setE
47
47
  };
48
48
  });
49
49
  }, [codec, setAudioCodec]);
50
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MutedSetting_1.MutedSetting, { enforceAudioTrack: enforceAudioTrack, muted: muted, setMuted: setMuted }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {})] })) : null, renderMode === 'video' &&
50
+ return (jsx_runtime_1.jsxs("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'video' ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
51
+ jsx_runtime_1.jsx(MutedSetting_1.MutedSetting, { enforceAudioTrack: enforceAudioTrack, muted: muted, setMuted: setMuted }), jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {})
52
+ ] })) : null, renderMode === 'video' &&
51
53
  audioCodecOptions(codec).length >= 2 &&
52
- !muted ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Audio Codec ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "audioCodecOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: audioCodecOptions(codec), selectedId: audioCodec, title: "AudioCodec" }) })] })) : null, (renderMode === 'video' || renderMode === 'audio') && !muted && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(EnforceAudioTrackSetting_1.EnforceAudioTrackSetting, { muted: muted, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrack: setEnforceAudioTrackState }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {})] })), renderMode === 'video' && !muted ? ((0, jsx_runtime_1.jsx)(SeparateAudioOption_1.SeparateAudioOption, { separateAudioTo: separateAudioTo, setSeparateAudioTo: setSeparateAudioTo, audioCodec: audioCodec, outName: outName })) : null, audioCodec === 'aac' && !muted ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["For seamless AAC concatenation", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "forSeamlessAacConcatenationOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { disabled: false, checked: forSeamlessAacConcatenation, onChange: onSeamlessAacConcatenationChanges, name: "enforce-audio-track" }) })] })) : null, renderMode === 'still' || muted ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Custom audio bitrate", ' ', (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "audioBitrateOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: shouldHaveCustomTargetAudioBitrate, onChange: onShouldHaveTargetAudioBitrateChanged, name: "custom-audio-bitrate" }) })] })), shouldHaveCustomTargetAudioBitrate &&
54
+ !muted ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
55
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Audio Codec ",
56
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "audioCodecOption" })
57
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: audioCodecOptions(codec), selectedId: audioCodec, title: "AudioCodec" }) })
58
+ ] })) : null, (renderMode === 'video' || renderMode === 'audio') && !muted && (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
59
+ jsx_runtime_1.jsx(EnforceAudioTrackSetting_1.EnforceAudioTrackSetting, { muted: muted, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrack: setEnforceAudioTrackState }), jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {})
60
+ ] })), renderMode === 'video' && !muted ? (jsx_runtime_1.jsx(SeparateAudioOption_1.SeparateAudioOption, { separateAudioTo: separateAudioTo, setSeparateAudioTo: setSeparateAudioTo, audioCodec: audioCodec, outName: outName })) : null, audioCodec === 'aac' && !muted ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
61
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["For seamless AAC concatenation",
62
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "forSeamlessAacConcatenationOption" })
63
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { disabled: false, checked: forSeamlessAacConcatenation, onChange: onSeamlessAacConcatenationChanges, name: "enforce-audio-track" }) })
64
+ ] })) : null, renderMode === 'still' || muted ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
65
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Custom audio bitrate", ' ', jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "audioBitrateOption" })
66
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: shouldHaveCustomTargetAudioBitrate, onChange: onShouldHaveTargetAudioBitrateChanged, name: "custom-audio-bitrate" }) })
67
+ ] })), shouldHaveCustomTargetAudioBitrate &&
53
68
  renderMode !== 'still' &&
54
- !muted ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Target audio bitrate" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_2.input, value: customTargetAudioBitrate, onChange: onTargetAudioBitrateChanged, status: "ok", rightAlign: true }) }) })] })) : null] }));
69
+ !muted ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
70
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Target audio bitrate" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx("div", { children: jsx_runtime_1.jsx(RemInput_1.RemotionInput, { style: layout_2.input, value: customTargetAudioBitrate, onChange: onTargetAudioBitrateChanged, status: "ok", rightAlign: true }) }) })
71
+ ] })) : null] }));
55
72
  };
56
73
  exports.RenderModalAudio = RenderModalAudio;
@@ -34,7 +34,7 @@ const RenderModalBasic = ({ renderMode, imageFormatOptions, outName, codec, setV
34
34
  label: (0, human_readable_codec_1.humanReadableCodec)(codecOption),
35
35
  onClick: () => setCodec(codecOption),
36
36
  key: codecOption,
37
- leftItem: codec === codecOption ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
37
+ leftItem: codec === codecOption ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
38
38
  id: codecOption,
39
39
  keyHint: null,
40
40
  quickSwitcherLabel: null,
@@ -81,7 +81,7 @@ const RenderModalBasic = ({ renderMode, imageFormatOptions, outName, codec, setV
81
81
  return {
82
82
  label: (0, human_readable_loglevel_1.humanReadableLogLevel)(level),
83
83
  onClick: () => setVerboseLogging(level),
84
- leftItem: logLevel === level ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
84
+ leftItem: logLevel === level ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
85
85
  id: level,
86
86
  keyHint: null,
87
87
  quickSwitcherLabel: null,
@@ -91,6 +91,21 @@ const RenderModalBasic = ({ renderMode, imageFormatOptions, outName, codec, setV
91
91
  };
92
92
  });
93
93
  }, [logLevel, setVerboseLogging]);
94
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [renderMode === 'still' || renderMode === 'sequence' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Format" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(SegmentedControl_1.SegmentedControl, { items: imageFormatOptions, needsWrapping: true }) })] })) : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Codec", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "videoCodecOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: videoCodecOptions, selectedId: codec, title: "Codec" }) })] })), renderMode === 'still' && resolvedComposition.durationInFrames > 1 ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Frame" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: frame, onTextChange: onFrameChanged, placeholder: `0-${resolvedComposition.durationInFrames - 1}`, onValueChange: onFrameSetDirectly, name: "frame", step: 1, min: 0, status: "ok", max: resolvedComposition.durationInFrames - 1, rightAlign: true }) }) })] })) : null, renderMode === 'video' && codec === 'prores' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "ProRes profile" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: 'proResProfile', selectedId: proResProfile, values: proResProfileOptions }) })] })) : null, renderMode === 'still' ? null : ((0, jsx_runtime_1.jsx)(FrameRangeSetting_1.FrameRangeSetting, { durationInFrames: resolvedComposition.durationInFrames, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, startFrame: startFrame })), (0, jsx_runtime_1.jsx)(RenderModalOutputName_1.RenderModalOutputName, { existence: existence, inputStyle: layout_2.input, outName: outName, onValueChange: onValueChange, validationMessage: validationMessage, label: renderMode === 'sequence' ? 'Folder name' : 'Output name' }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Log Level ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "logLevelOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: logLevelOptions, selectedId: logLevel, title: "Log Level" }) })] })] }));
94
+ return (jsx_runtime_1.jsxs("div", { style: container, children: [renderMode === 'still' || renderMode === 'sequence' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
95
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Format" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(SegmentedControl_1.SegmentedControl, { items: imageFormatOptions, needsWrapping: true }) })
96
+ ] })) : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
97
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Codec",
98
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "videoCodecOption" })
99
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: videoCodecOptions, selectedId: codec, title: "Codec" }) })
100
+ ] })), renderMode === 'still' && resolvedComposition.durationInFrames > 1 ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
101
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Frame" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(RemInput_1.RightAlignInput, { children: jsx_runtime_1.jsx(InputDragger_1.InputDragger, { value: frame, onTextChange: onFrameChanged, placeholder: `0-${resolvedComposition.durationInFrames - 1}`, onValueChange: onFrameSetDirectly, name: "frame", step: 1, min: 0, status: "ok", max: resolvedComposition.durationInFrames - 1, rightAlign: true }) }) })
102
+ ] })) : null, renderMode === 'video' && codec === 'prores' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
103
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "ProRes profile" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { title: 'proResProfile', selectedId: proResProfile, values: proResProfileOptions }) })
104
+ ] })) : null, renderMode === 'still' ? null : (jsx_runtime_1.jsx(FrameRangeSetting_1.FrameRangeSetting, { durationInFrames: resolvedComposition.durationInFrames, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, startFrame: startFrame })), jsx_runtime_1.jsx(RenderModalOutputName_1.RenderModalOutputName, { existence: existence, inputStyle: layout_2.input, outName: outName, onValueChange: onValueChange, validationMessage: validationMessage, label: renderMode === 'sequence' ? 'Folder name' : 'Output name' }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
105
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Log Level ",
106
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "logLevelOption" })
107
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: logLevelOptions, selectedId: logLevel, title: "Log Level" }) })
108
+ ] })
109
+ ] }));
95
110
  };
96
111
  exports.RenderModalBasic = RenderModalBasic;
@@ -41,15 +41,17 @@ const RenderModalEnvironmentVariables = ({ envVariables, setEnvVariables }) => {
41
41
  setEnvVariables((oldEnv) => [...oldEnv, ['', '']]);
42
42
  }, [setEnvVariables]);
43
43
  const usedKeys = [];
44
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("strong", { style: title, children: "Environment variables" }), envVariables.map((env, i) => {
44
+ return (jsx_runtime_1.jsxs("div", { style: container, children: [
45
+ jsx_runtime_1.jsx("strong", { style: title, children: "Environment variables" }), envVariables.map((env, i) => {
45
46
  let isDuplicate = false;
46
47
  if (usedKeys.includes(env[0].toUpperCase())) {
47
48
  isDuplicate = true;
48
49
  }
49
50
  usedKeys.push(env[0].toUpperCase());
50
- return ((0, jsx_runtime_1.jsx)(EnvInput_1.EnvInput
51
+ return (jsx_runtime_1.jsx(EnvInput_1.EnvInput
51
52
  // eslint-disable-next-line react/no-array-index-key
52
53
  , { onEnvKeyChange: onEnvKeyChange, onEnvValChange: onEnvValChange, envKey: env[0], envVal: env[1], onDelete: onDelete, index: i, isDuplicate: isDuplicate, autoFocus: i === envVariables.length - 1 && env[0] === '' }, i));
53
- }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(Button_1.Button, { style: button, onClick: addField, children: "+ Add env variable" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true })] }));
54
+ }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(Button_1.Button, { style: button, onClick: addField, children: "+ Add env variable" }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true })
55
+ ] }));
54
56
  };
55
57
  exports.RenderModalEnvironmentVariables = RenderModalEnvironmentVariables;
@@ -16,6 +16,11 @@ const RenderModalGif = ({ everyNthFrame, limitNumberOfGifLoops, numberOfGifLoops
16
16
  const onShouldLimitNumberOfGifLoops = (0, react_1.useCallback)((e) => {
17
17
  setLimitNumberOfGifLoops(e.target.checked);
18
18
  }, [setLimitNumberOfGifLoops]);
19
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { name: "Every nth frame", min: 1, onValueChanged: setEveryNthFrameSetting, value: everyNthFrame, step: 1 }), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Limit GIF loops ", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "numberOfGifLoopsOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: limitNumberOfGifLoops, onChange: onShouldLimitNumberOfGifLoops, name: "limitNumberOfGifLoops" }) })] }), limitNumberOfGifLoops ? ((0, jsx_runtime_1.jsx)(NumberOfLoopsSetting_1.NumberOfLoopsSetting, { numberOfGifLoops: numberOfGifLoopsSetting, setNumberOfGifLoops: setNumberOfGifLoopsSetting })) : null] }));
19
+ return (jsx_runtime_1.jsxs("div", { style: container, children: [
20
+ jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { name: "Every nth frame", min: 1, onValueChanged: setEveryNthFrameSetting, value: everyNthFrame, step: 1 }), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
21
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Limit GIF loops ",
22
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "numberOfGifLoopsOption" })
23
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: limitNumberOfGifLoops, onChange: onShouldLimitNumberOfGifLoops, name: "limitNumberOfGifLoops" }) })
24
+ ] }), limitNumberOfGifLoops ? (jsx_runtime_1.jsx(NumberOfLoopsSetting_1.NumberOfLoopsSetting, { numberOfGifLoops: numberOfGifLoopsSetting, setNumberOfGifLoops: setNumberOfGifLoopsSetting })) : null] }));
20
25
  };
21
26
  exports.RenderModalGif = RenderModalGif;
@@ -13,6 +13,6 @@ const hrStyle = {
13
13
  marginBottom: 8,
14
14
  };
15
15
  const RenderModalHr = () => {
16
- return (0, jsx_runtime_1.jsx)("div", { style: hrStyle });
16
+ return jsx_runtime_1.jsx("div", { style: hrStyle });
17
17
  };
18
18
  exports.RenderModalHr = RenderModalHr;
@@ -146,8 +146,11 @@ const RenderModalJSONPropsEditor = ({ setValue, value, defaultProps, onSave, sho
146
146
  borderColor: colors_1.FAIL_COLOR,
147
147
  };
148
148
  }, [localValue]);
149
- return ((0, jsx_runtime_1.jsxs)("div", { style: scrollable, children: [(0, jsx_runtime_1.jsx)(RemTextarea_1.RemTextarea, { onChange: onChange, value: localValue.str, status: localValue.validJSON ? 'ok' : 'error', style: textAreaStyle }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), localValue.validJSON === false ? ((0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { align: "flex-start", message: localValue.error, type: "error" })) : localValue.zodValidation.success === false ? ((0, jsx_runtime_1.jsx)(ZodErrorMessages_1.ZodErrorMessages, { zodValidationResult: localValue.zodValidation, viewTab: "json" })) : null, (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { disabled: !(hasChanged || !localValue.validJSON), onClick: reset, children: "Reset" }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(Button_1.Button, { disabled: !localValue.validJSON, onClick: onPretty, children: "Format" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), showSaveButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onSave, disabled: !(localValue.validJSON && localValue.zodValidation.success) ||
149
+ return (jsx_runtime_1.jsxs("div", { style: scrollable, children: [
150
+ jsx_runtime_1.jsx(RemTextarea_1.RemTextarea, { onChange: onChange, value: localValue.str, status: localValue.validJSON ? 'ok' : 'error', style: textAreaStyle }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1 }), localValue.validJSON === false ? (jsx_runtime_1.jsx(ValidationMessage_1.ValidationMessage, { align: "flex-start", message: localValue.error, type: "error" })) : localValue.zodValidation.success === false ? (jsx_runtime_1.jsx(ZodErrorMessages_1.ZodErrorMessages, { zodValidationResult: localValue.zodValidation, viewTab: "json" })) : null, jsx_runtime_1.jsx(layout_1.Spacing, { y: 1 }), jsx_runtime_1.jsxs(layout_1.Row, { children: [
151
+ jsx_runtime_1.jsx(Button_1.Button, { disabled: !(hasChanged || !localValue.validJSON), onClick: reset, children: "Reset" }), jsx_runtime_1.jsx(layout_1.Flex, {}), jsx_runtime_1.jsx(Button_1.Button, { disabled: !localValue.validJSON, onClick: onPretty, children: "Format" }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), showSaveButton ? (jsx_runtime_1.jsx(Button_1.Button, { onClick: onSave, disabled: !(localValue.validJSON && localValue.zodValidation.success) ||
150
152
  !localValue.validJSON ||
151
- !hasChanged, children: "Save" })) : null] })] }));
153
+ !hasChanged, children: "Save" })) : null] })
154
+ ] }));
152
155
  };
153
156
  exports.RenderModalJSONPropsEditor = RenderModalJSONPropsEditor;
@@ -7,6 +7,13 @@ const ValidationMessage_1 = require("../NewComposition/ValidationMessage");
7
7
  const layout_1 = require("../layout");
8
8
  const layout_2 = require("./layout");
9
9
  const RenderModalOutputName = ({ existence, inputStyle, outName, onValueChange, validationMessage, label: labelText, }) => {
10
- return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)(layout_1.Column, { children: (0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: labelText }) }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { status: validationMessage ? 'error' : existence ? 'warning' : 'ok', style: inputStyle, type: "text", value: outName, onChange: onValueChange, rightAlign: true }), validationMessage ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { align: "flex-end", message: validationMessage, type: 'error' })] })) : existence ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { align: "flex-end", message: "Will be overwritten", type: 'warning' })] })) : null] }) })] }));
10
+ return (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
11
+ jsx_runtime_1.jsx(layout_1.Column, { children: jsx_runtime_1.jsx("div", { style: layout_2.label, children: labelText }) }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsxs("div", { children: [
12
+ jsx_runtime_1.jsx(RemInput_1.RemotionInput, { status: validationMessage ? 'error' : existence ? 'warning' : 'ok', style: inputStyle, type: "text", value: outName, onChange: onValueChange, rightAlign: true }), validationMessage ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
13
+ jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(ValidationMessage_1.ValidationMessage, { align: "flex-end", message: validationMessage, type: 'error' })
14
+ ] })) : existence ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
15
+ jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(ValidationMessage_1.ValidationMessage, { align: "flex-end", message: "Will be overwritten", type: 'warning' })
16
+ ] })) : null] }) })
17
+ ] }));
11
18
  };
12
19
  exports.RenderModalOutputName = RenderModalOutputName;
@@ -31,7 +31,7 @@ const RenderModalPicture = ({ renderMode, scale, setScale, pixelFormat, imageFor
31
31
  key: option,
32
32
  id: option,
33
33
  keyHint: null,
34
- leftItem: colorSpace === option ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
34
+ leftItem: colorSpace === option ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
35
35
  quickSwitcherLabel: null,
36
36
  subMenu: null,
37
37
  type: 'item',
@@ -64,9 +64,36 @@ const RenderModalPicture = ({ renderMode, scale, setScale, pixelFormat, imageFor
64
64
  const onEncodingMaxRateChanged = (0, react_1.useCallback)((e) => {
65
65
  setEncodingMaxRate(e.target.value);
66
66
  }, [setEncodingMaxRate]);
67
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Image Format" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(SegmentedControl_1.SegmentedControl, { items: imageFormatOptions, needsWrapping: false }) })] })) : null, renderMode === 'video' && videoImageFormat === 'jpeg' && ((0, jsx_runtime_1.jsx)(JpegQualitySetting_1.JpegQualitySetting, { jpegQuality: jpegQuality, setJpegQuality: setJpegQuality })), renderMode === 'still' && stillImageFormat === 'jpeg' && ((0, jsx_runtime_1.jsx)(JpegQualitySetting_1.JpegQualitySetting, { jpegQuality: jpegQuality, setJpegQuality: setJpegQuality })), renderMode === 'video' && qualityControlType !== null ? ((0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {})) : null, shouldDisplayQualityControlPicker && renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Quality control" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(SegmentedControl_1.SegmentedControl, { items: qualityControlOptions, needsWrapping: true }) })] })) : null, qualityControlType === 'crf' &&
67
+ return (jsx_runtime_1.jsxs("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'video' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
68
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Image Format" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(SegmentedControl_1.SegmentedControl, { items: imageFormatOptions, needsWrapping: false }) })
69
+ ] })) : null, renderMode === 'video' && videoImageFormat === 'jpeg' && (jsx_runtime_1.jsx(JpegQualitySetting_1.JpegQualitySetting, { jpegQuality: jpegQuality, setJpegQuality: setJpegQuality })), renderMode === 'still' && stillImageFormat === 'jpeg' && (jsx_runtime_1.jsx(JpegQualitySetting_1.JpegQualitySetting, { jpegQuality: jpegQuality, setJpegQuality: setJpegQuality })), renderMode === 'video' && qualityControlType !== null ? (jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {})) : null, shouldDisplayQualityControlPicker && renderMode === 'video' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
70
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Quality control" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(SegmentedControl_1.SegmentedControl, { items: qualityControlOptions, needsWrapping: true }) })
71
+ ] })) : null, qualityControlType === 'crf' &&
68
72
  renderMode !== 'still' &&
69
73
  renderMode !== 'sequence' &&
70
- crf !== null ? ((0, jsx_runtime_1.jsx)(CrfSetting_1.CrfSetting, { crf: crf, min: minCrf, max: maxCrf, setCrf: setCrf, option: "crfOption" })) : null, qualityControlType === 'bitrate' && renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Target video bitrate", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "videoBitrateOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_2.input, value: customTargetVideoBitrate, onChange: onTargetVideoBitrateChanged, status: "ok", rightAlign: true }) }) })] })) : null, renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Custom FFmpeg -bufsize", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "encodingBufferSizeOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: encodingBufferSize !== null, onChange: onEncodingBufferSizeToggled, name: "encoding-buffer-size" }) })] }), encodingBufferSize === null ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "-bufsize value" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_2.input, value: encodingBufferSize, onChange: onEncodingBufferSizeChanged, status: "ok", rightAlign: true }) }) })] })), (0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Custom FFmpeg -maxrate", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "encodingMaxRateOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: encodingMaxRate !== null, onChange: onEncodingMaxRateToggled, name: "encoding-max-rate" }) })] }), encodingMaxRate === null ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "-maxrate value" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_2.input, value: encodingMaxRate, onChange: onEncodingMaxRateChanged, status: "ok", rightAlign: true }) }) })] }))] })) : null, renderMode === 'video' ? (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}) : null, (0, jsx_runtime_1.jsx)(ScaleSetting_1.ScaleSetting, { scale: scale, setScale: setScale, compositionWidth: compositionWidth, compositionHeight: compositionHeight }), renderMode === 'video' ? (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}) : null, renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Pixel format" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: pixelFormatOptions, selectedId: pixelFormat, title: "Pixel Format" }) })] })) : null, renderMode === 'video' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Color space", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(OptionExplainerBubble_1.OptionExplainerBubble, { id: "colorSpaceOption" })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: colorSpaceOptions, selectedId: colorSpace, title: "Color Space" }) })] })) : null] }));
74
+ crf !== null ? (jsx_runtime_1.jsx(CrfSetting_1.CrfSetting, { crf: crf, min: minCrf, max: maxCrf, setCrf: setCrf, option: "crfOption" })) : null, qualityControlType === 'bitrate' && renderMode === 'video' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
75
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Target video bitrate",
76
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "videoBitrateOption" })
77
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx("div", { children: jsx_runtime_1.jsx(RemInput_1.RemotionInput, { style: layout_2.input, value: customTargetVideoBitrate, onChange: onTargetVideoBitrateChanged, status: "ok", rightAlign: true }) }) })
78
+ ] })) : null, renderMode === 'video' ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
79
+ jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
80
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Custom FFmpeg -bufsize",
81
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "encodingBufferSizeOption" })
82
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: encodingBufferSize !== null, onChange: onEncodingBufferSizeToggled, name: "encoding-buffer-size" }) })
83
+ ] }), encodingBufferSize === null ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
84
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "-bufsize value" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx("div", { children: jsx_runtime_1.jsx(RemInput_1.RemotionInput, { style: layout_2.input, value: encodingBufferSize, onChange: onEncodingBufferSizeChanged, status: "ok", rightAlign: true }) }) })
85
+ ] })), jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
86
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Custom FFmpeg -maxrate",
87
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "encodingMaxRateOption" })
88
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: encodingMaxRate !== null, onChange: onEncodingMaxRateToggled, name: "encoding-max-rate" }) })
89
+ ] }), encodingMaxRate === null ? null : (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
90
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "-maxrate value" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx("div", { children: jsx_runtime_1.jsx(RemInput_1.RemotionInput, { style: layout_2.input, value: encodingMaxRate, onChange: onEncodingMaxRateChanged, status: "ok", rightAlign: true }) }) })
91
+ ] }))] })) : null, renderMode === 'video' ? jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {}) : null, jsx_runtime_1.jsx(ScaleSetting_1.ScaleSetting, { scale: scale, setScale: setScale, compositionWidth: compositionWidth, compositionHeight: compositionHeight }), renderMode === 'video' ? jsx_runtime_1.jsx(RenderModalHr_1.RenderModalHr, {}) : null, renderMode === 'video' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
92
+ jsx_runtime_1.jsx("div", { style: layout_2.label, children: "Pixel format" }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: pixelFormatOptions, selectedId: pixelFormat, title: "Pixel Format" }) })
93
+ ] })) : null, renderMode === 'video' ? (jsx_runtime_1.jsxs("div", { style: layout_2.optionRow, children: [
94
+ jsx_runtime_1.jsxs("div", { style: layout_2.label, children: ["Color space",
95
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(OptionExplainerBubble_1.OptionExplainerBubble, { id: "colorSpaceOption" })
96
+ ] }), jsx_runtime_1.jsx("div", { style: layout_2.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: colorSpaceOptions, selectedId: colorSpace, title: "Color Space" }) })
97
+ ] })) : null] }));
71
98
  };
72
99
  exports.RenderModalPicture = RenderModalPicture;
@@ -88,7 +88,13 @@ const RenderStatusModal = ({ jobId, }) => {
88
88
  if (job.status === 'idle') {
89
89
  throw new Error('should not have rendered this modal');
90
90
  }
91
- return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.ModalHeader, { title: `Render ${job.compositionId}` }), (0, jsx_runtime_1.jsxs)("div", { style: container, children: [job.status === 'failed' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("p", { children: "The render failed because of the following error:" }), (0, jsx_runtime_1.jsx)("div", { className: is_menu_item_1.HORIZONTAL_SCROLLBAR_CLASSNAME, style: codeBlock, children: job.error.stack })] })) : null, (job.status === 'done' || job.status === 'running') &&
92
- (isClientJob ? ((0, jsx_runtime_1.jsx)(ClientRenderProgress_1.ClientRenderProgress, { job: job })) : ((0, jsx_runtime_1.jsx)(GuiRenderStatus_1.GuiRenderStatus, { job: job }))), (0, jsx_runtime_1.jsx)("div", { style: spacer }), (0, jsx_runtime_1.jsxs)("div", { style: buttonRow, children: [job.status === 'running' ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClickOnCancel, children: "Cancel render" })) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClickOnRemove, children: "Remove render" })), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), job.status === 'failed' ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onRetry, children: "Retry" })) : null, (0, jsx_runtime_1.jsx)("div", { style: spacer }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onQuit, children: "Close" })] })] })] }));
91
+ return (jsx_runtime_1.jsxs(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: [
92
+ jsx_runtime_1.jsx(ModalHeader_1.ModalHeader, { title: `Render ${job.compositionId}` }), jsx_runtime_1.jsxs("div", { style: container, children: [job.status === 'failed' ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
93
+ jsx_runtime_1.jsx("p", { children: "The render failed because of the following error:" }), jsx_runtime_1.jsx("div", { className: is_menu_item_1.HORIZONTAL_SCROLLBAR_CLASSNAME, style: codeBlock, children: job.error.stack })
94
+ ] })) : null, (job.status === 'done' || job.status === 'running') &&
95
+ (isClientJob ? (jsx_runtime_1.jsx(ClientRenderProgress_1.ClientRenderProgress, { job: job })) : (jsx_runtime_1.jsx(GuiRenderStatus_1.GuiRenderStatus, { job: job }))), jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsxs("div", { style: buttonRow, children: [job.status === 'running' ? (jsx_runtime_1.jsx(Button_1.Button, { onClick: onClickOnCancel, children: "Cancel render" })) : (jsx_runtime_1.jsx(Button_1.Button, { onClick: onClickOnRemove, children: "Remove render" })), jsx_runtime_1.jsx(layout_1.Flex, {}), job.status === 'failed' ? (jsx_runtime_1.jsx(Button_1.Button, { onClick: onRetry, children: "Retry" })) : null, jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsx(Button_1.Button, { onClick: onQuit, children: "Close" })
96
+ ] })
97
+ ] })
98
+ ] }));
93
99
  };
94
100
  exports.RenderStatusModal = RenderStatusModal;
@@ -82,11 +82,14 @@ const ResolveCompositionBeforeModal = ({ compositionId, children }) => {
82
82
  };
83
83
  }, [resolved, unresolved]);
84
84
  if (!resolved || resolved.type === 'loading') {
85
- return (0, jsx_runtime_1.jsx)(RunningCalculateMetadata_1.RunningCalculateMetadata, {});
85
+ return jsx_runtime_1.jsx(RunningCalculateMetadata_1.RunningCalculateMetadata, {});
86
86
  }
87
87
  if (resolved.type === 'error') {
88
- return ((0, jsx_runtime_1.jsxs)("div", { style: loaderContainer, children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2 }), (0, jsx_runtime_1.jsxs)("div", { style: loaderLabel, children: ["Running ", (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "calculateMetadata()" }), ' ', "yielded an error:"] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsx)("div", { style: loaderLabel, children: resolved.error.message || 'Unknown error' })] }));
88
+ return (jsx_runtime_1.jsxs("div", { style: loaderContainer, children: [
89
+ jsx_runtime_1.jsx(layout_1.Spacing, { y: 2 }), jsx_runtime_1.jsxs("div", { style: loaderLabel, children: ["Running ",
90
+ jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "calculateMetadata()" }), ' ', "yielded an error:"] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1 }), jsx_runtime_1.jsx("div", { style: loaderLabel, children: resolved.error.message || 'Unknown error' })
91
+ ] }));
89
92
  }
90
- return ((0, jsx_runtime_1.jsx)(exports.ResolvedCompositionContext.Provider, { value: value, children: children }));
93
+ return (jsx_runtime_1.jsx(exports.ResolvedCompositionContext.Provider, { value: value, children: children }));
91
94
  };
92
95
  exports.ResolveCompositionBeforeModal = ResolveCompositionBeforeModal;
@@ -22,11 +22,12 @@ const ScaleSetting = ({ scale, setScale, compositionWidth, compositionHeight })
22
22
  const outputHeight = Math.round(compositionHeight * scale);
23
23
  return `${outputWidth}×${outputHeight}`;
24
24
  }, [compositionWidth, compositionHeight, scale]);
25
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: MIN_SCALE, max: MAX_SCALE, step: 0.1, name: "Scale", formatter: (w) => {
25
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
26
+ jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { min: MIN_SCALE, max: MAX_SCALE, step: 0.1, name: "Scale", formatter: (w) => {
26
27
  if (typeof w === 'number') {
27
28
  return `${w.toFixed(1)}x`;
28
29
  }
29
30
  return `${w}x`;
30
- }, onValueChanged: setScale, value: scale, hint: 'scaleOption' }), scale !== 1 && ((0, jsx_runtime_1.jsxs)("div", { style: outputDimensionsStyle, children: ["Output resolution: ", outputDimensions] }))] }));
31
+ }, onValueChanged: setScale, value: scale, hint: 'scaleOption' }), scale !== 1 && (jsx_runtime_1.jsxs("div", { style: outputDimensionsStyle, children: ["Output resolution: ", outputDimensions] }))] }));
31
32
  };
32
33
  exports.ScaleSetting = ScaleSetting;
@@ -17,9 +17,9 @@ const Fieldset = ({ children, shouldPad }) => {
17
17
  }
18
18
  return {};
19
19
  }, [alreadyPadded, shouldPad]);
20
- const content = (0, jsx_runtime_1.jsx)("div", { style: style, children: children });
20
+ const content = jsx_runtime_1.jsx("div", { style: style, children: children });
21
21
  if (shouldPad) {
22
- return ((0, jsx_runtime_1.jsx)(AlreadyPaddedRightContext.Provider, { value: true, children: content }));
22
+ return (jsx_runtime_1.jsx(AlreadyPaddedRightContext.Provider, { value: true, children: content }));
23
23
  }
24
24
  return content;
25
25
  };
@@ -75,13 +75,13 @@ const SchemaEditor = ({ schema, unsavedDefaultProps, setValue, zodValidationResu
75
75
  if (!zodValidationResult.success) {
76
76
  const defaultPropsValid = schema.safeParse(savedDefaultProps);
77
77
  if (!defaultPropsValid.success) {
78
- return (0, jsx_runtime_1.jsx)(SchemaErrorMessages_1.InvalidDefaultProps, { zodValidationResult: zodValidationResult });
78
+ return jsx_runtime_1.jsx(SchemaErrorMessages_1.InvalidDefaultProps, { zodValidationResult: zodValidationResult });
79
79
  }
80
- return ((0, jsx_runtime_1.jsx)(SchemaErrorMessages_1.InvalidSchema, { reset: reset, zodValidationResult: zodValidationResult }));
80
+ return (jsx_runtime_1.jsx(SchemaErrorMessages_1.InvalidSchema, { reset: reset, zodValidationResult: zodValidationResult }));
81
81
  }
82
82
  if (typeName !== z.ZodFirstPartyTypeKind.ZodObject) {
83
- return (0, jsx_runtime_1.jsx)(SchemaErrorMessages_1.TopLevelZodValue, { typeReceived: typeName });
83
+ return jsx_runtime_1.jsx(SchemaErrorMessages_1.TopLevelZodValue, { typeReceived: typeName });
84
84
  }
85
- return ((0, jsx_runtime_1.jsx)("div", { ref: scroll_to_default_props_path_1.defaultPropsEditorScrollableAreaRef, style: scrollable, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: (0, jsx_runtime_1.jsx)(local_state_1.RevisionContext.Provider, { value: revisionState, children: (0, jsx_runtime_1.jsx)(ZodObjectEditor_1.ZodObjectEditor, { discriminatedUnionReplacement: null, unsavedValue: unsavedDefaultProps, setValue: setValue, jsonPath: [], schema: schema, savedValue: savedDefaultProps, onSave: onSave, showSaveButton: showSaveButton, onRemove: null, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: true }) }) }));
85
+ return (jsx_runtime_1.jsx("div", { ref: scroll_to_default_props_path_1.defaultPropsEditorScrollableAreaRef, style: scrollable, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: jsx_runtime_1.jsx(local_state_1.RevisionContext.Provider, { value: revisionState, children: jsx_runtime_1.jsx(ZodObjectEditor_1.ZodObjectEditor, { discriminatedUnionReplacement: null, unsavedValue: unsavedDefaultProps, setValue: setValue, jsonPath: [], schema: schema, savedValue: savedDefaultProps, onSave: onSave, showSaveButton: showSaveButton, onRemove: null, saving: saving, saveDisabledByParent: saveDisabledByParent, mayPad: true }) }) }));
86
86
  };
87
87
  exports.SchemaEditor = SchemaEditor;
@@ -36,26 +36,51 @@ const openDocs = () => {
36
36
  window.open('https://www.remotion.dev/docs/schemas');
37
37
  };
38
38
  const ZodNotInstalled = () => {
39
- return ((0, jsx_runtime_1.jsxs)("div", { style: explainer, children: [(0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["Install ", (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "zod" }), " as a dependency to interactively control the props of the composition."] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2, block: true }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openDocs, children: "Learn how" })] }));
39
+ return (jsx_runtime_1.jsxs("div", { style: explainer, children: [
40
+ jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["Install ",
41
+ jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "zod" }),
42
+ " as a dependency to interactively control the props of the composition."] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 2, block: true }), jsx_runtime_1.jsx(Button_1.Button, { onClick: openDocs, children: "Learn how" })
43
+ ] }));
40
44
  };
41
45
  exports.ZodNotInstalled = ZodNotInstalled;
42
46
  const NoSchemaDefined = () => {
43
- return ((0, jsx_runtime_1.jsxs)("div", { style: explainer, children: [(0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["Make the props of this composition interactively editable by adding a", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "schema" }), " prop to the", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: '<Composition>' }), " component."] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2, block: true }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openDocs, children: "Learn how" })] }));
47
+ return (jsx_runtime_1.jsxs("div", { style: explainer, children: [
48
+ jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["Make the props of this composition interactively editable by adding a", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "schema" }),
49
+ " prop to the", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: '<Composition>' }),
50
+ " component."] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 2, block: true }), jsx_runtime_1.jsx(Button_1.Button, { onClick: openDocs, children: "Learn how" })
51
+ ] }));
44
52
  };
45
53
  exports.NoSchemaDefined = NoSchemaDefined;
46
54
  const NoDefaultProps = () => {
47
- return ((0, jsx_runtime_1.jsxs)("div", { style: explainer, children: [(0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["The schema can not be edited because the", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }), " prop in the", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: '<Composition>' }), " does not exist."] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["Fix the schema by adding a", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }), " prop to your composition."] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2, block: true }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openDocs, children: "Learn more" })] }));
55
+ return (jsx_runtime_1.jsxs("div", { style: explainer, children: [
56
+ jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["The schema can not be edited because the", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }),
57
+ " prop in the", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: '<Composition>' }),
58
+ " does not exist."] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1 }), jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["Fix the schema by adding a", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }),
59
+ " prop to your composition."] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 2, block: true }), jsx_runtime_1.jsx(Button_1.Button, { onClick: openDocs, children: "Learn more" })
60
+ ] }));
48
61
  };
49
62
  exports.NoDefaultProps = NoDefaultProps;
50
63
  const InvalidDefaultProps = ({ zodValidationResult }) => {
51
- return ((0, jsx_runtime_1.jsxs)("div", { style: errorContainer, children: [(0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["The schema can not be edited because the", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }), " prop in the", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: '<Composition>' }), " is not valid:"] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(ZodErrorMessages_1.ZodErrorMessages, { zodValidationResult: zodValidationResult, viewTab: "schema" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["Fix the schema by changing the", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }), " prop in your composition so it does not give a type error."] })] }));
64
+ return (jsx_runtime_1.jsxs("div", { style: errorContainer, children: [
65
+ jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["The schema can not be edited because the", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }),
66
+ " prop in the", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: '<Composition>' }),
67
+ " is not valid:"] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(ZodErrorMessages_1.ZodErrorMessages, { zodValidationResult: zodValidationResult, viewTab: "schema" }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["Fix the schema by changing the", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }),
68
+ " prop in your composition so it does not give a type error."] })
69
+ ] }));
52
70
  };
53
71
  exports.InvalidDefaultProps = InvalidDefaultProps;
54
72
  const InvalidSchema = ({ zodValidationResult, reset }) => {
55
- return ((0, jsx_runtime_1.jsxs)("div", { style: errorContainer, children: [(0, jsx_runtime_1.jsx)("div", { style: errorExplanation, children: "The data does not satisfy the schema:" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(ZodErrorMessages_1.ZodErrorMessages, { zodValidationResult: zodValidationResult, viewTab: "schema" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)("div", { style: errorExplanation, children: "Fix the schema using the JSON editor." }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["Alternatively, reset the data to the", ' ', (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }), " that you have defined."] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: reset, children: "Reset props" })] }));
73
+ return (jsx_runtime_1.jsxs("div", { style: errorContainer, children: [
74
+ jsx_runtime_1.jsx("div", { style: errorExplanation, children: "The data does not satisfy the schema:" }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(ZodErrorMessages_1.ZodErrorMessages, { zodValidationResult: zodValidationResult, viewTab: "schema" }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx("div", { style: errorExplanation, children: "Fix the schema using the JSON editor." }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["Alternatively, reset the data to the", ' ', jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "defaultProps" }),
75
+ " that you have defined."] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(Button_1.Button, { onClick: reset, children: "Reset props" })
76
+ ] }));
56
77
  };
57
78
  exports.InvalidSchema = InvalidSchema;
58
79
  const TopLevelZodValue = ({ typeReceived }) => {
59
- return ((0, jsx_runtime_1.jsxs)("div", { style: explainer, children: [(0, jsx_runtime_1.jsxs)("div", { style: errorExplanation, children: ["The top-level type of the schema must be a pure", ' ', (0, jsx_runtime_1.jsx)("code", { style: codeSnippet, children: "z.object" }), ". Instead got a schema of type", ' ', (0, jsx_runtime_1.jsx)("code", { style: codeSnippet, children: typeReceived })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsx)("div", { style: errorExplanation, children: "Fix the schema by changing the top-level Zod type to an object." }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2, block: true }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openDocs, children: "Learn more" })] }));
80
+ return (jsx_runtime_1.jsxs("div", { style: explainer, children: [
81
+ jsx_runtime_1.jsxs("div", { style: errorExplanation, children: ["The top-level type of the schema must be a pure", ' ', jsx_runtime_1.jsx("code", { style: codeSnippet, children: "z.object" }),
82
+ ". Instead got a schema of type", ' ', jsx_runtime_1.jsx("code", { style: codeSnippet, children: typeReceived })
83
+ ] }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 1 }), jsx_runtime_1.jsx("div", { style: errorExplanation, children: "Fix the schema by changing the top-level Zod type to an object." }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 2, block: true }), jsx_runtime_1.jsx(Button_1.Button, { onClick: openDocs, children: "Learn more" })
84
+ ] }));
60
85
  };
61
86
  exports.TopLevelZodValue = TopLevelZodValue;
@@ -40,9 +40,9 @@ const SchemaLabel = ({ jsonPath, isDefaultValue, onReset, onSave, showSaveButton
40
40
  const onClickablePointerLeave = (0, react_1.useCallback)(() => {
41
41
  setClickableButtonHovered(false);
42
42
  }, []);
43
- const labelContent = ((0, jsx_runtime_1.jsxs)("span", { style: labelStyle, children: [(0, get_schema_label_1.getSchemaLabel)(jsonPath), " ", suffix ? suffix : null] }));
44
- return ((0, jsx_runtime_1.jsxs)("div", { style: compactStyles, className: scroll_to_default_props_path_1.DEFAULT_PROPS_PATH_CLASSNAME, "data-json-path": jsonPath.join('.'), children: [handleClick ? (
43
+ const labelContent = (jsx_runtime_1.jsxs("span", { style: labelStyle, children: [(0, get_schema_label_1.getSchemaLabel)(jsonPath), " ", suffix ? suffix : null] }));
44
+ return (jsx_runtime_1.jsxs("div", { style: compactStyles, className: scroll_to_default_props_path_1.DEFAULT_PROPS_PATH_CLASSNAME, "data-json-path": jsonPath.join('.'), children: [handleClick ? (
45
45
  // Minus the padding that a button has (user agent padding-line-start)
46
- (0, jsx_runtime_1.jsx)("button", { onPointerEnter: onClickablePointerEnter, onPointerLeave: onClickablePointerLeave, type: "button", onClick: handleClick, style: { border: 'none', padding: 0 }, children: labelContent })) : (labelContent), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), isDefaultValue ? null : (0, jsx_runtime_1.jsx)(SchemaResetButton_1.SchemaResetButton, { onClick: onReset }), isDefaultValue ? null : showSaveButton ? ((0, jsx_runtime_1.jsx)(SchemaSaveButton_1.SchemaSaveButton, { onClick: onSave, disabled: disableSave })) : null, onRemove ? (0, jsx_runtime_1.jsx)(InlineRemoveButton_1.InlineRemoveButton, { onClick: onRemove }) : null] }));
46
+ jsx_runtime_1.jsx("button", { onPointerEnter: onClickablePointerEnter, onPointerLeave: onClickablePointerLeave, type: "button", onClick: handleClick, style: { border: 'none', padding: 0 }, children: labelContent })) : (labelContent), jsx_runtime_1.jsx(layout_1.Flex, {}), isDefaultValue ? null : jsx_runtime_1.jsx(SchemaResetButton_1.SchemaResetButton, { onClick: onReset }), isDefaultValue ? null : showSaveButton ? (jsx_runtime_1.jsx(SchemaSaveButton_1.SchemaSaveButton, { onClick: onSave, disabled: disableSave })) : null, onRemove ? jsx_runtime_1.jsx(InlineRemoveButton_1.InlineRemoveButton, { onClick: onRemove }) : null] }));
47
47
  };
48
48
  exports.SchemaLabel = SchemaLabel;