@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
@@ -1,16 +1,13 @@
1
- import type { AudioCodec, ChromeMode, Codec, ColorSpace, LogLevel, PixelFormat, StillImageFormat, VideoImageFormat, X264Preset } from '@remotion/renderer';
2
- import type { HardwareAccelerationOption } from '@remotion/renderer/client';
3
- import type { CanUpdateDefaultPropsResponse, EnumPath, RecastCodemod, RenderJob, RequiredChromiumOptions, VisualControlChange } from '@remotion/studio-shared';
4
- import type { _InternalTypes } from 'remotion';
1
+ import type { CanUpdateDefaultPropsResponse, EnumPath, RecastCodemod, RenderJob, VisualControlChange } from '@remotion/studio-shared';
5
2
  export declare const addStillRenderJob: ({ compositionId, outName, imageFormat, jpegQuality, frame, scale, logLevel, chromiumOptions, delayRenderTimeout, envVariables, inputProps, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, multiProcessOnLinux, beepOnFinish, metadata, chromeMode, mediaCacheSizeInBytes, }: {
6
3
  compositionId: string;
7
4
  outName: string;
8
- imageFormat: StillImageFormat;
5
+ imageFormat: "jpeg" | "pdf" | "png" | "webp";
9
6
  jpegQuality: number;
10
7
  frame: number;
11
8
  scale: number;
12
- logLevel: LogLevel;
13
- chromiumOptions: RequiredChromiumOptions;
9
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
10
+ chromiumOptions: Required<import("@remotion/renderer").ChromiumOptions>;
14
11
  delayRenderTimeout: number;
15
12
  envVariables: Record<string, string>;
16
13
  inputProps: Record<string, unknown>;
@@ -19,19 +16,19 @@ export declare const addStillRenderJob: ({ compositionId, outName, imageFormat,
19
16
  multiProcessOnLinux: boolean;
20
17
  beepOnFinish: boolean;
21
18
  metadata: Record<string, string> | null;
22
- chromeMode: ChromeMode;
19
+ chromeMode: "chrome-for-testing" | "headless-shell";
23
20
  mediaCacheSizeInBytes: number | null;
24
21
  }) => Promise<undefined>;
25
22
  export declare const addSequenceRenderJob: ({ compositionId, outName, imageFormat, startFrame, endFrame, scale, logLevel, chromiumOptions, delayRenderTimeout, envVariables, inputProps, concurrency, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, jpegQuality, disallowParallelEncoding, multiProcessOnLinux, beepOnFinish, repro, metadata, chromeMode, mediaCacheSizeInBytes, }: {
26
23
  compositionId: string;
27
24
  outName: string;
28
- imageFormat: VideoImageFormat;
25
+ imageFormat: "jpeg" | "none" | "png";
29
26
  jpegQuality: number;
30
27
  startFrame: number;
31
28
  endFrame: number;
32
29
  scale: number;
33
- logLevel: LogLevel;
34
- chromiumOptions: RequiredChromiumOptions;
30
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
31
+ chromiumOptions: Required<import("@remotion/renderer").ChromiumOptions>;
35
32
  concurrency: number;
36
33
  delayRenderTimeout: number;
37
34
  envVariables: Record<string, string>;
@@ -43,39 +40,39 @@ export declare const addSequenceRenderJob: ({ compositionId, outName, imageForma
43
40
  beepOnFinish: boolean;
44
41
  repro: boolean;
45
42
  metadata: Record<string, string> | null;
46
- chromeMode: ChromeMode;
43
+ chromeMode: "chrome-for-testing" | "headless-shell";
47
44
  mediaCacheSizeInBytes: number | null;
48
45
  }) => Promise<undefined>;
49
46
  export declare const addVideoRenderJob: ({ compositionId, outName, imageFormat, jpegQuality, scale, logLevel, codec, concurrency, crf, startFrame, endFrame, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, audioBitrate, videoBitrate, everyNthFrame, numberOfGifLoops, delayRenderTimeout, audioCodec, disallowParallelEncoding, chromiumOptions, envVariables, inputProps, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, multiProcessOnLinux, encodingMaxRate, encodingBufferSize, beepOnFinish, repro, forSeamlessAacConcatenation, separateAudioTo, metadata, hardwareAcceleration, chromeMode, mediaCacheSizeInBytes, }: {
50
47
  compositionId: string;
51
48
  outName: string;
52
- imageFormat: VideoImageFormat;
49
+ imageFormat: "jpeg" | "none" | "png";
53
50
  jpegQuality: number | null;
54
51
  scale: number;
55
- logLevel: LogLevel;
56
- codec: Codec;
52
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
53
+ codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
57
54
  concurrency: number;
58
55
  crf: number | null;
59
56
  startFrame: number;
60
57
  endFrame: number;
61
58
  muted: boolean;
62
59
  enforceAudioTrack: boolean;
63
- proResProfile: _InternalTypes["ProResProfile"] | null;
64
- x264Preset: X264Preset | null;
65
- pixelFormat: PixelFormat;
60
+ proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | null;
61
+ x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
62
+ pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
66
63
  audioBitrate: string | null;
67
64
  videoBitrate: string | null;
68
65
  everyNthFrame: number;
69
66
  numberOfGifLoops: number | null;
70
67
  delayRenderTimeout: number;
71
- audioCodec: AudioCodec;
68
+ audioCodec: "aac" | "mp3" | "opus" | "pcm-16";
72
69
  disallowParallelEncoding: boolean;
73
- chromiumOptions: RequiredChromiumOptions;
70
+ chromiumOptions: Required<import("@remotion/renderer").ChromiumOptions>;
74
71
  envVariables: Record<string, string>;
75
72
  inputProps: Record<string, unknown>;
76
73
  offthreadVideoCacheSizeInBytes: number | null;
77
74
  offthreadVideoThreads: number | null;
78
- colorSpace: ColorSpace;
75
+ colorSpace: "bt2020-ncl" | "bt601" | "bt709" | "default";
79
76
  multiProcessOnLinux: boolean;
80
77
  encodingMaxRate: string | null;
81
78
  encodingBufferSize: string | null;
@@ -84,8 +81,8 @@ export declare const addVideoRenderJob: ({ compositionId, outName, imageFormat,
84
81
  forSeamlessAacConcatenation: boolean;
85
82
  separateAudioTo: string | null;
86
83
  metadata: Record<string, string> | null;
87
- hardwareAcceleration: HardwareAccelerationOption;
88
- chromeMode: ChromeMode;
84
+ hardwareAcceleration: "disable" | "if-possible" | "required";
85
+ chromeMode: "chrome-for-testing" | "headless-shell";
89
86
  mediaCacheSizeInBytes: number | null;
90
87
  }) => Promise<undefined>;
91
88
  export declare const unsubscribeFromFileExistenceWatcher: ({ file, clientId, }: {
@@ -102,7 +99,7 @@ export declare const openInFileExplorer: ({ directory }: {
102
99
  export declare const applyCodemod: ({ codemod, dryRun, signal, }: {
103
100
  codemod: RecastCodemod;
104
101
  dryRun: boolean;
105
- signal: AbortController["signal"];
102
+ signal: AbortSignal;
106
103
  }) => Promise<import("@remotion/studio-shared").ApplyCodemodResponse>;
107
104
  export declare const removeRenderJob: (job: RenderJob) => Promise<undefined>;
108
105
  export declare const cancelRenderJob: (job: RenderJob) => Promise<import("@remotion/studio-shared").CancelRenderResponse>;
@@ -2,7 +2,6 @@ import type { CompletedClientRender } from '@remotion/studio-shared';
2
2
  import type { RenderStillOnWebImageFormat, WebRendererAudioCodec, WebRendererContainer, WebRendererQuality, WebRendererVideoCodec } from '@remotion/web-renderer';
3
3
  import type { LogLevel } from 'remotion';
4
4
  export type ClientRenderJobProgress = {
5
- renderedFrames: number;
6
5
  encodedFrames: number;
7
6
  totalFrames: number;
8
7
  };
@@ -86,7 +86,7 @@ const RenderQueueContextProvider = ({ children }) => {
86
86
  ? {
87
87
  ...job,
88
88
  status: 'running',
89
- progress: { renderedFrames: 0, encodedFrames: 0, totalFrames: 0 },
89
+ progress: { encodedFrames: 0, totalFrames: 0 },
90
90
  }
91
91
  : job));
92
92
  processJobCallbackRef.current(nextJob);
@@ -228,6 +228,6 @@ const RenderQueueContextProvider = ({ children }) => {
228
228
  cancelClientJob,
229
229
  setProcessJobCallback,
230
230
  ]);
231
- return ((0, jsx_runtime_1.jsx)(exports.RenderQueueContext.Provider, { value: value, children: children }));
231
+ return (jsx_runtime_1.jsx(exports.RenderQueueContext.Provider, { value: value, children: children }));
232
232
  };
233
233
  exports.RenderQueueContextProvider = RenderQueueContextProvider;
@@ -39,6 +39,7 @@ const react_1 = __importStar(require("react"));
39
39
  const remotion_1 = require("remotion");
40
40
  const client_id_1 = require("../../helpers/client-id");
41
41
  const colors_1 = require("../../helpers/colors");
42
+ const show_browser_rendering_1 = require("../../helpers/show-browser-rendering");
42
43
  const is_menu_item_1 = require("../Menu/is-menu-item");
43
44
  const layout_1 = require("../layout");
44
45
  const RenderQueueItem_1 = require("./RenderQueueItem");
@@ -102,14 +103,18 @@ const RenderQueue = () => {
102
103
  }
103
104
  return -1;
104
105
  }, [canvasContent, jobs]);
105
- if (connectionStatus === 'disconnected') {
106
- return ((0, jsx_runtime_1.jsxs)("div", { style: explainer, children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 5 }), (0, jsx_runtime_1.jsx)("div", { style: errorExplanation, children: "The studio server has disconnected." }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2, block: true })] }));
106
+ if (connectionStatus === 'disconnected' && !show_browser_rendering_1.SHOW_BROWSER_RENDERING) {
107
+ return (jsx_runtime_1.jsxs("div", { style: explainer, children: [
108
+ jsx_runtime_1.jsx(layout_1.Spacing, { y: 5 }), jsx_runtime_1.jsx("div", { style: errorExplanation, children: "The studio server has disconnected." }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 2, block: true })
109
+ ] }));
107
110
  }
108
111
  if (jobCount === 0) {
109
- return ((0, jsx_runtime_1.jsxs)("div", { style: explainer, children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 5 }), (0, jsx_runtime_1.jsx)("div", { style: errorExplanation, children: "No renders in the queue." }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2, block: true })] }));
112
+ return (jsx_runtime_1.jsxs("div", { style: explainer, children: [
113
+ jsx_runtime_1.jsx(layout_1.Spacing, { y: 5 }), jsx_runtime_1.jsx("div", { style: errorExplanation, children: "No renders in the queue." }), jsx_runtime_1.jsx(layout_1.Spacing, { y: 2, block: true })
114
+ ] }));
110
115
  }
111
- return ((0, jsx_runtime_1.jsx)("div", { ref: divRef, style: renderQueue, className: ['css-reset', is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME].join(' '), children: jobs.map((j, index) => {
112
- return ((0, jsx_runtime_1.jsx)("div", { style: index === jobs.length - 1 ? undefined : separatorStyle, children: (0, jsx_runtime_1.jsx)(RenderQueueItem_1.RenderQueueItem, { selected: selectedJob === index, job: j }) }, j.id));
116
+ return (jsx_runtime_1.jsx("div", { ref: divRef, style: renderQueue, className: ['css-reset', is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME].join(' '), children: jobs.map((j, index) => {
117
+ return (jsx_runtime_1.jsx("div", { style: index === jobs.length - 1 ? undefined : separatorStyle, children: jsx_runtime_1.jsx(RenderQueueItem_1.RenderQueueItem, { selected: selectedJob === index, job: j }) }, j.id));
113
118
  }) }));
114
119
  };
115
120
  exports.RenderQueue = RenderQueue;
@@ -46,6 +46,8 @@ const RendersTab = ({ selected, onClick }) => {
46
46
  borderColor: colors_1.LIGHT_TEXT,
47
47
  };
48
48
  }, [failedJobs]);
49
- return ((0, jsx_runtime_1.jsx)(Tabs_1.Tab, { selected: isActuallySelected, onClick: onClick, children: (0, jsx_runtime_1.jsxs)("div", { style: row, children: ["Renders", jobCount > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)("div", { style: badgeStyle, children: jobCount })] })) : null] }) }));
49
+ return (jsx_runtime_1.jsx(Tabs_1.Tab, { selected: isActuallySelected, onClick: onClick, children: jsx_runtime_1.jsxs("div", { style: row, children: ["Renders", jobCount > 0 ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
50
+ jsx_runtime_1.jsx(layout_1.Flex, {}), jsx_runtime_1.jsx("div", { style: badgeStyle, children: jobCount })
51
+ ] })) : null] }) }));
50
52
  };
51
53
  exports.RendersTab = RendersTab;
@@ -4,6 +4,6 @@ exports.ResetZoomButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Button_1 = require("./Button");
6
6
  const ResetZoomButton = ({ onClick }) => {
7
- return (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClick, children: "Reset zoom" });
7
+ return jsx_runtime_1.jsx(Button_1.Button, { onClick: onClick, children: "Reset zoom" });
8
8
  };
9
9
  exports.ResetZoomButton = ResetZoomButton;
@@ -21,6 +21,10 @@ const container = {
21
21
  padding: 20,
22
22
  };
23
23
  const RunningCalculateMetadata = () => {
24
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(Spinner_1.Spinner, { size: 24, duration: 1 }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, jsx_runtime_1.jsxs)("div", { style: exports.loaderLabel, children: ["Running ", (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "calculateMetadata()" }), "..."] })] }));
24
+ return (jsx_runtime_1.jsxs("div", { style: container, children: [
25
+ jsx_runtime_1.jsx(Spinner_1.Spinner, { size: 24, duration: 1 }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }), jsx_runtime_1.jsxs("div", { style: exports.loaderLabel, children: ["Running ",
26
+ jsx_runtime_1.jsx("code", { style: styles_1.inlineCodeSnippet, children: "calculateMetadata()" }),
27
+ "..."] })
28
+ ] }));
25
29
  };
26
30
  exports.RunningCalculateMetadata = RunningCalculateMetadata;
@@ -40,8 +40,8 @@ const SegmentedControl = ({ items, needsWrapping }) => {
40
40
  ...container,
41
41
  };
42
42
  }, [needsWrapping]);
43
- return ((0, jsx_runtime_1.jsx)("div", { style: controlStyle, children: items.map((i) => {
44
- return ((0, jsx_runtime_1.jsx)(Item, { onClick: i.onClick, selected: i.selected, children: i.label }, i.key));
43
+ return (jsx_runtime_1.jsx("div", { style: controlStyle, children: items.map((i) => {
44
+ return (jsx_runtime_1.jsx(Item, { onClick: i.onClick, selected: i.selected, children: i.label }, i.key));
45
45
  }) }));
46
46
  };
47
47
  exports.SegmentedControl = SegmentedControl;
@@ -61,5 +61,5 @@ const Item = ({ selected, onClick, children }) => {
61
61
  color: selected ? 'white' : hovered ? 'white' : colors_1.LIGHT_TEXT,
62
62
  };
63
63
  }, [hovered, selected]);
64
- return ((0, jsx_runtime_1.jsx)("button", { type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: itemStyle, tabIndex: tabIndex, onClick: onClick, children: children }));
64
+ return (jsx_runtime_1.jsx("button", { type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: itemStyle, tabIndex: tabIndex, onClick: onClick, children: children }));
65
65
  };
@@ -15,6 +15,6 @@ const SetTimelineInOutProvider = ({ children }) => {
15
15
  (0, react_1.useEffect)(() => {
16
16
  (0, marks_1.persistMarks)(inAndOutFrames);
17
17
  }, [inAndOutFrames]);
18
- return ((0, jsx_runtime_1.jsx)(in_out_1.TimelineInOutContext.Provider, { value: inAndOutFrames, children: (0, jsx_runtime_1.jsx)(in_out_1.SetTimelineInOutContext.Provider, { value: setTimelineInOutContextValue, children: children }) }));
18
+ return (jsx_runtime_1.jsx(in_out_1.TimelineInOutContext.Provider, { value: inAndOutFrames, children: jsx_runtime_1.jsx(in_out_1.SetTimelineInOutContext.Provider, { value: setTimelineInOutContextValue, children: children }) }));
19
19
  };
20
20
  exports.SetTimelineInOutProvider = SetTimelineInOutProvider;
@@ -38,6 +38,6 @@ const ShowGuidesProvider = ({ children }) => {
38
38
  selectedGuideId,
39
39
  hoveredGuideId,
40
40
  ]);
41
- return ((0, jsx_runtime_1.jsx)(editor_guides_1.EditorShowGuidesContext.Provider, { value: editorShowGuidesCtx, children: children }));
41
+ return (jsx_runtime_1.jsx(editor_guides_1.EditorShowGuidesContext.Provider, { value: editorShowGuidesCtx, children: children }));
42
42
  };
43
43
  exports.ShowGuidesProvider = ShowGuidesProvider;
@@ -19,6 +19,6 @@ const ShowRulersProvider = ({ children }) => {
19
19
  setEditorShowRulers,
20
20
  };
21
21
  }, [editorShowRulers, setEditorShowRulers]);
22
- return ((0, jsx_runtime_1.jsx)(editor_rulers_1.EditorShowRulersContext.Provider, { value: editorShowRulersCtx, children: children }));
22
+ return (jsx_runtime_1.jsx(editor_rulers_1.EditorShowRulersContext.Provider, { value: editorShowRulersCtx, children: children }));
23
23
  };
24
24
  exports.ShowRulersProvider = ShowRulersProvider;
@@ -128,11 +128,13 @@ const SidebarCollapserControls = () => {
128
128
  };
129
129
  }, []);
130
130
  const toggleLeftAction = (0, react_1.useCallback)((color) => {
131
- return ((0, jsx_runtime_1.jsx)("div", { style: colorStyle(color), title: toggleLeftTooltip, children: (0, jsx_runtime_1.jsx)("div", { style: leftIcon(color) }) }));
131
+ return (jsx_runtime_1.jsx("div", { style: colorStyle(color), title: toggleLeftTooltip, children: jsx_runtime_1.jsx("div", { style: leftIcon(color) }) }));
132
132
  }, [colorStyle, leftIcon, toggleLeftTooltip]);
133
133
  const toggleRightAction = (0, react_1.useCallback)((color) => {
134
- return ((0, jsx_runtime_1.jsx)("div", { style: colorStyle(color), title: toggleRightTooltip, children: (0, jsx_runtime_1.jsx)("div", { style: rightIcon(color) }) }));
134
+ return (jsx_runtime_1.jsx("div", { style: colorStyle(color), title: toggleRightTooltip, children: jsx_runtime_1.jsx("div", { style: rightIcon(color) }) }));
135
135
  }, [colorStyle, rightIcon, toggleRightTooltip]);
136
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(InlineAction_1.InlineAction, { onClick: toggleLeft, renderAction: toggleLeftAction }), (0, jsx_runtime_1.jsx)(InlineAction_1.InlineAction, { onClick: toggleRight, renderAction: toggleRightAction })] }));
136
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
137
+ jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: toggleLeft, renderAction: toggleLeftAction }), jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: toggleRight, renderAction: toggleRightAction })
138
+ ] }));
137
139
  };
138
140
  exports.SidebarCollapserControls = SidebarCollapserControls;
@@ -93,11 +93,11 @@ const SidebarRenderButton = ({ composition, visible }) => {
93
93
  setSidebarCollapsedState,
94
94
  ]);
95
95
  const renderAction = (0, react_1.useCallback)((color) => {
96
- return (0, jsx_runtime_1.jsx)(render_1.ThinRenderIcon, { fill: color, svgProps: iconStyle });
96
+ return jsx_runtime_1.jsx(render_1.ThinRenderIcon, { fill: color, svgProps: iconStyle });
97
97
  }, [iconStyle]);
98
98
  if (!visible || connectionStatus !== 'connected') {
99
99
  return null;
100
100
  }
101
- return (0, jsx_runtime_1.jsx)(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick });
101
+ return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick });
102
102
  };
103
103
  exports.SidebarRenderButton = SidebarRenderButton;
@@ -105,7 +105,7 @@ const SizeSelector = () => {
105
105
  type: 'item',
106
106
  value: newSize.size,
107
107
  keyHint: newSize.size === 'auto' ? '0' : null,
108
- leftItem: String(size.size) === String(newSize.size) ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
108
+ leftItem: String(size.size) === String(newSize.size) ? jsx_runtime_1.jsx(Checkmark_1.Checkmark, {}) : null,
109
109
  subMenu: null,
110
110
  quickSwitcherLabel: null,
111
111
  };
@@ -114,6 +114,6 @@ const SizeSelector = () => {
114
114
  if (!zoomable) {
115
115
  return null;
116
116
  }
117
- return ((0, jsx_runtime_1.jsx)("div", { style: style, "aria-label": accessibilityLabel, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: accessibilityLabel, style: comboStyle, selectedId: String(size.size), values: items }) }));
117
+ return (jsx_runtime_1.jsx("div", { style: style, "aria-label": accessibilityLabel, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { title: accessibilityLabel, style: comboStyle, selectedId: String(size.size), values: items }) }));
118
118
  };
119
119
  exports.SizeSelector = SizeSelector;
@@ -17,7 +17,8 @@ const Spinner = ({ size, duration }) => {
17
17
  height: size,
18
18
  };
19
19
  }, [size]);
20
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("style", { type: "text/css", children: `
20
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
21
+ jsx_runtime_1.jsx("style", { type: "text/css", children: `
21
22
  @keyframes ${remotionSpinnerAnimation} {
22
23
  0% {
23
24
  opacity: 1;
@@ -30,12 +31,13 @@ const Spinner = ({ size, duration }) => {
30
31
  .${className} {
31
32
  animation: ${remotionSpinnerAnimation} ${duration}s linear infinite;
32
33
  }
33
- ` }), (0, jsx_runtime_1.jsx)("svg", { style: style, viewBox: `0 0 ${viewBox} ${viewBox}`, children: new Array(lines).fill(true).map((_, index) => {
34
- return ((0, jsx_runtime_1.jsx)("path", { className: className, style: {
34
+ ` }), jsx_runtime_1.jsx("svg", { style: style, viewBox: `0 0 ${viewBox} ${viewBox}`, children: new Array(lines).fill(true).map((_, index) => {
35
+ return (jsx_runtime_1.jsx("path", { className: className, style: {
35
36
  rotate: `${(index * Math.PI * 2) / lines}rad`,
36
37
  transformOrigin: 'center center',
37
38
  animationDelay: `${index * (duration / lines) - duration}s`,
38
39
  }, d: translated, fill: colors_1.LIGHT_TEXT }, index));
39
- }) })] }));
40
+ }) })
41
+ ] }));
40
42
  };
41
43
  exports.Spinner = Spinner;
@@ -46,6 +46,6 @@ const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFle
46
46
  persistFlex,
47
47
  ref,
48
48
  ]);
49
- return ((0, jsx_runtime_1.jsx)(SplitterContext_1.SplitterContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)("div", { ref: ref, style: orientation === 'horizontal' ? exports.containerColumn : containerRow, children: children }) }));
49
+ return (jsx_runtime_1.jsx(SplitterContext_1.SplitterContext.Provider, { value: value, children: jsx_runtime_1.jsx("div", { ref: ref, style: orientation === 'horizontal' ? exports.containerColumn : containerRow, children: children }) }));
50
50
  };
51
51
  exports.SplitterContainer = SplitterContainer;
@@ -27,6 +27,8 @@ const SplitterElement = ({ children, type, sticky }) => {
27
27
  backgroundColor: (0, remotion_1.interpolateColors)((0, remotion_1.random)(context.flexValue), [0, 1], ['red', 'blue']),
28
28
  };
29
29
  }, [context.flexValue, type]);
30
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: style, children: children }), (0, jsx_runtime_1.jsx)("div", { style: stickStyle, children: sticky !== null && sticky !== void 0 ? sticky : null })] }));
30
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
31
+ jsx_runtime_1.jsx("div", { style: style, children: children }), jsx_runtime_1.jsx("div", { style: stickStyle, children: sticky !== null && sticky !== void 0 ? sticky : null })
32
+ ] }));
31
33
  };
32
34
  exports.SplitterElement = SplitterElement;
@@ -144,7 +144,7 @@ const SplitterHandle = ({ allowToCollapse, onCollapse }) => {
144
144
  window.removeEventListener('mouseup', onMouseUp);
145
145
  };
146
146
  }, []);
147
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: [
147
+ return (jsx_runtime_1.jsx("div", { ref: ref, className: [
148
148
  'remotion-splitter',
149
149
  context.orientation === 'horizontal'
150
150
  ? 'remotion-splitter-horizontal'
@@ -4,11 +4,11 @@ exports.StaticFilePreview = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const remotion_1 = require("remotion");
7
- const get_static_files_1 = require("../api/get-static-files");
8
7
  const client_id_1 = require("../helpers/client-id");
9
8
  const colors_1 = require("../helpers/colors");
10
9
  const FilePreview_1 = require("./FilePreview");
11
10
  const Preview_1 = require("./Preview");
11
+ const use_static_files_1 = require("./use-static-files");
12
12
  const msgStyle = {
13
13
  fontSize: 13,
14
14
  color: 'white',
@@ -23,19 +23,19 @@ const errMsgStyle = {
23
23
  const StaticFilePreview = ({ currentAsset, assetMetadata }) => {
24
24
  const fileType = (0, Preview_1.getPreviewFileType)(currentAsset);
25
25
  const staticFileSrc = (0, remotion_1.staticFile)(currentAsset);
26
- const staticFiles = (0, get_static_files_1.getStaticFiles)();
26
+ const staticFiles = (0, use_static_files_1.useStaticFiles)();
27
27
  const connectionStatus = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx)
28
28
  .previewServerState.type;
29
29
  const exists = staticFiles.find((file) => file.name === currentAsset);
30
30
  if (connectionStatus === 'disconnected') {
31
- return (0, jsx_runtime_1.jsx)("div", { style: errMsgStyle, children: "Studio server disconnected" });
31
+ return jsx_runtime_1.jsx("div", { style: errMsgStyle, children: "Studio server disconnected" });
32
32
  }
33
33
  if (!exists) {
34
- return ((0, jsx_runtime_1.jsxs)("div", { style: errMsgStyle, children: [currentAsset, " does not exist in your public folder."] }));
34
+ return (jsx_runtime_1.jsxs("div", { style: errMsgStyle, children: [currentAsset, " does not exist in your public folder."] }));
35
35
  }
36
36
  if (!currentAsset) {
37
37
  return null;
38
38
  }
39
- return ((0, jsx_runtime_1.jsx)(FilePreview_1.FilePreview, { currentAsset: currentAsset, fileType: fileType, src: `${staticFileSrc}?date=${assetMetadata && assetMetadata.type === 'found' ? assetMetadata.fetchedAt : 0}`, assetMetadata: assetMetadata }));
39
+ return (jsx_runtime_1.jsx(FilePreview_1.FilePreview, { currentAsset: currentAsset, fileType: fileType, src: `${staticFileSrc}?date=${assetMetadata && assetMetadata.type === 'found' ? assetMetadata.fetchedAt : 0}`, assetMetadata: assetMetadata }));
40
40
  };
41
41
  exports.StaticFilePreview = StaticFilePreview;
@@ -16,7 +16,7 @@ const Tabs = ({ children, style }) => {
16
16
  ...style,
17
17
  };
18
18
  }, [style]);
19
- return (0, jsx_runtime_1.jsx)("div", { style: definiteStyle, children: children });
19
+ return jsx_runtime_1.jsx("div", { style: definiteStyle, children: children });
20
20
  };
21
21
  exports.Tabs = Tabs;
22
22
  const selectorButton = {
@@ -53,6 +53,6 @@ const Tab = ({ children, onClick, style, selected }) => {
53
53
  boxShadow: selected ? 'none' : undefined,
54
54
  ...style,
55
55
  }), [hovered, selected, style]);
56
- return ((0, jsx_runtime_1.jsx)("div", { style: definiteStyle, role: "button", onClick: onClick, tabIndex: tabIndex, onPointerLeave: onPointerLeave, onPointerEnter: onPointerEnter, children: children }));
56
+ return (jsx_runtime_1.jsx("div", { style: definiteStyle, role: "button", onClick: onClick, tabIndex: tabIndex, onPointerLeave: onPointerLeave, onPointerEnter: onPointerEnter, children: children }));
57
57
  };
58
58
  exports.Tab = Tab;
@@ -38,6 +38,6 @@ const VerticalTab = ({ children, onClick, style, selected }) => {
38
38
  ...style,
39
39
  };
40
40
  }, [hovered, selected, style]);
41
- return ((0, jsx_runtime_1.jsx)("button", { style: definiteStyle, type: "button", onClick: onClick, tabIndex: tabIndex, onPointerLeave: onPointerLeave, onPointerEnter: onPointerEnter, children: children }));
41
+ return (jsx_runtime_1.jsx("button", { style: definiteStyle, type: "button", onClick: onClick, tabIndex: tabIndex, onPointerLeave: onPointerLeave, onPointerEnter: onPointerEnter, children: children }));
42
42
  };
43
43
  exports.VerticalTab = VerticalTab;
@@ -21,6 +21,6 @@ const TextViewer = ({ src }) => {
21
21
  setTxt(text);
22
22
  });
23
23
  }, [src]);
24
- return (0, jsx_runtime_1.jsxs)("div", { style: textStyle, children: [txt, " "] });
24
+ return jsx_runtime_1.jsxs("div", { style: textStyle, children: [txt, " "] });
25
25
  };
26
26
  exports.TextViewer = TextViewer;
@@ -82,6 +82,8 @@ const TimeValue = () => {
82
82
  if (isStill) {
83
83
  return null;
84
84
  }
85
- return ((0, jsx_runtime_1.jsxs)("div", { style: text, children: [(0, jsx_runtime_1.jsx)("div", { style: time, children: (0, render_frame_1.renderFrame)(frame, config.fps) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { ref: ref, value: frame, onTextChange: onTextChange, onValueChange: onValueChange, rightAlign: true, status: "ok", style: frameStyle })] }));
85
+ return (jsx_runtime_1.jsxs("div", { style: text, children: [
86
+ jsx_runtime_1.jsx("div", { style: time, children: (0, render_frame_1.renderFrame)(frame, config.fps) }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }), jsx_runtime_1.jsx(layout_1.Flex, {}), jsx_runtime_1.jsx(InputDragger_1.InputDragger, { ref: ref, value: frame, onTextChange: onTextChange, onValueChange: onValueChange, rightAlign: true, status: "ok", style: frameStyle })
87
+ ] }));
86
88
  };
87
89
  exports.TimeValue = TimeValue;
@@ -13,7 +13,7 @@ const width = {
13
13
  const icon = {
14
14
  height: 12,
15
15
  };
16
- const Icon = () => ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", style: icon, children: (0, jsx_runtime_1.jsx)("path", { fill: colors_1.LIGHT_COLOR, d: "M512 256c0 88.224-71.775 160-160 160H170.067l34.512 32.419c9.875 9.276 10.119 24.883.539 34.464l-10.775 10.775c-9.373 9.372-24.568 9.372-33.941 0l-92.686-92.686c-9.373-9.373-9.373-24.568 0-33.941l92.686-92.686c9.373-9.373 24.568-9.373 33.941 0l10.775 10.775c9.581 9.581 9.337 25.187-.539 34.464L170.067 352H352c52.935 0 96-43.065 96-96 0-13.958-2.996-27.228-8.376-39.204-4.061-9.039-2.284-19.626 4.723-26.633l12.183-12.183c11.499-11.499 30.965-8.526 38.312 5.982C505.814 205.624 512 230.103 512 256zM72.376 295.204C66.996 283.228 64 269.958 64 256c0-52.935 43.065-96 96-96h181.933l-34.512 32.419c-9.875 9.276-10.119 24.883-.539 34.464l10.775 10.775c9.373 9.372 24.568 9.372 33.941 0l92.686-92.686c9.373-9.373 9.373-24.568 0-33.941l-92.686-92.686c-9.373-9.373-24.568-9.373-33.941 0L306.882 29.12c-9.581 9.581-9.337 25.187.539 34.464L341.933 96H160C71.775 96 0 167.776 0 256c0 25.897 6.186 50.376 17.157 72.039 7.347 14.508 26.813 17.481 38.312 5.982l12.183-12.183c7.008-7.008 8.786-17.595 4.724-26.634z" }) }));
16
+ const Icon = () => (jsx_runtime_1.jsx("svg", { viewBox: "0 0 512 512", style: icon, children: jsx_runtime_1.jsx("path", { fill: colors_1.LIGHT_COLOR, d: "M512 256c0 88.224-71.775 160-160 160H170.067l34.512 32.419c9.875 9.276 10.119 24.883.539 34.464l-10.775 10.775c-9.373 9.372-24.568 9.372-33.941 0l-92.686-92.686c-9.373-9.373-9.373-24.568 0-33.941l92.686-92.686c9.373-9.373 24.568-9.373 33.941 0l10.775 10.775c9.581 9.581 9.337 25.187-.539 34.464L170.067 352H352c52.935 0 96-43.065 96-96 0-13.958-2.996-27.228-8.376-39.204-4.061-9.039-2.284-19.626 4.723-26.633l12.183-12.183c11.499-11.499 30.965-8.526 38.312 5.982C505.814 205.624 512 230.103 512 256zM72.376 295.204C66.996 283.228 64 269.958 64 256c0-52.935 43.065-96 96-96h181.933l-34.512 32.419c-9.875 9.276-10.119 24.883-.539 34.464l10.775 10.775c9.373 9.372 24.568 9.372 33.941 0l92.686-92.686c9.373-9.373 9.373-24.568 0-33.941l-92.686-92.686c-9.373-9.373-24.568-9.373-33.941 0L306.882 29.12c-9.581 9.581-9.337 25.187.539 34.464L341.933 96H160C71.775 96 0 167.776 0 256c0 25.897 6.186 50.376 17.157 72.039 7.347 14.508 26.813 17.481 38.312 5.982l12.183-12.183c7.008-7.008 8.786-17.595 4.724-26.634z" }) }));
17
17
  const topLine = {
18
18
  top: 0,
19
19
  height: 2,
@@ -39,6 +39,8 @@ const bottomContainer = {
39
39
  alignItems: 'center',
40
40
  };
41
41
  const LoopedIndicator = () => {
42
- return ((0, jsx_runtime_1.jsxs)("div", { style: width, children: [(0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: topContainer, children: (0, jsx_runtime_1.jsx)("div", { style: topLine }) }), (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: bottomContainer, children: (0, jsx_runtime_1.jsx)("div", { style: bottomLine }) }), (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: centerContainer, children: (0, jsx_runtime_1.jsx)(Icon, {}) })] }));
42
+ return (jsx_runtime_1.jsxs("div", { style: width, children: [
43
+ jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: topContainer, children: jsx_runtime_1.jsx("div", { style: topLine }) }), jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: bottomContainer, children: jsx_runtime_1.jsx("div", { style: bottomLine }) }), jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: centerContainer, children: jsx_runtime_1.jsx(Icon, {}) })
44
+ ] }));
43
45
  };
44
46
  exports.LoopedIndicator = LoopedIndicator;
@@ -14,10 +14,11 @@ const row = {
14
14
  };
15
15
  const LoopedTimelineIndicator = ({ loops }) => {
16
16
  const leftOver = loops % 1;
17
- return ((0, jsx_runtime_1.jsxs)(remotion_1.AbsoluteFill, { style: row, children: [new Array(Math.floor(loops)).fill(true).map((_l, i) => {
18
- return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment
17
+ return (jsx_runtime_1.jsxs(remotion_1.AbsoluteFill, { style: row, children: [new Array(Math.floor(loops)).fill(true).map((_l, i) => {
18
+ return (jsx_runtime_1.jsxs(react_1.default.Fragment
19
19
  // eslint-disable-next-line
20
- , { children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, {}), i === loops - 1 ? null : (0, jsx_runtime_1.jsx)(LoopedIndicator_1.LoopedIndicator, {})] }, i));
21
- }), leftOver > 0 ? (0, jsx_runtime_1.jsx)("div", { style: { flex: leftOver } }) : null] }));
20
+ , { children: [
21
+ jsx_runtime_1.jsx(layout_1.Flex, {}), i === loops - 1 ? null : jsx_runtime_1.jsx(LoopedIndicator_1.LoopedIndicator, {})] }, i));
22
+ }), leftOver > 0 ? jsx_runtime_1.jsx("div", { style: { flex: leftOver } }) : null] }));
22
23
  };
23
24
  exports.LoopedTimelineIndicator = LoopedTimelineIndicator;
@@ -20,6 +20,6 @@ const container = {
20
20
  paddingLeft: timeline_layout_1.TIMELINE_PADDING + 5,
21
21
  };
22
22
  const MaxTimelineTracksReached = () => {
23
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: ["Limited display to ", exports.MAX_TIMELINE_TRACKS, " tracks to sustain performance.", '', "You can change this by setting Config.setMaxTimelineTracks() in your remotion.config.ts file."] }));
23
+ return (jsx_runtime_1.jsxs("div", { style: container, children: ["Limited display to ", exports.MAX_TIMELINE_TRACKS, " tracks to sustain performance.", '', "You can change this by setting Config.setMaxTimelineTracks() in your remotion.config.ts file."] }));
24
24
  };
25
25
  exports.MaxTimelineTracksReached = MaxTimelineTracksReached;
@@ -71,6 +71,10 @@ const Timeline = () => {
71
71
  overflowX: 'hidden',
72
72
  };
73
73
  }, [hasBeenCut, shown]);
74
- return ((0, jsx_runtime_1.jsx)("div", { ref: timeline_refs_1.timelineVerticalScroll, style: container, className: 'css-reset ' + is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: (0, jsx_runtime_1.jsx)(TimelineWidthProvider_1.TimelineWidthProvider, { children: (0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsxs)(SplitterContainer_1.SplitterContainer, { orientation: "vertical", defaultFlex: 0.2, id: "names-to-timeline", maxFlex: 0.5, minFlex: 0.15, children: [(0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "flexer", sticky: (0, jsx_runtime_1.jsx)(TimelineTimeIndicators_1.TimelineTimePlaceholders, {}), children: (0, jsx_runtime_1.jsx)(TimelineList_1.TimelineList, { timeline: shown }) }), (0, jsx_runtime_1.jsx)(SplitterHandle_1.SplitterHandle, { onCollapse: noop, allowToCollapse: "none" }), (0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "anti-flexer", sticky: null, children: (0, jsx_runtime_1.jsxs)(TimelineScrollable_1.TimelineScrollable, { children: [(0, jsx_runtime_1.jsx)(TimelineTracks_1.TimelineTracks, { timeline: shown, hasBeenCut: hasBeenCut }), (0, jsx_runtime_1.jsx)(TimelineInOutPointer_1.TimelineInOutPointer, {}), (0, jsx_runtime_1.jsx)(TimelinePlayCursorSyncer_1.TimelinePlayCursorSyncer, {}), (0, jsx_runtime_1.jsx)(TimelineDragHandler_1.TimelineDragHandler, {}), (0, jsx_runtime_1.jsx)(TimelineTimeIndicators_1.TimelineTimeIndicators, {}), (0, jsx_runtime_1.jsx)(TimelineSlider_1.TimelineSlider, {})] }) })] }) }) }) }));
74
+ return (jsx_runtime_1.jsx("div", { ref: timeline_refs_1.timelineVerticalScroll, style: container, className: 'css-reset ' + is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: jsx_runtime_1.jsx(TimelineWidthProvider_1.TimelineWidthProvider, { children: jsx_runtime_1.jsx("div", { style: inner, children: jsx_runtime_1.jsxs(SplitterContainer_1.SplitterContainer, { orientation: "vertical", defaultFlex: 0.2, id: "names-to-timeline", maxFlex: 0.5, minFlex: 0.15, children: [
75
+ jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { type: "flexer", sticky: jsx_runtime_1.jsx(TimelineTimeIndicators_1.TimelineTimePlaceholders, {}), children: jsx_runtime_1.jsx(TimelineList_1.TimelineList, { timeline: shown }) }), jsx_runtime_1.jsx(SplitterHandle_1.SplitterHandle, { onCollapse: noop, allowToCollapse: "none" }), jsx_runtime_1.jsx(SplitterElement_1.SplitterElement, { type: "anti-flexer", sticky: null, children: jsx_runtime_1.jsxs(TimelineScrollable_1.TimelineScrollable, { children: [
76
+ jsx_runtime_1.jsx(TimelineTracks_1.TimelineTracks, { timeline: shown, hasBeenCut: hasBeenCut }), jsx_runtime_1.jsx(TimelineInOutPointer_1.TimelineInOutPointer, {}), jsx_runtime_1.jsx(TimelinePlayCursorSyncer_1.TimelinePlayCursorSyncer, {}), jsx_runtime_1.jsx(TimelineDragHandler_1.TimelineDragHandler, {}), jsx_runtime_1.jsx(TimelineTimeIndicators_1.TimelineTimeIndicators, {}), jsx_runtime_1.jsx(TimelineSlider_1.TimelineSlider, {})
77
+ ] }) })
78
+ ] }) }) }) }));
75
79
  };
76
80
  exports.Timeline = Timeline;
@@ -10,9 +10,9 @@ const container = {
10
10
  alignItems: 'center',
11
11
  };
12
12
  const Icon = ({ color, ...props }) => {
13
- return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 8 10", ...props, style: { height: 10, width: 8 }, children: (0, jsx_runtime_1.jsx)("path", { d: "M 0 0 L 8 5 L 0 10 z", fill: color }) }));
13
+ return (jsx_runtime_1.jsx("svg", { viewBox: "0 0 8 10", ...props, style: { height: 10, width: 8 }, children: jsx_runtime_1.jsx("path", { d: "M 0 0 L 8 5 L 0 10 z", fill: color }) }));
14
14
  };
15
15
  const TimelineCollapseToggle = ({ collapsed, color }) => {
16
- return ((0, jsx_runtime_1.jsx)("div", { style: collapsed ? container : { ...container, transform: 'rotate(90deg)' }, children: (0, jsx_runtime_1.jsx)(Icon, { color: color }) }));
16
+ return (jsx_runtime_1.jsx("div", { style: collapsed ? container : { ...container, transform: 'rotate(90deg)' }, children: jsx_runtime_1.jsx(Icon, { color: color }) }));
17
17
  };
18
18
  exports.TimelineCollapseToggle = TimelineCollapseToggle;
@@ -58,11 +58,12 @@ const TimelineDragHandler = () => {
58
58
  if (!canvasContent || canvasContent.type !== 'composition') {
59
59
  return null;
60
60
  }
61
- return ((0, jsx_runtime_1.jsx)("div", { ref: timeline_refs_1.sliderAreaRef, style: containerStyle, children: video ? (0, jsx_runtime_1.jsx)(Inner, {}) : null }));
61
+ return (jsx_runtime_1.jsx("div", { ref: timeline_refs_1.sliderAreaRef, style: containerStyle, children: video ? jsx_runtime_1.jsx(Inner, {}) : null }));
62
62
  };
63
63
  exports.TimelineDragHandler = TimelineDragHandler;
64
64
  const Inner = () => {
65
- var _a, _b, _c;
65
+ var _a;
66
+ var _b, _c;
66
67
  const videoConfig = (0, remotion_1.useVideoConfig)();
67
68
  const size = player_1.PlayerInternals.useElementSize(timeline_refs_1.scrollableRef, {
68
69
  triggerOnWindowResize: true,
@@ -456,5 +457,6 @@ const Inner = () => {
456
457
  },
457
458
  ];
458
459
  }, [setInAndOutFrames, videoConfig.id]);
459
- return ((0, jsx_runtime_1.jsxs)("div", { style: style, onPointerDown: onPointerDown, children: [(0, jsx_runtime_1.jsx)("div", { style: inner, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME }), inFrame !== null && ((0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, { values: inContextMenu, children: (0, jsx_runtime_1.jsx)(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "in", atFrame: inFrame, dragging: inOutDragging.dragging === 'in' }) })), outFrame !== null && ((0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, { values: outContextMenu, children: (0, jsx_runtime_1.jsx)(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "out", dragging: inOutDragging.dragging === 'out', atFrame: outFrame }) }))] }));
460
+ return (jsx_runtime_1.jsxs("div", { style: style, onPointerDown: onPointerDown, children: [
461
+ jsx_runtime_1.jsx("div", { style: inner, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME }), inFrame !== null && (jsx_runtime_1.jsx(ContextMenu_1.ContextMenu, { values: inContextMenu, children: jsx_runtime_1.jsx(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "in", atFrame: inFrame, dragging: inOutDragging.dragging === 'in' }) })), outFrame !== null && (jsx_runtime_1.jsx(ContextMenu_1.ContextMenu, { values: outContextMenu, children: jsx_runtime_1.jsx(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "out", dragging: inOutDragging.dragging === 'out', atFrame: outFrame }) }))] }));
460
462
  };
@@ -23,11 +23,11 @@ const TimelineInOutPointer = () => {
23
23
  if (!videoConfig || timelineWidth === null) {
24
24
  return null;
25
25
  }
26
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [inFrame !== null && ((0, jsx_runtime_1.jsx)("div", { ref: exports.inMarkerAreaRef, style: {
26
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [inFrame !== null && (jsx_runtime_1.jsx("div", { ref: exports.inMarkerAreaRef, style: {
27
27
  ...areaHighlight,
28
28
  left: 0,
29
29
  width: (0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(inFrame, videoConfig.durationInFrames, timelineWidth),
30
- } })), outFrame !== null && ((0, jsx_runtime_1.jsx)("div", { ref: exports.outMarkerAreaRef, style: {
30
+ } })), outFrame !== null && (jsx_runtime_1.jsx("div", { ref: exports.outMarkerAreaRef, style: {
31
31
  ...areaHighlight,
32
32
  left: (0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(outFrame, videoConfig.durationInFrames, timelineWidth),
33
33
  width: timelineWidth -
@@ -29,7 +29,7 @@ const InnerTimelineInOutPointerHandle = ({ atFrame, dragging, timelineWidth, typ
29
29
  transform: `translateX(${(0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(atFrame, videoConfig.durationInFrames, timelineWidth)}px)`,
30
30
  };
31
31
  }, [atFrame, dragging, timelineWidth, videoConfig.durationInFrames]);
32
- return ((0, jsx_runtime_1.jsx)("div", { ref: type === 'in' ? exports.inPointerHandle : exports.outPointerHandle, style: style }));
32
+ return (jsx_runtime_1.jsx("div", { ref: type === 'in' ? exports.inPointerHandle : exports.outPointerHandle, style: style }));
33
33
  };
34
34
  const TimelineInOutPointerHandle = ({ dragging, type, atFrame, }) => {
35
35
  const timelineWidth = (0, react_1.useContext)(TimelineWidthProvider_1.TimelineWidthContext);
@@ -38,6 +38,6 @@ const TimelineInOutPointerHandle = ({ dragging, type, atFrame, }) => {
38
38
  if (timelineWidth === null) {
39
39
  return null;
40
40
  }
41
- return ((0, jsx_runtime_1.jsx)(InnerTimelineInOutPointerHandle, { atFrame: atFrame, dragging: dragging, timelineWidth: timelineWidth, type: type }));
41
+ return (jsx_runtime_1.jsx(InnerTimelineInOutPointerHandle, { atFrame: atFrame, dragging: dragging, timelineWidth: timelineWidth, type: type }));
42
42
  };
43
43
  exports.TimelineInOutPointerHandle = TimelineInOutPointerHandle;