@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
@@ -244,9 +244,9 @@ const MenuContent = ({ onHide, values, preselectIndex, onNextMenu, onPreviousMen
244
244
  current.addEventListener('pointerleave', onPointerLeave);
245
245
  return () => current.removeEventListener('pointerleave', onPointerLeave);
246
246
  }, [onHide, subMenuActivated]);
247
- return ((0, jsx_runtime_1.jsx)("div", { ref: containerRef, style: containerWithHeight, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: values.map((item) => {
247
+ return (jsx_runtime_1.jsx("div", { ref: containerRef, style: containerWithHeight, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: values.map((item) => {
248
248
  if (item.type === 'divider') {
249
- return (0, jsx_runtime_1.jsx)(MenuDivider_1.MenuDivider, {}, item.id);
249
+ return jsx_runtime_1.jsx(MenuDivider_1.MenuDivider, {}, item.id);
250
250
  }
251
251
  const onClick = (id, e) => {
252
252
  item.onClick(id, e);
@@ -255,7 +255,7 @@ const MenuContent = ({ onHide, values, preselectIndex, onNextMenu, onPreviousMen
255
255
  }
256
256
  onHide();
257
257
  };
258
- return ((0, jsx_runtime_1.jsx)(MenuSubItem_1.MenuSubItem, { selected: item.id === selectedItem, onActionChosen: onClick, onItemSelected: onItemSelected, label: item.label, id: item.id, keyHint: item.keyHint, leaveLeftSpace: leaveLeftSpace, leftItem: item.leftItem, subMenu: item.subMenu, onQuitMenu: onHide, onNextMenu: onNextMenu, subMenuActivated: subMenuActivated, setSubMenuActivated: setSubMenuActivated, disabled: item.disabled }, item.id));
258
+ return (jsx_runtime_1.jsx(MenuSubItem_1.MenuSubItem, { selected: item.id === selectedItem, onActionChosen: onClick, onItemSelected: onItemSelected, label: item.label, id: item.id, keyHint: item.keyHint, leaveLeftSpace: leaveLeftSpace, leftItem: item.leftItem, subMenu: item.subMenu, onQuitMenu: onHide, onNextMenu: onNextMenu, subMenuActivated: subMenuActivated, setSubMenuActivated: setSubMenuActivated, disabled: item.disabled }, item.id));
259
259
  }) }));
260
260
  };
261
261
  exports.MenuContent = MenuContent;
@@ -16,8 +16,13 @@ const NewCompDuration = ({ durationInFrames, setDurationInFrames }) => {
16
16
  setDurationInFrames(newVal);
17
17
  }, [setDurationInFrames]);
18
18
  const compDurationErrMessage = (0, validate_new_comp_data_1.validateCompositionDuration)(durationInFrames);
19
- return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Duration in frames" }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.rightRow, children: [(0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { type: "number", value: durationInFrames, onTextChange: onDurationInFramesChanged, placeholder: "Duration (frames)", name: "durationInFrames", min: 1, step: 1, required: true, status: "ok",
19
+ return (jsx_runtime_1.jsxs("div", { style: layout_1.optionRow, children: [
20
+ jsx_runtime_1.jsx("div", { style: layout_1.label, children: "Duration in frames" }), jsx_runtime_1.jsxs("div", { style: layout_1.rightRow, children: [
21
+ jsx_runtime_1.jsx(InputDragger_1.InputDragger, { type: "number", value: durationInFrames, onTextChange: onDurationInFramesChanged, placeholder: "Duration (frames)", name: "durationInFrames", min: 1, step: 1, required: true, status: "ok",
20
22
  // Hitting Promise.all() limit in Chrome
21
- max: 300000, onValueChange: onDurationChangedDirectly, rightAlign: false }), compDurationErrMessage ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_2.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { align: "flex-start", message: compDurationErrMessage, type: "error" })] })) : null] })] }));
23
+ max: 300000, onValueChange: onDurationChangedDirectly, rightAlign: false }), compDurationErrMessage ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
24
+ jsx_runtime_1.jsx(layout_2.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(ValidationMessage_1.ValidationMessage, { align: "flex-start", message: compDurationErrMessage, type: "error" })
25
+ ] })) : null] })
26
+ ] }));
22
27
  };
23
28
  exports.NewCompDuration = NewCompDuration;
@@ -9,9 +9,9 @@ export declare const INPUT_HORIZONTAL_PADDING = 8;
9
9
  export declare const RightAlignInput: React.FC<PropsWithChildren>;
10
10
  export declare const inputBaseStyle: React.CSSProperties;
11
11
  export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
12
- status: "error" | "warning" | "ok";
12
+ status: "error" | "ok" | "warning";
13
13
  isFocused: boolean;
14
14
  isHovered: boolean;
15
- }) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
15
+ }) => "#f1c40f" | "#ff3232" | "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)";
16
16
  export declare const RemotionInput: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
17
17
  export {};
@@ -10,7 +10,7 @@ const aligner = {
10
10
  marginRight: -exports.INPUT_HORIZONTAL_PADDING,
11
11
  };
12
12
  const RightAlignInput = ({ children }) => {
13
- return (0, jsx_runtime_1.jsx)("div", { style: aligner, children: children });
13
+ return jsx_runtime_1.jsx("div", { style: aligner, children: children });
14
14
  };
15
15
  exports.RightAlignInput = RightAlignInput;
16
16
  exports.inputBaseStyle = {
@@ -69,6 +69,6 @@ const RemInputForwardRef = ({ status, rightAlign, ...props }, ref) => {
69
69
  current.removeEventListener('mouseleave', onMouseLeave);
70
70
  };
71
71
  }, [inputRef]);
72
- return (0, jsx_runtime_1.jsx)("input", { ref: inputRef, tabIndex: tabIndex, ...props, style: style });
72
+ return jsx_runtime_1.jsx("input", { ref: inputRef, tabIndex: tabIndex, ...props, style: style });
73
73
  };
74
74
  exports.RemotionInput = (0, react_1.forwardRef)(RemInputForwardRef);
@@ -48,6 +48,6 @@ const RemInputTypeColorForwardRef = ({ status, ...props }, ref) => {
48
48
  current.removeEventListener('mouseleave', onMouseLeave);
49
49
  };
50
50
  }, [inputRef]);
51
- return ((0, jsx_runtime_1.jsx)("input", { ref: inputRef, type: "color", tabIndex: tabIndex, ...props, name: props.name, style: style }));
51
+ return (jsx_runtime_1.jsx("input", { ref: inputRef, type: "color", tabIndex: tabIndex, ...props, name: props.name, style: style }));
52
52
  };
53
53
  exports.RemInputTypeColor = (0, react_1.forwardRef)(RemInputTypeColorForwardRef);
@@ -87,6 +87,6 @@ const RemTextareaFRFunction = ({ status, ...props }, ref) => {
87
87
  current.removeEventListener('keydown', onKeyDown);
88
88
  };
89
89
  }, [inputRef]);
90
- return ((0, jsx_runtime_1.jsx)("textarea", { ref: inputRef, tabIndex: tabIndex, ...props, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, style: style }));
90
+ return (jsx_runtime_1.jsx("textarea", { ref: inputRef, tabIndex: tabIndex, ...props, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, style: style }));
91
91
  };
92
92
  exports.RemTextarea = (0, react_1.forwardRef)(RemTextareaFRFunction);
@@ -48,9 +48,18 @@ const RenameCompositionLoaded = () => {
48
48
  const onSubmit = (0, react_1.useCallback)((e) => {
49
49
  e.preventDefault();
50
50
  }, []);
51
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.ModalHeader, { title: `Rename ${resolved.result.id}` }), (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [(0, jsx_runtime_1.jsx)("div", { style: content, children: (0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "ID" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { value: newId, onChange: onNameChange, type: "text", autoFocus: true, placeholder: "Composition ID", status: "ok", rightAlign: true }), compNameErrMessage ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_2.Spacing, { y: 1, block: true }), (0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { align: "flex-start", message: compNameErrMessage, type: "error" })] })) : null] }) })] }) }), (0, jsx_runtime_1.jsx)(ModalFooter_1.ModalFooterContainer, { children: (0, jsx_runtime_1.jsx)(CodemodFooter_1.CodemodFooter, { loadingNotification: 'Renaming...', errorNotification: 'Could not rename composition', successNotification: `Renamed to ${newId}`, genericSubmitLabel: 'Rename', submitLabel: ({ relativeRootPath }) => `Modify ${relativeRootPath}`, codemod: codemod, valid: valid }) })] })] }));
51
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
52
+ jsx_runtime_1.jsx(ModalHeader_1.ModalHeader, { title: `Rename ${resolved.result.id}` }), jsx_runtime_1.jsxs("form", { onSubmit: onSubmit, children: [
53
+ jsx_runtime_1.jsx("div", { style: content, children: jsx_runtime_1.jsxs("div", { style: layout_1.optionRow, children: [
54
+ jsx_runtime_1.jsx("div", { style: layout_1.label, children: "ID" }), jsx_runtime_1.jsx("div", { style: layout_1.rightRow, children: jsx_runtime_1.jsxs("div", { children: [
55
+ jsx_runtime_1.jsx(RemInput_1.RemotionInput, { value: newId, onChange: onNameChange, type: "text", autoFocus: true, placeholder: "Composition ID", status: "ok", rightAlign: true }), compNameErrMessage ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
56
+ jsx_runtime_1.jsx(layout_2.Spacing, { y: 1, block: true }), jsx_runtime_1.jsx(ValidationMessage_1.ValidationMessage, { align: "flex-start", message: compNameErrMessage, type: "error" })
57
+ ] })) : null] }) })
58
+ ] }) }), jsx_runtime_1.jsx(ModalFooter_1.ModalFooterContainer, { children: jsx_runtime_1.jsx(CodemodFooter_1.CodemodFooter, { loadingNotification: 'Renaming...', errorNotification: 'Could not rename composition', successNotification: `Renamed to ${newId}`, genericSubmitLabel: 'Rename', submitLabel: ({ relativeRootPath }) => `Modify ${relativeRootPath}`, codemod: codemod, valid: valid }) })
59
+ ] })
60
+ ] }));
52
61
  };
53
62
  const RenameComposition = ({ compositionId }) => {
54
- return ((0, jsx_runtime_1.jsx)(DismissableModal_1.DismissableModal, { children: (0, jsx_runtime_1.jsx)(ResolveCompositionBeforeModal_1.ResolveCompositionBeforeModal, { compositionId: compositionId, children: (0, jsx_runtime_1.jsx)(RenameCompositionLoaded, {}) }) }));
63
+ return (jsx_runtime_1.jsx(DismissableModal_1.DismissableModal, { children: jsx_runtime_1.jsx(ResolveCompositionBeforeModal_1.ResolveCompositionBeforeModal, { compositionId: compositionId, children: jsx_runtime_1.jsx(RenameCompositionLoaded, {}) }) }));
55
64
  };
56
65
  exports.RenameComposition = RenameComposition;
@@ -6,7 +6,7 @@ const react_1 = require("react");
6
6
  const colors_1 = require("../../helpers/colors");
7
7
  const layout_1 = require("../layout");
8
8
  const WarningTriangle = (props) => {
9
- return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 576 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M248.747 204.705l6.588 112c.373 6.343 5.626 11.295 11.979 11.295h41.37a12 12 0 0 0 11.979-11.295l6.588-112c.405-6.893-5.075-12.705-11.979-12.705h-54.547c-6.903 0-12.383 5.812-11.978 12.705zM330 384c0 23.196-18.804 42-42 42s-42-18.804-42-42 18.804-42 42-42 42 18.804 42 42zm-.423-360.015c-18.433-31.951-64.687-32.009-83.154 0L6.477 440.013C-11.945 471.946 11.118 512 48.054 512H527.94c36.865 0 60.035-39.993 41.577-71.987L329.577 23.985zM53.191 455.002L282.803 57.008c2.309-4.002 8.085-4.002 10.394 0l229.612 397.993c2.308 4-.579 8.998-5.197 8.998H58.388c-4.617.001-7.504-4.997-5.197-8.997z" }) }));
9
+ return (jsx_runtime_1.jsx("svg", { viewBox: "0 0 576 512", ...props, children: jsx_runtime_1.jsx("path", { d: "M248.747 204.705l6.588 112c.373 6.343 5.626 11.295 11.979 11.295h41.37a12 12 0 0 0 11.979-11.295l6.588-112c.405-6.893-5.075-12.705-11.979-12.705h-54.547c-6.903 0-12.383 5.812-11.978 12.705zM330 384c0 23.196-18.804 42-42 42s-42-18.804-42-42 18.804-42 42-42 42 18.804 42 42zm-.423-360.015c-18.433-31.951-64.687-32.009-83.154 0L6.477 440.013C-11.945 471.946 11.118 512 48.054 512H527.94c36.865 0 60.035-39.993 41.577-71.987L329.577 23.985zM53.191 455.002L282.803 57.008c2.309-4.002 8.085-4.002 10.394 0l229.612 397.993c2.308 4-.579 8.998-5.197 8.998H58.388c-4.617.001-7.504-4.997-5.197-8.997z" }) }));
10
10
  };
11
11
  exports.WarningTriangle = WarningTriangle;
12
12
  const style = {
@@ -29,6 +29,8 @@ const ValidationMessage = ({ message, align, type }) => {
29
29
  fill: type === 'warning' ? colors_1.WARNING_COLOR : colors_1.FAIL_COLOR,
30
30
  };
31
31
  }, [type]);
32
- return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", justify: align, children: [(0, jsx_runtime_1.jsx)(exports.WarningTriangle, { style: finalStyle }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("div", { style: label, children: message })] }) }));
32
+ return (jsx_runtime_1.jsx("div", { style: container, children: jsx_runtime_1.jsxs(layout_1.Row, { align: "center", justify: align, children: [
33
+ jsx_runtime_1.jsx(exports.WarningTriangle, { style: finalStyle }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx("div", { style: label, children: message })
34
+ ] }) }));
33
35
  };
34
36
  exports.ValidationMessage = ValidationMessage;
@@ -35,6 +35,9 @@ const NoRegisterRoot = () => {
35
35
  if (!show) {
36
36
  return null;
37
37
  }
38
- return ((0, jsx_runtime_1.jsxs)(remotion_1.AbsoluteFill, { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: label, children: "Waiting for registerRoot() to get called." }), (0, jsx_runtime_1.jsxs)("div", { style: label, children: ["Learn more:", ' ', (0, jsx_runtime_1.jsx)("a", { target: '_blank', style: link, href: "https://www.remotion.dev/docs/register-root", children: "remotion.dev/docs/register-root" })] })] }));
38
+ return (jsx_runtime_1.jsxs(remotion_1.AbsoluteFill, { style: container, children: [
39
+ jsx_runtime_1.jsx("div", { style: label, children: "Waiting for registerRoot() to get called." }), jsx_runtime_1.jsxs("div", { style: label, children: ["Learn more:", ' ', jsx_runtime_1.jsx("a", { target: '_blank', style: link, href: "https://www.remotion.dev/docs/register-root", children: "remotion.dev/docs/register-root" })
40
+ ] })
41
+ ] }));
39
42
  };
40
43
  exports.NoRegisterRoot = NoRegisterRoot;
@@ -17,6 +17,6 @@ const ColorDot = ({ color }) => {
17
17
  backgroundColor: color,
18
18
  };
19
19
  }, [color]);
20
- return (0, jsx_runtime_1.jsx)("div", { style: style });
20
+ return jsx_runtime_1.jsx("div", { style: style });
21
21
  };
22
22
  exports.ColorDot = ColorDot;
@@ -29,6 +29,6 @@ const Notification = ({ children, id, duration, created, onRemove }) => {
29
29
  clearTimeout(timeout);
30
30
  };
31
31
  }, [created, duration, id, onRemove]);
32
- return ((0, jsx_runtime_1.jsx)("div", { className: "css-reset", style: notification, children: children }));
32
+ return (jsx_runtime_1.jsx("div", { className: "css-reset", style: notification, children: children }));
33
33
  };
34
34
  exports.Notification = Notification;
@@ -59,8 +59,8 @@ const NotificationCenter = () => {
59
59
  addNotification,
60
60
  };
61
61
  }, [addNotification]);
62
- return ((0, jsx_runtime_1.jsx)("div", { style: container, children: notifications.map((n) => {
63
- return ((0, jsx_runtime_1.jsx)(Notification_1.Notification, { created: n.created, duration: n.duration, id: n.id, onRemove: onRemove, children: n.content }, n.id));
62
+ return (jsx_runtime_1.jsx("div", { style: container, children: notifications.map((n) => {
63
+ return (jsx_runtime_1.jsx(Notification_1.Notification, { created: n.created, duration: n.duration, id: n.id, onRemove: onRemove, children: n.content }, n.id));
64
64
  }) }));
65
65
  };
66
66
  exports.NotificationCenter = NotificationCenter;
@@ -48,6 +48,7 @@ const ServerDisconnected = () => {
48
48
  }
49
49
  const base64Favicon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAARiSURBVHgB7d1NThRBFAfw/2tGgru5gXMD8QZ4AmVjAi6kN0TiAm8gnkBcGARNumcx4E48Ae0JaE9gewLHlQSZelaNgyHGL/RVd1X3+y10RQL58+rVx1QBKKWUUkoppZRSSimllFJKKVUjQs32stEiJcktZiwxzKL9Fvqzb6S0/44JVBKbtwa9aj29U6JjagtkJzsYzBEyBi9d5utsQIULCcxvelgo03R5jBarJZCXw/17E+bt82r4Hy4gtuEQekUbK8h7IHvDV5vMZht+VAlRfmYw3EhXKrSA10Ce2X7RIzpGDVzlgM1wPb2bI2JeA9nN99/b/waoV+XCmTAex1g13gLZyUZrdjjJ0CAbTB5bMN4C2ctHxwxaRABiCsZLIG6KmxC/R2BiCCaBBwn4NgJk10B2GOWj3Wz/IQLlpUL28oOjyy4AG1AZppuhVYt4hWRZ1o8gDGc6rL4YHjxCQMQDOcNCEI38bxnmLTc9d30PARAPZAITZP/4A1ctx3bjcw0NEw8koeQ64tRnu25qeggTb+q2/BmRcyv9K7yw3MTOsmiFuLMOtICblJzS5+Mm+opoIBOgFYHMuL5yVHcoooFQuwJxag9FNJCIG/rv1BqKaCDfzshbqbZQxAJxK3SJI9qATUPJstdef0axQGJbof+jwRc6eQ2PxAIx4DZXx3duSrybv3oCTyR7yACdYR762sIXDKQbFfId4ZGPJi8YCA3QLf05YvF+IhYIEV1Dx9hNu8XdbLQFQV6OcDuFaFNyKiwWiJ19DNBN/VN8XoMQrRABDFqCEJ32CiBisT08rRAZAwjRQAKjgcgQO+rVQARMb3gJ0UAkML+DEA1EwAQkdkNMcnOx1Zcxf8V9ol7y88GSm4tdDKRy1xsgSIes/0BM4ndN5HZ7OzZkMePperqSQ5jkkFWhO6r76WrYJ4b2N+YTumF60QeeSG6/d2DI4rHvW1eCPaT9Q9YZw/sVOMlZVoUWM8zpg/Su97dVJGdZFVrKhbFR05MdYoFcwWmF1rF9kbG8UeP7KaI3qBp628QTHrueUccwdZHw/ZDWNHY7tU1u1B2GIxqIYSO2Dd0Ud79wnq/eaOpBgR4EMVDW/oijINu87d7U6hYaJBrInA0k0iu4bvVtZ1KrBRrm4Vr06GNkF3cO7RCVhvK4pmiFOISkjOStk1lVrBQIiPh5SAyN3fWKWeMuEBjxCmEkh3bVvokAzd5idL2iQqDEA1nASXmK+XFIfeTCo5gFAudllvo8G20TUeNVElMQ58QrxLHD1jbB3GumSnhsz7qHE9BhTEGc87aOm16KJHi7rfqj8yfI53E1j/l9eK8L651stJUQeXx/iuzU1QztZLGIsRp+xvtOh3Qo3/qCedumEC6qZetpJztwz7O6UAa4FNsP7ELTfXbWbskUdjgq9M9VCJoFcwvTlfyPDd9t3XNJjA+2IZcGpmxi+7tpjW3OupurJziZhtKWPzWhlFJKKaWUUkoppZRSSiml/uwrgZ/Bfwo/wccAAAAASUVORK5CYII=';
50
50
  fav.setAttribute('href', base64Favicon);
51
- return ((0, jsx_runtime_1.jsx)("div", { style: container, className: "css-reset", children: (0, jsx_runtime_1.jsxs)("div", { style: message, children: ["The studio server has disconnected. ", (0, jsx_runtime_1.jsx)("br", {}), window.remotion_studioServerCommand ? ((0, jsx_runtime_1.jsxs)("span", { children: ["Run", ' ', (0, jsx_runtime_1.jsx)("code", { style: inlineCode, children: window.remotion_studioServerCommand }), ' ', "to run it again."] })) : ((0, jsx_runtime_1.jsx)("span", { children: "Fast refresh will not work." }))] }) }));
51
+ return (jsx_runtime_1.jsx("div", { style: container, className: "css-reset", children: jsx_runtime_1.jsxs("div", { style: message, children: ["The studio server has disconnected. ",
52
+ jsx_runtime_1.jsx("br", {}), window.remotion_studioServerCommand ? (jsx_runtime_1.jsxs("span", { children: ["Run", ' ', jsx_runtime_1.jsx("code", { style: inlineCode, children: window.remotion_studioServerCommand }), ' ', "to run it again."] })) : (jsx_runtime_1.jsx("span", { children: "Fast refresh will not work." }))] }) }));
52
53
  };
53
54
  exports.ServerDisconnected = ServerDisconnected;
@@ -55,13 +55,13 @@ const OpenEditorButton = ({ type }) => {
55
55
  const buttonTooltip = type === 'git'
56
56
  ? `Open ${(0, get_git_menu_item_1.getGitSourceName)(window.remotion_gitSource)} Repo`
57
57
  : `Open in ${window.remotion_editorName}`;
58
- const openInEditorSvg = ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", style: svgStyle, children: (0, jsx_runtime_1.jsx)("path", { fill: svgFillColor, d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" }) }));
58
+ const openInEditorSvg = (jsx_runtime_1.jsx("svg", { viewBox: "0 0 512 512", style: svgStyle, children: jsx_runtime_1.jsx("path", { fill: svgFillColor, d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" }) }));
59
59
  const onPointerEnter = (0, react_1.useCallback)(() => {
60
60
  setHovered(true);
61
61
  }, []);
62
62
  const onPointerLeave = (0, react_1.useCallback)(() => {
63
63
  setHovered(false);
64
64
  }, []);
65
- return ((0, jsx_runtime_1.jsx)("button", { title: buttonTooltip, type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: buttonStyle, onClick: handleClick, children: openInEditorSvg }));
65
+ return (jsx_runtime_1.jsx("button", { title: buttonTooltip, type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: buttonStyle, onClick: handleClick, children: openInEditorSvg }));
66
66
  };
67
67
  exports.OpenEditorButton = OpenEditorButton;
@@ -6,6 +6,7 @@ const react_1 = require("react");
6
6
  const remotion_1 = require("remotion");
7
7
  const colors_1 = require("../helpers/colors");
8
8
  const mobile_layout_1 = require("../helpers/mobile-layout");
9
+ const show_browser_rendering_1 = require("../helpers/show-browser-rendering");
9
10
  const VisualControls_1 = require("../visual-controls/VisualControls");
10
11
  const GlobalPropsEditorUpdateButton_1 = require("./GlobalPropsEditorUpdateButton");
11
12
  const DataEditor_1 = require("./RenderModal/DataEditor");
@@ -15,8 +16,8 @@ const RendersTab_1 = require("./RendersTab");
15
16
  const Tabs_1 = require("./Tabs");
16
17
  const VisualControlsContent_1 = require("./VisualControls/VisualControlsContent");
17
18
  const localStorageKey = 'remotion.sidebarPanel';
18
- const getSelectedPanel = (readOnlyStudio) => {
19
- if (readOnlyStudio) {
19
+ const getSelectedPanel = (renderingAvailable) => {
20
+ if (!renderingAvailable) {
20
21
  return 'input-props';
21
22
  }
22
23
  const panel = localStorage.getItem(localStorageKey);
@@ -39,6 +40,7 @@ exports.optionsSidebarTabs = (0, react_1.createRef)();
39
40
  const OptionsPanel = ({ readOnlyStudio }) => {
40
41
  const { props, updateProps, resetUnsaved } = (0, react_1.useContext)(remotion_1.Internals.EditorPropsContext);
41
42
  const [saving, setSaving] = (0, react_1.useState)(false);
43
+ const renderingAvailable = !readOnlyStudio || show_browser_rendering_1.SHOW_BROWSER_RENDERING;
42
44
  const isMobileLayout = (0, mobile_layout_1.useMobileLayout)();
43
45
  const visualControlsTabActivated = (0, react_1.useContext)(VisualControls_1.VisualControlsTabActivatedContext);
44
46
  const container = (0, react_1.useMemo)(() => ({
@@ -49,7 +51,7 @@ const OptionsPanel = ({ readOnlyStudio }) => {
49
51
  flexDirection: 'column',
50
52
  flex: 1,
51
53
  }), [isMobileLayout]);
52
- const [panel, setPanel] = (0, react_1.useState)(() => getSelectedPanel(readOnlyStudio));
54
+ const [panel, setPanel] = (0, react_1.useState)(() => getSelectedPanel(renderingAvailable));
53
55
  const onPropsSelected = (0, react_1.useCallback)(() => {
54
56
  setPanel('input-props');
55
57
  (0, exports.persistSelectedOptionsSidebarPanel)('input-props');
@@ -117,6 +119,7 @@ const OptionsPanel = ({ readOnlyStudio }) => {
117
119
  window.removeEventListener(remotion_1.Internals.PROPS_UPDATED_EXTERNALLY, reset);
118
120
  };
119
121
  }, [reset]);
120
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: "css-reset", children: [(0, jsx_runtime_1.jsx)("div", { style: tabsContainer, children: (0, jsx_runtime_1.jsxs)(Tabs_1.Tabs, { children: [visualControlsTabActivated ? ((0, jsx_runtime_1.jsx)(Tabs_1.Tab, { selected: panel === 'visual-controls', onClick: onVisualControlsSelected, children: "Controls" })) : null, composition ? ((0, jsx_runtime_1.jsxs)(Tabs_1.Tab, { selected: panel === 'input-props', onClick: onPropsSelected, style: { justifyContent: 'space-between' }, children: ["Props", unsavedChangesExist ? ((0, jsx_runtime_1.jsx)(GlobalPropsEditorUpdateButton_1.GlobalPropsEditorUpdateButton, { compositionId: composition.id, currentDefaultProps: currentDefaultProps })) : null] })) : null, readOnlyStudio ? null : ((0, jsx_runtime_1.jsx)(RendersTab_1.RendersTab, { onClick: onRendersSelected, selected: panel === 'renders' }))] }) }), panel === `input-props` && composition ? ((0, jsx_runtime_1.jsx)(DataEditor_1.DataEditor, { unresolvedComposition: composition, defaultProps: currentDefaultProps, setDefaultProps: setDefaultProps, mayShowSaveButton: true, propsEditType: "default-props", saving: saving, setSaving: setSaving, readOnlyStudio: readOnlyStudio }, composition.id)) : panel === 'visual-controls' && visualControlsTabActivated ? ((0, jsx_runtime_1.jsx)(VisualControlsContent_1.VisualControlsContent, {})) : readOnlyStudio ? null : ((0, jsx_runtime_1.jsx)(RenderQueue_1.RenderQueue, {}))] }));
122
+ return (jsx_runtime_1.jsxs("div", { style: container, className: "css-reset", children: [
123
+ jsx_runtime_1.jsx("div", { style: tabsContainer, children: jsx_runtime_1.jsxs(Tabs_1.Tabs, { children: [visualControlsTabActivated ? (jsx_runtime_1.jsx(Tabs_1.Tab, { selected: panel === 'visual-controls', onClick: onVisualControlsSelected, children: "Controls" })) : null, composition ? (jsx_runtime_1.jsxs(Tabs_1.Tab, { selected: panel === 'input-props', onClick: onPropsSelected, style: { justifyContent: 'space-between' }, children: ["Props", unsavedChangesExist ? (jsx_runtime_1.jsx(GlobalPropsEditorUpdateButton_1.GlobalPropsEditorUpdateButton, { compositionId: composition.id, currentDefaultProps: currentDefaultProps })) : null] })) : null, renderingAvailable ? (jsx_runtime_1.jsx(RendersTab_1.RendersTab, { onClick: onRendersSelected, selected: panel === 'renders' })) : null] }) }), panel === `input-props` && composition ? (jsx_runtime_1.jsx(DataEditor_1.DataEditor, { unresolvedComposition: composition, defaultProps: currentDefaultProps, setDefaultProps: setDefaultProps, mayShowSaveButton: true, propsEditType: "default-props", saving: saving, setSaving: setSaving, readOnlyStudio: readOnlyStudio }, composition.id)) : panel === 'visual-controls' && visualControlsTabActivated ? (jsx_runtime_1.jsx(VisualControlsContent_1.VisualControlsContent, {})) : !renderingAvailable ? null : (jsx_runtime_1.jsx(RenderQueue_1.RenderQueue, {}))] }));
121
124
  };
122
125
  exports.OptionsPanel = OptionsPanel;
@@ -78,9 +78,14 @@ const Inner = () => {
78
78
  const onDone = (0, react_1.useCallback)(() => {
79
79
  setSelectedModal(null);
80
80
  }, [setSelectedModal]);
81
- return ((0, jsx_runtime_1.jsxs)("div", { style: style, children: [(0, jsx_runtime_1.jsxs)("div", { style: label, children: ["Enter a valid JSON to override the value that", ' ', (0, jsx_runtime_1.jsx)("code", { style: codeSnippet, children: "getInputProps()" }), " returns to preview a composition with different props. The Studio must be reloaded to see the changes."] }), (0, jsx_runtime_1.jsx)(RemTextarea_1.RemTextarea, { onChange: (e) => onChange(e.target.value), value: value !== null && value !== void 0 ? value : '', status: valid ? 'ok' : 'error', style: textAreaStyle }), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onReset, children: "Reset" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onReloadPage, children: "Reload page" }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onDone, children: "Done" })] })] }));
81
+ return (jsx_runtime_1.jsxs("div", { style: style, children: [
82
+ jsx_runtime_1.jsxs("div", { style: label, children: ["Enter a valid JSON to override the value that", ' ', jsx_runtime_1.jsx("code", { style: codeSnippet, children: "getInputProps()" }),
83
+ " returns to preview a composition with different props. The Studio must be reloaded to see the changes."] }), jsx_runtime_1.jsx(RemTextarea_1.RemTextarea, { onChange: (e) => onChange(e.target.value), value: value !== null && value !== void 0 ? value : '', status: valid ? 'ok' : 'error', style: textAreaStyle }), jsx_runtime_1.jsxs("div", { style: row, children: [
84
+ jsx_runtime_1.jsx(Button_1.Button, { onClick: onReset, children: "Reset" }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 0.5 }), jsx_runtime_1.jsx(Button_1.Button, { onClick: onReloadPage, children: "Reload page" }), jsx_runtime_1.jsx(layout_1.Flex, {}), jsx_runtime_1.jsx(Button_1.Button, { onClick: onDone, children: "Done" })
85
+ ] })
86
+ ] }));
82
87
  };
83
88
  const OverrideInputPropsModal = () => {
84
- return ((0, jsx_runtime_1.jsx)(DismissableModal_1.DismissableModal, { children: (0, jsx_runtime_1.jsx)(Inner, {}) }));
89
+ return (jsx_runtime_1.jsx(DismissableModal_1.DismissableModal, { children: jsx_runtime_1.jsx(Inner, {}) }));
85
90
  };
86
91
  exports.OverrideInputPropsModal = OverrideInputPropsModal;
@@ -240,6 +240,8 @@ const PlayPause = ({ playbackRate, loop, bufferStateDelayInMilliseconds }) => {
240
240
  stopped = true;
241
241
  };
242
242
  }, [bufferStateDelayInMilliseconds, emitter]);
243
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": "Jump to beginning", title: "Jump to beginning", disabled: !videoConfig || isFirstFrame, onClick: jumpToStart, children: (0, jsx_runtime_1.jsx)(jump_to_start_1.JumpToStart, { style: backStyle }) }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": "Step back one frame", title: "Step back one frame", disabled: !videoConfig || isFirstFrame, onClick: oneFrameBack, children: (0, jsx_runtime_1.jsx)(step_back_1.StepBack, { style: forwardBackStyle }) }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": playing ? 'Pause' : 'Play', title: playing ? 'Pause' : 'Play', onClick: playing ? pause : play, disabled: !videoConfig, children: playing ? (showBufferIndicator ? ((0, jsx_runtime_1.jsx)(player_1.PlayerInternals.BufferingIndicator, { type: "studio" })) : ((0, jsx_runtime_1.jsx)(pause_1.Pause, { style: iconButton }))) : ((0, jsx_runtime_1.jsx)(play_1.Play, { style: iconButton })) }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { "aria-label": "Step forward one frame", title: "Step forward one frame", disabled: !videoConfig || isLastFrame, onClick: oneFrameForward, children: (0, jsx_runtime_1.jsx)(step_forward_1.StepForward, { style: forwardBackStyle }) })] }));
243
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
244
+ jsx_runtime_1.jsx(ControlButton_1.ControlButton, { "aria-label": "Jump to beginning", title: "Jump to beginning", disabled: !videoConfig || isFirstFrame, onClick: jumpToStart, children: jsx_runtime_1.jsx(jump_to_start_1.JumpToStart, { style: backStyle }) }), jsx_runtime_1.jsx(ControlButton_1.ControlButton, { "aria-label": "Step back one frame", title: "Step back one frame", disabled: !videoConfig || isFirstFrame, onClick: oneFrameBack, children: jsx_runtime_1.jsx(step_back_1.StepBack, { style: forwardBackStyle }) }), jsx_runtime_1.jsx(ControlButton_1.ControlButton, { "aria-label": playing ? 'Pause' : 'Play', title: playing ? 'Pause' : 'Play', onClick: playing ? pause : play, disabled: !videoConfig, children: playing ? (showBufferIndicator ? (jsx_runtime_1.jsx(player_1.PlayerInternals.BufferingIndicator, { type: "studio" })) : (jsx_runtime_1.jsx(pause_1.Pause, { style: iconButton }))) : (jsx_runtime_1.jsx(play_1.Play, { style: iconButton })) }), jsx_runtime_1.jsx(ControlButton_1.ControlButton, { "aria-label": "Step forward one frame", title: "Step forward one frame", disabled: !videoConfig || isLastFrame, onClick: oneFrameForward, children: jsx_runtime_1.jsx(step_forward_1.StepForward, { style: forwardBackStyle }) })
245
+ ] }));
244
246
  };
245
247
  exports.PlayPause = PlayPause;
@@ -43,7 +43,7 @@ const PlaybackRateSelector = ({ playbackRate, setPlaybackRate }) => {
43
43
  type: 'item',
44
44
  value: newPlaybackRate,
45
45
  keyHint: null,
46
- leftItem: String(playbackRate) === String(newPlaybackRate) ? ((0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {})) : null,
46
+ leftItem: String(playbackRate) === String(newPlaybackRate) ? (jsx_runtime_1.jsx(Checkmark_1.Checkmark, {})) : null,
47
47
  subMenu: null,
48
48
  quickSwitcherLabel: null,
49
49
  };
@@ -54,6 +54,6 @@ const PlaybackRateSelector = ({ playbackRate, setPlaybackRate }) => {
54
54
  if (isStill || canvasContent === null || canvasContent.type === 'asset') {
55
55
  return null;
56
56
  }
57
- 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(playbackRate), values: items }) }));
57
+ 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(playbackRate), values: items }) }));
58
58
  };
59
59
  exports.PlaybackRateSelector = PlaybackRateSelector;
@@ -70,12 +70,12 @@ const containerStyle = (options) => {
70
70
  };
71
71
  const VideoPreview = ({ canvasSize, contentDimensions, canvasContent, assetMetadata }) => {
72
72
  if (assetMetadata && assetMetadata.type === 'not-found') {
73
- return ((0, jsx_runtime_1.jsx)("div", { style: centeredContainer, children: (0, jsx_runtime_1.jsx)("div", { style: label, children: "File does not exist" }) }));
73
+ return (jsx_runtime_1.jsx("div", { style: centeredContainer, children: jsx_runtime_1.jsx("div", { style: label, children: "File does not exist" }) }));
74
74
  }
75
75
  if (contentDimensions === null) {
76
- return ((0, jsx_runtime_1.jsx)("div", { style: centeredContainer, children: (0, jsx_runtime_1.jsx)(Spinner_1.Spinner, { duration: 0.5, size: 24 }) }));
76
+ return (jsx_runtime_1.jsx("div", { style: centeredContainer, children: jsx_runtime_1.jsx(Spinner_1.Spinner, { duration: 0.5, size: 24 }) }));
77
77
  }
78
- return ((0, jsx_runtime_1.jsx)(CompWhenItHasDimensions, { contentDimensions: contentDimensions, canvasSize: canvasSize, canvasContent: canvasContent, assetMetadata: assetMetadata }));
78
+ return (jsx_runtime_1.jsx(CompWhenItHasDimensions, { contentDimensions: contentDimensions, canvasSize: canvasSize, canvasContent: canvasContent, assetMetadata: assetMetadata }));
79
79
  };
80
80
  exports.VideoPreview = VideoPreview;
81
81
  const CompWhenItHasDimensions = ({ contentDimensions, canvasSize, canvasContent, assetMetadata }) => {
@@ -125,15 +125,15 @@ const CompWhenItHasDimensions = ({ contentDimensions, canvasSize, canvasContent,
125
125
  canvasContent,
126
126
  ]);
127
127
  if (canvasContent.type === 'asset') {
128
- return ((0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)(StaticFilePreview_1.StaticFilePreview, { assetMetadata: assetMetadata, currentAsset: canvasContent.asset }) }));
128
+ return (jsx_runtime_1.jsx("div", { style: outer, children: jsx_runtime_1.jsx(StaticFilePreview_1.StaticFilePreview, { assetMetadata: assetMetadata, currentAsset: canvasContent.asset }) }));
129
129
  }
130
130
  if (canvasContent.type === 'output') {
131
- return ((0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)(RenderPreview_1.RenderPreview, { path: canvasContent.path, assetMetadata: assetMetadata }) }));
131
+ return (jsx_runtime_1.jsx("div", { style: outer, children: jsx_runtime_1.jsx(RenderPreview_1.RenderPreview, { path: canvasContent.path, assetMetadata: assetMetadata }) }));
132
132
  }
133
133
  if (canvasContent.type === 'output-blob') {
134
- return ((0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)(RenderPreview_1.RenderPreview, { path: canvasContent.displayName, assetMetadata: assetMetadata, getBlob: canvasContent.getBlob }) }));
134
+ return (jsx_runtime_1.jsx("div", { style: outer, children: jsx_runtime_1.jsx(RenderPreview_1.RenderPreview, { path: canvasContent.displayName, assetMetadata: assetMetadata, getBlob: canvasContent.getBlob }) }));
135
135
  }
136
- return ((0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)(PortalContainer, { contentDimensions: contentDimensions, scale: scale, xCorrection: xCorrection, yCorrection: yCorrection }) }));
136
+ return (jsx_runtime_1.jsx("div", { style: outer, children: jsx_runtime_1.jsx(PortalContainer, { contentDimensions: contentDimensions, scale: scale, xCorrection: xCorrection, yCorrection: yCorrection }) }));
137
137
  };
138
138
  const PortalContainer = ({ scale, xCorrection, yCorrection, contentDimensions }) => {
139
139
  const { checkerboard } = (0, react_1.useContext)(checkerboard_1.CheckerboardContext);
@@ -162,5 +162,5 @@ const PortalContainer = ({ scale, xCorrection, yCorrection, contentDimensions })
162
162
  };
163
163
  }, []);
164
164
  const portalContainer = (0, react_1.useRef)(null);
165
- return (0, jsx_runtime_1.jsx)("div", { ref: portalContainer, style: style });
165
+ return jsx_runtime_1.jsx("div", { ref: portalContainer, style: style });
166
166
  };
@@ -133,6 +133,16 @@ const PreviewToolbar = ({ readOnlyStudio, bufferStateDelayInMilliseconds }) => {
133
133
  };
134
134
  }
135
135
  });
136
- return ((0, jsx_runtime_1.jsxs)("div", { ref: previewToolbarRef, style: isMobileLayout ? mobileContainer : container, className: "css-reset", children: [(0, jsx_runtime_1.jsx)("div", { ref: leftScrollIndicatorRef, style: scrollIndicatorLeft }), isMobileLayout ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { style: sideContainer, children: [(0, jsx_runtime_1.jsx)("div", { style: padding }), (0, jsx_runtime_1.jsx)(TimelineZoomControls_1.TimelineZoomControls, {})] }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(SizeSelector_1.SizeSelector, {}), isStill || isVideoComposition ? ((0, jsx_runtime_1.jsx)(PlaybackRateSelector_1.PlaybackRateSelector, { setPlaybackRate: setPlaybackRate, playbackRate: playbackRate })) : null] })), isVideoComposition ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, jsx_runtime_1.jsx)(PlayPause_1.PlayPause, { bufferStateDelayInMilliseconds: bufferStateDelayInMilliseconds, loop: loop, playbackRate: playbackRate }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, jsx_runtime_1.jsx)(LoopToggle_1.LoopToggle, { loop: loop, setLoop: setLoop }), (0, jsx_runtime_1.jsx)(MuteToggle_1.MuteToggle, { muted: mediaMuted, setMuted: setMediaMuted }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, jsx_runtime_1.jsx)(TimelineInOutToggle_1.TimelineInOutPointToggle, {}), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 })] })) : null, (0, jsx_runtime_1.jsx)(CheckboardToggle_1.CheckboardToggle, {}), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), isFullscreenSupported && (0, jsx_runtime_1.jsx)(FullscreenToggle_1.FullScreenToggle, {}), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), isMobileLayout && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(SizeSelector_1.SizeSelector, {}), isStill || isVideoComposition ? ((0, jsx_runtime_1.jsx)(PlaybackRateSelector_1.PlaybackRateSelector, { setPlaybackRate: setPlaybackRate, playbackRate: playbackRate })) : null] })), (0, jsx_runtime_1.jsxs)("div", { style: sideContainer, children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, {}), !isMobileLayout && (0, jsx_runtime_1.jsx)(FpsCounter_1.FpsCounter, { playbackSpeed: playbackRate }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, should_show_render_button_1.shouldShowRenderButton)(readOnlyStudio) ? ((0, jsx_runtime_1.jsx)(RenderButton_1.RenderButton, { readOnlyStudio: readOnlyStudio })) : null, (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1.5 })] }), (0, jsx_runtime_1.jsx)(PlaybackKeyboardShortcutsManager_1.PlaybackKeyboardShortcutsManager, { setPlaybackRate: setPlaybackRate }), (0, jsx_runtime_1.jsx)(PlaybackRatePersistor_1.PlaybackRatePersistor, {}), (0, jsx_runtime_1.jsx)("div", { ref: rightScrollIndicatorRef, style: scrollIndicatorRight })] }));
136
+ return (jsx_runtime_1.jsxs("div", { ref: previewToolbarRef, style: isMobileLayout ? mobileContainer : container, className: "css-reset", children: [
137
+ jsx_runtime_1.jsx("div", { ref: leftScrollIndicatorRef, style: scrollIndicatorLeft }), isMobileLayout ? null : (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
138
+ jsx_runtime_1.jsxs("div", { style: sideContainer, children: [
139
+ jsx_runtime_1.jsx("div", { style: padding }), jsx_runtime_1.jsx(TimelineZoomControls_1.TimelineZoomControls, {})
140
+ ] }), jsx_runtime_1.jsx(layout_1.Flex, {}), jsx_runtime_1.jsx(SizeSelector_1.SizeSelector, {}), isStill || isVideoComposition ? (jsx_runtime_1.jsx(PlaybackRateSelector_1.PlaybackRateSelector, { setPlaybackRate: setPlaybackRate, playbackRate: playbackRate })) : null] })), isVideoComposition ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
141
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }), jsx_runtime_1.jsx(PlayPause_1.PlayPause, { bufferStateDelayInMilliseconds: bufferStateDelayInMilliseconds, loop: loop, playbackRate: playbackRate }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }), jsx_runtime_1.jsx(LoopToggle_1.LoopToggle, { loop: loop, setLoop: setLoop }), jsx_runtime_1.jsx(MuteToggle_1.MuteToggle, { muted: mediaMuted, setMuted: setMediaMuted }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }), jsx_runtime_1.jsx(TimelineInOutToggle_1.TimelineInOutPointToggle, {}), jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 })
142
+ ] })) : null, jsx_runtime_1.jsx(CheckboardToggle_1.CheckboardToggle, {}), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), isFullscreenSupported && jsx_runtime_1.jsx(FullscreenToggle_1.FullScreenToggle, {}), jsx_runtime_1.jsx(layout_1.Flex, {}), isMobileLayout && (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
143
+ jsx_runtime_1.jsx(layout_1.Flex, {}), jsx_runtime_1.jsx(SizeSelector_1.SizeSelector, {}), isStill || isVideoComposition ? (jsx_runtime_1.jsx(PlaybackRateSelector_1.PlaybackRateSelector, { setPlaybackRate: setPlaybackRate, playbackRate: playbackRate })) : null] })), jsx_runtime_1.jsxs("div", { style: sideContainer, children: [
144
+ jsx_runtime_1.jsx(layout_1.Flex, {}), !isMobileLayout && jsx_runtime_1.jsx(FpsCounter_1.FpsCounter, { playbackSpeed: playbackRate }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }), (0, should_show_render_button_1.shouldShowRenderButton)(readOnlyStudio) ? (jsx_runtime_1.jsx(RenderButton_1.RenderButton, { readOnlyStudio: readOnlyStudio })) : null, jsx_runtime_1.jsx(layout_1.Spacing, { x: 1.5 })
145
+ ] }), jsx_runtime_1.jsx(PlaybackKeyboardShortcutsManager_1.PlaybackKeyboardShortcutsManager, { setPlaybackRate: setPlaybackRate }), jsx_runtime_1.jsx(PlaybackRatePersistor_1.PlaybackRatePersistor, {}), jsx_runtime_1.jsx("div", { ref: rightScrollIndicatorRef, style: scrollIndicatorRight })
146
+ ] }));
137
147
  };
138
148
  exports.PreviewToolbar = PreviewToolbar;
@@ -6,6 +6,6 @@ const link = {
6
6
  display: 'inline-flex',
7
7
  };
8
8
  const AlgoliaCredit = () => {
9
- return ((0, jsx_runtime_1.jsx)("a", { style: link, href: "https://www.algolia.com/ref/docsearch/?utm_source=www.remotion.dev&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch", target: "_blank", rel: "noopener noreferrer", children: (0, jsx_runtime_1.jsx)("svg", { width: "77", height: "19", "aria-label": "Algolia", role: "img", children: (0, jsx_runtime_1.jsx)("path", { d: "M2.5067 0h14.0245c1.384.001 2.5058 1.1205 2.5068 2.5017V16.5c-.0014 1.3808-1.1232 2.4995-2.5068 2.5H2.5067C1.1232 18.9995.0014 17.8808 0 16.5V2.4958A2.495 2.495 0 01.735.7294 2.505 2.505 0 012.5068 0zM37.95 15.0695c-3.7068.0168-3.7068-2.986-3.7068-3.4634L34.2372.3576 36.498 0v11.1794c0 .2715 0 1.9889 1.452 1.994v1.8961zm-9.1666-1.8388c.694 0 1.2086-.0397 1.5678-.1088v-2.2934a5.3639 5.3639 0 00-1.3303-.1679 4.8283 4.8283 0 00-.758.0582 2.2845 2.2845 0 00-.688.2024c-.2029.0979-.371.2362-.4919.4142-.1268.1788-.185.2826-.185.5533 0 .5297.185.8359.5205 1.0375.3355.2016.7928.3053 1.365.3053v-.0008zm-.1969-8.1817c.7463 0 1.3768.092 1.8856.2767.5088.1838.9195.4428 1.2204.7717.3068.334.5147.7777.6423 1.251.1327.4723.196.991.196 1.5603v5.798c-.5235.1036-1.05.192-1.5787.2649-.7048.1037-1.4976.156-2.3774.156-.5832 0-1.1215-.0582-1.6016-.167a3.385 3.385 0 01-1.2432-.5364 2.6034 2.6034 0 01-.8037-.9565c-.191-.3922-.29-.9447-.29-1.5208 0-.5533.11-.905.3246-1.2863a2.7351 2.7351 0 01.8849-.9329c.376-.242.8029-.415 1.2948-.5187a7.4517 7.4517 0 011.5381-.156 7.1162 7.1162 0 011.6667.2024V8.886c0-.259-.0296-.5061-.093-.7372a1.5847 1.5847 0 00-.3245-.6158 1.5079 1.5079 0 00-.6119-.4158 2.6788 2.6788 0 00-.966-.173c-.5206 0-.9948.0634-1.4283.1384a6.5481 6.5481 0 00-1.065.259l-.2712-1.849c.2831-.0986.7048-.1964 1.2491-.2943a9.2979 9.2979 0 011.752-.1501v.0008zm44.6597 8.1193c.6947 0 1.2086-.0405 1.567-.1097v-2.2942a5.3743 5.3743 0 00-1.3303-.1679c-.2485 0-.503.0177-.7573.0582a2.2853 2.2853 0 00-.688.2024 1.2333 1.2333 0 00-.4918.4142c-.1268.1788-.1843.2826-.1843.5533 0 .5297.1843.8359.5198 1.0375.3414.2066.7927.3053 1.365.3053v.0009zm-.191-8.1767c.7463 0 1.3768.0912 1.8856.2759.5087.1847.9195.4436 1.2204.7717.3.329.5147.7786.6414 1.251a5.7248 5.7248 0 01.197 1.562v5.7972c-.3466.0742-.874.1602-1.5788.2648-.7049.1038-1.4976.1552-2.3774.1552-.5832 0-1.1215-.0573-1.6016-.167a3.385 3.385 0 01-1.2432-.5356 2.6034 2.6034 0 01-.8038-.9565c-.191-.3922-.2898-.9447-.2898-1.5216 0-.5533.1098-.905.3245-1.2854a2.7373 2.7373 0 01.8849-.9338c.376-.2412.8029-.4141 1.2947-.5178a7.4545 7.4545 0 012.325-.1097c.2781.0287.5672.081.879.156v-.3686a2.7781 2.7781 0 00-.092-.738 1.5788 1.5788 0 00-.3246-.6166 1.5079 1.5079 0 00-.612-.415 2.6797 2.6797 0 00-.966-.1729c-.5205 0-.9947.0633-1.4282.1384a6.5608 6.5608 0 00-1.065.259l-.2712-1.8498c.283-.0979.7048-.1957 1.2491-.2935a9.8597 9.8597 0 011.752-.1494zm-6.79-1.072c-.7576.001-1.373-.6103-1.3759-1.3664 0-.755.6128-1.3664 1.376-1.3664.764 0 1.3775.6115 1.3775 1.3664s-.6195 1.3664-1.3776 1.3664zm1.1393 11.1507h-2.2726V5.3409l2.2734-.3568v10.0845l-.0008.0017zm-3.984 0c-3.707.0168-3.707-2.986-3.707-3.4642L59.7069.3576 61.9685 0v11.1794c0 .2715 0 1.9889 1.452 1.994V15.0703zm-7.3512-4.979c0-.975-.2138-1.7873-.6305-2.3516-.4167-.571-.9998-.852-1.747-.852-.7454 0-1.3302.281-1.7452.852-.4166.5702-.6195 1.3765-.6195 2.3516 0 .9851.208 1.6473.6254 2.2183.4158.576.9998.8587 1.7461.8587.7454 0 1.3303-.2885 1.747-.8595.4158-.5761.6237-1.2315.6237-2.2184v.0009zm2.3132-.006c0 .7609-.1099 1.3361-.3356 1.9654a4.654 4.654 0 01-.9533 1.6076A4.214 4.214 0 0155.613 14.69c-.579.2412-1.4697.3795-1.9143.3795-.4462-.005-1.3303-.1324-1.9033-.3795a4.307 4.307 0 01-1.474-1.0316c-.4115-.4445-.7293-.9801-.9609-1.6076a5.3423 5.3423 0 01-.3465-1.9653c0-.7608.104-1.493.3356-2.1155a4.683 4.683 0 01.9719-1.5958 4.3383 4.3383 0 011.479-1.0257c.5739-.242 1.2043-.3567 1.8864-.3567.6829 0 1.3125.1197 1.8906.3567a4.1245 4.1245 0 011.4816 1.0257 4.7587 4.7587 0 01.9592 1.5958c.2426.6225.3643 1.3547.3643 2.1155zm-17.0198 0c0 .9448.208 1.9932.6238 2.431.4166.4386.955.6579 1.6142.6579.3584 0 .6998-.0523 1.0176-.1502.3186-.0978.5721-.2134.775-.3517V7.0784a8.8706 8.8706 0 00-1.4926-.1906c-.8206-.0236-1.4452.312-1.8847.8468-.4335.5365-.6533 1.476-.6533 2.3516v-.0008zm6.2863 4.4485c0 1.5385-.3938 2.662-1.1866 3.3773-.791.7136-2.0005 1.0712-3.6308 1.0712-.5958 0-1.834-.1156-2.8228-.334l.3643-1.7865c.8282.173 1.9202.2193 2.4932.2193.9077 0 1.555-.1847 1.943-.5533.388-.3686.578-.916.578-1.643v-.3687a6.8289 6.8289 0 01-.8848.3349c-.3634.1096-.786.167-1.261.167-.6246 0-1.1917-.0979-1.7055-.2944a3.5554 3.5554 0 01-1.3244-.8645c-.3642-.3796-.6541-.8579-.8561-1.4289-.2028-.571-.3068-1.59-.3068-2.339 0-.7034.1099-1.5856.3245-2.1735.2198-.5871.5316-1.0949.9542-1.515.4167-.42.9255-.743 1.5213-.98a5.5923 5.5923 0 012.052-.3855c.7353 0 1.4114.092 2.0707.2024.6592.1088 1.2204.2236 1.6776.35v8.945-.0008zM11.5026 4.2418v-.6511c-.0005-.4553-.3704-.8241-.8266-.8241H8.749c-.4561 0-.826.3688-.8265.824v.669c0 .0742.0693.1264.1445.1096a6.0346 6.0346 0 011.6768-.2362 6.125 6.125 0 011.6202.2185.1116.1116 0 00.1386-.1097zm-5.2806.852l-.3296-.3282a.8266.8266 0 00-1.168 0l-.393.3922a.8199.8199 0 000 1.164l.3237.323c.0524.0515.1268.0397.1733-.0117.191-.259.3989-.507.6305-.7372.2374-.2362.48-.4437.7462-.6335.0575-.0354.0634-.1155.017-.1687zm3.5159 2.069v2.818c0 .081.0879.1392.1622.0987l2.5102-1.2964c.0574-.0287.0752-.0987.0464-.1552a3.1237 3.1237 0 00-2.603-1.574c-.0575 0-.115.0456-.115.1097l-.0008-.0009zm.0008 6.789c-2.0933.0005-3.7915-1.6912-3.7947-3.7804C5.9468 8.0821 7.6452 6.39 9.7387 6.391c2.0932-.0005 3.7911 1.6914 3.794 3.7804a3.7783 3.7783 0 01-1.1124 2.675 3.7936 3.7936 0 01-2.6824 1.1054h.0008zM9.738 4.8002c-1.9218 0-3.6975 1.0232-4.6584 2.6841a5.359 5.359 0 000 5.3683c.9609 1.661 2.7366 2.6841 4.6584 2.6841a5.3891 5.3891 0 003.8073-1.5725 5.3675 5.3675 0 001.578-3.7987 5.3574 5.3574 0 00-1.5771-3.797A5.379 5.379 0 009.7387 4.801l-.0008-.0008z", fill: "currentColor", fillRule: "evenodd" }) }) }));
9
+ return (jsx_runtime_1.jsx("a", { style: link, href: "https://www.algolia.com/ref/docsearch/?utm_source=www.remotion.dev&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch", target: "_blank", rel: "noopener noreferrer", children: jsx_runtime_1.jsx("svg", { width: "77", height: "19", "aria-label": "Algolia", role: "img", children: jsx_runtime_1.jsx("path", { d: "M2.5067 0h14.0245c1.384.001 2.5058 1.1205 2.5068 2.5017V16.5c-.0014 1.3808-1.1232 2.4995-2.5068 2.5H2.5067C1.1232 18.9995.0014 17.8808 0 16.5V2.4958A2.495 2.495 0 01.735.7294 2.505 2.505 0 012.5068 0zM37.95 15.0695c-3.7068.0168-3.7068-2.986-3.7068-3.4634L34.2372.3576 36.498 0v11.1794c0 .2715 0 1.9889 1.452 1.994v1.8961zm-9.1666-1.8388c.694 0 1.2086-.0397 1.5678-.1088v-2.2934a5.3639 5.3639 0 00-1.3303-.1679 4.8283 4.8283 0 00-.758.0582 2.2845 2.2845 0 00-.688.2024c-.2029.0979-.371.2362-.4919.4142-.1268.1788-.185.2826-.185.5533 0 .5297.185.8359.5205 1.0375.3355.2016.7928.3053 1.365.3053v-.0008zm-.1969-8.1817c.7463 0 1.3768.092 1.8856.2767.5088.1838.9195.4428 1.2204.7717.3068.334.5147.7777.6423 1.251.1327.4723.196.991.196 1.5603v5.798c-.5235.1036-1.05.192-1.5787.2649-.7048.1037-1.4976.156-2.3774.156-.5832 0-1.1215-.0582-1.6016-.167a3.385 3.385 0 01-1.2432-.5364 2.6034 2.6034 0 01-.8037-.9565c-.191-.3922-.29-.9447-.29-1.5208 0-.5533.11-.905.3246-1.2863a2.7351 2.7351 0 01.8849-.9329c.376-.242.8029-.415 1.2948-.5187a7.4517 7.4517 0 011.5381-.156 7.1162 7.1162 0 011.6667.2024V8.886c0-.259-.0296-.5061-.093-.7372a1.5847 1.5847 0 00-.3245-.6158 1.5079 1.5079 0 00-.6119-.4158 2.6788 2.6788 0 00-.966-.173c-.5206 0-.9948.0634-1.4283.1384a6.5481 6.5481 0 00-1.065.259l-.2712-1.849c.2831-.0986.7048-.1964 1.2491-.2943a9.2979 9.2979 0 011.752-.1501v.0008zm44.6597 8.1193c.6947 0 1.2086-.0405 1.567-.1097v-2.2942a5.3743 5.3743 0 00-1.3303-.1679c-.2485 0-.503.0177-.7573.0582a2.2853 2.2853 0 00-.688.2024 1.2333 1.2333 0 00-.4918.4142c-.1268.1788-.1843.2826-.1843.5533 0 .5297.1843.8359.5198 1.0375.3414.2066.7927.3053 1.365.3053v.0009zm-.191-8.1767c.7463 0 1.3768.0912 1.8856.2759.5087.1847.9195.4436 1.2204.7717.3.329.5147.7786.6414 1.251a5.7248 5.7248 0 01.197 1.562v5.7972c-.3466.0742-.874.1602-1.5788.2648-.7049.1038-1.4976.1552-2.3774.1552-.5832 0-1.1215-.0573-1.6016-.167a3.385 3.385 0 01-1.2432-.5356 2.6034 2.6034 0 01-.8038-.9565c-.191-.3922-.2898-.9447-.2898-1.5216 0-.5533.1098-.905.3245-1.2854a2.7373 2.7373 0 01.8849-.9338c.376-.2412.8029-.4141 1.2947-.5178a7.4545 7.4545 0 012.325-.1097c.2781.0287.5672.081.879.156v-.3686a2.7781 2.7781 0 00-.092-.738 1.5788 1.5788 0 00-.3246-.6166 1.5079 1.5079 0 00-.612-.415 2.6797 2.6797 0 00-.966-.1729c-.5205 0-.9947.0633-1.4282.1384a6.5608 6.5608 0 00-1.065.259l-.2712-1.8498c.283-.0979.7048-.1957 1.2491-.2935a9.8597 9.8597 0 011.752-.1494zm-6.79-1.072c-.7576.001-1.373-.6103-1.3759-1.3664 0-.755.6128-1.3664 1.376-1.3664.764 0 1.3775.6115 1.3775 1.3664s-.6195 1.3664-1.3776 1.3664zm1.1393 11.1507h-2.2726V5.3409l2.2734-.3568v10.0845l-.0008.0017zm-3.984 0c-3.707.0168-3.707-2.986-3.707-3.4642L59.7069.3576 61.9685 0v11.1794c0 .2715 0 1.9889 1.452 1.994V15.0703zm-7.3512-4.979c0-.975-.2138-1.7873-.6305-2.3516-.4167-.571-.9998-.852-1.747-.852-.7454 0-1.3302.281-1.7452.852-.4166.5702-.6195 1.3765-.6195 2.3516 0 .9851.208 1.6473.6254 2.2183.4158.576.9998.8587 1.7461.8587.7454 0 1.3303-.2885 1.747-.8595.4158-.5761.6237-1.2315.6237-2.2184v.0009zm2.3132-.006c0 .7609-.1099 1.3361-.3356 1.9654a4.654 4.654 0 01-.9533 1.6076A4.214 4.214 0 0155.613 14.69c-.579.2412-1.4697.3795-1.9143.3795-.4462-.005-1.3303-.1324-1.9033-.3795a4.307 4.307 0 01-1.474-1.0316c-.4115-.4445-.7293-.9801-.9609-1.6076a5.3423 5.3423 0 01-.3465-1.9653c0-.7608.104-1.493.3356-2.1155a4.683 4.683 0 01.9719-1.5958 4.3383 4.3383 0 011.479-1.0257c.5739-.242 1.2043-.3567 1.8864-.3567.6829 0 1.3125.1197 1.8906.3567a4.1245 4.1245 0 011.4816 1.0257 4.7587 4.7587 0 01.9592 1.5958c.2426.6225.3643 1.3547.3643 2.1155zm-17.0198 0c0 .9448.208 1.9932.6238 2.431.4166.4386.955.6579 1.6142.6579.3584 0 .6998-.0523 1.0176-.1502.3186-.0978.5721-.2134.775-.3517V7.0784a8.8706 8.8706 0 00-1.4926-.1906c-.8206-.0236-1.4452.312-1.8847.8468-.4335.5365-.6533 1.476-.6533 2.3516v-.0008zm6.2863 4.4485c0 1.5385-.3938 2.662-1.1866 3.3773-.791.7136-2.0005 1.0712-3.6308 1.0712-.5958 0-1.834-.1156-2.8228-.334l.3643-1.7865c.8282.173 1.9202.2193 2.4932.2193.9077 0 1.555-.1847 1.943-.5533.388-.3686.578-.916.578-1.643v-.3687a6.8289 6.8289 0 01-.8848.3349c-.3634.1096-.786.167-1.261.167-.6246 0-1.1917-.0979-1.7055-.2944a3.5554 3.5554 0 01-1.3244-.8645c-.3642-.3796-.6541-.8579-.8561-1.4289-.2028-.571-.3068-1.59-.3068-2.339 0-.7034.1099-1.5856.3245-2.1735.2198-.5871.5316-1.0949.9542-1.515.4167-.42.9255-.743 1.5213-.98a5.5923 5.5923 0 012.052-.3855c.7353 0 1.4114.092 2.0707.2024.6592.1088 1.2204.2236 1.6776.35v8.945-.0008zM11.5026 4.2418v-.6511c-.0005-.4553-.3704-.8241-.8266-.8241H8.749c-.4561 0-.826.3688-.8265.824v.669c0 .0742.0693.1264.1445.1096a6.0346 6.0346 0 011.6768-.2362 6.125 6.125 0 011.6202.2185.1116.1116 0 00.1386-.1097zm-5.2806.852l-.3296-.3282a.8266.8266 0 00-1.168 0l-.393.3922a.8199.8199 0 000 1.164l.3237.323c.0524.0515.1268.0397.1733-.0117.191-.259.3989-.507.6305-.7372.2374-.2362.48-.4437.7462-.6335.0575-.0354.0634-.1155.017-.1687zm3.5159 2.069v2.818c0 .081.0879.1392.1622.0987l2.5102-1.2964c.0574-.0287.0752-.0987.0464-.1552a3.1237 3.1237 0 00-2.603-1.574c-.0575 0-.115.0456-.115.1097l-.0008-.0009zm.0008 6.789c-2.0933.0005-3.7915-1.6912-3.7947-3.7804C5.9468 8.0821 7.6452 6.39 9.7387 6.391c2.0932-.0005 3.7911 1.6914 3.794 3.7804a3.7783 3.7783 0 01-1.1124 2.675 3.7936 3.7936 0 01-2.6824 1.1054h.0008zM9.738 4.8002c-1.9218 0-3.6975 1.0232-4.6584 2.6841a5.359 5.359 0 000 5.3683c.9609 1.661 2.7366 2.6841 4.6584 2.6841a5.3891 5.3891 0 003.8073-1.5725 5.3675 5.3675 0 001.578-3.7987 5.3574 5.3574 0 00-1.5771-3.797A5.379 5.379 0 009.7387 4.801l-.0008-.0008z", fill: "currentColor", fillRule: "evenodd" }) }) }));
10
10
  };
11
11
  exports.AlgoliaCredit = AlgoliaCredit;
@@ -15,6 +15,6 @@ const MODE_TO_STRING = {
15
15
  docs: 'documentation',
16
16
  };
17
17
  const QuickSwitcherNoResults = ({ query, mode }) => {
18
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: ["No ", MODE_TO_STRING[mode], " matching ", '"', query, '"'] }));
18
+ return (jsx_runtime_1.jsxs("div", { style: container, children: ["No ", MODE_TO_STRING[mode], " matching ", '"', query, '"'] }));
19
19
  };
20
20
  exports.QuickSwitcherNoResults = QuickSwitcherNoResults;
@@ -4,6 +4,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const DismissableModal_1 = require("../NewComposition/DismissableModal");
5
5
  const QuickSwitcherContent_1 = require("./QuickSwitcherContent");
6
6
  const QuickSwitcher = ({ initialMode, invocationTimestamp, readOnlyStudio }) => {
7
- return ((0, jsx_runtime_1.jsx)(DismissableModal_1.DismissableModal, { children: (0, jsx_runtime_1.jsx)(QuickSwitcherContent_1.QuickSwitcherContent, { readOnlyStudio: readOnlyStudio, invocationTimestamp: invocationTimestamp, initialMode: initialMode }) }));
7
+ return (jsx_runtime_1.jsx(DismissableModal_1.DismissableModal, { children: jsx_runtime_1.jsx(QuickSwitcherContent_1.QuickSwitcherContent, { readOnlyStudio: readOnlyStudio, invocationTimestamp: invocationTimestamp, initialMode: initialMode }) }));
8
8
  };
9
9
  exports.default = QuickSwitcher;
@@ -277,9 +277,18 @@ const QuickSwitcherContent = ({ initialMode, invocationTimestamp, readOnlyStudio
277
277
  height: 300,
278
278
  };
279
279
  }, [showKeyboardShortcuts]);
280
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsxs)("div", { style: modeSelector, children: [(0, jsx_runtime_1.jsx)("button", { onClick: onCompositionsSelected, style: mode === 'compositions' ? modeActive : modeInactive, type: "button", children: "Compositions" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("button", { onClick: onActionsSelected, style: mode === 'commands' ? modeActive : modeInactive, type: "button", children: "Actions" }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("button", { onClick: onDocSearchSelected, style: mode === 'docs' ? modeActive : modeInactive, type: "button", children: "Documentation" })] }), (0, jsx_runtime_1.jsxs)("div", { style: content, children: [(0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { ref: inputRef, type: "text", style: input, autoFocus: true, status: "ok", value: state.query, onChange: onTextChange, placeholder: "Search compositions...", rightAlign: false }), showKeyboardShortcuts ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), " ", (0, jsx_runtime_1.jsx)(AlgoliaCredit_1.AlgoliaCredit, {})] })) : null] }), (0, jsx_runtime_1.jsx)("div", { style: results, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: showKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(KeyboardShortcutsExplainer_1.KeyboardShortcutsExplainer, {})) : showSearchLoadingState ? null : resultsArray.length === 0 ? ((0, jsx_runtime_1.jsx)(NoResults_1.QuickSwitcherNoResults, { mode: mode, query: actualQuery })) : (resultsArray.map((result, i) => {
281
- return ((0, jsx_runtime_1.jsx)(QuickSwitcherResult_1.QuickSwitcherResult, { selected: selectedIndexRounded === i, result: result }, result.id));
282
- })) })] }));
280
+ return (jsx_runtime_1.jsxs("div", { style: container, children: [
281
+ jsx_runtime_1.jsxs("div", { style: modeSelector, children: [
282
+ jsx_runtime_1.jsx("button", { onClick: onCompositionsSelected, style: mode === 'compositions' ? modeActive : modeInactive, type: "button", children: "Compositions" }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx("button", { onClick: onActionsSelected, style: mode === 'commands' ? modeActive : modeInactive, type: "button", children: "Actions" }), jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx("button", { onClick: onDocSearchSelected, style: mode === 'docs' ? modeActive : modeInactive, type: "button", children: "Documentation" })
283
+ ] }), jsx_runtime_1.jsxs("div", { style: content, children: [
284
+ jsx_runtime_1.jsx(RemInput_1.RemotionInput, { ref: inputRef, type: "text", style: input, autoFocus: true, status: "ok", value: state.query, onChange: onTextChange, placeholder: "Search compositions...", rightAlign: false }), showKeyboardShortcuts ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
285
+ jsx_runtime_1.jsx(layout_1.Spacing, { x: 2 }),
286
+ " ",
287
+ jsx_runtime_1.jsx(AlgoliaCredit_1.AlgoliaCredit, {})
288
+ ] })) : null] }), jsx_runtime_1.jsx("div", { style: results, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: showKeyboardShortcuts ? (jsx_runtime_1.jsx(KeyboardShortcutsExplainer_1.KeyboardShortcutsExplainer, {})) : showSearchLoadingState ? null : resultsArray.length === 0 ? (jsx_runtime_1.jsx(NoResults_1.QuickSwitcherNoResults, { mode: mode, query: actualQuery })) : (resultsArray.map((result, i) => {
289
+ return (jsx_runtime_1.jsx(QuickSwitcherResult_1.QuickSwitcherResult, { selected: selectedIndexRounded === i, result: result }, result.id));
290
+ })) })
291
+ ] }));
283
292
  };
284
293
  exports.QuickSwitcherContent = QuickSwitcherContent;
285
294
  function waitForElm(selector) {
@@ -99,14 +99,17 @@ const QuickSwitcherResult = ({ result, selected }) => {
99
99
  fontSize: 15,
100
100
  };
101
101
  }, [hovered, result.type, selected]);
102
- return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, style: style, onClick: result.onSelected, children: [result.type === 'composition' ? (result.compositionType === 'still' ? ((0, jsx_runtime_1.jsx)(still_1.StillIcon, { color: selected ? 'white' : colors_1.LIGHT_TEXT, style: iconStyle })) : ((0, jsx_runtime_1.jsx)(video_1.FilmIcon, { color: selected ? 'white' : colors_1.LIGHT_TEXT, style: iconStyle }))) : null, (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("div", { style: labelContainer, children: result.type === 'search-result' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", {
102
+ return (jsx_runtime_1.jsxs("div", { ref: ref, style: style, onClick: result.onSelected, children: [result.type === 'composition' ? (result.compositionType === 'still' ? (jsx_runtime_1.jsx(still_1.StillIcon, { color: selected ? 'white' : colors_1.LIGHT_TEXT, style: iconStyle })) : (jsx_runtime_1.jsx(video_1.FilmIcon, { color: selected ? 'white' : colors_1.LIGHT_TEXT, style: iconStyle }))) : null, jsx_runtime_1.jsx(layout_1.Spacing, { x: 1 }), jsx_runtime_1.jsx("div", { style: labelContainer, children: result.type === 'search-result' ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
103
+ jsx_runtime_1.jsx("div", {
103
104
  // eslint-disable-next-line react/no-danger
104
105
  dangerouslySetInnerHTML: {
105
106
  __html: result.titleLine,
106
- }, style: labelStyle }), (0, jsx_runtime_1.jsx)("div", {
107
+ }, style: labelStyle }), jsx_runtime_1.jsx("div", {
107
108
  // eslint-disable-next-line react/no-danger
108
109
  dangerouslySetInnerHTML: {
109
110
  __html: result.subtitleLine,
110
- }, style: labelStyle })] })) : ((0, jsx_runtime_1.jsx)("div", { style: labelStyle, children: result.title })) })] }, result.id));
111
+ }, style: labelStyle })
112
+ ] })) : (jsx_runtime_1.jsx("div", { style: labelStyle, children: result.title })) })
113
+ ] }, result.id));
111
114
  };
112
115
  exports.QuickSwitcherResult = QuickSwitcherResult;
@@ -14,6 +14,6 @@ const shadow = {
14
14
  boxShadow: '0 0 4px black',
15
15
  };
16
16
  const RefreshCompositionOverlay = () => {
17
- return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: exports.container, children: (0, jsx_runtime_1.jsx)("div", { style: shadow, children: (0, jsx_runtime_1.jsx)(RunningCalculateMetadata_1.RunningCalculateMetadata, {}) }) }));
17
+ return (jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: exports.container, children: jsx_runtime_1.jsx("div", { style: shadow, children: jsx_runtime_1.jsx(RunningCalculateMetadata_1.RunningCalculateMetadata, {}) }) }));
18
18
  };
19
19
  exports.RefreshCompositionOverlay = RefreshCompositionOverlay;