@remotion/cli 3.2.21 → 3.2.23-ensure-ffmpeg.123

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 (650) hide show
  1. package/LICENSE.md +8 -8
  2. package/dist/ansi/ansi-diff.d.ts +0 -0
  3. package/dist/ansi/ansi-diff.js +0 -0
  4. package/dist/ansi/ansi-regex.d.ts +0 -0
  5. package/dist/ansi/ansi-regex.js +0 -0
  6. package/dist/ansi/ansi-split.d.ts +0 -0
  7. package/dist/ansi/ansi-split.js +0 -0
  8. package/dist/benchmark.d.ts +1 -0
  9. package/dist/benchmark.js +186 -0
  10. package/dist/chalk/index.d.ts +0 -0
  11. package/dist/chalk/index.js +0 -0
  12. package/dist/code-frame.d.ts +0 -0
  13. package/dist/code-frame.js +0 -0
  14. package/dist/composition-prompts.d.ts +8 -0
  15. package/dist/composition-prompts.js +26 -0
  16. package/dist/compositions.d.ts +1 -1
  17. package/dist/compositions.js +7 -4
  18. package/dist/config/bitrate.d.ts +4 -0
  19. package/dist/config/bitrate.js +21 -0
  20. package/dist/config/browser-executable.d.ts +0 -0
  21. package/dist/config/browser-executable.js +0 -0
  22. package/dist/config/browser.d.ts +0 -0
  23. package/dist/config/browser.js +0 -0
  24. package/dist/config/chromium-flags.d.ts +0 -0
  25. package/dist/config/chromium-flags.js +0 -0
  26. package/dist/config/codec.d.ts +0 -0
  27. package/dist/config/codec.js +0 -0
  28. package/dist/config/concurrency.d.ts +0 -0
  29. package/dist/config/concurrency.js +0 -0
  30. package/dist/config/crf.d.ts +1 -2
  31. package/dist/config/crf.js +1 -9
  32. package/dist/config/enforce-audio-track.d.ts +0 -0
  33. package/dist/config/enforce-audio-track.js +0 -0
  34. package/dist/config/entry-point.d.ts +2 -0
  35. package/dist/config/entry-point.js +12 -0
  36. package/dist/config/env-file.d.ts +0 -0
  37. package/dist/config/env-file.js +0 -0
  38. package/dist/config/every-nth-frame.d.ts +1 -2
  39. package/dist/config/every-nth-frame.js +3 -11
  40. package/dist/config/ffmpeg-executable.d.ts +0 -0
  41. package/dist/config/ffmpeg-executable.js +0 -0
  42. package/dist/config/ffmpeg-override.d.ts +3 -0
  43. package/dist/config/ffmpeg-override.js +12 -0
  44. package/dist/config/frame-range.d.ts +0 -0
  45. package/dist/config/frame-range.js +0 -0
  46. package/dist/config/height.d.ts +2 -0
  47. package/dist/config/height.js +15 -0
  48. package/dist/config/image-format.d.ts +0 -0
  49. package/dist/config/image-format.js +8 -1
  50. package/dist/config/image-sequence.d.ts +0 -0
  51. package/dist/config/image-sequence.js +0 -0
  52. package/dist/config/index.d.ts +12 -4
  53. package/dist/config/index.js +26 -12
  54. package/dist/config/keyboard-shortcuts.d.ts +0 -0
  55. package/dist/config/keyboard-shortcuts.js +0 -0
  56. package/dist/config/log.d.ts +0 -0
  57. package/dist/config/log.js +0 -0
  58. package/dist/config/max-timeline-tracks.d.ts +0 -0
  59. package/dist/config/max-timeline-tracks.js +0 -0
  60. package/dist/config/muted.d.ts +0 -0
  61. package/dist/config/muted.js +0 -0
  62. package/dist/config/number-of-gif-loops.d.ts +1 -2
  63. package/dist/config/number-of-gif-loops.js +3 -9
  64. package/dist/config/output-location.d.ts +0 -0
  65. package/dist/config/output-location.js +0 -0
  66. package/dist/config/override-webpack.d.ts +0 -0
  67. package/dist/config/override-webpack.js +0 -0
  68. package/dist/config/overwrite.d.ts +3 -1
  69. package/dist/config/overwrite.js +2 -3
  70. package/dist/config/pixel-format.d.ts +0 -0
  71. package/dist/config/pixel-format.js +0 -0
  72. package/dist/config/preview-server.d.ts +0 -0
  73. package/dist/config/preview-server.js +0 -0
  74. package/dist/config/prores-profile.d.ts +0 -0
  75. package/dist/config/prores-profile.js +0 -0
  76. package/dist/config/public-dir.d.ts +0 -0
  77. package/dist/config/public-dir.js +0 -0
  78. package/dist/config/quality.d.ts +0 -0
  79. package/dist/config/quality.js +0 -0
  80. package/dist/config/scale.d.ts +0 -0
  81. package/dist/config/scale.js +0 -0
  82. package/dist/config/still-frame.d.ts +0 -0
  83. package/dist/config/still-frame.js +0 -0
  84. package/dist/config/timeout.d.ts +0 -0
  85. package/dist/config/timeout.js +0 -0
  86. package/dist/config/webpack-caching.d.ts +0 -0
  87. package/dist/config/webpack-caching.js +0 -0
  88. package/dist/config/width.d.ts +2 -0
  89. package/dist/config/width.js +17 -0
  90. package/dist/determine-image-format.d.ts +11 -0
  91. package/dist/determine-image-format.js +48 -0
  92. package/dist/download-progress.d.ts +0 -0
  93. package/dist/download-progress.js +0 -0
  94. package/dist/editor/components/AudioWaveform.d.ts +0 -0
  95. package/dist/editor/components/AudioWaveform.js +0 -0
  96. package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
  97. package/dist/editor/components/AudioWaveformBar.js +0 -0
  98. package/dist/editor/components/Canvas.d.ts +0 -0
  99. package/dist/editor/components/Canvas.js +9 -2
  100. package/dist/editor/components/CheckboardToggle.d.ts +0 -0
  101. package/dist/editor/components/CheckboardToggle.js +0 -0
  102. package/dist/editor/components/ClipboardIcon.d.ts +0 -0
  103. package/dist/editor/components/ClipboardIcon.js +0 -0
  104. package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -0
  105. package/dist/editor/components/CollapsedCompositionSelector.js +0 -0
  106. package/dist/editor/components/CompositionSelector.d.ts +0 -0
  107. package/dist/editor/components/CompositionSelector.js +0 -0
  108. package/dist/editor/components/CompositionSelectorItem.d.ts +0 -0
  109. package/dist/editor/components/CompositionSelectorItem.js +0 -0
  110. package/dist/editor/components/ControlButton.d.ts +0 -0
  111. package/dist/editor/components/ControlButton.js +0 -0
  112. package/dist/editor/components/CopyButton.d.ts +0 -0
  113. package/dist/editor/components/CopyButton.js +0 -0
  114. package/dist/editor/components/CurrentComposition.d.ts +0 -0
  115. package/dist/editor/components/CurrentComposition.js +0 -0
  116. package/dist/editor/components/Editor.d.ts +0 -0
  117. package/dist/editor/components/Editor.js +4 -2
  118. package/dist/editor/components/EditorContent.d.ts +0 -0
  119. package/dist/editor/components/EditorContent.js +0 -0
  120. package/dist/editor/components/EditorContexts.d.ts +0 -0
  121. package/dist/editor/components/EditorContexts.js +0 -0
  122. package/dist/editor/components/FpsCounter.d.ts +0 -0
  123. package/dist/editor/components/FpsCounter.js +0 -0
  124. package/dist/editor/components/FramePersistor.d.ts +0 -0
  125. package/dist/editor/components/FramePersistor.js +0 -0
  126. package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
  127. package/dist/editor/components/GlobalKeybindings.js +20 -1
  128. package/dist/editor/components/InitialCompositionLoader.d.ts +0 -0
  129. package/dist/editor/components/InitialCompositionLoader.js +0 -0
  130. package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +2 -0
  131. package/dist/editor/components/KeyboardShortcutsExplainer.js +56 -0
  132. package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -0
  133. package/dist/editor/components/KeyboardShortcutsModal.js +0 -0
  134. package/dist/editor/components/LoopToggle.d.ts +0 -0
  135. package/dist/editor/components/LoopToggle.js +0 -0
  136. package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
  137. package/dist/editor/components/Menu/MenuDivider.js +0 -0
  138. package/dist/editor/components/Menu/MenuItem.d.ts +0 -0
  139. package/dist/editor/components/Menu/MenuItem.js +0 -0
  140. package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
  141. package/dist/editor/components/Menu/MenuSubItem.js +0 -0
  142. package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
  143. package/dist/editor/components/Menu/SubMenu.js +0 -0
  144. package/dist/editor/components/Menu/portals.d.ts +0 -0
  145. package/dist/editor/components/Menu/portals.js +0 -0
  146. package/dist/editor/components/Menu/styles.d.ts +0 -0
  147. package/dist/editor/components/Menu/styles.js +0 -0
  148. package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
  149. package/dist/editor/components/MenuBuildIndicator.js +0 -0
  150. package/dist/editor/components/MenuToolbar.d.ts +0 -0
  151. package/dist/editor/components/MenuToolbar.js +3 -449
  152. package/dist/editor/components/ModalContainer.d.ts +0 -0
  153. package/dist/editor/components/ModalContainer.js +0 -0
  154. package/dist/editor/components/ModalHeader.d.ts +0 -0
  155. package/dist/editor/components/ModalHeader.js +0 -0
  156. package/dist/editor/components/MuteToggle.d.ts +0 -0
  157. package/dist/editor/components/MuteToggle.js +0 -0
  158. package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
  159. package/dist/editor/components/NewComposition/CancelButton.js +0 -0
  160. package/dist/editor/components/NewComposition/ComboBox.d.ts +2 -1
  161. package/dist/editor/components/NewComposition/ComboBox.js +0 -0
  162. package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
  163. package/dist/editor/components/NewComposition/CopyHint.js +0 -0
  164. package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -0
  165. package/dist/editor/components/NewComposition/InputDragger.js +0 -0
  166. package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
  167. package/dist/editor/components/NewComposition/MenuContent.js +7 -0
  168. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
  169. package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
  170. package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
  171. package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
  172. package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
  173. package/dist/editor/components/NewComposition/NewCompDuration.js +0 -0
  174. package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
  175. package/dist/editor/components/NewComposition/NewComposition.js +3 -0
  176. package/dist/editor/components/NewComposition/RemInput.d.ts +0 -0
  177. package/dist/editor/components/NewComposition/RemInput.js +1 -1
  178. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
  179. package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
  180. package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -0
  181. package/dist/editor/components/NewComposition/ValidationMessage.js +0 -0
  182. package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
  183. package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
  184. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
  185. package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
  186. package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
  187. package/dist/editor/components/NoRegisterRoot.js +0 -0
  188. package/dist/editor/components/Notifications/ColorDot.d.ts +0 -0
  189. package/dist/editor/components/Notifications/ColorDot.js +0 -0
  190. package/dist/editor/components/Notifications/Notification.d.ts +0 -0
  191. package/dist/editor/components/Notifications/Notification.js +0 -0
  192. package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -0
  193. package/dist/editor/components/Notifications/NotificationCenter.js +1 -1
  194. package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -0
  195. package/dist/editor/components/Notifications/ServerDisconnected.js +0 -0
  196. package/dist/editor/components/PlayPause.d.ts +0 -0
  197. package/dist/editor/components/PlayPause.js +8 -1
  198. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
  199. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +3 -0
  200. package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
  201. package/dist/editor/components/PlaybackRatePersistor.js +0 -0
  202. package/dist/editor/components/PlaybackRateSelector.d.ts +0 -0
  203. package/dist/editor/components/PlaybackRateSelector.js +1 -0
  204. package/dist/editor/components/Preview.d.ts +0 -0
  205. package/dist/editor/components/Preview.js +0 -0
  206. package/dist/editor/components/PreviewToolbar.d.ts +0 -0
  207. package/dist/editor/components/PreviewToolbar.js +0 -0
  208. package/dist/editor/components/QuickSwitcher/AlgoliaCredit.d.ts +2 -0
  209. package/dist/editor/components/QuickSwitcher/AlgoliaCredit.js +11 -0
  210. package/dist/editor/components/QuickSwitcher/NoResults.d.ts +6 -0
  211. package/dist/editor/components/QuickSwitcher/NoResults.js +20 -0
  212. package/dist/editor/components/QuickSwitcher/QuickSwitcher.d.ts +7 -0
  213. package/dist/editor/components/QuickSwitcher/QuickSwitcher.js +16 -0
  214. package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.d.ts +6 -0
  215. package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +269 -0
  216. package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +21 -0
  217. package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +109 -0
  218. package/dist/editor/components/QuickSwitcher/agolia-search.d.ts +2 -0
  219. package/dist/editor/components/QuickSwitcher/agolia-search.js +40 -0
  220. package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +29 -0
  221. package/dist/editor/components/QuickSwitcher/algolia-search.js +63 -0
  222. package/dist/editor/components/QuickSwitcher/fuzzy-search.d.ts +2 -0
  223. package/dist/editor/components/QuickSwitcher/fuzzy-search.js +26 -0
  224. package/dist/editor/components/ResetZoomButton.d.ts +0 -0
  225. package/dist/editor/components/ResetZoomButton.js +0 -0
  226. package/dist/editor/components/RichTimelineToggle.d.ts +0 -0
  227. package/dist/editor/components/RichTimelineToggle.js +0 -0
  228. package/dist/editor/components/SizeSelector.d.ts +0 -0
  229. package/dist/editor/components/SizeSelector.js +2 -1
  230. package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -0
  231. package/dist/editor/components/Splitter/SplitterContainer.js +0 -0
  232. package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
  233. package/dist/editor/components/Splitter/SplitterContext.js +0 -0
  234. package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
  235. package/dist/editor/components/Splitter/SplitterElement.js +0 -0
  236. package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -0
  237. package/dist/editor/components/Splitter/SplitterHandle.js +0 -0
  238. package/dist/editor/components/Thumbnail.d.ts +0 -0
  239. package/dist/editor/components/Thumbnail.js +0 -0
  240. package/dist/editor/components/TimeValue.d.ts +0 -0
  241. package/dist/editor/components/TimeValue.js +0 -0
  242. package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
  243. package/dist/editor/components/Timeline/LoopedIndicator.js +0 -0
  244. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
  245. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
  246. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +0 -0
  247. package/dist/editor/components/Timeline/MaxTimelineTracks.js +0 -0
  248. package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
  249. package/dist/editor/components/Timeline/Timeline.js +1 -1
  250. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -0
  251. package/dist/editor/components/Timeline/TimelineCollapseToggle.js +0 -0
  252. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
  253. package/dist/editor/components/Timeline/TimelineDragHandler.js +0 -0
  254. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
  255. package/dist/editor/components/Timeline/TimelineInOutPointer.js +0 -0
  256. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
  257. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
  258. package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
  259. package/dist/editor/components/Timeline/TimelineList.js +0 -0
  260. package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
  261. package/dist/editor/components/Timeline/TimelineListItem.js +0 -0
  262. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
  263. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -0
  264. package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
  265. package/dist/editor/components/Timeline/TimelineScrollable.js +0 -0
  266. package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -0
  267. package/dist/editor/components/Timeline/TimelineSequence.js +0 -0
  268. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
  269. package/dist/editor/components/Timeline/TimelineSequenceFrame.js +0 -0
  270. package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
  271. package/dist/editor/components/Timeline/TimelineSlider.js +1 -1
  272. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
  273. package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -0
  274. package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -0
  275. package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -0
  276. package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
  277. package/dist/editor/components/Timeline/TimelineTracks.js +0 -0
  278. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
  279. package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
  280. package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +0 -0
  281. package/dist/editor/components/Timeline/TimelineZoomControls.js +0 -0
  282. package/dist/editor/components/Timeline/imperative-state.d.ts +0 -0
  283. package/dist/editor/components/Timeline/imperative-state.js +0 -0
  284. package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
  285. package/dist/editor/components/Timeline/is-collapsed.js +0 -0
  286. package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
  287. package/dist/editor/components/Timeline/timeline-refs.js +0 -0
  288. package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -0
  289. package/dist/editor/components/Timeline/timeline-scroll-logic.js +0 -0
  290. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -0
  291. package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
  292. package/dist/editor/components/TimelineInOutToggle.d.ts +0 -0
  293. package/dist/editor/components/TimelineInOutToggle.js +4 -1
  294. package/dist/editor/components/TopPanel.d.ts +0 -0
  295. package/dist/editor/components/TopPanel.js +0 -0
  296. package/dist/editor/components/UpdateCheck.d.ts +0 -0
  297. package/dist/editor/components/UpdateCheck.js +0 -0
  298. package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
  299. package/dist/editor/components/UpdateModal/UpdateModal.js +0 -0
  300. package/dist/editor/components/ZoomPersistor.d.ts +0 -0
  301. package/dist/editor/components/ZoomPersistor.js +0 -0
  302. package/dist/editor/components/layout.d.ts +0 -0
  303. package/dist/editor/components/layout.js +0 -0
  304. package/dist/editor/helpers/calculate-timeline.d.ts +0 -0
  305. package/dist/editor/helpers/calculate-timeline.js +0 -0
  306. package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
  307. package/dist/editor/helpers/checkerboard-background.js +0 -0
  308. package/dist/editor/helpers/colors.d.ts +0 -0
  309. package/dist/editor/helpers/colors.js +0 -0
  310. package/dist/editor/helpers/copy-text.d.ts +0 -0
  311. package/dist/editor/helpers/copy-text.js +0 -0
  312. package/dist/editor/helpers/create-folder-tree.d.ts +0 -0
  313. package/dist/editor/helpers/create-folder-tree.js +0 -0
  314. package/dist/editor/helpers/get-effective-translation.d.ts +0 -0
  315. package/dist/editor/helpers/get-effective-translation.js +0 -0
  316. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -0
  317. package/dist/editor/helpers/get-left-of-timeline-slider.js +0 -0
  318. package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
  319. package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
  320. package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
  321. package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
  322. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
  323. package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
  324. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +0 -0
  325. package/dist/editor/helpers/get-timeline-sequence-layout.js +0 -0
  326. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -0
  327. package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
  328. package/dist/editor/helpers/is-composition-still.d.ts +0 -0
  329. package/dist/editor/helpers/is-composition-still.js +0 -0
  330. package/dist/editor/helpers/is-current-selected-still.d.ts +0 -0
  331. package/dist/editor/helpers/is-current-selected-still.js +0 -0
  332. package/dist/editor/helpers/noop.d.ts +0 -0
  333. package/dist/editor/helpers/noop.js +0 -0
  334. package/dist/editor/helpers/persist-open-folders.d.ts +0 -0
  335. package/dist/editor/helpers/persist-open-folders.js +0 -0
  336. package/dist/editor/helpers/pick-color.d.ts +0 -0
  337. package/dist/editor/helpers/pick-color.js +0 -0
  338. package/dist/editor/helpers/timeline-layout.d.ts +0 -0
  339. package/dist/editor/helpers/timeline-layout.js +0 -0
  340. package/dist/editor/helpers/use-compact-ui.d.ts +0 -0
  341. package/dist/editor/helpers/use-compact-ui.js +0 -0
  342. package/dist/editor/helpers/use-keybinding.d.ts +1 -0
  343. package/dist/editor/helpers/use-keybinding.js +3 -1
  344. package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
  345. package/dist/editor/helpers/use-menu-structure.js +575 -0
  346. package/dist/editor/helpers/validate-new-comp-data.d.ts +0 -0
  347. package/dist/editor/helpers/validate-new-comp-data.js +0 -0
  348. package/dist/editor/icons/Checkmark.d.ts +0 -0
  349. package/dist/editor/icons/Checkmark.js +0 -0
  350. package/dist/editor/icons/caret.d.ts +0 -0
  351. package/dist/editor/icons/caret.js +0 -0
  352. package/dist/editor/icons/film.d.ts +0 -0
  353. package/dist/editor/icons/film.js +0 -0
  354. package/dist/editor/icons/folder.d.ts +0 -0
  355. package/dist/editor/icons/folder.js +0 -0
  356. package/dist/editor/icons/jump-to-start.d.ts +0 -0
  357. package/dist/editor/icons/jump-to-start.js +0 -0
  358. package/dist/editor/icons/keys.d.ts +0 -0
  359. package/dist/editor/icons/keys.js +0 -0
  360. package/dist/editor/icons/lock.d.ts +0 -0
  361. package/dist/editor/icons/lock.js +0 -0
  362. package/dist/editor/icons/media-volume.d.ts +0 -0
  363. package/dist/editor/icons/media-volume.js +0 -0
  364. package/dist/editor/icons/minus.d.ts +0 -0
  365. package/dist/editor/icons/minus.js +0 -0
  366. package/dist/editor/icons/pause.d.ts +0 -0
  367. package/dist/editor/icons/pause.js +0 -0
  368. package/dist/editor/icons/play.d.ts +0 -0
  369. package/dist/editor/icons/play.js +0 -0
  370. package/dist/editor/icons/plus.d.ts +0 -0
  371. package/dist/editor/icons/plus.js +0 -0
  372. package/dist/editor/icons/step-back.d.ts +0 -0
  373. package/dist/editor/icons/step-back.js +0 -0
  374. package/dist/editor/icons/step-forward.d.ts +0 -0
  375. package/dist/editor/icons/step-forward.js +0 -0
  376. package/dist/editor/icons/still.d.ts +0 -0
  377. package/dist/editor/icons/still.js +0 -0
  378. package/dist/editor/icons/timeline.d.ts +0 -0
  379. package/dist/editor/icons/timeline.js +0 -0
  380. package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
  381. package/dist/editor/icons/timelineInOutPointer.js +0 -0
  382. package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
  383. package/dist/editor/state/aspect-ratio-locked.js +0 -0
  384. package/dist/editor/state/checkerboard.d.ts +0 -0
  385. package/dist/editor/state/checkerboard.js +0 -0
  386. package/dist/editor/state/folders.d.ts +0 -0
  387. package/dist/editor/state/folders.js +0 -0
  388. package/dist/editor/state/highest-z-index.d.ts +0 -0
  389. package/dist/editor/state/highest-z-index.js +0 -0
  390. package/dist/editor/state/in-out.d.ts +0 -0
  391. package/dist/editor/state/in-out.js +0 -0
  392. package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
  393. package/dist/editor/state/input-dragger-click-lock.js +0 -0
  394. package/dist/editor/state/keybindings.d.ts +0 -0
  395. package/dist/editor/state/keybindings.js +0 -0
  396. package/dist/editor/state/loop.d.ts +0 -0
  397. package/dist/editor/state/loop.js +0 -0
  398. package/dist/editor/state/marks.d.ts +0 -0
  399. package/dist/editor/state/marks.js +0 -0
  400. package/dist/editor/state/modals.d.ts +4 -1
  401. package/dist/editor/state/modals.js +0 -0
  402. package/dist/editor/state/mute.d.ts +0 -0
  403. package/dist/editor/state/mute.js +0 -0
  404. package/dist/editor/state/playbackrate.d.ts +0 -0
  405. package/dist/editor/state/playbackrate.js +0 -0
  406. package/dist/editor/state/preview-size.d.ts +0 -0
  407. package/dist/editor/state/preview-size.js +0 -0
  408. package/dist/editor/state/render-frame.d.ts +0 -0
  409. package/dist/editor/state/render-frame.js +0 -0
  410. package/dist/editor/state/rich-timeline.d.ts +0 -0
  411. package/dist/editor/state/rich-timeline.js +0 -0
  412. package/dist/editor/state/sidebar.d.ts +0 -0
  413. package/dist/editor/state/sidebar.js +0 -0
  414. package/dist/editor/state/timeline-ref.d.ts +0 -0
  415. package/dist/editor/state/timeline-ref.js +0 -0
  416. package/dist/editor/state/timeline-zoom.d.ts +0 -0
  417. package/dist/editor/state/timeline-zoom.js +0 -0
  418. package/dist/editor/state/timeline.d.ts +0 -0
  419. package/dist/editor/state/timeline.js +0 -0
  420. package/dist/editor/state/z-index.d.ts +0 -0
  421. package/dist/editor/state/z-index.js +1 -0
  422. package/dist/entry-point.d.ts +5 -0
  423. package/dist/entry-point.js +46 -0
  424. package/dist/event-source-events.d.ts +3 -0
  425. package/dist/event-source-events.js +0 -0
  426. package/dist/event-source.d.ts +0 -0
  427. package/dist/event-source.js +12 -10
  428. package/dist/find-closest-package-json.d.ts +0 -0
  429. package/dist/find-closest-package-json.js +0 -0
  430. package/dist/format-bytes.d.ts +0 -0
  431. package/dist/format-bytes.js +0 -0
  432. package/dist/get-cli-options.d.ts +17 -6
  433. package/dist/get-cli-options.js +40 -54
  434. package/dist/get-composition-id.d.ts +7 -1
  435. package/dist/get-composition-id.js +30 -7
  436. package/dist/get-composition-with-dimension-override.d.ts +12 -0
  437. package/dist/get-composition-with-dimension-override.js +16 -0
  438. package/dist/get-config-file-name.d.ts +0 -0
  439. package/dist/get-config-file-name.js +0 -0
  440. package/dist/get-env.d.ts +1 -1
  441. package/dist/get-env.js +60 -8
  442. package/dist/get-filename.d.ts +2 -1
  443. package/dist/get-filename.js +2 -1
  444. package/dist/get-final-output-codec.d.ts +9 -5
  445. package/dist/get-final-output-codec.js +51 -48
  446. package/dist/get-input-props.d.ts +0 -0
  447. package/dist/get-input-props.js +0 -0
  448. package/dist/get-latest-remotion-version.d.ts +0 -0
  449. package/dist/get-latest-remotion-version.js +0 -0
  450. package/dist/get-network-address.d.ts +1 -0
  451. package/dist/get-network-address.js +16 -0
  452. package/dist/get-render-media-options.d.ts +8 -0
  453. package/dist/get-render-media-options.js +52 -0
  454. package/dist/handle-common-errors.d.ts +0 -0
  455. package/dist/handle-common-errors.js +0 -0
  456. package/dist/image-formats.d.ts +0 -0
  457. package/dist/image-formats.js +0 -0
  458. package/dist/index.d.ts +39 -11
  459. package/dist/index.js +32 -20
  460. package/dist/initialize-cli.d.ts +1 -0
  461. package/dist/{initialize-render-cli.js → initialize-cli.js} +4 -4
  462. package/dist/is-javascript.d.ts +0 -0
  463. package/dist/is-javascript.js +0 -0
  464. package/dist/lambda-command.d.ts +1 -1
  465. package/dist/lambda-command.js +3 -6
  466. package/dist/list-of-remotion-packages.d.ts +0 -0
  467. package/dist/list-of-remotion-packages.js +3 -0
  468. package/dist/load-config.d.ts +0 -0
  469. package/dist/load-config.js +0 -0
  470. package/dist/log.d.ts +0 -0
  471. package/dist/log.js +0 -0
  472. package/dist/make-progress-bar.d.ts +0 -0
  473. package/dist/make-progress-bar.js +0 -0
  474. package/dist/parse-command-line.d.ts +4 -1
  475. package/dist/parse-command-line.js +13 -12
  476. package/dist/preview-server/dev-middleware/compatible-api.d.ts +0 -0
  477. package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
  478. package/dist/preview-server/dev-middleware/get-paths.d.ts +0 -0
  479. package/dist/preview-server/dev-middleware/get-paths.js +0 -0
  480. package/dist/preview-server/dev-middleware/index.d.ts +0 -0
  481. package/dist/preview-server/dev-middleware/index.js +0 -0
  482. package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -0
  483. package/dist/preview-server/dev-middleware/is-color-supported.js +0 -0
  484. package/dist/preview-server/dev-middleware/middleware.d.ts +0 -0
  485. package/dist/preview-server/dev-middleware/middleware.js +0 -0
  486. package/dist/preview-server/dev-middleware/range-parser.d.ts +0 -0
  487. package/dist/preview-server/dev-middleware/range-parser.js +0 -0
  488. package/dist/preview-server/dev-middleware/ready.d.ts +0 -0
  489. package/dist/preview-server/dev-middleware/ready.js +0 -0
  490. package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -0
  491. package/dist/preview-server/dev-middleware/setup-hooks.js +15 -4
  492. package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -0
  493. package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
  494. package/dist/preview-server/dev-middleware/types.d.ts +0 -0
  495. package/dist/preview-server/dev-middleware/types.js +0 -0
  496. package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -0
  497. package/dist/preview-server/error-overlay/entry-basic.js +0 -0
  498. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -0
  499. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
  500. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -0
  501. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -0
  502. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -0
  503. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
  504. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -0
  505. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
  506. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
  507. package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
  508. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -0
  509. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
  510. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -0
  511. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
  512. package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
  513. package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
  514. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -0
  515. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -0
  516. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -0
  517. package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +0 -0
  518. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -0
  519. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
  520. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -0
  521. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -0
  522. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
  523. package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +0 -0
  524. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -0
  525. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +0 -0
  526. package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -0
  527. package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
  528. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -0
  529. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
  530. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -0
  531. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
  532. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -0
  533. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +1 -0
  534. package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +0 -0
  535. package/dist/preview-server/error-overlay/remotion-overlay/Button.js +0 -0
  536. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
  537. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +0 -0
  538. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
  539. package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
  540. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -0
  541. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +0 -0
  542. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -0
  543. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +0 -0
  544. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -0
  545. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -0
  546. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -0
  547. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +0 -0
  548. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
  549. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +1 -0
  550. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
  551. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +1 -0
  552. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -0
  553. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +0 -0
  554. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -0
  555. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -0
  556. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +1 -0
  557. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +3 -3
  558. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
  559. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -0
  560. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
  561. package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
  562. package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -0
  563. package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -0
  564. package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -0
  565. package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -0
  566. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +0 -0
  567. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +0 -0
  568. package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
  569. package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -0
  570. package/dist/preview-server/get-package-manager.d.ts +1 -1
  571. package/dist/preview-server/get-package-manager.js +10 -1
  572. package/dist/preview-server/hot-middleware/client.d.ts +0 -0
  573. package/dist/preview-server/hot-middleware/client.js +0 -0
  574. package/dist/preview-server/hot-middleware/index.d.ts +0 -0
  575. package/dist/preview-server/hot-middleware/index.js +1 -2
  576. package/dist/preview-server/hot-middleware/process-update.d.ts +0 -0
  577. package/dist/preview-server/hot-middleware/process-update.js +0 -0
  578. package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -0
  579. package/dist/preview-server/hot-middleware/strip-ansi.js +0 -0
  580. package/dist/preview-server/hot-middleware/types.d.ts +0 -0
  581. package/dist/preview-server/hot-middleware/types.js +0 -0
  582. package/dist/preview-server/live-events.d.ts +0 -0
  583. package/dist/preview-server/live-events.js +0 -0
  584. package/dist/preview-server/project-info.d.ts +0 -0
  585. package/dist/preview-server/project-info.js +9 -1
  586. package/dist/preview-server/routes.d.ts +2 -1
  587. package/dist/preview-server/routes.js +5 -3
  588. package/dist/preview-server/serve-static.d.ts +0 -0
  589. package/dist/preview-server/serve-static.js +0 -0
  590. package/dist/preview-server/start-server.d.ts +1 -1
  591. package/dist/preview-server/start-server.js +13 -6
  592. package/dist/preview-server/update-available.d.ts +0 -0
  593. package/dist/preview-server/update-available.js +2 -2
  594. package/dist/preview.d.ts +1 -1
  595. package/dist/preview.js +24 -8
  596. package/dist/previewEntry.d.ts +0 -0
  597. package/dist/previewEntry.js +0 -0
  598. package/dist/print-error.d.ts +0 -0
  599. package/dist/print-error.js +0 -0
  600. package/dist/print-help.d.ts +0 -0
  601. package/dist/print-help.js +14 -3
  602. package/dist/progress-bar.d.ts +0 -0
  603. package/dist/progress-bar.js +3 -1
  604. package/dist/render.d.ts +1 -1
  605. package/dist/render.js +55 -48
  606. package/dist/resolve-from.d.ts +0 -0
  607. package/dist/resolve-from.js +0 -0
  608. package/dist/select-composition.d.ts +7 -0
  609. package/dist/select-composition.js +51 -0
  610. package/dist/setup-cache.d.ts +0 -0
  611. package/dist/setup-cache.js +0 -0
  612. package/dist/smooth-zoom.d.ts +0 -0
  613. package/dist/smooth-zoom.js +0 -0
  614. package/dist/step.d.ts +0 -0
  615. package/dist/step.js +0 -0
  616. package/dist/still.d.ts +1 -1
  617. package/dist/still.js +41 -42
  618. package/dist/truthy.d.ts +0 -0
  619. package/dist/truthy.js +0 -0
  620. package/dist/upgrade.d.ts +1 -1
  621. package/dist/upgrade.js +4 -2
  622. package/dist/user-passed-output-location.d.ts +3 -2
  623. package/dist/user-passed-output-location.js +5 -7
  624. package/dist/versions.d.ts +0 -0
  625. package/dist/versions.js +1 -1
  626. package/package.json +13 -12
  627. package/dist/bundle.d.ts +0 -1
  628. package/dist/bundle.js +0 -32
  629. package/dist/check-version.d.ts +0 -1
  630. package/dist/check-version.js +0 -14
  631. package/dist/config/bundle-out-dir.d.ts +0 -2
  632. package/dist/config/bundle-out-dir.js +0 -12
  633. package/dist/config/get-public-path.d.ts +0 -2
  634. package/dist/config/get-public-path.js +0 -12
  635. package/dist/editor/components/Button.d.ts +0 -4
  636. package/dist/editor/components/Button.js +0 -24
  637. package/dist/editor/components/PreviewZoomControls.d.ts +0 -2
  638. package/dist/editor/components/PreviewZoomControls.js +0 -49
  639. package/dist/editor/helpers/normalize-wheel.d.ts +0 -5
  640. package/dist/editor/helpers/normalize-wheel.js +0 -20
  641. package/dist/initialize-render-cli.d.ts +0 -1
  642. package/dist/prepare-entry-point.d.ts +0 -12
  643. package/dist/prepare-entry-point.js +0 -37
  644. package/dist/validate-ffmpeg-version.d.ts +0 -3
  645. package/dist/validate-ffmpeg-version.js +0 -17
  646. package/dist/warn-about-ffmpeg-version.d.ts +0 -5
  647. package/dist/warn-about-ffmpeg-version.js +0 -38
  648. package/dist/webpack-cache.d.ts +0 -12
  649. package/dist/webpack-cache.js +0 -66
  650. package/vitest.config.ts +0 -9
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,5 @@
1
1
  import type React from 'react';
2
+ import type { QuickSwitcherMode } from '../components/QuickSwitcher/NoResults';
2
3
  import type { UpdateInfo } from '../components/UpdateCheck';
3
4
  export declare type CompType = 'composition' | 'still';
4
5
  export declare type ModalState = {
@@ -8,7 +9,9 @@ export declare type ModalState = {
8
9
  type: 'update';
9
10
  info: UpdateInfo;
10
11
  } | {
11
- type: 'shortcuts';
12
+ type: 'quick-switcher';
13
+ mode: QuickSwitcherMode;
14
+ invocationTimestamp: number;
12
15
  };
13
16
  export declare type ModalContextType = {
14
17
  selectedModal: ModalState | null;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -17,6 +17,7 @@ const EscapeHook = ({ onEscape }) => {
17
17
  key: 'Escape',
18
18
  callback: onEscape,
19
19
  commandCtrlKey: false,
20
+ preventDefault: true,
20
21
  });
21
22
  return () => {
22
23
  escape.unregister();
@@ -0,0 +1,5 @@
1
+ export declare const findEntryPoint: (args: string[], remotionRoot: string) => {
2
+ file: string | null;
3
+ remainingArgs: string[];
4
+ reason: string;
5
+ };
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.findEntryPoint = void 0;
7
+ const fs_1 = require("fs");
8
+ const path_1 = __importDefault(require("path"));
9
+ const config_1 = require("./config");
10
+ const log_1 = require("./log");
11
+ const candidates = [
12
+ path_1.default.join('src', 'index.ts'),
13
+ path_1.default.join('src', 'index.tsx'),
14
+ path_1.default.join('src', 'index.js'),
15
+ path_1.default.join('remotion', 'index.tsx'),
16
+ path_1.default.join('remotion', 'index.ts'),
17
+ path_1.default.join('remotion', 'index.js'),
18
+ ];
19
+ const findCommonPath = (remotionRoot) => {
20
+ return candidates.find((candidate) => (0, fs_1.existsSync)(path_1.default.resolve(remotionRoot, candidate)));
21
+ };
22
+ const findEntryPoint = (args, remotionRoot) => {
23
+ // 1st priority: Explicitly passed entry point
24
+ let file = args[0];
25
+ if (file) {
26
+ log_1.Log.verbose('Checking if', file, 'is the entry file');
27
+ // Intentionally resolving CLI files to CWD, while resolving config file to remotionRoot
28
+ if ((0, fs_1.existsSync)(path_1.default.resolve(process.cwd(), file))) {
29
+ return { file, remainingArgs: args.slice(1), reason: 'argument passed' };
30
+ }
31
+ }
32
+ // 2nd priority: Config file
33
+ file = config_1.ConfigInternals.getEntryPoint();
34
+ if (file) {
35
+ log_1.Log.verbose('Entry point from config file is', file);
36
+ return { file, remainingArgs: args, reason: 'config file' };
37
+ }
38
+ // 3rd priority: Common paths
39
+ const found = findCommonPath(remotionRoot);
40
+ if (found) {
41
+ log_1.Log.verbose('Selected', found, 'as the entry point because file exists and is a common entry point and no entry point was explicitly selected');
42
+ return { file: found, remainingArgs: args, reason: 'common paths' };
43
+ }
44
+ return { file: null, remainingArgs: args, reason: 'none found' };
45
+ };
46
+ exports.findEntryPoint = findEntryPoint;
@@ -3,4 +3,7 @@ export declare type EventSourceEvent = {
3
3
  newProps: object;
4
4
  } | {
5
5
  type: 'init';
6
+ } | {
7
+ type: 'new-env-variables';
8
+ newEnvVariables: Record<string, string>;
6
9
  };
File without changes
File without changes
@@ -7,22 +7,24 @@ const openEventSource = () => {
7
7
  source = new EventSource('/events');
8
8
  source.addEventListener('message', (event) => {
9
9
  const newEvent = JSON.parse(event.data);
10
- if (newEvent.type === 'new-input-props') {
10
+ if (newEvent.type === 'new-input-props' ||
11
+ newEvent.type === 'new-env-variables') {
11
12
  window.location.reload();
12
13
  }
13
14
  });
14
15
  source.addEventListener('open', () => {
15
16
  var _a;
16
17
  (_a = ServerDisconnected_1.serverDisconnectedRef.current) === null || _a === void 0 ? void 0 : _a.setServerConnected();
17
- });
18
- source.addEventListener('error', () => {
19
- var _a;
20
- // Display an error message that the preview server has disconnected.
21
- (_a = ServerDisconnected_1.serverDisconnectedRef.current) === null || _a === void 0 ? void 0 : _a.setServerDisconnected();
22
- // Retry later
23
- setTimeout(() => {
24
- (0, exports.openEventSource)();
25
- }, 1000);
18
+ source.addEventListener('error', () => {
19
+ var _a;
20
+ // Display an error message that the preview server has disconnected.
21
+ (_a = ServerDisconnected_1.serverDisconnectedRef.current) === null || _a === void 0 ? void 0 : _a.setServerDisconnected();
22
+ source === null || source === void 0 ? void 0 : source.close();
23
+ // Retry later
24
+ setTimeout(() => {
25
+ (0, exports.openEventSource)();
26
+ }, 1000);
27
+ }, { once: true });
26
28
  });
27
29
  };
28
30
  exports.openEventSource = openEventSource;
File without changes
File without changes
File without changes
File without changes
@@ -1,24 +1,31 @@
1
- import type { BrowserExecutable, ChromiumOptions, FrameRange } from '@remotion/renderer';
1
+ import type { BrowserExecutable, ChromiumOptions, Codec, FrameRange } from '@remotion/renderer';
2
+ export declare const validateFfmepgCanUseCodec: (codec: Codec, remotionRoot: string) => Promise<void>;
3
+ export declare const getFinalCodec: (options: {
4
+ downloadName: string | null;
5
+ outName: string | null;
6
+ }) => {
7
+ codec: Codec;
8
+ reason: string;
9
+ };
2
10
  export declare const getAndValidateAbsoluteOutputFile: (relativeOutputLocation: string, overwrite: boolean) => string;
3
11
  export declare const getCliOptions: (options: {
4
12
  isLambda: boolean;
5
13
  type: 'still' | 'series' | 'get-compositions';
14
+ remotionRoot: string;
6
15
  }) => Promise<{
7
16
  puppeteerTimeout: number;
8
17
  concurrency: number | null;
9
18
  frameRange: FrameRange | null;
10
19
  shouldOutputImageSequence: boolean;
11
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
12
20
  inputProps: object;
13
21
  envVariables: Record<string, string>;
14
22
  quality: number | undefined;
15
23
  browser: import("@remotion/renderer").Browser;
16
- crf: number | null;
24
+ crf: import("@remotion/renderer").Crf | null;
17
25
  pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
18
- imageFormat: "png" | "jpeg" | "none";
19
26
  proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
20
27
  everyNthFrame: number;
21
- numberOfGifLoops: number | null;
28
+ numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
22
29
  stillFrame: number;
23
30
  browserExecutable: BrowserExecutable;
24
31
  ffmpegExecutable: import("@remotion/renderer").FfmpegExecutable;
@@ -30,6 +37,10 @@ export declare const getCliOptions: (options: {
30
37
  port: number | null;
31
38
  muted: boolean;
32
39
  enforceAudioTrack: boolean;
33
- keyboardShortcutsEnables: boolean;
34
40
  publicDir: string | null;
41
+ ffmpegOverride: import("@remotion/renderer").FfmpegOverrideFn;
42
+ audioBitrate: string | null;
43
+ videoBitrate: string | null;
44
+ height: number | null;
45
+ width: number | null;
35
46
  }>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getCliOptions = exports.getAndValidateAbsoluteOutputFile = void 0;
6
+ exports.getCliOptions = exports.getAndValidateAbsoluteOutputFile = exports.getFinalCodec = exports.validateFfmepgCanUseCodec = void 0;
7
7
  const renderer_1 = require("@remotion/renderer");
8
8
  const fs_1 = __importDefault(require("fs"));
9
9
  const path_1 = __importDefault(require("path"));
@@ -11,9 +11,8 @@ const config_1 = require("./config");
11
11
  const get_env_1 = require("./get-env");
12
12
  const get_final_output_codec_1 = require("./get-final-output-codec");
13
13
  const get_input_props_1 = require("./get-input-props");
14
- const image_formats_1 = require("./image-formats");
15
14
  const log_1 = require("./log");
16
- const user_passed_output_location_1 = require("./user-passed-output-location");
15
+ const parse_command_line_1 = require("./parse-command-line");
17
16
  const getAndValidateFrameRange = () => {
18
17
  const frameRange = config_1.ConfigInternals.getRange();
19
18
  if (typeof frameRange === 'number') {
@@ -23,21 +22,13 @@ const getAndValidateFrameRange = () => {
23
22
  }
24
23
  return frameRange;
25
24
  };
26
- const getFinalCodec = async (options) => {
27
- const userCodec = config_1.ConfigInternals.getOutputCodecOrUndefined();
28
- const codec = (0, get_final_output_codec_1.getFinalOutputCodec)({
29
- codec: userCodec,
30
- fileExtension: options.isLambda
31
- ? null
32
- : renderer_1.RenderInternals.getExtensionOfFilename((0, user_passed_output_location_1.getUserPassedOutputLocation)()),
33
- emitWarning: true,
34
- });
25
+ const validateFfmepgCanUseCodec = async (codec, remotionRoot) => {
35
26
  const ffmpegExecutable = config_1.ConfigInternals.getCustomFfmpegExecutable();
36
27
  if (codec === 'vp8' &&
37
28
  !(await renderer_1.RenderInternals.ffmpegHasFeature({
38
29
  feature: 'enable-libvpx',
39
- isLambda: options.isLambda,
40
30
  ffmpegExecutable,
31
+ remotionRoot,
41
32
  }))) {
42
33
  log_1.Log.error("The Vp8 codec has been selected, but your FFMPEG binary wasn't compiled with the --enable-lipvpx flag.");
43
34
  log_1.Log.error('This does not work, please switch out your FFMPEG binary or choose a different codec.');
@@ -45,8 +36,8 @@ const getFinalCodec = async (options) => {
45
36
  if (codec === 'h265' &&
46
37
  !(await renderer_1.RenderInternals.ffmpegHasFeature({
47
38
  feature: 'enable-gpl',
48
- isLambda: options.isLambda,
49
39
  ffmpegExecutable,
40
+ remotionRoot,
50
41
  }))) {
51
42
  log_1.Log.error("The H265 codec has been selected, but your FFMPEG binary wasn't compiled with the --enable-gpl flag.");
52
43
  log_1.Log.error('This does not work, please recompile your FFMPEG binary with --enable-gpl --enable-libx265 or choose a different codec.');
@@ -54,14 +45,25 @@ const getFinalCodec = async (options) => {
54
45
  if (codec === 'h265' &&
55
46
  !(await renderer_1.RenderInternals.ffmpegHasFeature({
56
47
  feature: 'enable-libx265',
57
- isLambda: options.isLambda,
58
48
  ffmpegExecutable,
49
+ remotionRoot,
59
50
  }))) {
60
51
  log_1.Log.error("The H265 codec has been selected, but your FFMPEG binary wasn't compiled with the --enable-libx265 flag.");
61
52
  log_1.Log.error('This does not work, please recompile your FFMPEG binary with --enable-gpl --enable-libx265 or choose a different codec.');
62
53
  }
63
- return codec;
64
54
  };
55
+ exports.validateFfmepgCanUseCodec = validateFfmepgCanUseCodec;
56
+ const getFinalCodec = (options) => {
57
+ var _a;
58
+ const { codec, reason } = (0, get_final_output_codec_1.getFinalOutputCodec)({
59
+ cliFlag: parse_command_line_1.parsedCli.codec,
60
+ configFile: (_a = config_1.ConfigInternals.getOutputCodecOrUndefined()) !== null && _a !== void 0 ? _a : null,
61
+ downloadName: options.downloadName,
62
+ outName: options.outName,
63
+ });
64
+ return { codec, reason };
65
+ };
66
+ exports.getFinalCodec = getFinalCodec;
65
67
  const getBrowser = () => { var _a; return (_a = config_1.ConfigInternals.getBrowser()) !== null && _a !== void 0 ? _a : renderer_1.RenderInternals.DEFAULT_BROWSER; };
66
68
  const getAndValidateAbsoluteOutputFile = (relativeOutputLocation, overwrite) => {
67
69
  const absoluteOutputFile = path_1.default.resolve(process.cwd(), relativeOutputLocation);
@@ -72,38 +74,24 @@ const getAndValidateAbsoluteOutputFile = (relativeOutputLocation, overwrite) =>
72
74
  return absoluteOutputFile;
73
75
  };
74
76
  exports.getAndValidateAbsoluteOutputFile = getAndValidateAbsoluteOutputFile;
75
- const getAndValidateShouldOutputImageSequence = async ({ frameRange, isLambda, }) => {
77
+ const getAndValidateShouldOutputImageSequence = async ({ frameRange, isLambda, remotionRoot, }) => {
76
78
  const shouldOutputImageSequence = config_1.ConfigInternals.getShouldOutputImageSequence(frameRange);
77
79
  // When parsing options locally, we don't need FFMPEG because the render will happen on Lambda
78
80
  if (!shouldOutputImageSequence && !isLambda) {
79
- await renderer_1.RenderInternals.validateFfmpeg(config_1.ConfigInternals.getCustomFfmpegExecutable());
81
+ await renderer_1.RenderInternals.validateFfmpeg(config_1.ConfigInternals.getCustomFfmpegExecutable(), remotionRoot, 'ffmpeg');
80
82
  }
81
83
  return shouldOutputImageSequence;
82
84
  };
83
- const getAndValidateCrf = (shouldOutputImageSequence, codec) => {
85
+ const getCrf = (shouldOutputImageSequence) => {
84
86
  const crf = shouldOutputImageSequence
85
87
  ? null
86
- : config_1.ConfigInternals.getActualCrf(codec);
87
- if (crf !== null) {
88
- renderer_1.RenderInternals.validateSelectedCrfAndCodecCombination(crf, codec);
89
- }
88
+ : config_1.ConfigInternals.getCrfOrUndefined();
90
89
  return crf;
91
90
  };
92
- const getAndValidatePixelFormat = (codec) => {
93
- const pixelFormat = config_1.ConfigInternals.getPixelFormat();
94
- renderer_1.RenderInternals.validateSelectedPixelFormatAndCodecCombination(pixelFormat, codec);
95
- return pixelFormat;
96
- };
97
- const getAndValidateProResProfile = (actualCodec) => {
91
+ const getProResProfile = () => {
98
92
  const proResProfile = config_1.ConfigInternals.getProResProfile();
99
- renderer_1.RenderInternals.validateSelectedCodecAndProResCombination(actualCodec, proResProfile);
100
93
  return proResProfile;
101
94
  };
102
- const getAndValidateImageFormat = ({ shouldOutputImageSequence, codec, pixelFormat, }) => {
103
- const imageFormat = (0, image_formats_1.getImageFormat)(shouldOutputImageSequence ? undefined : codec);
104
- renderer_1.RenderInternals.validateSelectedPixelFormatAndImageFormatCombination(pixelFormat, imageFormat);
105
- return imageFormat;
106
- };
107
95
  const getAndValidateBrowser = async (browserExecutable) => {
108
96
  const browser = getBrowser();
109
97
  try {
@@ -119,26 +107,20 @@ const getAndValidateBrowser = async (browserExecutable) => {
119
107
  const getCliOptions = async (options) => {
120
108
  var _a;
121
109
  const frameRange = getAndValidateFrameRange();
122
- const codec = options.type === 'get-compositions'
123
- ? 'h264'
124
- : await getFinalCodec({
125
- isLambda: options.isLambda,
126
- });
127
110
  const shouldOutputImageSequence = options.type === 'still'
128
111
  ? true
129
112
  : await getAndValidateShouldOutputImageSequence({
130
113
  frameRange,
131
114
  isLambda: options.isLambda,
115
+ remotionRoot: options.remotionRoot,
132
116
  });
133
- const overwrite = config_1.ConfigInternals.getShouldOverwrite();
134
- const crf = getAndValidateCrf(shouldOutputImageSequence, codec);
135
- const pixelFormat = getAndValidatePixelFormat(codec);
136
- const imageFormat = getAndValidateImageFormat({
137
- shouldOutputImageSequence,
138
- codec,
139
- pixelFormat,
117
+ const overwrite = config_1.ConfigInternals.getShouldOverwrite({
118
+ defaultValue: !options.isLambda,
140
119
  });
141
- const proResProfile = getAndValidateProResProfile(codec);
120
+ const crf = getCrf(shouldOutputImageSequence);
121
+ const videoBitrate = config_1.ConfigInternals.getVideoBitrate();
122
+ const pixelFormat = config_1.ConfigInternals.getPixelFormat();
123
+ const proResProfile = getProResProfile();
142
124
  const browserExecutable = config_1.ConfigInternals.getBrowserExecutable();
143
125
  const ffmpegExecutable = config_1.ConfigInternals.getCustomFfmpegExecutable();
144
126
  const ffprobeExecutable = config_1.ConfigInternals.getCustomFfprobeExecutable();
@@ -150,23 +132,23 @@ const getCliOptions = async (options) => {
150
132
  headless: config_1.ConfigInternals.getChromiumHeadlessMode(),
151
133
  gl: (_a = config_1.ConfigInternals.getChromiumOpenGlRenderer()) !== null && _a !== void 0 ? _a : renderer_1.RenderInternals.DEFAULT_OPENGL_RENDERER,
152
134
  };
153
- const everyNthFrame = config_1.ConfigInternals.getAndValidateEveryNthFrame(codec);
154
- const numberOfGifLoops = config_1.ConfigInternals.getAndValidateNumberOfGifLoops(codec);
135
+ const everyNthFrame = config_1.ConfigInternals.getEveryNthFrame();
136
+ const numberOfGifLoops = config_1.ConfigInternals.getNumberOfGifLoops();
155
137
  const concurrency = config_1.ConfigInternals.getConcurrency();
138
+ const height = config_1.ConfigInternals.getHeight();
139
+ const width = config_1.ConfigInternals.getWidth();
156
140
  renderer_1.RenderInternals.validateConcurrency(concurrency, 'concurrency');
157
141
  return {
158
142
  puppeteerTimeout: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
159
143
  concurrency,
160
144
  frameRange,
161
145
  shouldOutputImageSequence,
162
- codec,
163
146
  inputProps: (0, get_input_props_1.getInputProps)(() => undefined),
164
- envVariables: await (0, get_env_1.getEnvironmentVariables)(),
147
+ envVariables: await (0, get_env_1.getEnvironmentVariables)(() => undefined),
165
148
  quality: config_1.ConfigInternals.getQuality(),
166
149
  browser: await getAndValidateBrowser(browserExecutable),
167
150
  crf,
168
151
  pixelFormat,
169
- imageFormat,
170
152
  proResProfile,
171
153
  everyNthFrame,
172
154
  numberOfGifLoops,
@@ -181,8 +163,12 @@ const getCliOptions = async (options) => {
181
163
  port: port !== null && port !== void 0 ? port : null,
182
164
  muted: config_1.ConfigInternals.getMuted(),
183
165
  enforceAudioTrack: config_1.ConfigInternals.getEnforceAudioTrack(),
184
- keyboardShortcutsEnables: config_1.ConfigInternals.getKeyboardShortcutsEnabled(),
185
166
  publicDir: config_1.ConfigInternals.getPublicDir(),
167
+ ffmpegOverride: config_1.ConfigInternals.getFfmpegOverrideFunction(),
168
+ audioBitrate: config_1.ConfigInternals.getAudioBitrate(),
169
+ videoBitrate,
170
+ height,
171
+ width,
186
172
  };
187
173
  };
188
174
  exports.getCliOptions = getCliOptions;
@@ -1 +1,7 @@
1
- export declare const getCompositionId: () => string;
1
+ import type { TCompMetadata } from 'remotion';
2
+ export declare const getCompositionId: (validCompositions: TCompMetadata[], args: string[]) => Promise<{
3
+ compositionId: string;
4
+ reason: string;
5
+ config: TCompMetadata;
6
+ argsAfterComposition: string[];
7
+ }>;
@@ -2,13 +2,36 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCompositionId = void 0;
4
4
  const log_1 = require("./log");
5
- const parse_command_line_1 = require("./parse-command-line");
6
- const getCompositionId = () => {
7
- if (!parse_command_line_1.parsedCli._[2]) {
8
- log_1.Log.error('Composition ID not passed.');
9
- log_1.Log.error('Pass an extra argument <composition-id>.');
10
- process.exit(1);
5
+ const select_composition_1 = require("./select-composition");
6
+ const getCompositionId = async (validCompositions, args) => {
7
+ const [compName, ...remainingArgs] = args;
8
+ if (compName) {
9
+ const config = validCompositions.find((c) => c.id === compName);
10
+ if (!config) {
11
+ throw new Error(`Cannot find composition with ID "${compName}". Available composition: ${validCompositions
12
+ .map((c) => c.id)
13
+ .join(', ')}`);
14
+ }
15
+ return {
16
+ compositionId: compName,
17
+ reason: 'Passed as argument',
18
+ config,
19
+ argsAfterComposition: remainingArgs,
20
+ };
11
21
  }
12
- return parse_command_line_1.parsedCli._[2];
22
+ if (!process.env.CI) {
23
+ const { compositionId, reason } = await (0, select_composition_1.selectComposition)(validCompositions);
24
+ if (compositionId && typeof compositionId === 'string') {
25
+ return {
26
+ compositionId,
27
+ reason,
28
+ config: validCompositions.find((c) => c.id === compositionId),
29
+ argsAfterComposition: args,
30
+ };
31
+ }
32
+ }
33
+ log_1.Log.error('Composition ID not passed.');
34
+ log_1.Log.error('Pass an extra argument <composition-id>.');
35
+ process.exit(1);
13
36
  };
14
37
  exports.getCompositionId = getCompositionId;
@@ -0,0 +1,12 @@
1
+ import type { TCompMetadata } from 'remotion';
2
+ export declare const getCompositionWithDimensionOverride: ({ validCompositions, height, width, args, }: {
3
+ validCompositions: TCompMetadata[];
4
+ height: number | null;
5
+ width: number | null;
6
+ args: string[];
7
+ }) => Promise<{
8
+ compositionId: string;
9
+ reason: string;
10
+ config: TCompMetadata;
11
+ argsAfterComposition: string[];
12
+ }>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCompositionWithDimensionOverride = void 0;
4
+ const get_composition_id_1 = require("./get-composition-id");
5
+ const getCompositionWithDimensionOverride = async ({ validCompositions, height, width, args, }) => {
6
+ const returnValue = await (0, get_composition_id_1.getCompositionId)(validCompositions, args);
7
+ return {
8
+ ...returnValue,
9
+ config: {
10
+ ...returnValue.config,
11
+ height: height !== null && height !== void 0 ? height : returnValue.config.height,
12
+ width: width !== null && width !== void 0 ? width : returnValue.config.width,
13
+ },
14
+ };
15
+ };
16
+ exports.getCompositionWithDimensionOverride = getCompositionWithDimensionOverride;
File without changes
File without changes
package/dist/get-env.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const getEnvironmentVariables: () => Promise<Record<string, string>>;
1
+ export declare const getEnvironmentVariables: (onUpdate: (newProps: Record<string, string>) => void) => Promise<Record<string, string>>;