@remotion/cli 4.0.0-alpha.217 → 4.0.0-alpha4

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