@remotion/cli 3.0.29 → 3.1.0

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 (415) hide show
  1. package/dist/chalk/symbols.d.ts +111 -0
  2. package/dist/chalk/symbols.js +75 -0
  3. package/dist/chalk/utilities.d.ts +2 -0
  4. package/dist/chalk/utilities.js +37 -0
  5. package/dist/compositions.js +10 -4
  6. package/dist/editor/components/CompositionManager.d.ts +4 -0
  7. package/dist/editor/components/CompositionManager.js +60 -0
  8. package/dist/editor/components/CopyButton.js +1 -1
  9. package/dist/editor/components/Editor.js +2 -1
  10. package/dist/editor/components/GlobalKeybindings.js +26 -11
  11. package/dist/editor/components/KeyboardShortcutsModal.js +1 -1
  12. package/dist/editor/components/Menu/MenuItem.d.ts +1 -1
  13. package/dist/editor/components/MenuToolbar.js +24 -2
  14. package/dist/editor/components/NewComposition/MenuContent.js +42 -7
  15. package/dist/editor/components/Notifications/ColorDot.d.ts +4 -0
  16. package/dist/editor/components/Notifications/ColorDot.js +22 -0
  17. package/dist/editor/components/Notifications/Notification.d.ts +8 -0
  18. package/dist/editor/components/Notifications/Notification.js +31 -0
  19. package/dist/editor/components/Notifications/NotificationCenter.d.ts +13 -0
  20. package/dist/editor/components/Notifications/NotificationCenter.js +39 -0
  21. package/dist/editor/components/PlayPause.js +53 -7
  22. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +18 -3
  23. package/dist/editor/components/TimelineInOutToggle.js +21 -6
  24. package/dist/editor/components/UpdateModal/UpdateModal.js +1 -1
  25. package/dist/editor/helpers/copy-text.d.ts +1 -1
  26. package/dist/editor/helpers/copy-text.js +5 -4
  27. package/dist/editor/helpers/pick-color.d.ts +1 -0
  28. package/dist/editor/helpers/pick-color.js +36 -0
  29. package/dist/editor/helpers/use-keybinding.d.ts +6 -1
  30. package/dist/editor/helpers/use-keybinding.js +10 -5
  31. package/dist/editor/state/keybindings.js +3 -1
  32. package/dist/editor/state/z-index.js +6 -1
  33. package/dist/get-cli-options.d.ts +3 -1
  34. package/dist/get-cli-options.js +7 -1
  35. package/dist/image-formats.js +2 -1
  36. package/dist/index.d.ts +3 -1
  37. package/dist/parse-command-line.d.ts +2 -0
  38. package/dist/parse-command-line.js +9 -3
  39. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -1
  40. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +20 -2
  41. package/dist/preview-server/error-overlay/remotion-overlay/Button.js +4 -4
  42. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -0
  43. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +5 -2
  44. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +1 -0
  45. package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +2 -2
  46. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +4 -0
  47. package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +67 -0
  48. package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +5 -9
  49. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
  50. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +31 -0
  51. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +1 -0
  52. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +20 -2
  53. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +8 -7
  54. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +1 -0
  55. package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +20 -2
  56. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +5 -0
  57. package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -0
  58. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +1 -1
  59. package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +4 -2
  60. package/dist/preview-server/error-overlay/remotion-overlay/carets.js +2 -2
  61. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +5 -0
  62. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +19 -0
  63. package/dist/preview-server/fast-refresh/helpers.d.ts +39 -0
  64. package/dist/preview-server/fast-refresh/helpers.js +145 -0
  65. package/dist/preview-server/fast-refresh/index.d.ts +30 -0
  66. package/dist/preview-server/fast-refresh/index.js +86 -0
  67. package/dist/preview-server/fast-refresh/loader.d.ts +35 -0
  68. package/dist/preview-server/fast-refresh/loader.js +81 -0
  69. package/dist/preview-server/fast-refresh/runtime.d.ts +35 -0
  70. package/dist/preview-server/fast-refresh/runtime.js +32 -0
  71. package/dist/preview-server/static-preview.d.ts +1 -0
  72. package/dist/preview-server/static-preview.js +40 -0
  73. package/dist/preview-server/webpack-cache.d.ts +12 -0
  74. package/dist/preview-server/webpack-cache.js +66 -0
  75. package/dist/progress-bar.d.ts +3 -1
  76. package/dist/progress-bar.js +4 -3
  77. package/dist/render.js +13 -14
  78. package/dist/setup-cache.d.ts +4 -1
  79. package/dist/setup-cache.js +1 -1
  80. package/dist/still.js +1 -1
  81. package/package.json +10 -12
  82. package/tsconfig.json +2 -1
  83. package/vitest.config.ts +9 -0
  84. package/dist/ansi/ansi-diff.d.ts.map +0 -1
  85. package/dist/ansi/ansi-diff.js.map +0 -1
  86. package/dist/ansi/ansi-regex.d.ts.map +0 -1
  87. package/dist/ansi/ansi-regex.js.map +0 -1
  88. package/dist/ansi/ansi-split.d.ts.map +0 -1
  89. package/dist/ansi/ansi-split.js.map +0 -1
  90. package/dist/check-version.d.ts.map +0 -1
  91. package/dist/check-version.js.map +0 -1
  92. package/dist/code-frame.d.ts.map +0 -1
  93. package/dist/code-frame.js.map +0 -1
  94. package/dist/compositions.d.ts.map +0 -1
  95. package/dist/compositions.js.map +0 -1
  96. package/dist/download-progress.d.ts.map +0 -1
  97. package/dist/download-progress.js.map +0 -1
  98. package/dist/editor/components/AudioWaveform.d.ts.map +0 -1
  99. package/dist/editor/components/AudioWaveform.js.map +0 -1
  100. package/dist/editor/components/AudioWaveformBar.d.ts.map +0 -1
  101. package/dist/editor/components/AudioWaveformBar.js.map +0 -1
  102. package/dist/editor/components/Canvas.d.ts.map +0 -1
  103. package/dist/editor/components/Canvas.js.map +0 -1
  104. package/dist/editor/components/CheckboardToggle.d.ts.map +0 -1
  105. package/dist/editor/components/CheckboardToggle.js.map +0 -1
  106. package/dist/editor/components/ClipboardIcon.d.ts.map +0 -1
  107. package/dist/editor/components/ClipboardIcon.js.map +0 -1
  108. package/dist/editor/components/CompositionSelector.d.ts.map +0 -1
  109. package/dist/editor/components/CompositionSelector.js.map +0 -1
  110. package/dist/editor/components/CompositionSelectorItem.d.ts.map +0 -1
  111. package/dist/editor/components/CompositionSelectorItem.js.map +0 -1
  112. package/dist/editor/components/ControlButton.d.ts.map +0 -1
  113. package/dist/editor/components/ControlButton.js.map +0 -1
  114. package/dist/editor/components/CopyButton.d.ts.map +0 -1
  115. package/dist/editor/components/CopyButton.js.map +0 -1
  116. package/dist/editor/components/CurrentComposition.d.ts.map +0 -1
  117. package/dist/editor/components/CurrentComposition.js.map +0 -1
  118. package/dist/editor/components/Editor.d.ts.map +0 -1
  119. package/dist/editor/components/Editor.js.map +0 -1
  120. package/dist/editor/components/EditorContent.d.ts.map +0 -1
  121. package/dist/editor/components/EditorContent.js.map +0 -1
  122. package/dist/editor/components/FpsCounter.d.ts.map +0 -1
  123. package/dist/editor/components/FpsCounter.js.map +0 -1
  124. package/dist/editor/components/FramePersistor.d.ts.map +0 -1
  125. package/dist/editor/components/FramePersistor.js.map +0 -1
  126. package/dist/editor/components/GlobalKeybindings.d.ts.map +0 -1
  127. package/dist/editor/components/GlobalKeybindings.js.map +0 -1
  128. package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
  129. package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
  130. package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
  131. package/dist/editor/components/LoadingIndicator.js.map +0 -1
  132. package/dist/editor/components/LoopToggle.d.ts.map +0 -1
  133. package/dist/editor/components/LoopToggle.js.map +0 -1
  134. package/dist/editor/components/Menu/MenuDivider.d.ts.map +0 -1
  135. package/dist/editor/components/Menu/MenuDivider.js.map +0 -1
  136. package/dist/editor/components/Menu/MenuItem.d.ts.map +0 -1
  137. package/dist/editor/components/Menu/MenuItem.js.map +0 -1
  138. package/dist/editor/components/Menu/MenuSubItem.d.ts.map +0 -1
  139. package/dist/editor/components/Menu/MenuSubItem.js.map +0 -1
  140. package/dist/editor/components/Menu/SubMenu.d.ts.map +0 -1
  141. package/dist/editor/components/Menu/SubMenu.js.map +0 -1
  142. package/dist/editor/components/Menu/portals.d.ts.map +0 -1
  143. package/dist/editor/components/Menu/portals.js.map +0 -1
  144. package/dist/editor/components/Menu/styles.d.ts.map +0 -1
  145. package/dist/editor/components/Menu/styles.js.map +0 -1
  146. package/dist/editor/components/MenuToolbar.d.ts.map +0 -1
  147. package/dist/editor/components/MenuToolbar.js.map +0 -1
  148. package/dist/editor/components/ModalContainer.d.ts.map +0 -1
  149. package/dist/editor/components/ModalContainer.js.map +0 -1
  150. package/dist/editor/components/ModalHeader.d.ts.map +0 -1
  151. package/dist/editor/components/ModalHeader.js.map +0 -1
  152. package/dist/editor/components/MuteToggle.d.ts.map +0 -1
  153. package/dist/editor/components/MuteToggle.js.map +0 -1
  154. package/dist/editor/components/NewComposition/CancelButton.d.ts.map +0 -1
  155. package/dist/editor/components/NewComposition/CancelButton.js.map +0 -1
  156. package/dist/editor/components/NewComposition/ComboBox.d.ts.map +0 -1
  157. package/dist/editor/components/NewComposition/ComboBox.js.map +0 -1
  158. package/dist/editor/components/NewComposition/CopyHint.d.ts.map +0 -1
  159. package/dist/editor/components/NewComposition/CopyHint.js.map +0 -1
  160. package/dist/editor/components/NewComposition/InputDragger.d.ts.map +0 -1
  161. package/dist/editor/components/NewComposition/InputDragger.js.map +0 -1
  162. package/dist/editor/components/NewComposition/MenuContent.d.ts.map +0 -1
  163. package/dist/editor/components/NewComposition/MenuContent.js.map +0 -1
  164. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts.map +0 -1
  165. package/dist/editor/components/NewComposition/NewCompAspectRatio.js.map +0 -1
  166. package/dist/editor/components/NewComposition/NewCompCode.d.ts.map +0 -1
  167. package/dist/editor/components/NewComposition/NewCompCode.js.map +0 -1
  168. package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +0 -1
  169. package/dist/editor/components/NewComposition/NewCompDuration.js.map +0 -1
  170. package/dist/editor/components/NewComposition/NewComposition.d.ts.map +0 -1
  171. package/dist/editor/components/NewComposition/NewComposition.js.map +0 -1
  172. package/dist/editor/components/NewComposition/RemInput.d.ts.map +0 -1
  173. package/dist/editor/components/NewComposition/RemInput.js.map +0 -1
  174. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts.map +0 -1
  175. package/dist/editor/components/NewComposition/ToggleAspectRatio.js.map +0 -1
  176. package/dist/editor/components/NewComposition/ValidationMessage.d.ts.map +0 -1
  177. package/dist/editor/components/NewComposition/ValidationMessage.js.map +0 -1
  178. package/dist/editor/components/NewComposition/new-comp-layout.d.ts.map +0 -1
  179. package/dist/editor/components/NewComposition/new-comp-layout.js.map +0 -1
  180. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts.map +0 -1
  181. package/dist/editor/components/NewComposition/render-aspect-ratio.js.map +0 -1
  182. package/dist/editor/components/PlayPause.d.ts.map +0 -1
  183. package/dist/editor/components/PlayPause.js.map +0 -1
  184. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +0 -1
  185. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +0 -1
  186. package/dist/editor/components/PlaybackRatePersistor.d.ts.map +0 -1
  187. package/dist/editor/components/PlaybackRatePersistor.js.map +0 -1
  188. package/dist/editor/components/PlaybackRateSelector.d.ts.map +0 -1
  189. package/dist/editor/components/PlaybackRateSelector.js.map +0 -1
  190. package/dist/editor/components/Preview.d.ts.map +0 -1
  191. package/dist/editor/components/Preview.js.map +0 -1
  192. package/dist/editor/components/PreviewToolbar.d.ts.map +0 -1
  193. package/dist/editor/components/PreviewToolbar.js.map +0 -1
  194. package/dist/editor/components/RichTimelineToggle.d.ts.map +0 -1
  195. package/dist/editor/components/RichTimelineToggle.js.map +0 -1
  196. package/dist/editor/components/SizeSelector.d.ts.map +0 -1
  197. package/dist/editor/components/SizeSelector.js.map +0 -1
  198. package/dist/editor/components/Splitter/SplitterContainer.d.ts.map +0 -1
  199. package/dist/editor/components/Splitter/SplitterContainer.js.map +0 -1
  200. package/dist/editor/components/Splitter/SplitterContext.d.ts.map +0 -1
  201. package/dist/editor/components/Splitter/SplitterContext.js.map +0 -1
  202. package/dist/editor/components/Splitter/SplitterElement.d.ts.map +0 -1
  203. package/dist/editor/components/Splitter/SplitterElement.js.map +0 -1
  204. package/dist/editor/components/Splitter/SplitterHandle.d.ts.map +0 -1
  205. package/dist/editor/components/Splitter/SplitterHandle.js.map +0 -1
  206. package/dist/editor/components/Thumbnail.d.ts.map +0 -1
  207. package/dist/editor/components/Thumbnail.js.map +0 -1
  208. package/dist/editor/components/TimeValue.d.ts.map +0 -1
  209. package/dist/editor/components/TimeValue.js.map +0 -1
  210. package/dist/editor/components/Timeline/LoopedIndicator.d.ts.map +0 -1
  211. package/dist/editor/components/Timeline/LoopedIndicator.js.map +0 -1
  212. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts.map +0 -1
  213. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js.map +0 -1
  214. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts.map +0 -1
  215. package/dist/editor/components/Timeline/MaxTimelineTracks.js.map +0 -1
  216. package/dist/editor/components/Timeline/Timeline.d.ts.map +0 -1
  217. package/dist/editor/components/Timeline/Timeline.js.map +0 -1
  218. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts.map +0 -1
  219. package/dist/editor/components/Timeline/TimelineCollapseToggle.js.map +0 -1
  220. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts.map +0 -1
  221. package/dist/editor/components/Timeline/TimelineDragHandler.js.map +0 -1
  222. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +0 -1
  223. package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +0 -1
  224. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts.map +0 -1
  225. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js.map +0 -1
  226. package/dist/editor/components/Timeline/TimelineList.d.ts.map +0 -1
  227. package/dist/editor/components/Timeline/TimelineList.js.map +0 -1
  228. package/dist/editor/components/Timeline/TimelineListItem.d.ts.map +0 -1
  229. package/dist/editor/components/Timeline/TimelineListItem.js.map +0 -1
  230. package/dist/editor/components/Timeline/TimelineSequence.d.ts.map +0 -1
  231. package/dist/editor/components/Timeline/TimelineSequence.js.map +0 -1
  232. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts.map +0 -1
  233. package/dist/editor/components/Timeline/TimelineSequenceFrame.js.map +0 -1
  234. package/dist/editor/components/Timeline/TimelineSlider.d.ts.map +0 -1
  235. package/dist/editor/components/Timeline/TimelineSlider.js.map +0 -1
  236. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts.map +0 -1
  237. package/dist/editor/components/Timeline/TimelineSliderHandle.js.map +0 -1
  238. package/dist/editor/components/Timeline/TimelineTracks.d.ts.map +0 -1
  239. package/dist/editor/components/Timeline/TimelineTracks.js.map +0 -1
  240. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts.map +0 -1
  241. package/dist/editor/components/Timeline/TimelineVideoInfo.js.map +0 -1
  242. package/dist/editor/components/Timeline/is-collapsed.d.ts.map +0 -1
  243. package/dist/editor/components/Timeline/is-collapsed.js.map +0 -1
  244. package/dist/editor/components/Timeline/timeline-refs.d.ts.map +0 -1
  245. package/dist/editor/components/Timeline/timeline-refs.js.map +0 -1
  246. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts.map +0 -1
  247. package/dist/editor/components/Timeline/timeline-state-reducer.js.map +0 -1
  248. package/dist/editor/components/TimelineInOutToggle.d.ts.map +0 -1
  249. package/dist/editor/components/TimelineInOutToggle.js.map +0 -1
  250. package/dist/editor/components/TopPanel.d.ts.map +0 -1
  251. package/dist/editor/components/TopPanel.js.map +0 -1
  252. package/dist/editor/components/UpdateCheck.d.ts.map +0 -1
  253. package/dist/editor/components/UpdateCheck.js.map +0 -1
  254. package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +0 -1
  255. package/dist/editor/components/UpdateModal/UpdateModal.js.map +0 -1
  256. package/dist/editor/components/layout.d.ts.map +0 -1
  257. package/dist/editor/components/layout.js.map +0 -1
  258. package/dist/editor/helpers/calculate-timeline.d.ts.map +0 -1
  259. package/dist/editor/helpers/calculate-timeline.js.map +0 -1
  260. package/dist/editor/helpers/checkerboard-background.d.ts.map +0 -1
  261. package/dist/editor/helpers/checkerboard-background.js.map +0 -1
  262. package/dist/editor/helpers/colors.d.ts.map +0 -1
  263. package/dist/editor/helpers/colors.js.map +0 -1
  264. package/dist/editor/helpers/copy-text.d.ts.map +0 -1
  265. package/dist/editor/helpers/copy-text.js.map +0 -1
  266. package/dist/editor/helpers/create-folder-tree.d.ts.map +0 -1
  267. package/dist/editor/helpers/create-folder-tree.js.map +0 -1
  268. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts.map +0 -1
  269. package/dist/editor/helpers/get-left-of-timeline-slider.js.map +0 -1
  270. package/dist/editor/helpers/get-sequence-visible-range.d.ts.map +0 -1
  271. package/dist/editor/helpers/get-sequence-visible-range.js.map +0 -1
  272. package/dist/editor/helpers/get-timeline-nestedness.d.ts.map +0 -1
  273. package/dist/editor/helpers/get-timeline-nestedness.js.map +0 -1
  274. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts.map +0 -1
  275. package/dist/editor/helpers/get-timeline-sequence-hash.js.map +0 -1
  276. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts.map +0 -1
  277. package/dist/editor/helpers/get-timeline-sequence-layout.js.map +0 -1
  278. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts.map +0 -1
  279. package/dist/editor/helpers/get-timeline-sequence-sort-key.js.map +0 -1
  280. package/dist/editor/helpers/is-composition-still.d.ts.map +0 -1
  281. package/dist/editor/helpers/is-composition-still.js.map +0 -1
  282. package/dist/editor/helpers/is-current-selected-still.d.ts.map +0 -1
  283. package/dist/editor/helpers/is-current-selected-still.js.map +0 -1
  284. package/dist/editor/helpers/noop.d.ts.map +0 -1
  285. package/dist/editor/helpers/noop.js.map +0 -1
  286. package/dist/editor/helpers/persist-open-folders.d.ts.map +0 -1
  287. package/dist/editor/helpers/persist-open-folders.js.map +0 -1
  288. package/dist/editor/helpers/timeline-layout.d.ts.map +0 -1
  289. package/dist/editor/helpers/timeline-layout.js.map +0 -1
  290. package/dist/editor/helpers/use-keybinding.d.ts.map +0 -1
  291. package/dist/editor/helpers/use-keybinding.js.map +0 -1
  292. package/dist/editor/helpers/validate-new-comp-data.d.ts.map +0 -1
  293. package/dist/editor/helpers/validate-new-comp-data.js.map +0 -1
  294. package/dist/editor/icons/Checkmark.d.ts.map +0 -1
  295. package/dist/editor/icons/Checkmark.js.map +0 -1
  296. package/dist/editor/icons/caret.d.ts.map +0 -1
  297. package/dist/editor/icons/caret.js.map +0 -1
  298. package/dist/editor/icons/film.d.ts.map +0 -1
  299. package/dist/editor/icons/film.js.map +0 -1
  300. package/dist/editor/icons/folder.d.ts.map +0 -1
  301. package/dist/editor/icons/folder.js.map +0 -1
  302. package/dist/editor/icons/keys.d.ts.map +0 -1
  303. package/dist/editor/icons/keys.js.map +0 -1
  304. package/dist/editor/icons/lock.d.ts.map +0 -1
  305. package/dist/editor/icons/lock.js.map +0 -1
  306. package/dist/editor/icons/media-volume.d.ts.map +0 -1
  307. package/dist/editor/icons/media-volume.js.map +0 -1
  308. package/dist/editor/icons/pause.d.ts.map +0 -1
  309. package/dist/editor/icons/pause.js.map +0 -1
  310. package/dist/editor/icons/play.d.ts.map +0 -1
  311. package/dist/editor/icons/play.js.map +0 -1
  312. package/dist/editor/icons/step-back.d.ts.map +0 -1
  313. package/dist/editor/icons/step-back.js.map +0 -1
  314. package/dist/editor/icons/step-forward.d.ts.map +0 -1
  315. package/dist/editor/icons/step-forward.js.map +0 -1
  316. package/dist/editor/icons/still.d.ts.map +0 -1
  317. package/dist/editor/icons/still.js.map +0 -1
  318. package/dist/editor/icons/timeline.d.ts.map +0 -1
  319. package/dist/editor/icons/timeline.js.map +0 -1
  320. package/dist/editor/icons/timelineInOutPointer.d.ts.map +0 -1
  321. package/dist/editor/icons/timelineInOutPointer.js.map +0 -1
  322. package/dist/editor/state/aspect-ratio-locked.d.ts.map +0 -1
  323. package/dist/editor/state/aspect-ratio-locked.js.map +0 -1
  324. package/dist/editor/state/checkerboard.d.ts.map +0 -1
  325. package/dist/editor/state/checkerboard.js.map +0 -1
  326. package/dist/editor/state/highest-z-index.d.ts.map +0 -1
  327. package/dist/editor/state/highest-z-index.js.map +0 -1
  328. package/dist/editor/state/input-dragger-click-lock.d.ts.map +0 -1
  329. package/dist/editor/state/input-dragger-click-lock.js.map +0 -1
  330. package/dist/editor/state/keybindings.d.ts.map +0 -1
  331. package/dist/editor/state/keybindings.js.map +0 -1
  332. package/dist/editor/state/loop.d.ts.map +0 -1
  333. package/dist/editor/state/loop.js.map +0 -1
  334. package/dist/editor/state/marks.d.ts.map +0 -1
  335. package/dist/editor/state/marks.js.map +0 -1
  336. package/dist/editor/state/modals.d.ts.map +0 -1
  337. package/dist/editor/state/modals.js.map +0 -1
  338. package/dist/editor/state/mute.d.ts.map +0 -1
  339. package/dist/editor/state/mute.js.map +0 -1
  340. package/dist/editor/state/playbackrate.d.ts.map +0 -1
  341. package/dist/editor/state/playbackrate.js.map +0 -1
  342. package/dist/editor/state/preview-size.d.ts.map +0 -1
  343. package/dist/editor/state/preview-size.js.map +0 -1
  344. package/dist/editor/state/render-frame.d.ts.map +0 -1
  345. package/dist/editor/state/render-frame.js.map +0 -1
  346. package/dist/editor/state/rich-timeline.d.ts.map +0 -1
  347. package/dist/editor/state/rich-timeline.js.map +0 -1
  348. package/dist/editor/state/timeline-ref.d.ts.map +0 -1
  349. package/dist/editor/state/timeline-ref.js.map +0 -1
  350. package/dist/editor/state/timeline.d.ts.map +0 -1
  351. package/dist/editor/state/timeline.js.map +0 -1
  352. package/dist/editor/state/z-index.d.ts.map +0 -1
  353. package/dist/editor/state/z-index.js.map +0 -1
  354. package/dist/get-cli-options.d.ts.map +0 -1
  355. package/dist/get-cli-options.js.map +0 -1
  356. package/dist/get-composition-id.d.ts.map +0 -1
  357. package/dist/get-composition-id.js.map +0 -1
  358. package/dist/get-config-file-name.d.ts.map +0 -1
  359. package/dist/get-config-file-name.js.map +0 -1
  360. package/dist/get-env.d.ts.map +0 -1
  361. package/dist/get-env.js.map +0 -1
  362. package/dist/get-filename.d.ts.map +0 -1
  363. package/dist/get-filename.js.map +0 -1
  364. package/dist/get-input-props.d.ts.map +0 -1
  365. package/dist/get-input-props.js.map +0 -1
  366. package/dist/handle-common-errors.d.ts.map +0 -1
  367. package/dist/handle-common-errors.js.map +0 -1
  368. package/dist/image-formats.d.ts.map +0 -1
  369. package/dist/image-formats.js.map +0 -1
  370. package/dist/index.d.ts.map +0 -1
  371. package/dist/index.js.map +0 -1
  372. package/dist/initialize-render-cli.d.ts.map +0 -1
  373. package/dist/initialize-render-cli.js.map +0 -1
  374. package/dist/is-javascript.d.ts.map +0 -1
  375. package/dist/is-javascript.js.map +0 -1
  376. package/dist/lambda-command.d.ts.map +0 -1
  377. package/dist/lambda-command.js.map +0 -1
  378. package/dist/load-config.d.ts.map +0 -1
  379. package/dist/load-config.js.map +0 -1
  380. package/dist/log.d.ts.map +0 -1
  381. package/dist/log.js.map +0 -1
  382. package/dist/make-progress-bar.d.ts.map +0 -1
  383. package/dist/make-progress-bar.js.map +0 -1
  384. package/dist/parse-command-line.d.ts.map +0 -1
  385. package/dist/parse-command-line.js.map +0 -1
  386. package/dist/preview.d.ts.map +0 -1
  387. package/dist/preview.js.map +0 -1
  388. package/dist/previewEntry.d.ts.map +0 -1
  389. package/dist/previewEntry.js.map +0 -1
  390. package/dist/print-error.d.ts.map +0 -1
  391. package/dist/print-error.js.map +0 -1
  392. package/dist/print-help.d.ts.map +0 -1
  393. package/dist/print-help.js.map +0 -1
  394. package/dist/progress-bar.d.ts.map +0 -1
  395. package/dist/progress-bar.js.map +0 -1
  396. package/dist/render.d.ts.map +0 -1
  397. package/dist/render.js.map +0 -1
  398. package/dist/resolve-from.d.ts.map +0 -1
  399. package/dist/resolve-from.js.map +0 -1
  400. package/dist/setup-cache.d.ts.map +0 -1
  401. package/dist/setup-cache.js.map +0 -1
  402. package/dist/step.d.ts.map +0 -1
  403. package/dist/step.js.map +0 -1
  404. package/dist/still.d.ts.map +0 -1
  405. package/dist/still.js.map +0 -1
  406. package/dist/upgrade.d.ts.map +0 -1
  407. package/dist/upgrade.js.map +0 -1
  408. package/dist/user-passed-output-location.d.ts.map +0 -1
  409. package/dist/user-passed-output-location.js.map +0 -1
  410. package/dist/validate-ffmpeg-version.d.ts.map +0 -1
  411. package/dist/validate-ffmpeg-version.js.map +0 -1
  412. package/dist/versions.d.ts.map +0 -1
  413. package/dist/versions.js.map +0 -1
  414. package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
  415. package/dist/warn-about-ffmpeg-version.js.map +0 -1
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ /**
3
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReactFreshWebpackPlugin = void 0;
7
+ /**
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2020 Vercel, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+ // This file is copied from the @vercel/next.js, with removed TS annotations
31
+ // minor tweaks, and removed all webpack v4-related functionality
32
+ //
33
+ // https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/ReactRefreshWebpackPlugin.ts
34
+ const webpack_1 = require("webpack");
35
+ class ReactRefreshRuntimeModule extends webpack_1.RuntimeModule {
36
+ constructor() {
37
+ super('react refresh', 5);
38
+ }
39
+ generate() {
40
+ const { runtimeTemplate } = this.compilation;
41
+ return webpack_1.Template.asString([
42
+ `${webpack_1.RuntimeGlobals.interceptModuleExecution}.push(${runtimeTemplate.basicFunction('options', [
43
+ `const originalFactory = options.factory;`,
44
+ `options.factory = ${runtimeTemplate.basicFunction('moduleObject, moduleExports, webpackRequire', [
45
+ // Legacy CSS implementations will `eval` browser code in a Node.js
46
+ // context to extract CSS. For backwards compatibility, we need to check
47
+ // we're in a browser context before continuing.
48
+ `const hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;`,
49
+ `const cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : () => {};`,
50
+ 'try {',
51
+ webpack_1.Template.indent('originalFactory.call(this, moduleObject, moduleExports, webpackRequire);'),
52
+ '} finally {',
53
+ webpack_1.Template.indent(`cleanup();`),
54
+ '}',
55
+ ])}`,
56
+ ])})`,
57
+ ]);
58
+ }
59
+ }
60
+ class ReactFreshWebpackPlugin {
61
+ apply(compiler) {
62
+ const webpackMajorVersion = parseInt(webpack_1.version !== null && webpack_1.version !== void 0 ? webpack_1.version : '', 10);
63
+ if (webpackMajorVersion < 5) {
64
+ throw new Error(`ReactFreshWebpackPlugin does not support webpack v${webpackMajorVersion}.`);
65
+ }
66
+ compiler.hooks.compilation.tap(this.constructor.name, (compilation) => {
67
+ compilation.mainTemplate.hooks.localVars.tap(this.constructor.name, (source) => webpack_1.Template.asString([
68
+ source,
69
+ '',
70
+ '// noop fns to prevent runtime errors during initialization',
71
+ 'if (typeof self !== "undefined") {',
72
+ webpack_1.Template.indent('self.$RefreshReg$ = function () {};'),
73
+ webpack_1.Template.indent('self.$RefreshSig$ = function () {'),
74
+ webpack_1.Template.indent(webpack_1.Template.indent('return function (type) {')),
75
+ webpack_1.Template.indent(webpack_1.Template.indent(webpack_1.Template.indent('return type;'))),
76
+ webpack_1.Template.indent(webpack_1.Template.indent('};')),
77
+ webpack_1.Template.indent('};'),
78
+ '}',
79
+ ]));
80
+ compilation.hooks.additionalTreeRuntimeRequirements.tap(this.constructor.name, (chunk) => {
81
+ compilation.addRuntimeModule(chunk, new ReactRefreshRuntimeModule());
82
+ });
83
+ });
84
+ }
85
+ }
86
+ exports.ReactFreshWebpackPlugin = ReactFreshWebpackPlugin;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * ⚠️ Be careful when refactoring this file!
3
+ * This gets injected into every file of the browser.
4
+ * You cannot have returns, optional chains, inverse the if statement etc.
5
+ * Check the Typescript output in dist/ to see that no extra `var` statements were produced
6
+ */
7
+ /**
8
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
9
+ */
10
+ /**
11
+ * The MIT License (MIT)
12
+ *
13
+ * Copyright (c) 2020 Vercel, Inc.
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ * copies of the Software, and to permit persons to whom the Software is
20
+ * furnished to do so, subject to the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be included in all
23
+ * copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ * SOFTWARE.
32
+ */
33
+ import { LoaderDefinition } from 'webpack';
34
+ declare const ReactRefreshLoader: LoaderDefinition;
35
+ export default ReactRefreshLoader;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ * ⚠️ Be careful when refactoring this file!
4
+ * This gets injected into every file of the browser.
5
+ * You cannot have returns, optional chains, inverse the if statement etc.
6
+ * Check the Typescript output in dist/ to see that no extra `var` statements were produced
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ // This file is copied from the @vercel/next.js, with removed TS annotations
10
+ //
11
+ // https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/loader.ts
12
+ // This function gets unwrapped into global scope, which is why we don't invert
13
+ // if-blocks. Also, you cannot use `return`.
14
+ function RefreshModuleRuntime() {
15
+ // Legacy CSS implementations will `eval` browser code in a Node.js context
16
+ // to extract CSS. For backwards compatibility, we need to check we're in a
17
+ // browser context before continuing.
18
+ if (typeof self !== 'undefined' &&
19
+ // AMP / No-JS mode does not inject these helpers:
20
+ '$RefreshHelpers$' in self) {
21
+ // @ts-expect-error
22
+ // eslint-disable-next-line no-proto
23
+ const currentExports = module.__proto__.exports;
24
+ let prevExports = null;
25
+ // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
26
+ if (module.hot && module.hot.data && module.hot.data.prevExports) {
27
+ prevExports = module.hot.data.prevExports;
28
+ }
29
+ // This cannot happen in MainTemplate because the exports mismatch between
30
+ // templating and execution.
31
+ self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);
32
+ // A module can be accepted automatically based on its exports, e.g. when
33
+ // it is a Refresh Boundary.
34
+ if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {
35
+ // Save the previous exports on update so we can compare the boundary
36
+ // signatures.
37
+ module.hot.dispose((data) => {
38
+ data.prevExports = currentExports;
39
+ });
40
+ // Unconditionally accept an update to this module, we'll check if it's
41
+ // still a Refresh Boundary later.
42
+ module.hot.accept();
43
+ // This field is set when the previous version of this module was a
44
+ // Refresh Boundary, letting us know we need to check for invalidation or
45
+ // enqueue an update.
46
+ if (prevExports !== null) {
47
+ // A boundary can become ineligible if its exports are incompatible
48
+ // with the previous exports.
49
+ //
50
+ // For example, if you add/remove/change exports, we'll want to
51
+ // re-execute the importing modules, and force those components to
52
+ // re-render. Similarly, if you convert a class component to a
53
+ // function, we want to invalidate the boundary.
54
+ if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports)) {
55
+ // @ts-expect-error
56
+ module.hot.invalidate();
57
+ }
58
+ else {
59
+ self.$RefreshHelpers$.scheduleUpdate();
60
+ }
61
+ }
62
+ }
63
+ else {
64
+ // Since we just executed the code for the module, it's possible that the
65
+ // new exports made it ineligible for being a boundary.
66
+ // We only care about the case when we were _previously_ a boundary,
67
+ // because we already accepted this update (accidental side effect).
68
+ const isNoLongerABoundary = prevExports !== null;
69
+ if (isNoLongerABoundary) {
70
+ // @ts-expect-error
71
+ module.hot.invalidate();
72
+ }
73
+ }
74
+ }
75
+ }
76
+ let refreshModuleRuntime = RefreshModuleRuntime.toString();
77
+ refreshModuleRuntime = refreshModuleRuntime.slice(refreshModuleRuntime.indexOf('{') + 1, refreshModuleRuntime.lastIndexOf('}'));
78
+ const ReactRefreshLoader = function (source, inputSourceMap) {
79
+ this.callback(null, `${source}\n\n;${refreshModuleRuntime}`, inputSourceMap);
80
+ };
81
+ exports.default = ReactRefreshLoader;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
3
+ */
4
+ /**
5
+ * The MIT License (MIT)
6
+ *
7
+ * Copyright (c) 2020 Vercel, Inc.
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ * of this software and associated documentation files (the "Software"), to deal
11
+ * in the Software without restriction, including without limitation the rights
12
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ * copies of the Software, and to permit persons to whom the Software is
14
+ * furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in all
17
+ * copies or substantial portions of the Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ */
27
+ declare global {
28
+ interface Window {
29
+ $RefreshReg$: (type: string, id?: string) => void;
30
+ $RefreshSig$: () => (type: string) => unknown;
31
+ $RefreshHelpers$: typeof RefreshHelpers;
32
+ $RefreshInterceptModuleExecution$: (webpackId: unknown) => () => void;
33
+ }
34
+ }
35
+ import RefreshHelpers from './helpers';
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
4
+ */
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const RefreshRuntime = require('react-refresh/runtime');
10
+ const helpers_1 = __importDefault(require("./helpers"));
11
+ // Hook into ReactDOM initialization
12
+ RefreshRuntime.injectIntoGlobalHook(self);
13
+ // noop fns to prevent runtime errors during initialization
14
+ self.$RefreshReg$ = () => undefined;
15
+ self.$RefreshSig$ = () => (type) => type;
16
+ // Register global helpers
17
+ self.$RefreshHelpers$ = helpers_1.default;
18
+ // Register a helper for module execution interception
19
+ self.$RefreshInterceptModuleExecution$ = function (webpackModuleId) {
20
+ const prevRefreshReg = self.$RefreshReg$;
21
+ const prevRefreshSig = self.$RefreshSig$;
22
+ self.$RefreshReg$ = (type, id) => {
23
+ RefreshRuntime.register(type, webpackModuleId + ' ' + id);
24
+ };
25
+ self.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
26
+ // Modeled after `useEffect` cleanup pattern:
27
+ // https://reactjs.org/docs/hooks-effect.html#effects-with-cleanup
28
+ return () => {
29
+ self.$RefreshReg$ = prevRefreshReg;
30
+ self.$RefreshSig$ = prevRefreshSig;
31
+ };
32
+ };
@@ -0,0 +1 @@
1
+ export declare const indexHtml: (staticHash: string, baseDir: string, editorName: string | null) => string;
@@ -0,0 +1,40 @@
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.indexHtml = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ const indexHtml = (staticHash, baseDir, editorName) => `
9
+ <!DOCTYPE html>
10
+ <html lang="en">
11
+ <head>
12
+ <meta charset="UTF-8" />
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
14
+ <link rel="preconnect" href="https://fonts.gstatic.com" />
15
+ <link rel="icon" type="image/png" href="/remotion.png" />
16
+ <title>Remotion Preview</title>
17
+ </head>
18
+ <body>
19
+ <script>window.remotion_staticBase = "${staticHash}";</script>
20
+ <div id="video-container"></div>
21
+ <div id="explainer-container"></div>
22
+ ${editorName
23
+ ? `<script>window.remotion_editorName = "${editorName}";</script>`
24
+ : '<script>window.remotion_editorName = null;</script>'}
25
+ <script>window.remotion_projectName = ${JSON.stringify(path_1.default.basename(process.cwd()))};</script>
26
+ <script>window.remotion_cwd = ${JSON.stringify(process.cwd())};</script>
27
+
28
+ <div id="container"></div>
29
+ <div id="menuportal-0"></div>
30
+ <div id="menuportal-1"></div>
31
+ <div id="menuportal-2"></div>
32
+ <div id="menuportal-3"></div>
33
+ <div id="menuportal-4"></div>
34
+ <div id="menuportal-5"></div>
35
+ <div id="remotion-error-overlay"></div>
36
+ <script src="${baseDir}bundle.js"></script>
37
+ </body>
38
+ </html>
39
+ `.trim();
40
+ exports.indexHtml = indexHtml;
@@ -0,0 +1,12 @@
1
+ declare type Environment = 'development' | 'production';
2
+ declare global {
3
+ namespace NodeJS {
4
+ interface ProcessVersions {
5
+ pnp?: string;
6
+ }
7
+ }
8
+ }
9
+ export declare const clearCache: (environment: Environment, inputProps: object | null) => Promise<void>;
10
+ export declare const getWebpackCacheName: (environment: Environment, inputProps: object | null) => string;
11
+ export declare const cacheExists: (environment: Environment, inputProps: object | null) => boolean;
12
+ export {};
@@ -0,0 +1,66 @@
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.cacheExists = exports.getWebpackCacheName = exports.clearCache = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const remotion_1 = require("remotion");
10
+ // Inlined from https://github.com/webpack/webpack/blob/4c2ee7a4ddb8db2362ca83b6c4190523387ba7ee/lib/config/defaults.js#L265
11
+ // An algorithm to determine where Webpack will cache the depencies
12
+ const getWebpackCacheDir = () => {
13
+ const cwd = process.cwd();
14
+ let dir = cwd;
15
+ for (;;) {
16
+ try {
17
+ if (fs_1.default.statSync(path_1.default.join(dir, 'package.json')).isFile()) {
18
+ break;
19
+ }
20
+ // eslint-disable-next-line no-empty
21
+ }
22
+ catch (e) { }
23
+ const parent = path_1.default.dirname(dir);
24
+ if (dir === parent) {
25
+ dir = undefined;
26
+ break;
27
+ }
28
+ dir = parent;
29
+ }
30
+ if (!dir) {
31
+ return path_1.default.resolve(cwd, '.cache/webpack');
32
+ }
33
+ if (process.versions.pnp === '1') {
34
+ return path_1.default.resolve(dir, '.pnp/.cache/webpack');
35
+ }
36
+ if (process.versions.pnp === '3') {
37
+ return path_1.default.resolve(dir, '.yarn/.cache/webpack');
38
+ }
39
+ return path_1.default.resolve(dir, 'node_modules/.cache/webpack');
40
+ };
41
+ const remotionCacheLocation = (environment, inputProps) => {
42
+ return path_1.default.join(getWebpackCacheDir(), (0, exports.getWebpackCacheName)(environment, inputProps));
43
+ };
44
+ const clearCache = (environment, inputProps) => {
45
+ var _a;
46
+ return ((_a = fs_1.default.promises.rm) !== null && _a !== void 0 ? _a : fs_1.default.promises.rmdir)(remotionCacheLocation(environment, inputProps), {
47
+ recursive: true,
48
+ });
49
+ };
50
+ exports.clearCache = clearCache;
51
+ const getWebpackCacheName = (environment, inputProps) => {
52
+ // In development, let's reset the cache when input props
53
+ // are changing, because they are injected using Webpack and if changed,
54
+ // it will get the cached version
55
+ if (environment === 'development') {
56
+ return `remotion-v3-${environment}-${(0, remotion_1.random)(JSON.stringify(inputProps))}`;
57
+ }
58
+ // In production, the cache is independent from input props because
59
+ // they are passed over URL params. Speed is mostly important in production.
60
+ return `remotion-v3-${environment}`;
61
+ };
62
+ exports.getWebpackCacheName = getWebpackCacheName;
63
+ const cacheExists = (environment, inputProps) => {
64
+ return fs_1.default.existsSync(remotionCacheLocation(environment, inputProps));
65
+ };
66
+ exports.cacheExists = cacheExists;
@@ -1,4 +1,5 @@
1
1
  import type { StitchingState } from '@remotion/renderer';
2
+ import type { Codec } from 'remotion';
2
3
  import type { RenderStep } from './step';
3
4
  export declare const createProgressBar: (quiet: boolean) => {
4
5
  update: (str: string) => boolean;
@@ -25,8 +26,9 @@ declare type StitchingProgressInput = {
25
26
  steps: RenderStep[];
26
27
  doneIn: number | null;
27
28
  stage: StitchingState;
29
+ codec: Codec;
28
30
  };
29
- export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, }: StitchingProgressInput) => string;
31
+ export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, codec, }: StitchingProgressInput) => string;
30
32
  export declare type DownloadProgress = {
31
33
  name: string;
32
34
  id: number;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeRenderingAndStitchingProgress = exports.makeStitchingProgress = exports.makeRenderingProgress = exports.makeBundlingProgress = exports.createOverwriteableCliOutput = exports.createProgressBar = void 0;
4
+ const renderer_1 = require("@remotion/renderer");
4
5
  const remotion_1 = require("remotion");
5
6
  const ansi_diff_1 = require("./ansi/ansi-diff");
6
7
  const chalk_1 = require("./chalk");
@@ -46,14 +47,14 @@ const makeRenderingProgress = ({ frames, totalFrames, steps, concurrency, doneIn
46
47
  ].join(' ');
47
48
  };
48
49
  exports.makeRenderingProgress = makeRenderingProgress;
49
- const makeStitchingProgress = ({ frames, totalFrames, steps, doneIn, stage, }) => {
50
+ const makeStitchingProgress = ({ frames, totalFrames, steps, doneIn, stage, codec, }) => {
50
51
  const progress = frames / totalFrames;
51
52
  return [
52
53
  `(${steps.indexOf('stitching') + 1}/${steps.length})`,
53
54
  (0, make_progress_bar_1.makeProgressBar)(progress),
54
- stage === 'muxing'
55
+ stage === 'muxing' && renderer_1.RenderInternals.canUseParallelEncoding(codec)
55
56
  ? `${doneIn ? 'Muxed' : 'Muxing'} audio`
56
- : `${doneIn ? 'Encoded' : 'Encoding'} video`,
57
+ : `${doneIn ? 'Encoded' : 'Encoding'} ${codec === 'gif' ? 'GIF' : 'video'}`,
57
58
  doneIn === null ? `${frames}/${totalFrames}` : chalk_1.chalk.gray(`${doneIn}ms`),
58
59
  ].join(' ');
59
60
  };
package/dist/render.js CHANGED
@@ -31,7 +31,7 @@ const render = async () => {
31
31
  ? file
32
32
  : path_1.default.join(process.cwd(), file);
33
33
  await (0, initialize_render_cli_1.initializeRenderCli)('sequence');
34
- const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
34
+ const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
35
35
  if (!absoluteOutputFile) {
36
36
  throw new Error('assertion error - expected absoluteOutputFile to not be null');
37
37
  }
@@ -52,7 +52,7 @@ const render = async () => {
52
52
  ].filter(remotion_1.Internals.truthy);
53
53
  const urlOrBundle = renderer_1.RenderInternals.isServeUrl(fullPath)
54
54
  ? fullPath
55
- : await (0, setup_cache_1.bundleOnCli)(fullPath, steps);
55
+ : await (0, setup_cache_1.bundleOnCli)({ fullPath, steps });
56
56
  const onDownload = (src) => {
57
57
  const id = Math.random();
58
58
  const download = {
@@ -96,7 +96,8 @@ const render = async () => {
96
96
  : await fs_1.default.promises.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'react-motion-render'));
97
97
  log_1.Log.verbose('Output dir', outputDir);
98
98
  const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
99
- let totalFrames = renderer_1.RenderInternals.getDurationFromFrameRange(frameRange, config.durationInFrames);
99
+ const realFrameRange = renderer_1.RenderInternals.getRealFrameRange(config.durationInFrames, frameRange);
100
+ const totalFrames = renderer_1.RenderInternals.getFramesToRender(realFrameRange, everyNthFrame);
100
101
  let encodedFrames = 0;
101
102
  let renderedFrames = 0;
102
103
  let encodedDoneIn = null;
@@ -104,13 +105,13 @@ const render = async () => {
104
105
  let stitchStage = 'encoding';
105
106
  const downloads = [];
106
107
  const updateRenderProgress = () => {
107
- if (totalFrames === null) {
108
+ if (totalFrames.length === 0) {
108
109
  throw new Error('totalFrames should not be 0');
109
110
  }
110
111
  return renderProgress.update((0, progress_bar_1.makeRenderingAndStitchingProgress)({
111
112
  rendering: {
112
113
  frames: renderedFrames,
113
- totalFrames,
114
+ totalFrames: totalFrames.length,
114
115
  concurrency: renderer_1.RenderInternals.getActualConcurrency(parallelism),
115
116
  doneIn: renderedDoneIn,
116
117
  steps,
@@ -122,7 +123,8 @@ const render = async () => {
122
123
  frames: encodedFrames,
123
124
  stage: stitchStage,
124
125
  steps,
125
- totalFrames,
126
+ totalFrames: totalFrames.length,
127
+ codec,
126
128
  },
127
129
  downloads,
128
130
  }));
@@ -144,10 +146,7 @@ const render = async () => {
144
146
  renderedFrames = rendered;
145
147
  updateRenderProgress();
146
148
  },
147
- onStart: ({ frameCount }) => {
148
- totalFrames = frameCount;
149
- return updateRenderProgress();
150
- },
149
+ onStart: () => undefined,
151
150
  onDownload: (src) => {
152
151
  if (src.startsWith('data:')) {
153
152
  log_1.Log.info('\nWriting Data URL to file: ', src.substring(0, 30) + '...');
@@ -159,6 +158,7 @@ const render = async () => {
159
158
  outputDir,
160
159
  serveUrl: urlOrBundle,
161
160
  dumpBrowserLogs: remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose'),
161
+ everyNthFrame,
162
162
  envVariables,
163
163
  frameRange,
164
164
  parallelism,
@@ -207,13 +207,12 @@ const render = async () => {
207
207
  serveUrl: urlOrBundle,
208
208
  onDownload,
209
209
  dumpBrowserLogs: remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose'),
210
- onStart: ({ frameCount }) => {
211
- totalFrames = frameCount;
212
- },
213
210
  chromiumOptions,
214
211
  timeoutInMilliseconds: remotion_1.Internals.getCurrentPuppeteerTimeout(),
215
212
  scale,
216
213
  port,
214
+ numberOfGifLoops,
215
+ everyNthFrame,
217
216
  });
218
217
  log_1.Log.info();
219
218
  log_1.Log.info();
@@ -234,7 +233,7 @@ const render = async () => {
234
233
  log_1.Log.warn(err);
235
234
  log_1.Log.warn('Do you have minimum required Node.js version?');
236
235
  }
237
- log_1.Log.info(chalk_1.chalk.green('\nYour video is ready!'));
236
+ log_1.Log.info(chalk_1.chalk.green(`\nYour ${codec === 'gif' ? 'GIF' : 'video'} is ready!`));
238
237
  if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose')) {
239
238
  remotion_1.Internals.perf.logPerf();
240
239
  }
@@ -1,2 +1,5 @@
1
1
  import type { RenderStep } from './step';
2
- export declare const bundleOnCli: (fullPath: string, steps: RenderStep[]) => Promise<string>;
2
+ export declare const bundleOnCli: ({ fullPath, steps, }: {
3
+ fullPath: string;
4
+ steps: RenderStep[];
5
+ }) => Promise<string>;
@@ -6,7 +6,7 @@ const remotion_1 = require("remotion");
6
6
  const log_1 = require("./log");
7
7
  const parse_command_line_1 = require("./parse-command-line");
8
8
  const progress_bar_1 = require("./progress-bar");
9
- const bundleOnCli = async (fullPath, steps) => {
9
+ const bundleOnCli = async ({ fullPath, steps, }) => {
10
10
  var _a;
11
11
  const shouldCache = remotion_1.Internals.getWebpackCaching();
12
12
  const cacheExistedBefore = bundler_1.BundlerInternals.cacheExists('production');
package/dist/still.js CHANGED
@@ -62,7 +62,7 @@ const still = async () => {
62
62
  ].filter(remotion_1.Internals.truthy);
63
63
  const urlOrBundle = renderer_1.RenderInternals.isServeUrl(fullPath)
64
64
  ? Promise.resolve(fullPath)
65
- : await (0, setup_cache_1.bundleOnCli)(fullPath, steps);
65
+ : await (0, setup_cache_1.bundleOnCli)({ fullPath, steps });
66
66
  const puppeteerInstance = await browserInstance;
67
67
  const comps = await (0, renderer_1.getCompositions)(await urlOrBundle, {
68
68
  inputProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "3.0.29",
3
+ "version": "3.1.0",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -10,7 +10,7 @@
10
10
  "module": "true",
11
11
  "scripts": {
12
12
  "lint": "eslint src --ext ts,tsx",
13
- "test": "jest",
13
+ "test": "vitest --run",
14
14
  "build": "tsc -d",
15
15
  "watch": "tsc -w"
16
16
  },
@@ -23,17 +23,18 @@
23
23
  "author": "Jonny Burger <jonny@remotion.dev>",
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "dependencies": {
26
- "@remotion/bundler": "3.0.29",
27
- "@remotion/media-utils": "3.0.29",
28
- "@remotion/player": "3.0.29",
29
- "@remotion/renderer": "3.0.29",
26
+ "@remotion/bundler": "3.1.0",
27
+ "@remotion/media-utils": "3.1.0",
28
+ "@remotion/player": "3.1.0",
29
+ "@remotion/renderer": "3.1.0",
30
30
  "better-opn": "2.1.1",
31
31
  "dotenv": "9.0.2",
32
32
  "memfs": "3.4.3",
33
33
  "minimist": "1.2.6",
34
- "remotion": "3.0.29",
34
+ "remotion": "3.1.0",
35
35
  "semver": "7.3.5",
36
- "source-map": "0.6.1"
36
+ "source-map": "0.6.1",
37
+ "vitest": "^0.18.0"
37
38
  },
38
39
  "peerDependencies": {
39
40
  "react": ">=16.8.0",
@@ -41,7 +42,6 @@
41
42
  },
42
43
  "devDependencies": {
43
44
  "@jonny/eslint-config": "3.0.266",
44
- "@types/jest": "^27.4.0",
45
45
  "@types/minimist": "^1.2.2",
46
46
  "@types/node": "^16.7.5",
47
47
  "@types/react": "18.0.1",
@@ -54,12 +54,10 @@
54
54
  "eslint-plugin-10x": "1.5.2",
55
55
  "eslint-plugin-react": "7.29.4",
56
56
  "eslint-plugin-react-hooks": "4.4.0",
57
- "jest": "^27.2.4",
58
57
  "prettier": "^2.0.5",
59
58
  "prettier-plugin-organize-imports": "^2.3.4",
60
59
  "react": "^18.0.0",
61
60
  "react-dom": "^18.0.0",
62
- "ts-jest": "^27.0.5",
63
61
  "typescript": "^4.7.0"
64
62
  },
65
63
  "keywords": [
@@ -73,5 +71,5 @@
73
71
  "publishConfig": {
74
72
  "access": "public"
75
73
  },
76
- "gitHead": "da2e8a33766bf01b21dfd3c2d0c944356d156722"
74
+ "gitHead": "482c66127662171577aa427f10fe265fa1bc933b"
77
75
  }
package/tsconfig.json CHANGED
@@ -12,5 +12,6 @@
12
12
  {"path": "../renderer"},
13
13
  {"path": "../player"},
14
14
  {"path": "../media-utils"}
15
- ]
15
+ ],
16
+ "exclude": ["vitest.config.ts", "dist"]
16
17
  }
@@ -0,0 +1,9 @@
1
+ import {defineConfig} from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ testTimeout: 90000,
6
+ maxConcurrency: 1,
7
+ threads: false,
8
+ },
9
+ });