@remotion/cli 4.0.0-alpha4 → 4.0.0-alpha5

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 (471) hide show
  1. package/dist/ansi/ansi-diff.d.ts +2 -1
  2. package/dist/ansi/ansi-diff.js +14 -20
  3. package/dist/ansi/ansi-split.d.ts +1 -0
  4. package/dist/ansi/ansi-split.js +16 -3
  5. package/dist/benchmark.js +64 -23
  6. package/dist/codemods/update-default-props.d.ts +5 -0
  7. package/dist/codemods/update-default-props.js +143 -0
  8. package/dist/color-math.d.ts +2 -0
  9. package/dist/color-math.js +11 -0
  10. package/dist/composition-prompts.d.ts +3 -4
  11. package/dist/composition-prompts.js +0 -1
  12. package/dist/compositions.js +10 -4
  13. package/dist/config/bitrate.d.ts +2 -2
  14. package/dist/config/bitrate.js +2 -2
  15. package/dist/config/browser.d.ts +1 -3
  16. package/dist/config/browser.js +2 -12
  17. package/dist/config/codec.d.ts +0 -4
  18. package/dist/config/codec.js +1 -21
  19. package/dist/config/image-format.d.ts +5 -3
  20. package/dist/config/image-format.js +32 -10
  21. package/dist/config/index.d.ts +255 -14
  22. package/dist/config/index.js +16 -49
  23. package/dist/config/jpeg-quality.d.ts +2 -0
  24. package/dist/config/jpeg-quality.js +17 -0
  25. package/dist/config/public-dir.d.ts +1 -1
  26. package/dist/config/scale.d.ts +2 -1
  27. package/dist/convert-entry-point-to-serve-url.d.ts +1 -0
  28. package/dist/convert-entry-point-to-serve-url.js +15 -0
  29. package/dist/determine-image-format.d.ts +5 -4
  30. package/dist/determine-image-format.js +17 -4
  31. package/dist/download-progress.d.ts +2 -2
  32. package/dist/download-progress.js +12 -3
  33. package/dist/editor/components/Canvas.js +3 -0
  34. package/dist/editor/components/Checkbox.d.ts +6 -0
  35. package/dist/editor/components/Checkbox.js +42 -0
  36. package/dist/editor/components/CheckerboardProvider.d.ts +4 -0
  37. package/dist/editor/components/CheckerboardProvider.js +24 -0
  38. package/dist/editor/components/CompositionSelector.js +2 -4
  39. package/dist/editor/components/CompositionSelectorItem.d.ts +3 -3
  40. package/dist/editor/components/CompositionSelectorItem.js +24 -6
  41. package/dist/editor/components/CurrentComposition.js +4 -19
  42. package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
  43. package/dist/editor/components/CurrentCompositionSideEffects.js +51 -0
  44. package/dist/editor/components/Editor.js +2 -11
  45. package/dist/editor/components/EditorContent.js +1 -1
  46. package/dist/editor/components/EditorContexts.js +10 -86
  47. package/dist/editor/components/GlobalKeybindings.js +4 -0
  48. package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
  49. package/dist/editor/components/InlineAction.d.ts +7 -0
  50. package/dist/editor/components/InlineAction.js +31 -0
  51. package/dist/editor/components/KeyboardShortcutsExplainer.js +5 -4
  52. package/dist/editor/components/MediaVolumeProvider.d.ts +4 -0
  53. package/dist/editor/components/MediaVolumeProvider.js +25 -0
  54. package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -1
  55. package/dist/editor/components/Menu/MenuSubItem.js +15 -3
  56. package/dist/editor/components/Menu/is-menu-item.d.ts +2 -0
  57. package/dist/editor/components/Menu/is-menu-item.js +3 -1
  58. package/dist/editor/components/Menu/styles.d.ts +4 -0
  59. package/dist/editor/components/Menu/styles.js +13 -4
  60. package/dist/editor/components/MenuToolbar.js +2 -1
  61. package/dist/editor/components/ModalContainer.d.ts +2 -0
  62. package/dist/editor/components/ModalContainer.js +12 -3
  63. package/dist/editor/components/ModalHeader.js +6 -2
  64. package/dist/editor/components/Modals.d.ts +2 -0
  65. package/dist/editor/components/Modals.js +23 -0
  66. package/dist/editor/components/ModalsProvider.d.ts +4 -0
  67. package/dist/editor/components/ModalsProvider.js +17 -0
  68. package/dist/editor/components/NewComposition/CancelButton.js +3 -0
  69. package/dist/editor/components/NewComposition/ComboBox.js +23 -15
  70. package/dist/editor/components/NewComposition/InputDragger.d.ts +4 -0
  71. package/dist/editor/components/NewComposition/InputDragger.js +12 -7
  72. package/dist/editor/components/NewComposition/MenuContent.js +14 -1
  73. package/dist/editor/components/NewComposition/NewCompDuration.js +2 -2
  74. package/dist/editor/components/NewComposition/NewComposition.js +8 -5
  75. package/dist/editor/components/NewComposition/RemInput.d.ts +14 -2
  76. package/dist/editor/components/NewComposition/RemInput.js +24 -9
  77. package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +7 -0
  78. package/dist/editor/components/NewComposition/RemInputTypeColor.js +53 -0
  79. package/dist/editor/components/NewComposition/RemTextarea.d.ts +7 -0
  80. package/dist/editor/components/NewComposition/RemTextarea.js +92 -0
  81. package/dist/editor/components/NewComposition/ValidationMessage.d.ts +2 -0
  82. package/dist/editor/components/NewComposition/ValidationMessage.js +18 -8
  83. package/dist/editor/components/Notifications/NotificationCenter.d.ts +1 -0
  84. package/dist/editor/components/Notifications/NotificationCenter.js +11 -1
  85. package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -4
  86. package/dist/editor/components/Notifications/ServerDisconnected.js +4 -14
  87. package/dist/editor/components/PlayPause.js +6 -0
  88. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +3 -0
  89. package/dist/editor/components/PlaybackRateSelector.d.ts +0 -2
  90. package/dist/editor/components/PlaybackRateSelector.js +5 -6
  91. package/dist/editor/components/PlayerEmitterContext.d.ts +4 -0
  92. package/dist/editor/components/PlayerEmitterContext.js +11 -0
  93. package/dist/editor/components/Preview.d.ts +0 -1
  94. package/dist/editor/components/Preview.js +4 -4
  95. package/dist/editor/components/PreviewToolbar.js +2 -2
  96. package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +8 -3
  97. package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +4 -2
  98. package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +0 -27
  99. package/dist/editor/components/QuickSwitcher/algolia-search.js +2 -3
  100. package/dist/editor/components/RenderButton.d.ts +2 -0
  101. package/dist/editor/components/RenderButton.js +103 -0
  102. package/dist/editor/components/RenderModal/CliCopyButton.d.ts +4 -0
  103. package/dist/editor/components/RenderModal/CliCopyButton.js +22 -0
  104. package/dist/editor/components/RenderModal/CrfSetting.d.ts +15 -0
  105. package/dist/editor/components/RenderModal/CrfSetting.js +42 -0
  106. package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +8 -0
  107. package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +16 -0
  108. package/dist/editor/components/RenderModal/EnvInput.d.ts +11 -0
  109. package/dist/editor/components/RenderModal/EnvInput.js +74 -0
  110. package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +8 -0
  111. package/dist/editor/components/RenderModal/FrameRangeSetting.js +42 -0
  112. package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +5 -0
  113. package/dist/editor/components/RenderModal/GuiRenderStatus.js +78 -0
  114. package/dist/editor/components/RenderModal/InfoBubble.d.ts +5 -0
  115. package/dist/editor/components/RenderModal/InfoBubble.js +115 -0
  116. package/dist/editor/components/RenderModal/InfoTooltip.d.ts +5 -0
  117. package/dist/editor/components/RenderModal/InfoTooltip.js +40 -0
  118. package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +5 -0
  119. package/dist/editor/components/RenderModal/InlineEyeIcon.js +17 -0
  120. package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +4 -0
  121. package/dist/editor/components/RenderModal/InlineRemoveButton.js +17 -0
  122. package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +5 -0
  123. package/dist/editor/components/RenderModal/JpegQualitySetting.js +12 -0
  124. package/dist/editor/components/RenderModal/MutedSetting.d.ts +8 -0
  125. package/dist/editor/components/RenderModal/MutedSetting.js +16 -0
  126. package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +5 -0
  127. package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +26 -0
  128. package/dist/editor/components/RenderModal/NumberSetting.d.ts +12 -0
  129. package/dist/editor/components/RenderModal/NumberSetting.js +29 -0
  130. package/dist/editor/components/RenderModal/OptionExplainer.d.ts +5 -0
  131. package/dist/editor/components/RenderModal/OptionExplainer.js +45 -0
  132. package/dist/editor/components/RenderModal/RenderModal.d.ts +35 -0
  133. package/dist/editor/components/RenderModal/RenderModal.js +597 -0
  134. package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +26 -0
  135. package/dist/editor/components/RenderModal/RenderModalAdvanced.js +61 -0
  136. package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +17 -0
  137. package/dist/editor/components/RenderModal/RenderModalAudio.js +46 -0
  138. package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +23 -0
  139. package/dist/editor/components/RenderModal/RenderModalBasic.js +79 -0
  140. package/dist/editor/components/RenderModal/RenderModalData.d.ts +20 -0
  141. package/dist/editor/components/RenderModal/RenderModalData.js +249 -0
  142. package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +5 -0
  143. package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +55 -0
  144. package/dist/editor/components/RenderModal/RenderModalGif.d.ts +9 -0
  145. package/dist/editor/components/RenderModal/RenderModalGif.js +19 -0
  146. package/dist/editor/components/RenderModal/RenderModalHr.d.ts +2 -0
  147. package/dist/editor/components/RenderModal/RenderModalHr.js +18 -0
  148. package/dist/editor/components/RenderModal/RenderModalInput.d.ts +10 -0
  149. package/dist/editor/components/RenderModal/RenderModalInput.js +13 -0
  150. package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +15 -0
  151. package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.js +109 -0
  152. package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +28 -0
  153. package/dist/editor/components/RenderModal/RenderModalPicture.js +54 -0
  154. package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +4 -0
  155. package/dist/editor/components/RenderModal/RenderStatusModal.js +72 -0
  156. package/dist/editor/components/RenderModal/ScaleSetting.d.ts +5 -0
  157. package/dist/editor/components/RenderModal/ScaleSetting.js +17 -0
  158. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +13 -0
  159. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +39 -0
  160. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.d.ts +2 -0
  161. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.js +15 -0
  162. package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +12 -0
  163. package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +59 -0
  164. package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +16 -0
  165. package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +40 -0
  166. package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +4 -0
  167. package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +17 -0
  168. package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +5 -0
  169. package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +17 -0
  170. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +15 -0
  171. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +84 -0
  172. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +14 -0
  173. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +28 -0
  174. package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +13 -0
  175. package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +27 -0
  176. package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +15 -0
  177. package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +116 -0
  178. package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +15 -0
  179. package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +76 -0
  180. package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +15 -0
  181. package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +55 -0
  182. package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +15 -0
  183. package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +72 -0
  184. package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +5 -0
  185. package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +23 -0
  186. package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +9 -0
  187. package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +27 -0
  188. package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +15 -0
  189. package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +10 -0
  190. package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +15 -0
  191. package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +88 -0
  192. package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +15 -0
  193. package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +64 -0
  194. package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +15 -0
  195. package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +10 -0
  196. package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +16 -0
  197. package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +52 -0
  198. package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +15 -0
  199. package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +48 -0
  200. package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +15 -0
  201. package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +84 -0
  202. package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +15 -0
  203. package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +49 -0
  204. package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -0
  205. package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +158 -0
  206. package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +6 -0
  207. package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +24 -0
  208. package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +2 -0
  209. package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +15 -0
  210. package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -0
  211. package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +2 -0
  212. package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +6 -0
  213. package/dist/editor/components/RenderModal/WarningIndicatorButton.js +49 -0
  214. package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +15 -0
  215. package/dist/editor/components/RenderModal/get-render-modal-warnings.js +34 -0
  216. package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +2 -0
  217. package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +18 -0
  218. package/dist/editor/components/RenderModal/human-readable-codec.d.ts +2 -0
  219. package/dist/editor/components/RenderModal/human-readable-codec.js +36 -0
  220. package/dist/editor/components/RenderModal/layout.d.ts +7 -0
  221. package/dist/editor/components/RenderModal/layout.js +45 -0
  222. package/dist/editor/components/RenderModal/out-name-checker.d.ts +14 -0
  223. package/dist/editor/components/RenderModal/out-name-checker.js +80 -0
  224. package/dist/editor/components/RenderQueue/CircularProgress.d.ts +5 -0
  225. package/dist/editor/components/RenderQueue/CircularProgress.js +18 -0
  226. package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +5 -0
  227. package/dist/editor/components/RenderQueue/RenderQueueError.js +26 -0
  228. package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +5 -0
  229. package/dist/editor/components/RenderQueue/RenderQueueItem.js +40 -0
  230. package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +5 -0
  231. package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +26 -0
  232. package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +5 -0
  233. package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +43 -0
  234. package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +5 -0
  235. package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +26 -0
  236. package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +5 -0
  237. package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +26 -0
  238. package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +5 -0
  239. package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +26 -0
  240. package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +5 -0
  241. package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +37 -0
  242. package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +5 -0
  243. package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +26 -0
  244. package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +2 -0
  245. package/dist/editor/components/RenderQueue/SuccessIcon.js +14 -0
  246. package/dist/editor/components/RenderQueue/actions.d.ts +58 -0
  247. package/dist/editor/components/RenderQueue/actions.js +120 -0
  248. package/dist/editor/components/RenderQueue/context.d.ts +18 -0
  249. package/dist/editor/components/RenderQueue/context.js +49 -0
  250. package/dist/editor/components/RenderQueue/index.d.ts +2 -0
  251. package/dist/editor/components/RenderQueue/index.js +43 -0
  252. package/dist/editor/components/RenderQueue/item-style.d.ts +2 -0
  253. package/dist/editor/components/RenderQueue/item-style.js +21 -0
  254. package/dist/editor/components/RendersTab.d.ts +6 -0
  255. package/dist/editor/components/RendersTab.js +43 -0
  256. package/dist/editor/components/RightPanel.d.ts +8 -0
  257. package/dist/editor/components/RightPanel.js +76 -0
  258. package/dist/editor/components/SegmentedControl.d.ts +11 -0
  259. package/dist/editor/components/SegmentedControl.js +62 -0
  260. package/dist/editor/components/SetTimelineInOutProvider.d.ts +4 -0
  261. package/dist/editor/components/SetTimelineInOutProvider.js +19 -0
  262. package/dist/editor/components/SidebarCollapserControls.d.ts +2 -0
  263. package/dist/editor/components/SidebarCollapserControls.js +129 -0
  264. package/dist/editor/components/SidebarRenderButton.d.ts +6 -0
  265. package/dist/editor/components/SidebarRenderButton.js +85 -0
  266. package/dist/editor/components/SizeSelector.d.ts +0 -1
  267. package/dist/editor/components/SizeSelector.js +3 -3
  268. package/dist/editor/components/Splitter/SplitterHandle.d.ts +1 -2
  269. package/dist/editor/components/Splitter/SplitterHandle.js +15 -7
  270. package/dist/editor/components/Tabs/index.d.ts +11 -0
  271. package/dist/editor/components/Tabs/index.js +58 -0
  272. package/dist/editor/components/Tabs/vertical.d.ts +7 -0
  273. package/dist/editor/components/Tabs/vertical.js +43 -0
  274. package/dist/editor/components/Timeline/MaxTimelineTracks.js +1 -1
  275. package/dist/editor/components/Timeline/Timeline.js +1 -1
  276. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +1 -0
  277. package/dist/editor/components/Timeline/TimelineCollapseToggle.js +4 -5
  278. package/dist/editor/components/Timeline/TimelineListItem.js +2 -1
  279. package/dist/editor/components/Timeline/TimelineScrollable.js +2 -1
  280. package/dist/editor/components/Timeline/TimelineSequence.js +2 -14
  281. package/dist/editor/components/Timeline/TimelineSequenceFrame.js +2 -1
  282. package/dist/editor/components/Timeline/TimelineZoomControls.js +2 -5
  283. package/dist/editor/components/Timeline/imperative-state.d.ts +0 -4
  284. package/dist/editor/components/Timeline/imperative-state.js +13 -13
  285. package/dist/editor/components/Timeline/is-collapsed.js +2 -3
  286. package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -1
  287. package/dist/editor/components/Timeline/timeline-scroll-logic.js +5 -6
  288. package/dist/editor/components/TimelineInOutToggle.js +3 -0
  289. package/dist/editor/components/TopPanel.d.ts +1 -0
  290. package/dist/editor/components/TopPanel.js +30 -16
  291. package/dist/editor/components/ZoomGesturesProvider.d.ts +4 -0
  292. package/dist/editor/components/ZoomGesturesProvider.js +24 -0
  293. package/dist/editor/components/ZoomPersistor.d.ts +0 -1
  294. package/dist/editor/components/ZoomPersistor.js +2 -3
  295. package/dist/editor/components/get-zod-if-possible.d.ts +10 -0
  296. package/dist/editor/components/get-zod-if-possible.js +79 -0
  297. package/dist/editor/components/layout.d.ts +3 -1
  298. package/dist/editor/components/layout.js +9 -7
  299. package/dist/editor/helpers/calculate-timeline.d.ts +0 -4
  300. package/dist/editor/helpers/client-id.d.ts +17 -0
  301. package/dist/editor/helpers/client-id.js +46 -0
  302. package/dist/editor/helpers/colors.d.ts +3 -1
  303. package/dist/editor/helpers/colors.js +6 -3
  304. package/dist/editor/helpers/convert-env-variables.d.ts +2 -0
  305. package/dist/editor/helpers/convert-env-variables.js +20 -0
  306. package/dist/editor/helpers/create-folder-tree.d.ts +2 -3
  307. package/dist/editor/helpers/create-folder-tree.js +3 -4
  308. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
  309. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +2 -1
  310. package/dist/editor/helpers/is-composition-still.d.ts +2 -2
  311. package/dist/editor/helpers/is-composition-still.js +3 -0
  312. package/dist/editor/helpers/prores-labels.d.ts +2 -0
  313. package/dist/editor/helpers/prores-labels.js +25 -0
  314. package/dist/editor/helpers/render-modal-sections.d.ts +10 -0
  315. package/dist/editor/helpers/render-modal-sections.js +32 -0
  316. package/dist/editor/helpers/use-breakpoint.d.ts +1 -0
  317. package/dist/editor/helpers/use-breakpoint.js +17 -0
  318. package/dist/editor/helpers/use-file-existence.d.ts +1 -0
  319. package/dist/editor/helpers/use-file-existence.js +66 -0
  320. package/dist/editor/helpers/use-keybinding.d.ts +1 -0
  321. package/dist/editor/helpers/use-keybinding.js +9 -0
  322. package/dist/editor/helpers/use-menu-structure.js +99 -51
  323. package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
  324. package/dist/editor/icons/Checkmark.js +1 -1
  325. package/dist/editor/icons/audio.d.ts +2 -0
  326. package/dist/editor/icons/audio.js +6 -0
  327. package/dist/editor/icons/caret.d.ts +4 -1
  328. package/dist/editor/icons/caret.js +17 -1
  329. package/dist/editor/icons/data.d.ts +2 -0
  330. package/dist/editor/icons/data.js +8 -0
  331. package/dist/editor/icons/file.d.ts +2 -0
  332. package/dist/editor/icons/file.js +6 -0
  333. package/dist/editor/icons/folder.d.ts +6 -2
  334. package/dist/editor/icons/folder.js +4 -4
  335. package/dist/editor/icons/frame.d.ts +2 -0
  336. package/dist/editor/icons/frame.js +6 -0
  337. package/dist/editor/icons/gear.d.ts +2 -0
  338. package/dist/editor/icons/gear.js +6 -0
  339. package/dist/editor/icons/gif.d.ts +2 -0
  340. package/dist/editor/icons/gif.js +6 -0
  341. package/dist/editor/icons/render.d.ts +9 -0
  342. package/dist/editor/icons/render.js +12 -0
  343. package/dist/editor/icons/still.d.ts +3 -1
  344. package/dist/editor/icons/still.js +2 -2
  345. package/dist/editor/icons/video.d.ts +5 -0
  346. package/dist/editor/icons/video.js +8 -0
  347. package/dist/editor/state/keybindings.d.ts +2 -1
  348. package/dist/editor/state/modals.d.ts +38 -0
  349. package/dist/editor/state/preview-size.d.ts +0 -1
  350. package/dist/editor/state/preview-size.js +3 -4
  351. package/dist/editor/state/sidebar.d.ts +7 -3
  352. package/dist/editor/state/sidebar.js +42 -13
  353. package/dist/editor/state/timeline-ref.d.ts +2 -1
  354. package/dist/editor/state/z-index.d.ts +0 -5
  355. package/dist/editor/state/z-index.js +16 -6
  356. package/dist/event-source-events.d.ts +15 -0
  357. package/dist/event-source.d.ts +2 -0
  358. package/dist/event-source.js +31 -5
  359. package/dist/ffmpeg.d.ts +2 -0
  360. package/dist/ffmpeg.js +21 -0
  361. package/dist/file-watcher.d.ts +9 -0
  362. package/dist/file-watcher.js +35 -0
  363. package/dist/get-cli-options.d.ts +3 -12
  364. package/dist/get-cli-options.js +7 -60
  365. package/dist/get-composition-id.d.ts +7 -3
  366. package/dist/get-composition-id.js +17 -3
  367. package/dist/get-composition-with-dimension-override.d.ts +5 -4
  368. package/dist/get-composition-with-dimension-override.js +6 -2
  369. package/dist/get-config-file-name.d.ts +0 -2
  370. package/dist/get-config-file-name.js +7 -7
  371. package/dist/get-default-out-name.d.ts +5 -0
  372. package/dist/get-default-out-name.js +10 -0
  373. package/dist/get-env.d.ts +1 -1
  374. package/dist/get-env.js +39 -48
  375. package/dist/get-filename.d.ts +5 -1
  376. package/dist/get-filename.js +6 -4
  377. package/dist/get-final-output-codec.d.ts +2 -1
  378. package/dist/get-final-output-codec.js +4 -1
  379. package/dist/get-input-props.d.ts +1 -5
  380. package/dist/get-input-props.js +11 -13
  381. package/dist/image-formats.d.ts +5 -2
  382. package/dist/image-formats.js +16 -6
  383. package/dist/index.d.ts +91 -22
  384. package/dist/index.js +12 -13
  385. package/dist/list-of-remotion-packages.js +1 -0
  386. package/dist/load-config.js +1 -1
  387. package/dist/log.d.ts +14 -0
  388. package/dist/log.js +24 -8
  389. package/dist/parse-command-line.d.ts +5 -5
  390. package/dist/parse-command-line.js +6 -14
  391. package/dist/preview-server/api-routes.d.ts +4 -0
  392. package/dist/preview-server/api-routes.js +21 -0
  393. package/dist/preview-server/api-types.d.ts +25 -0
  394. package/dist/preview-server/api-types.js +2 -0
  395. package/dist/preview-server/dev-middleware/middleware.d.ts +0 -1
  396. package/dist/preview-server/dev-middleware/middleware.js +1 -2
  397. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +1 -0
  398. package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +8 -4
  399. package/dist/preview-server/error-overlay/remotion-overlay/Button.js +12 -8
  400. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +2 -1
  401. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +1 -0
  402. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +1 -0
  403. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -0
  404. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -1
  405. package/dist/preview-server/file-existence-watchers.d.ts +13 -0
  406. package/dist/preview-server/file-existence-watchers.js +62 -0
  407. package/dist/preview-server/handler.d.ts +9 -0
  408. package/dist/preview-server/handler.js +34 -0
  409. package/dist/preview-server/hot-middleware/client.js +2 -2
  410. package/dist/preview-server/live-events.d.ts +2 -0
  411. package/dist/preview-server/live-events.js +22 -2
  412. package/dist/preview-server/parse-body.d.ts +2 -0
  413. package/dist/preview-server/parse-body.js +16 -0
  414. package/dist/preview-server/public-folder.d.ts +0 -5
  415. package/dist/preview-server/public-folder.js +3 -4
  416. package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +10 -0
  417. package/dist/preview-server/render-queue/get-default-video-contexts.js +13 -0
  418. package/dist/preview-server/render-queue/job.d.ts +138 -0
  419. package/dist/preview-server/render-queue/job.js +2 -0
  420. package/dist/preview-server/render-queue/make-retry-payload.d.ts +3 -0
  421. package/dist/preview-server/render-queue/make-retry-payload.js +91 -0
  422. package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +1 -0
  423. package/dist/preview-server/render-queue/open-directory-in-finder.js +43 -0
  424. package/dist/preview-server/render-queue/process-still.d.ts +8 -0
  425. package/dist/preview-server/render-queue/process-still.js +46 -0
  426. package/dist/preview-server/render-queue/process-video.d.ts +8 -0
  427. package/dist/preview-server/render-queue/process-video.js +63 -0
  428. package/dist/preview-server/render-queue/queue.d.ts +9 -0
  429. package/dist/preview-server/render-queue/queue.js +212 -0
  430. package/dist/preview-server/routes/add-render.d.ts +3 -0
  431. package/dist/preview-server/routes/add-render.js +76 -0
  432. package/dist/preview-server/routes/can-update-default-props.d.ts +4 -0
  433. package/dist/preview-server/routes/can-update-default-props.js +39 -0
  434. package/dist/preview-server/routes/cancel-render.d.ts +3 -0
  435. package/dist/preview-server/routes/cancel-render.js +9 -0
  436. package/dist/preview-server/routes/open-in-file-explorer.d.ts +3 -0
  437. package/dist/preview-server/routes/open-in-file-explorer.js +8 -0
  438. package/dist/preview-server/routes/remove-render.d.ts +3 -0
  439. package/dist/preview-server/routes/remove-render.js +9 -0
  440. package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +3 -0
  441. package/dist/preview-server/routes/subscribe-to-file-existence.js +13 -0
  442. package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +3 -0
  443. package/dist/preview-server/routes/unsubscribe-from-file-existence.js +13 -0
  444. package/dist/preview-server/routes/update-default-props.d.ts +3 -0
  445. package/dist/preview-server/routes/update-default-props.js +24 -0
  446. package/dist/preview-server/routes.d.ts +2 -1
  447. package/dist/preview-server/routes.js +71 -13
  448. package/dist/preview-server/start-server.js +1 -0
  449. package/dist/preview.js +8 -21
  450. package/dist/previewEntry.js +2 -3
  451. package/dist/print-compositions.d.ts +2 -2
  452. package/dist/print-error.js +4 -2
  453. package/dist/print-help.js +4 -8
  454. package/dist/progress-bar.d.ts +17 -37
  455. package/dist/progress-bar.js +102 -41
  456. package/dist/progress-types.d.ts +32 -0
  457. package/dist/progress-types.js +17 -0
  458. package/dist/render-flows/render.d.ts +47 -0
  459. package/dist/render-flows/render.js +293 -0
  460. package/dist/render-flows/still.d.ts +29 -0
  461. package/dist/render-flows/still.js +174 -0
  462. package/dist/render.js +42 -232
  463. package/dist/required-chromium-options.d.ts +3 -0
  464. package/dist/required-chromium-options.js +2 -0
  465. package/dist/select-composition.d.ts +2 -1
  466. package/dist/setup-cache.d.ts +12 -9
  467. package/dist/setup-cache.js +29 -20
  468. package/dist/still.js +25 -130
  469. package/dist/user-passed-output-location.js +2 -7
  470. package/package.json +22 -7
  471. package/styles/styles.css +13 -3
@@ -1,27 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bundleOnCli = exports.bundleOnCliOrTakeServeUrl = void 0;
3
+ exports.bundleOnCliOrTakeServeUrl = void 0;
4
4
  const bundler_1 = require("@remotion/bundler");
5
5
  const renderer_1 = require("@remotion/renderer");
6
6
  const config_1 = require("./config");
7
7
  const log_1 = require("./log");
8
8
  const parse_command_line_1 = require("./parse-command-line");
9
9
  const progress_bar_1 = require("./progress-bar");
10
- const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, steps, publicDir, }) => {
10
+ const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, }) => {
11
11
  if (renderer_1.RenderInternals.isServeUrl(fullPath)) {
12
12
  return {
13
13
  urlOrBundle: fullPath,
14
14
  cleanup: () => Promise.resolve(undefined),
15
15
  };
16
16
  }
17
- const bundled = await (0, exports.bundleOnCli)({ fullPath, remotionRoot, steps, publicDir });
17
+ const bundled = await bundleOnCli({
18
+ fullPath,
19
+ remotionRoot,
20
+ publicDir,
21
+ onProgressCallback: onProgress,
22
+ indent: indentOutput,
23
+ logLevel,
24
+ bundlingStep,
25
+ steps,
26
+ onDirectoryCreated,
27
+ });
18
28
  return {
19
29
  urlOrBundle: bundled,
20
30
  cleanup: () => renderer_1.RenderInternals.deleteDirectory(bundled),
21
31
  };
22
32
  };
23
33
  exports.bundleOnCliOrTakeServeUrl = bundleOnCliOrTakeServeUrl;
24
- const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
34
+ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, }) => {
25
35
  var _a;
26
36
  const shouldCache = config_1.ConfigInternals.getWebpackCaching();
27
37
  const symlinkState = {
@@ -30,14 +40,9 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
30
40
  const onProgress = (progress) => {
31
41
  bundlingState = {
32
42
  progress: progress / 100,
33
- steps,
34
43
  doneIn: null,
35
44
  };
36
- bundlingProgress.update((0, progress_bar_1.makeBundlingAndCopyProgress)({
37
- bundling: bundlingState,
38
- copying: copyingState,
39
- symLinks: symlinkState,
40
- }));
45
+ updateProgress(false);
41
46
  };
42
47
  let copyingState = {
43
48
  bytes: 0,
@@ -49,7 +54,11 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
49
54
  bundling: bundlingState,
50
55
  copying: copyingState,
51
56
  symLinks: symlinkState,
52
- }) + (newline ? '\n' : ''));
57
+ }, indent, bundlingStep, steps) + (newline ? '\n' : ''));
58
+ onProgressCallback({
59
+ bundling: bundlingState,
60
+ copying: copyingState,
61
+ });
53
62
  };
54
63
  const onPublicDirCopyProgress = (bytes) => {
55
64
  if (copyStart === null) {
@@ -82,18 +91,20 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
82
91
  });
83
92
  const cacheExistedBefore = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash);
84
93
  if (cacheExistedBefore !== 'does-not-exist' && !shouldCache) {
85
- log_1.Log.info('🧹 Cache disabled but found. Deleting... ');
94
+ log_1.Log.infoAdvanced({ indent, logLevel }, '🧹 Cache disabled but found. Deleting... ');
86
95
  await bundler_1.BundlerInternals.clearCache(remotionRoot);
87
96
  }
88
97
  if (cacheExistedBefore === 'other-exists' && shouldCache) {
89
- log_1.Log.info('🧹 Webpack config change detected. Clearing cache... ');
98
+ log_1.Log.infoAdvanced({ indent, logLevel }, '🧹 Webpack config change detected. Clearing cache... ');
90
99
  await bundler_1.BundlerInternals.clearCache(remotionRoot);
91
100
  }
92
101
  const bundleStartTime = Date.now();
93
- const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
102
+ const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)({
103
+ quiet: (0, parse_command_line_1.quietFlagProvided)(),
104
+ cancelSignal: null,
105
+ });
94
106
  let bundlingState = {
95
107
  progress: 0,
96
- steps,
97
108
  doneIn: null,
98
109
  };
99
110
  const bundled = await (0, bundler_1.bundle)({
@@ -101,16 +112,15 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
101
112
  onProgress: (progress) => {
102
113
  bundlingState = {
103
114
  progress: progress / 100,
104
- steps,
105
115
  doneIn: null,
106
116
  };
107
117
  updateProgress(false);
108
118
  },
119
+ onDirectoryCreated,
109
120
  ...options,
110
121
  });
111
122
  bundlingState = {
112
123
  progress: 1,
113
- steps,
114
124
  doneIn: Date.now() - bundleStartTime,
115
125
  };
116
126
  copyingState = {
@@ -118,14 +128,13 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
118
128
  doneIn: copyStart ? Date.now() - copyStart : null,
119
129
  };
120
130
  updateProgress(true);
121
- log_1.Log.verbose('Bundled under', bundled);
131
+ log_1.Log.verboseAdvanced({ indent, logLevel }, 'Bundled under', bundled);
122
132
  const cacheExistedAfter = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash) === 'exists';
123
133
  if (cacheExistedAfter) {
124
134
  if (cacheExistedBefore === 'does-not-exist' ||
125
135
  cacheExistedBefore === 'other-exists') {
126
- log_1.Log.info('⚡️ Cached bundle. Subsequent renders will be faster.');
136
+ log_1.Log.infoAdvanced({ indent, logLevel }, '⚡️ Cached bundle. Subsequent renders will be faster.');
127
137
  }
128
138
  }
129
139
  return bundled;
130
140
  };
131
- exports.bundleOnCli = bundleOnCli;
package/dist/still.js CHANGED
@@ -1,28 +1,14 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.still = void 0;
7
- const renderer_1 = require("@remotion/renderer");
8
- const fs_1 = require("fs");
9
- const path_1 = __importDefault(require("path"));
10
- const chalk_1 = require("./chalk");
11
4
  const cleanup_before_quit_1 = require("./cleanup-before-quit");
12
- const config_1 = require("./config");
13
- const determine_image_format_1 = require("./determine-image-format");
5
+ const convert_entry_point_to_serve_url_1 = require("./convert-entry-point-to-serve-url");
14
6
  const entry_point_1 = require("./entry-point");
15
7
  const get_cli_options_1 = require("./get-cli-options");
16
- const get_composition_with_dimension_override_1 = require("./get-composition-with-dimension-override");
17
8
  const log_1 = require("./log");
18
9
  const parse_command_line_1 = require("./parse-command-line");
19
- const progress_bar_1 = require("./progress-bar");
20
- const setup_cache_1 = require("./setup-cache");
21
- const truthy_1 = require("./truthy");
22
- const user_passed_output_location_1 = require("./user-passed-output-location");
10
+ const still_1 = require("./render-flows/still");
23
11
  const still = async (remotionRoot, args) => {
24
- var _a, _b;
25
- const startTime = Date.now();
26
12
  const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)(args, remotionRoot);
27
13
  if (!file) {
28
14
  log_1.Log.error('No entry point specified. Pass more arguments:');
@@ -30,135 +16,44 @@ const still = async (remotionRoot, args) => {
30
16
  log_1.Log.error('Documentation: https://www.remotion.dev/docs/render');
31
17
  process.exit(1);
32
18
  }
19
+ const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
33
20
  if (parse_command_line_1.parsedCli.frames) {
34
21
  log_1.Log.error('--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
35
22
  process.exit(1);
36
23
  }
37
- const { inputProps, envVariables, quality, browser, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, ffprobeExecutable, overwrite, puppeteerTimeout, port, publicDir, height, width, } = await (0, get_cli_options_1.getCliOptions)({
24
+ const { browser, browserExecutable, chromiumOptions, envVariables, height, inputProps, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, logLevel, } = await (0, get_cli_options_1.getCliOptions)({
38
25
  isLambda: false,
39
26
  type: 'still',
40
27
  remotionRoot,
41
28
  });
42
- log_1.Log.verbose('Browser executable: ', browserExecutable);
43
- const browserInstance = (0, renderer_1.openBrowser)(browser, {
29
+ await (0, still_1.renderStillFlow)({
30
+ remotionRoot,
31
+ entryPointReason,
32
+ fullEntryPoint,
33
+ remainingArgs,
34
+ browser,
44
35
  browserExecutable,
45
36
  chromiumOptions,
46
- shouldDumpIo: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
47
- forceDeviceScaleFactor: scale,
48
- });
49
- const steps = [
50
- renderer_1.RenderInternals.isServeUrl(file) ? null : 'bundling',
51
- 'rendering',
52
- ].filter(truthy_1.truthy);
53
- const { cleanup: cleanupBundle, urlOrBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({ fullPath: file, remotionRoot, steps, publicDir });
54
- (0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
55
- const puppeteerInstance = await browserInstance;
56
- const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
57
- (0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.cleanDownloadMap(downloadMap));
58
- const comps = await (0, renderer_1.getCompositions)(urlOrBundle, {
59
- inputProps,
60
- puppeteerInstance,
61
37
  envVariables,
62
- timeoutInMilliseconds: puppeteerTimeout,
63
- chromiumOptions,
64
- port,
65
- browserExecutable,
66
- ffmpegExecutable,
67
- ffprobeExecutable,
68
- downloadMap,
69
- });
70
- const { compositionId, config, reason, argsAfterComposition } = await (0, get_composition_with_dimension_override_1.getCompositionWithDimensionOverride)({
71
- validCompositions: comps,
72
38
  height,
73
- width,
74
- args: remainingArgs,
75
- });
76
- const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalImageFormat)({
77
- cliFlag: (_a = parse_command_line_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
78
- configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredImageFormat()) !== null && _b !== void 0 ? _b : null,
79
- downloadName: null,
80
- outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(argsAfterComposition),
81
- isLambda: false,
82
- });
83
- const relativeOutputLocation = (0, user_passed_output_location_1.getOutputLocation)({
84
- compositionId,
85
- defaultExtension: imageFormat,
86
- args: argsAfterComposition,
87
- type: 'asset',
88
- });
89
- const absoluteOutputLocation = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite);
90
- (0, fs_1.mkdirSync)(path_1.default.join(absoluteOutputLocation, '..'), {
91
- recursive: true,
92
- });
93
- log_1.Log.info(chalk_1.chalk.gray(`Entry point = ${file} (${entryPointReason}), Output = ${relativeOutputLocation}, Format = ${imageFormat} (${source}), Composition = ${compositionId} (${reason})`));
94
- const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
95
- const renderStart = Date.now();
96
- const downloads = [];
97
- let frames = 0;
98
- const totalFrames = 1;
99
- const updateProgress = () => {
100
- renderProgress.update((0, progress_bar_1.makeRenderingAndStitchingProgress)({
101
- rendering: {
102
- frames,
103
- concurrency: 1,
104
- doneIn: frames === totalFrames ? Date.now() - renderStart : null,
105
- steps,
106
- totalFrames,
107
- },
108
- downloads,
109
- stitching: null,
110
- }));
111
- };
112
- updateProgress();
113
- const onDownload = (src) => {
114
- const id = Math.random();
115
- const download = {
116
- id,
117
- name: src,
118
- progress: 0,
119
- downloaded: 0,
120
- totalBytes: null,
121
- };
122
- downloads.push(download);
123
- updateProgress();
124
- return ({ percent }) => {
125
- download.progress = percent;
126
- updateProgress();
127
- };
128
- };
129
- await (0, renderer_1.renderStill)({
130
- composition: config,
131
- frame: stillFrame,
132
- output: absoluteOutputLocation,
133
- serveUrl: urlOrBundle,
134
- quality,
135
- dumpBrowserLogs: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
136
- envVariables,
137
- imageFormat,
138
39
  inputProps,
139
- chromiumOptions,
140
- timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
141
- scale,
142
- ffmpegExecutable,
143
- browserExecutable,
144
40
  overwrite,
145
- onDownload,
146
41
  port,
147
- downloadMap,
42
+ publicDir,
43
+ puppeteerTimeout,
44
+ jpegQuality,
45
+ scale,
46
+ stillFrame,
47
+ width,
48
+ compositionIdFromUi: null,
49
+ imageFormatFromUi: null,
50
+ logLevel,
51
+ onProgress: () => undefined,
52
+ indentOutput: false,
53
+ addCleanupCallback: (c) => {
54
+ (0, cleanup_before_quit_1.registerCleanupJob)(c);
55
+ },
56
+ cancelSignal: null,
148
57
  });
149
- frames = 1;
150
- updateProgress();
151
- log_1.Log.info();
152
- const closeBrowserPromise = puppeteerInstance.close(false);
153
- log_1.Log.info(chalk_1.chalk.green('\nYour still frame is ready!'));
154
- const seconds = Math.round((Date.now() - startTime) / 1000);
155
- log_1.Log.info([
156
- '- Total render time:',
157
- seconds,
158
- seconds === 1 ? 'second' : 'seconds',
159
- ].join(' '));
160
- log_1.Log.info('-', 'Output can be found at:');
161
- log_1.Log.info(chalk_1.chalk.cyan(`▶️ ${absoluteOutputLocation}`));
162
- await closeBrowserPromise;
163
58
  };
164
59
  exports.still = still;
@@ -2,21 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOutputLocation = exports.getUserPassedOutputLocation = void 0;
4
4
  const config_1 = require("./config");
5
+ const get_default_out_name_1 = require("./get-default-out-name");
5
6
  const getUserPassedOutputLocation = (args) => {
6
7
  var _a;
7
8
  const filename = (_a = args[0]) !== null && _a !== void 0 ? _a : config_1.ConfigInternals.getOutputLocation();
8
9
  return filename;
9
10
  };
10
11
  exports.getUserPassedOutputLocation = getUserPassedOutputLocation;
11
- const getDefaultOutLocation = ({ compositionName, defaultExtension, type, }) => {
12
- if (type === 'sequence') {
13
- return `out/${compositionName}`;
14
- }
15
- return `out/${compositionName}.${defaultExtension}`;
16
- };
17
12
  const getOutputLocation = ({ compositionId, defaultExtension, args, type, }) => {
18
13
  var _a;
19
- return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a : getDefaultOutLocation({
14
+ return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a : (0, get_default_out_name_1.getDefaultOutLocation)({
20
15
  compositionName: compositionId,
21
16
  defaultExtension,
22
17
  type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "4.0.0-alpha4",
3
+ "version": "4.0.0-alpha5",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -13,19 +13,31 @@
13
13
  "bugs": {
14
14
  "url": "https://github.com/remotion-dev/remotion/issues"
15
15
  },
16
+ "exports": {
17
+ ".": "./dist/index.js",
18
+ "./config": "./dist/config/index.js",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "typesVersions": {
22
+ ">=1.0": {
23
+ "config": [
24
+ "dist/config/index.d.ts"
25
+ ]
26
+ }
27
+ },
16
28
  "author": "Jonny Burger <jonny@remotion.dev>",
17
29
  "license": "SEE LICENSE IN LICENSE.md",
18
30
  "dependencies": {
19
- "@remotion/bundler": "4.0.0-alpha4",
20
- "@remotion/media-utils": "4.0.0-alpha4",
21
- "@remotion/player": "4.0.0-alpha4",
22
- "@remotion/renderer": "4.0.0-alpha4",
31
+ "@remotion/bundler": "4.0.0-alpha5",
32
+ "@remotion/media-utils": "4.0.0-alpha5",
33
+ "@remotion/player": "4.0.0-alpha5",
34
+ "@remotion/renderer": "4.0.0-alpha5",
23
35
  "dotenv": "9.0.2",
24
36
  "memfs": "3.4.3",
25
37
  "minimist": "1.2.6",
26
38
  "open": "^8.4.2",
27
39
  "prompts": "2.4.1",
28
- "remotion": "4.0.0-alpha4",
40
+ "remotion": "4.0.0-alpha5",
29
41
  "semver": "7.3.5",
30
42
  "source-map": "0.6.1"
31
43
  },
@@ -39,10 +51,12 @@
39
51
  "@types/node": "^16.7.5",
40
52
  "@types/prompts": "^2.4.1",
41
53
  "@types/react": "18.0.26",
54
+ "@types/prettier": "^2.7.2",
42
55
  "@types/react-dom": "18.0.10",
43
56
  "@types/semver": "^7.3.4",
44
57
  "@typescript-eslint/eslint-plugin": "5.18.0",
45
58
  "@typescript-eslint/parser": "5.18.0",
59
+ "@remotion/zod-types": "4.0.0-alpha5",
46
60
  "eslint": "8.25.0",
47
61
  "eslint-plugin-10x": "1.5.2",
48
62
  "eslint-plugin-react": "7.29.4",
@@ -52,7 +66,8 @@
52
66
  "react": "^18.0.0",
53
67
  "react-dom": "^18.0.0",
54
68
  "typescript": "^4.7.0",
55
- "vitest": "0.24.3"
69
+ "vitest": "0.24.3",
70
+ "zod": "^3.21.4"
56
71
  },
57
72
  "keywords": [
58
73
  "remotion",
package/styles/styles.css CHANGED
@@ -1,5 +1,6 @@
1
1
  html {
2
- --blue: #4290f5;
2
+ --blue: #0b84f3;
3
+ --blue-disabled: #284f73;
3
4
  }
4
5
 
5
6
  body {
@@ -27,9 +28,18 @@ input::-webkit-inner-spin-button {
27
28
  }
28
29
 
29
30
  input:focus,
31
+ textarea:focus,
30
32
  button:focus,
31
33
  a:focus {
32
34
  outline: none;
33
- box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.35);
34
- border-radius: 2px;
35
+ box-shadow: inset 1px 1px #555, inset -1px -1px #555, inset 1px -1px #555,
36
+ inset -1px 1px #555;
37
+ border-radius: 0 !important;
38
+ }
39
+
40
+ input[type="color"].__remotion_color_picker::-webkit-color-swatch-wrapper {
41
+ padding: 0;
42
+ }
43
+ input[type="color"].__remotion_color_picker::-webkit-color-swatch {
44
+ border: none;
35
45
  }