@remotion/cli 3.0.0-wrappedup.221 → 3.0.1

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 (696) hide show
  1. package/.prettierrc.js +14 -0
  2. package/LICENSE.md +2 -2
  3. package/dist/ansi/ansi-diff.d.ts +41 -0
  4. package/dist/ansi/ansi-diff.d.ts.map +1 -0
  5. package/dist/ansi/ansi-diff.js +227 -0
  6. package/dist/ansi/ansi-diff.js.map +1 -0
  7. package/dist/ansi/ansi-regex.d.ts +3 -0
  8. package/dist/ansi/ansi-regex.d.ts.map +1 -0
  9. package/dist/ansi/ansi-regex.js +19 -0
  10. package/dist/ansi/ansi-regex.js.map +1 -0
  11. package/dist/ansi/ansi-split.d.ts +2 -0
  12. package/dist/ansi/ansi-split.d.ts.map +1 -0
  13. package/dist/ansi/ansi-split.js +32 -0
  14. package/dist/ansi/ansi-split.js.map +1 -0
  15. package/dist/check-version.d.ts +0 -0
  16. package/dist/check-version.d.ts.map +0 -0
  17. package/dist/check-version.js +0 -0
  18. package/dist/check-version.js.map +0 -0
  19. package/dist/code-frame.d.ts +3 -0
  20. package/dist/code-frame.d.ts.map +1 -0
  21. package/dist/code-frame.js +79 -0
  22. package/dist/code-frame.js.map +1 -0
  23. package/dist/compositions.d.ts +2 -0
  24. package/dist/compositions.d.ts.map +1 -0
  25. package/dist/compositions.js +64 -0
  26. package/dist/compositions.js.map +1 -0
  27. package/dist/editor/components/AudioWaveform.d.ts +0 -0
  28. package/dist/editor/components/AudioWaveform.d.ts.map +1 -1
  29. package/dist/editor/components/AudioWaveform.js +21 -3
  30. package/dist/editor/components/AudioWaveform.js.map +1 -1
  31. package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
  32. package/dist/editor/components/AudioWaveformBar.d.ts.map +0 -0
  33. package/dist/editor/components/AudioWaveformBar.js +0 -0
  34. package/dist/editor/components/AudioWaveformBar.js.map +0 -0
  35. package/dist/editor/components/Canvas.d.ts +0 -0
  36. package/dist/editor/components/Canvas.d.ts.map +1 -1
  37. package/dist/editor/components/Canvas.js +2 -1
  38. package/dist/editor/components/Canvas.js.map +1 -1
  39. package/dist/editor/components/CheckboardToggle.d.ts +0 -0
  40. package/dist/editor/components/CheckboardToggle.d.ts.map +0 -0
  41. package/dist/editor/components/CheckboardToggle.js +1 -1
  42. package/dist/editor/components/CheckboardToggle.js.map +1 -1
  43. package/dist/editor/components/ClipboardIcon.d.ts +0 -0
  44. package/dist/editor/components/ClipboardIcon.d.ts.map +0 -0
  45. package/dist/editor/components/ClipboardIcon.js +2 -2
  46. package/dist/editor/components/ClipboardIcon.js.map +1 -1
  47. package/dist/editor/components/CompositionSelector.d.ts +1 -0
  48. package/dist/editor/components/CompositionSelector.d.ts.map +1 -1
  49. package/dist/editor/components/CompositionSelector.js +46 -5
  50. package/dist/editor/components/CompositionSelector.js.map +1 -1
  51. package/dist/editor/components/CompositionSelectorItem.d.ts +15 -1
  52. package/dist/editor/components/CompositionSelectorItem.d.ts.map +1 -1
  53. package/dist/editor/components/CompositionSelectorItem.js +30 -9
  54. package/dist/editor/components/CompositionSelectorItem.js.map +1 -1
  55. package/dist/editor/components/ControlButton.d.ts +0 -0
  56. package/dist/editor/components/ControlButton.d.ts.map +0 -0
  57. package/dist/editor/components/ControlButton.js +1 -1
  58. package/dist/editor/components/ControlButton.js.map +1 -1
  59. package/dist/editor/components/CopyButton.d.ts +0 -0
  60. package/dist/editor/components/CopyButton.d.ts.map +0 -0
  61. package/dist/editor/components/CopyButton.js +2 -2
  62. package/dist/editor/components/CopyButton.js.map +1 -1
  63. package/dist/editor/components/CurrentComposition.d.ts +0 -0
  64. package/dist/editor/components/CurrentComposition.d.ts.map +1 -1
  65. package/dist/editor/components/CurrentComposition.js +8 -1
  66. package/dist/editor/components/CurrentComposition.js.map +1 -1
  67. package/dist/editor/components/Editor.d.ts +0 -0
  68. package/dist/editor/components/Editor.d.ts.map +1 -1
  69. package/dist/editor/components/Editor.js +4 -3
  70. package/dist/editor/components/Editor.js.map +1 -1
  71. package/dist/editor/components/EditorContent.d.ts +0 -0
  72. package/dist/editor/components/EditorContent.d.ts.map +0 -0
  73. package/dist/editor/components/EditorContent.js +1 -1
  74. package/dist/editor/components/EditorContent.js.map +1 -1
  75. package/dist/editor/components/FpsCounter.d.ts +0 -0
  76. package/dist/editor/components/FpsCounter.d.ts.map +0 -0
  77. package/dist/editor/components/FpsCounter.js +1 -1
  78. package/dist/editor/components/FpsCounter.js.map +1 -1
  79. package/dist/editor/components/FramePersistor.d.ts +0 -0
  80. package/dist/editor/components/FramePersistor.d.ts.map +0 -0
  81. package/dist/editor/components/FramePersistor.js +0 -0
  82. package/dist/editor/components/FramePersistor.js.map +0 -0
  83. package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
  84. package/dist/editor/components/GlobalKeybindings.d.ts.map +0 -0
  85. package/dist/editor/components/GlobalKeybindings.js +0 -0
  86. package/dist/editor/components/GlobalKeybindings.js.map +0 -0
  87. package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -0
  88. package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -0
  89. package/dist/editor/components/KeyboardShortcutsModal.js +1 -1
  90. package/dist/editor/components/KeyboardShortcutsModal.js.map +1 -1
  91. package/dist/editor/components/LoadingIndicator.d.ts +0 -0
  92. package/dist/editor/components/LoadingIndicator.d.ts.map +1 -1
  93. package/dist/editor/components/LoadingIndicator.js +3 -2
  94. package/dist/editor/components/LoadingIndicator.js.map +1 -1
  95. package/dist/editor/components/LoopToggle.d.ts +0 -0
  96. package/dist/editor/components/LoopToggle.d.ts.map +0 -0
  97. package/dist/editor/components/LoopToggle.js +1 -1
  98. package/dist/editor/components/LoopToggle.js.map +1 -1
  99. package/dist/editor/components/Menu/MenuDivider.d.ts +0 -0
  100. package/dist/editor/components/Menu/MenuDivider.d.ts.map +0 -0
  101. package/dist/editor/components/Menu/MenuDivider.js +0 -0
  102. package/dist/editor/components/Menu/MenuDivider.js.map +0 -0
  103. package/dist/editor/components/Menu/MenuItem.d.ts +0 -0
  104. package/dist/editor/components/Menu/MenuItem.d.ts.map +1 -1
  105. package/dist/editor/components/Menu/MenuItem.js +3 -2
  106. package/dist/editor/components/Menu/MenuItem.js.map +1 -1
  107. package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
  108. package/dist/editor/components/Menu/MenuSubItem.d.ts.map +1 -1
  109. package/dist/editor/components/Menu/MenuSubItem.js +3 -2
  110. package/dist/editor/components/Menu/MenuSubItem.js.map +1 -1
  111. package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
  112. package/dist/editor/components/Menu/SubMenu.d.ts.map +0 -0
  113. package/dist/editor/components/Menu/SubMenu.js +2 -2
  114. package/dist/editor/components/Menu/SubMenu.js.map +1 -1
  115. package/dist/editor/components/Menu/portals.d.ts +0 -0
  116. package/dist/editor/components/Menu/portals.d.ts.map +0 -0
  117. package/dist/editor/components/Menu/portals.js +0 -0
  118. package/dist/editor/components/Menu/portals.js.map +0 -0
  119. package/dist/editor/components/Menu/styles.d.ts +0 -0
  120. package/dist/editor/components/Menu/styles.d.ts.map +0 -0
  121. package/dist/editor/components/Menu/styles.js +0 -0
  122. package/dist/editor/components/Menu/styles.js.map +0 -0
  123. package/dist/editor/components/MenuToolbar.d.ts +0 -0
  124. package/dist/editor/components/MenuToolbar.d.ts.map +1 -1
  125. package/dist/editor/components/MenuToolbar.js +11 -3
  126. package/dist/editor/components/MenuToolbar.js.map +1 -1
  127. package/dist/editor/components/ModalContainer.d.ts +1 -0
  128. package/dist/editor/components/ModalContainer.d.ts.map +1 -1
  129. package/dist/editor/components/ModalContainer.js +1 -1
  130. package/dist/editor/components/ModalContainer.js.map +1 -1
  131. package/dist/editor/components/ModalHeader.d.ts +0 -0
  132. package/dist/editor/components/ModalHeader.d.ts.map +0 -0
  133. package/dist/editor/components/ModalHeader.js +1 -1
  134. package/dist/editor/components/ModalHeader.js.map +1 -1
  135. package/dist/editor/components/MuteToggle.d.ts +6 -0
  136. package/dist/editor/components/MuteToggle.d.ts.map +1 -0
  137. package/dist/editor/components/MuteToggle.js +25 -0
  138. package/dist/editor/components/MuteToggle.js.map +1 -0
  139. package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
  140. package/dist/editor/components/NewComposition/CancelButton.d.ts.map +0 -0
  141. package/dist/editor/components/NewComposition/CancelButton.js +1 -1
  142. package/dist/editor/components/NewComposition/CancelButton.js.map +1 -1
  143. package/dist/editor/components/NewComposition/ComboBox.d.ts +0 -0
  144. package/dist/editor/components/NewComposition/ComboBox.d.ts.map +1 -1
  145. package/dist/editor/components/NewComposition/ComboBox.js +3 -2
  146. package/dist/editor/components/NewComposition/ComboBox.js.map +1 -1
  147. package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
  148. package/dist/editor/components/NewComposition/CopyHint.d.ts.map +0 -0
  149. package/dist/editor/components/NewComposition/CopyHint.js +1 -1
  150. package/dist/editor/components/NewComposition/CopyHint.js.map +1 -1
  151. package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -0
  152. package/dist/editor/components/NewComposition/InputDragger.d.ts.map +0 -0
  153. package/dist/editor/components/NewComposition/InputDragger.js +2 -2
  154. package/dist/editor/components/NewComposition/InputDragger.js.map +1 -1
  155. package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
  156. package/dist/editor/components/NewComposition/MenuContent.d.ts.map +1 -1
  157. package/dist/editor/components/NewComposition/MenuContent.js +2 -2
  158. package/dist/editor/components/NewComposition/MenuContent.js.map +1 -1
  159. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
  160. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts.map +0 -0
  161. package/dist/editor/components/NewComposition/NewCompAspectRatio.js +1 -1
  162. package/dist/editor/components/NewComposition/NewCompAspectRatio.js.map +1 -1
  163. package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
  164. package/dist/editor/components/NewComposition/NewCompCode.d.ts.map +0 -0
  165. package/dist/editor/components/NewComposition/NewCompCode.js +6 -6
  166. package/dist/editor/components/NewComposition/NewCompCode.js.map +1 -1
  167. package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
  168. package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +1 -1
  169. package/dist/editor/components/NewComposition/NewCompDuration.js +1 -1
  170. package/dist/editor/components/NewComposition/NewCompDuration.js.map +1 -1
  171. package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
  172. package/dist/editor/components/NewComposition/NewComposition.d.ts.map +0 -0
  173. package/dist/editor/components/NewComposition/NewComposition.js +3 -3
  174. package/dist/editor/components/NewComposition/NewComposition.js.map +1 -1
  175. package/dist/editor/components/NewComposition/RemInput.d.ts +1 -3
  176. package/dist/editor/components/NewComposition/RemInput.d.ts.map +1 -1
  177. package/dist/editor/components/NewComposition/RemInput.js +1 -1
  178. package/dist/editor/components/NewComposition/RemInput.js.map +1 -1
  179. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -0
  180. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts.map +0 -0
  181. package/dist/editor/components/NewComposition/ToggleAspectRatio.js +1 -1
  182. package/dist/editor/components/NewComposition/ToggleAspectRatio.js.map +1 -1
  183. package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -0
  184. package/dist/editor/components/NewComposition/ValidationMessage.d.ts.map +0 -0
  185. package/dist/editor/components/NewComposition/ValidationMessage.js +2 -2
  186. package/dist/editor/components/NewComposition/ValidationMessage.js.map +1 -1
  187. package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
  188. package/dist/editor/components/NewComposition/new-comp-layout.d.ts.map +0 -0
  189. package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
  190. package/dist/editor/components/NewComposition/new-comp-layout.js.map +0 -0
  191. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
  192. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts.map +0 -0
  193. package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
  194. package/dist/editor/components/NewComposition/render-aspect-ratio.js.map +0 -0
  195. package/dist/editor/components/PlayPause.d.ts +0 -0
  196. package/dist/editor/components/PlayPause.d.ts.map +0 -0
  197. package/dist/editor/components/PlayPause.js +2 -2
  198. package/dist/editor/components/PlayPause.js.map +1 -1
  199. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
  200. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +1 -1
  201. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +2 -3
  202. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +1 -1
  203. package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
  204. package/dist/editor/components/PlaybackRatePersistor.d.ts.map +0 -0
  205. package/dist/editor/components/PlaybackRatePersistor.js +0 -0
  206. package/dist/editor/components/PlaybackRatePersistor.js.map +0 -0
  207. package/dist/editor/components/PlaybackRateSelector.d.ts +0 -0
  208. package/dist/editor/components/PlaybackRateSelector.d.ts.map +0 -0
  209. package/dist/editor/components/PlaybackRateSelector.js +1 -1
  210. package/dist/editor/components/PlaybackRateSelector.js.map +1 -1
  211. package/dist/editor/components/Preview.d.ts +0 -0
  212. package/dist/editor/components/Preview.d.ts.map +1 -1
  213. package/dist/editor/components/Preview.js +2 -2
  214. package/dist/editor/components/Preview.js.map +1 -1
  215. package/dist/editor/components/PreviewToolbar.d.ts +0 -0
  216. package/dist/editor/components/PreviewToolbar.d.ts.map +1 -1
  217. package/dist/editor/components/PreviewToolbar.js +4 -1
  218. package/dist/editor/components/PreviewToolbar.js.map +1 -1
  219. package/dist/editor/components/RichTimelineToggle.d.ts +0 -0
  220. package/dist/editor/components/RichTimelineToggle.d.ts.map +0 -0
  221. package/dist/editor/components/RichTimelineToggle.js +2 -2
  222. package/dist/editor/components/RichTimelineToggle.js.map +1 -1
  223. package/dist/editor/components/SizeSelector.d.ts +0 -0
  224. package/dist/editor/components/SizeSelector.d.ts.map +0 -0
  225. package/dist/editor/components/SizeSelector.js +1 -1
  226. package/dist/editor/components/SizeSelector.js.map +1 -1
  227. package/dist/editor/components/Splitter/SplitterContainer.d.ts +1 -0
  228. package/dist/editor/components/Splitter/SplitterContainer.d.ts.map +1 -1
  229. package/dist/editor/components/Splitter/SplitterContainer.js +1 -1
  230. package/dist/editor/components/Splitter/SplitterContainer.js.map +1 -1
  231. package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
  232. package/dist/editor/components/Splitter/SplitterContext.d.ts.map +0 -0
  233. package/dist/editor/components/Splitter/SplitterContext.js +0 -0
  234. package/dist/editor/components/Splitter/SplitterContext.js.map +0 -0
  235. package/dist/editor/components/Splitter/SplitterElement.d.ts +1 -0
  236. package/dist/editor/components/Splitter/SplitterElement.d.ts.map +1 -1
  237. package/dist/editor/components/Splitter/SplitterElement.js +1 -1
  238. package/dist/editor/components/Splitter/SplitterElement.js.map +1 -1
  239. package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -0
  240. package/dist/editor/components/Splitter/SplitterHandle.d.ts.map +1 -1
  241. package/dist/editor/components/Splitter/SplitterHandle.js +2 -0
  242. package/dist/editor/components/Splitter/SplitterHandle.js.map +1 -1
  243. package/dist/editor/components/Thumbnail.d.ts +0 -0
  244. package/dist/editor/components/Thumbnail.d.ts.map +1 -1
  245. package/dist/editor/components/Thumbnail.js +4 -3
  246. package/dist/editor/components/Thumbnail.js.map +1 -1
  247. package/dist/editor/components/TimeValue.d.ts +0 -0
  248. package/dist/editor/components/TimeValue.d.ts.map +0 -0
  249. package/dist/editor/components/TimeValue.js +1 -1
  250. package/dist/editor/components/TimeValue.js.map +1 -1
  251. package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
  252. package/dist/editor/components/Timeline/LoopedIndicator.d.ts.map +0 -0
  253. package/dist/editor/components/Timeline/LoopedIndicator.js +2 -2
  254. package/dist/editor/components/Timeline/LoopedIndicator.js.map +1 -1
  255. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
  256. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts.map +0 -0
  257. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +2 -2
  258. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js.map +1 -1
  259. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +0 -0
  260. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts.map +0 -0
  261. package/dist/editor/components/Timeline/MaxTimelineTracks.js +1 -1
  262. package/dist/editor/components/Timeline/MaxTimelineTracks.js.map +1 -1
  263. package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
  264. package/dist/editor/components/Timeline/Timeline.d.ts.map +0 -0
  265. package/dist/editor/components/Timeline/Timeline.js +1 -1
  266. package/dist/editor/components/Timeline/Timeline.js.map +1 -1
  267. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -0
  268. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts.map +0 -0
  269. package/dist/editor/components/Timeline/TimelineCollapseToggle.js +2 -2
  270. package/dist/editor/components/Timeline/TimelineCollapseToggle.js.map +1 -1
  271. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
  272. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts.map +1 -1
  273. package/dist/editor/components/Timeline/TimelineDragHandler.js +4 -3
  274. package/dist/editor/components/Timeline/TimelineDragHandler.js.map +1 -1
  275. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
  276. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +1 -1
  277. package/dist/editor/components/Timeline/TimelineInOutPointer.js +1 -1
  278. package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +1 -1
  279. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
  280. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts.map +0 -0
  281. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
  282. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js.map +0 -0
  283. package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
  284. package/dist/editor/components/Timeline/TimelineList.d.ts.map +0 -0
  285. package/dist/editor/components/Timeline/TimelineList.js +2 -2
  286. package/dist/editor/components/Timeline/TimelineList.js.map +1 -1
  287. package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
  288. package/dist/editor/components/Timeline/TimelineListItem.d.ts.map +0 -0
  289. package/dist/editor/components/Timeline/TimelineListItem.js +1 -1
  290. package/dist/editor/components/Timeline/TimelineListItem.js.map +1 -1
  291. package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -0
  292. package/dist/editor/components/Timeline/TimelineSequence.d.ts.map +1 -1
  293. package/dist/editor/components/Timeline/TimelineSequence.js +2 -1
  294. package/dist/editor/components/Timeline/TimelineSequence.js.map +1 -1
  295. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
  296. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts.map +0 -0
  297. package/dist/editor/components/Timeline/TimelineSequenceFrame.js +2 -2
  298. package/dist/editor/components/Timeline/TimelineSequenceFrame.js.map +1 -1
  299. package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
  300. package/dist/editor/components/Timeline/TimelineSlider.d.ts.map +1 -1
  301. package/dist/editor/components/Timeline/TimelineSlider.js +10 -2
  302. package/dist/editor/components/Timeline/TimelineSlider.js.map +1 -1
  303. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
  304. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts.map +1 -1
  305. package/dist/editor/components/Timeline/TimelineSliderHandle.js +4 -1
  306. package/dist/editor/components/Timeline/TimelineSliderHandle.js.map +1 -1
  307. package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
  308. package/dist/editor/components/Timeline/TimelineTracks.d.ts.map +0 -0
  309. package/dist/editor/components/Timeline/TimelineTracks.js +3 -3
  310. package/dist/editor/components/Timeline/TimelineTracks.js.map +1 -1
  311. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
  312. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts.map +0 -0
  313. package/dist/editor/components/Timeline/TimelineVideoInfo.js +1 -1
  314. package/dist/editor/components/Timeline/TimelineVideoInfo.js.map +1 -1
  315. package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
  316. package/dist/editor/components/Timeline/is-collapsed.d.ts.map +0 -0
  317. package/dist/editor/components/Timeline/is-collapsed.js +0 -0
  318. package/dist/editor/components/Timeline/is-collapsed.js.map +0 -0
  319. package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
  320. package/dist/editor/components/Timeline/timeline-refs.d.ts.map +0 -0
  321. package/dist/editor/components/Timeline/timeline-refs.js +0 -0
  322. package/dist/editor/components/Timeline/timeline-refs.js.map +0 -0
  323. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -0
  324. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts.map +0 -0
  325. package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
  326. package/dist/editor/components/Timeline/timeline-state-reducer.js.map +0 -0
  327. package/dist/editor/components/TimelineInOutToggle.d.ts +0 -0
  328. package/dist/editor/components/TimelineInOutToggle.d.ts.map +1 -1
  329. package/dist/editor/components/TimelineInOutToggle.js +3 -3
  330. package/dist/editor/components/TimelineInOutToggle.js.map +1 -1
  331. package/dist/editor/components/TopPanel.d.ts +0 -0
  332. package/dist/editor/components/TopPanel.d.ts.map +0 -0
  333. package/dist/editor/components/TopPanel.js +1 -1
  334. package/dist/editor/components/TopPanel.js.map +1 -1
  335. package/dist/editor/components/UpdateCheck.d.ts +2 -3
  336. package/dist/editor/components/UpdateCheck.d.ts.map +1 -1
  337. package/dist/editor/components/UpdateCheck.js +16 -4
  338. package/dist/editor/components/UpdateCheck.js.map +1 -1
  339. package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
  340. package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +1 -1
  341. package/dist/editor/components/UpdateModal/UpdateModal.js +8 -2
  342. package/dist/editor/components/UpdateModal/UpdateModal.js.map +1 -1
  343. package/dist/editor/components/layout.d.ts +5 -1
  344. package/dist/editor/components/layout.d.ts.map +1 -1
  345. package/dist/editor/components/layout.js +3 -3
  346. package/dist/editor/components/layout.js.map +1 -1
  347. package/dist/editor/helpers/calculate-timeline.d.ts +0 -0
  348. package/dist/editor/helpers/calculate-timeline.d.ts.map +0 -0
  349. package/dist/editor/helpers/calculate-timeline.js +0 -0
  350. package/dist/editor/helpers/calculate-timeline.js.map +0 -0
  351. package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
  352. package/dist/editor/helpers/checkerboard-background.d.ts.map +0 -0
  353. package/dist/editor/helpers/checkerboard-background.js +0 -0
  354. package/dist/editor/helpers/checkerboard-background.js.map +0 -0
  355. package/dist/editor/helpers/colors.d.ts +0 -0
  356. package/dist/editor/helpers/colors.d.ts.map +0 -0
  357. package/dist/editor/helpers/colors.js +0 -0
  358. package/dist/editor/helpers/colors.js.map +0 -0
  359. package/dist/editor/helpers/copy-text.d.ts +0 -0
  360. package/dist/editor/helpers/copy-text.d.ts.map +0 -0
  361. package/dist/editor/helpers/copy-text.js +0 -0
  362. package/dist/editor/helpers/copy-text.js.map +0 -0
  363. package/dist/editor/helpers/create-folder-tree.d.ts +9 -0
  364. package/dist/editor/helpers/create-folder-tree.d.ts.map +1 -0
  365. package/dist/editor/helpers/create-folder-tree.js +102 -0
  366. package/dist/editor/helpers/create-folder-tree.js.map +1 -0
  367. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -0
  368. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts.map +1 -1
  369. package/dist/editor/helpers/get-left-of-timeline-slider.js +1 -0
  370. package/dist/editor/helpers/get-left-of-timeline-slider.js.map +1 -1
  371. package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
  372. package/dist/editor/helpers/get-sequence-visible-range.d.ts.map +0 -0
  373. package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
  374. package/dist/editor/helpers/get-sequence-visible-range.js.map +0 -0
  375. package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
  376. package/dist/editor/helpers/get-timeline-nestedness.d.ts.map +0 -0
  377. package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
  378. package/dist/editor/helpers/get-timeline-nestedness.js.map +0 -0
  379. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
  380. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts.map +0 -0
  381. package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
  382. package/dist/editor/helpers/get-timeline-sequence-hash.js.map +0 -0
  383. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +0 -0
  384. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts.map +0 -0
  385. package/dist/editor/helpers/get-timeline-sequence-layout.js +0 -0
  386. package/dist/editor/helpers/get-timeline-sequence-layout.js.map +0 -0
  387. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -0
  388. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts.map +0 -0
  389. package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
  390. package/dist/editor/helpers/get-timeline-sequence-sort-key.js.map +0 -0
  391. package/dist/editor/helpers/is-composition-still.d.ts +0 -0
  392. package/dist/editor/helpers/is-composition-still.d.ts.map +0 -0
  393. package/dist/editor/helpers/is-composition-still.js +0 -0
  394. package/dist/editor/helpers/is-composition-still.js.map +0 -0
  395. package/dist/editor/helpers/is-current-selected-still.d.ts +0 -0
  396. package/dist/editor/helpers/is-current-selected-still.d.ts.map +0 -0
  397. package/dist/editor/helpers/is-current-selected-still.js +0 -0
  398. package/dist/editor/helpers/is-current-selected-still.js.map +0 -0
  399. package/dist/editor/helpers/noop.d.ts +0 -0
  400. package/dist/editor/helpers/noop.d.ts.map +0 -0
  401. package/dist/editor/helpers/noop.js +0 -0
  402. package/dist/editor/helpers/noop.js.map +0 -0
  403. package/dist/editor/helpers/persist-open-folders.d.ts +5 -0
  404. package/dist/editor/helpers/persist-open-folders.d.ts.map +1 -0
  405. package/dist/editor/helpers/persist-open-folders.js +21 -0
  406. package/dist/editor/helpers/persist-open-folders.js.map +1 -0
  407. package/dist/editor/helpers/timeline-layout.d.ts +0 -0
  408. package/dist/editor/helpers/timeline-layout.d.ts.map +0 -0
  409. package/dist/editor/helpers/timeline-layout.js +0 -0
  410. package/dist/editor/helpers/timeline-layout.js.map +0 -0
  411. package/dist/editor/helpers/use-keybinding.d.ts +0 -0
  412. package/dist/editor/helpers/use-keybinding.d.ts.map +0 -0
  413. package/dist/editor/helpers/use-keybinding.js +1 -4
  414. package/dist/editor/helpers/use-keybinding.js.map +1 -1
  415. package/dist/editor/helpers/validate-new-comp-data.d.ts +0 -0
  416. package/dist/editor/helpers/validate-new-comp-data.d.ts.map +0 -0
  417. package/dist/editor/helpers/validate-new-comp-data.js +0 -0
  418. package/dist/editor/helpers/validate-new-comp-data.js.map +0 -0
  419. package/dist/editor/icons/Checkmark.d.ts +0 -0
  420. package/dist/editor/icons/Checkmark.d.ts.map +0 -0
  421. package/dist/editor/icons/Checkmark.js +1 -1
  422. package/dist/editor/icons/Checkmark.js.map +1 -1
  423. package/dist/editor/icons/caret.d.ts +0 -0
  424. package/dist/editor/icons/caret.d.ts.map +0 -0
  425. package/dist/editor/icons/caret.js +2 -2
  426. package/dist/editor/icons/caret.js.map +1 -1
  427. package/dist/editor/icons/film.d.ts +0 -0
  428. package/dist/editor/icons/film.d.ts.map +0 -0
  429. package/dist/editor/icons/film.js +1 -1
  430. package/dist/editor/icons/film.js.map +1 -1
  431. package/dist/editor/icons/folder.d.ts +4 -0
  432. package/dist/editor/icons/folder.d.ts.map +1 -0
  433. package/dist/editor/icons/folder.js +13 -0
  434. package/dist/editor/icons/folder.js.map +1 -0
  435. package/dist/editor/icons/keys.d.ts +0 -0
  436. package/dist/editor/icons/keys.d.ts.map +0 -0
  437. package/dist/editor/icons/keys.js +3 -3
  438. package/dist/editor/icons/keys.js.map +1 -1
  439. package/dist/editor/icons/lock.d.ts +0 -0
  440. package/dist/editor/icons/lock.d.ts.map +0 -0
  441. package/dist/editor/icons/lock.js +2 -2
  442. package/dist/editor/icons/lock.js.map +1 -1
  443. package/dist/editor/icons/media-volume.d.ts +0 -0
  444. package/dist/editor/icons/media-volume.d.ts.map +0 -0
  445. package/dist/editor/icons/media-volume.js +2 -2
  446. package/dist/editor/icons/media-volume.js.map +1 -1
  447. package/dist/editor/icons/pause.d.ts +0 -0
  448. package/dist/editor/icons/pause.d.ts.map +0 -0
  449. package/dist/editor/icons/pause.js +1 -1
  450. package/dist/editor/icons/pause.js.map +1 -1
  451. package/dist/editor/icons/play.d.ts +0 -0
  452. package/dist/editor/icons/play.d.ts.map +0 -0
  453. package/dist/editor/icons/play.js +1 -1
  454. package/dist/editor/icons/play.js.map +1 -1
  455. package/dist/editor/icons/step-back.d.ts +0 -0
  456. package/dist/editor/icons/step-back.d.ts.map +0 -0
  457. package/dist/editor/icons/step-back.js +1 -1
  458. package/dist/editor/icons/step-back.js.map +1 -1
  459. package/dist/editor/icons/step-forward.d.ts +0 -0
  460. package/dist/editor/icons/step-forward.d.ts.map +0 -0
  461. package/dist/editor/icons/step-forward.js +1 -1
  462. package/dist/editor/icons/step-forward.js.map +1 -1
  463. package/dist/editor/icons/still.d.ts +0 -0
  464. package/dist/editor/icons/still.d.ts.map +0 -0
  465. package/dist/editor/icons/still.js +1 -1
  466. package/dist/editor/icons/still.js.map +1 -1
  467. package/dist/editor/icons/timeline.d.ts +0 -0
  468. package/dist/editor/icons/timeline.d.ts.map +0 -0
  469. package/dist/editor/icons/timeline.js +1 -1
  470. package/dist/editor/icons/timeline.js.map +1 -1
  471. package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
  472. package/dist/editor/icons/timelineInOutPointer.d.ts.map +0 -0
  473. package/dist/editor/icons/timelineInOutPointer.js +2 -2
  474. package/dist/editor/icons/timelineInOutPointer.js.map +1 -1
  475. package/dist/editor/state/aspect-ratio-locked.d.ts +0 -0
  476. package/dist/editor/state/aspect-ratio-locked.d.ts.map +0 -0
  477. package/dist/editor/state/aspect-ratio-locked.js +0 -0
  478. package/dist/editor/state/aspect-ratio-locked.js.map +0 -0
  479. package/dist/editor/state/checkerboard.d.ts +0 -0
  480. package/dist/editor/state/checkerboard.d.ts.map +0 -0
  481. package/dist/editor/state/checkerboard.js +0 -0
  482. package/dist/editor/state/checkerboard.js.map +0 -0
  483. package/dist/editor/state/highest-z-index.d.ts +3 -1
  484. package/dist/editor/state/highest-z-index.d.ts.map +1 -1
  485. package/dist/editor/state/highest-z-index.js +1 -1
  486. package/dist/editor/state/highest-z-index.js.map +1 -1
  487. package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
  488. package/dist/editor/state/input-dragger-click-lock.d.ts.map +0 -0
  489. package/dist/editor/state/input-dragger-click-lock.js +0 -0
  490. package/dist/editor/state/input-dragger-click-lock.js.map +0 -0
  491. package/dist/editor/state/keybindings.d.ts +3 -1
  492. package/dist/editor/state/keybindings.d.ts.map +1 -1
  493. package/dist/editor/state/keybindings.js +1 -1
  494. package/dist/editor/state/keybindings.js.map +1 -1
  495. package/dist/editor/state/loop.d.ts +0 -0
  496. package/dist/editor/state/loop.d.ts.map +0 -0
  497. package/dist/editor/state/loop.js +0 -0
  498. package/dist/editor/state/loop.js.map +0 -0
  499. package/dist/editor/state/marks.d.ts +0 -0
  500. package/dist/editor/state/marks.d.ts.map +0 -0
  501. package/dist/editor/state/marks.js +0 -0
  502. package/dist/editor/state/marks.js.map +0 -0
  503. package/dist/editor/state/modals.d.ts +0 -0
  504. package/dist/editor/state/modals.d.ts.map +0 -0
  505. package/dist/editor/state/modals.js +0 -0
  506. package/dist/editor/state/modals.js.map +0 -0
  507. package/dist/editor/state/mute.d.ts +3 -0
  508. package/dist/editor/state/mute.d.ts.map +1 -0
  509. package/dist/editor/state/mute.js +14 -0
  510. package/dist/editor/state/mute.js.map +1 -0
  511. package/dist/editor/state/playbackrate.d.ts +0 -0
  512. package/dist/editor/state/playbackrate.d.ts.map +0 -0
  513. package/dist/editor/state/playbackrate.js +0 -0
  514. package/dist/editor/state/playbackrate.js.map +0 -0
  515. package/dist/editor/state/preview-size.d.ts +0 -0
  516. package/dist/editor/state/preview-size.d.ts.map +0 -0
  517. package/dist/editor/state/preview-size.js +0 -0
  518. package/dist/editor/state/preview-size.js.map +0 -0
  519. package/dist/editor/state/render-frame.d.ts +0 -0
  520. package/dist/editor/state/render-frame.d.ts.map +0 -0
  521. package/dist/editor/state/render-frame.js +0 -0
  522. package/dist/editor/state/render-frame.js.map +0 -0
  523. package/dist/editor/state/rich-timeline.d.ts +0 -0
  524. package/dist/editor/state/rich-timeline.d.ts.map +0 -0
  525. package/dist/editor/state/rich-timeline.js +0 -0
  526. package/dist/editor/state/rich-timeline.js.map +0 -0
  527. package/dist/editor/state/timeline-ref.d.ts +0 -0
  528. package/dist/editor/state/timeline-ref.d.ts.map +0 -0
  529. package/dist/editor/state/timeline-ref.js +0 -0
  530. package/dist/editor/state/timeline-ref.js.map +0 -0
  531. package/dist/editor/state/timeline.d.ts +0 -0
  532. package/dist/editor/state/timeline.d.ts.map +0 -0
  533. package/dist/editor/state/timeline.js +0 -0
  534. package/dist/editor/state/timeline.js.map +0 -0
  535. package/dist/editor/state/z-index.d.ts +1 -0
  536. package/dist/editor/state/z-index.d.ts.map +1 -1
  537. package/dist/editor/state/z-index.js +1 -1
  538. package/dist/editor/state/z-index.js.map +1 -1
  539. package/dist/get-cli-options.d.ts +4 -1
  540. package/dist/get-cli-options.d.ts.map +1 -1
  541. package/dist/get-cli-options.js +11 -1
  542. package/dist/get-cli-options.js.map +1 -1
  543. package/dist/get-composition-id.d.ts +0 -0
  544. package/dist/get-composition-id.d.ts.map +0 -0
  545. package/dist/get-composition-id.js +0 -0
  546. package/dist/get-composition-id.js.map +0 -0
  547. package/dist/get-config-file-name.d.ts +0 -0
  548. package/dist/get-config-file-name.d.ts.map +0 -0
  549. package/dist/get-config-file-name.js +0 -0
  550. package/dist/get-config-file-name.js.map +0 -0
  551. package/dist/get-env.d.ts +0 -0
  552. package/dist/get-env.d.ts.map +1 -1
  553. package/dist/get-env.js +2 -2
  554. package/dist/get-env.js.map +1 -1
  555. package/dist/get-filename.d.ts +0 -0
  556. package/dist/get-filename.d.ts.map +0 -0
  557. package/dist/get-filename.js +0 -0
  558. package/dist/get-filename.js.map +0 -0
  559. package/dist/get-input-props.d.ts +0 -0
  560. package/dist/get-input-props.d.ts.map +0 -0
  561. package/dist/get-input-props.js +0 -0
  562. package/dist/get-input-props.js.map +0 -0
  563. package/dist/handle-common-errors.d.ts +1 -1
  564. package/dist/handle-common-errors.d.ts.map +1 -1
  565. package/dist/handle-common-errors.js +11 -2
  566. package/dist/handle-common-errors.js.map +1 -1
  567. package/dist/image-formats.d.ts +0 -0
  568. package/dist/image-formats.d.ts.map +0 -0
  569. package/dist/image-formats.js +0 -0
  570. package/dist/image-formats.js.map +0 -0
  571. package/dist/index.d.ts +9 -3
  572. package/dist/index.d.ts.map +1 -1
  573. package/dist/index.js +18 -3
  574. package/dist/index.js.map +1 -1
  575. package/dist/initialize-render-cli.d.ts +0 -0
  576. package/dist/initialize-render-cli.d.ts.map +0 -0
  577. package/dist/initialize-render-cli.js +0 -0
  578. package/dist/initialize-render-cli.js.map +0 -0
  579. package/dist/is-javascript.d.ts +0 -0
  580. package/dist/is-javascript.d.ts.map +0 -0
  581. package/dist/is-javascript.js +0 -0
  582. package/dist/is-javascript.js.map +0 -0
  583. package/dist/lambda-command.d.ts +0 -0
  584. package/dist/lambda-command.d.ts.map +0 -0
  585. package/dist/lambda-command.js +0 -0
  586. package/dist/lambda-command.js.map +0 -0
  587. package/dist/load-config.d.ts +0 -0
  588. package/dist/load-config.d.ts.map +0 -0
  589. package/dist/load-config.js +3 -3
  590. package/dist/load-config.js.map +1 -1
  591. package/dist/log.d.ts +0 -0
  592. package/dist/log.d.ts.map +0 -0
  593. package/dist/log.js +0 -0
  594. package/dist/log.js.map +0 -0
  595. package/dist/parse-command-line.d.ts +11 -4
  596. package/dist/parse-command-line.d.ts.map +1 -1
  597. package/dist/parse-command-line.js +26 -6
  598. package/dist/parse-command-line.js.map +1 -1
  599. package/dist/preview.d.ts +0 -0
  600. package/dist/preview.d.ts.map +1 -1
  601. package/dist/preview.js +7 -3
  602. package/dist/preview.js.map +1 -1
  603. package/dist/previewEntry.d.ts +0 -0
  604. package/dist/previewEntry.d.ts.map +1 -1
  605. package/dist/previewEntry.js +12 -3
  606. package/dist/previewEntry.js.map +1 -1
  607. package/dist/print-error.d.ts +2 -0
  608. package/dist/print-error.d.ts.map +1 -0
  609. package/dist/print-error.js +36 -0
  610. package/dist/print-error.js.map +1 -0
  611. package/dist/print-help.d.ts +0 -0
  612. package/dist/print-help.d.ts.map +1 -1
  613. package/dist/print-help.js +8 -0
  614. package/dist/print-help.js.map +1 -1
  615. package/dist/progress-bar.d.ts +2 -2
  616. package/dist/progress-bar.d.ts.map +1 -1
  617. package/dist/progress-bar.js +10 -6
  618. package/dist/progress-bar.js.map +1 -1
  619. package/dist/render.d.ts +0 -0
  620. package/dist/render.d.ts.map +1 -1
  621. package/dist/render.js +29 -3
  622. package/dist/render.js.map +1 -1
  623. package/dist/resolve-from.d.ts +2 -0
  624. package/dist/resolve-from.d.ts.map +1 -0
  625. package/dist/resolve-from.js +34 -0
  626. package/dist/resolve-from.js.map +1 -0
  627. package/dist/setup-cache.d.ts +0 -0
  628. package/dist/setup-cache.d.ts.map +1 -1
  629. package/dist/setup-cache.js +5 -2
  630. package/dist/setup-cache.js.map +1 -1
  631. package/dist/step.d.ts +0 -0
  632. package/dist/step.d.ts.map +0 -0
  633. package/dist/step.js +0 -0
  634. package/dist/step.js.map +0 -0
  635. package/dist/still.d.ts +0 -0
  636. package/dist/still.d.ts.map +1 -1
  637. package/dist/still.js +20 -22
  638. package/dist/still.js.map +1 -1
  639. package/dist/upgrade.d.ts +0 -0
  640. package/dist/upgrade.d.ts.map +1 -1
  641. package/dist/upgrade.js +23 -24
  642. package/dist/upgrade.js.map +1 -1
  643. package/dist/user-passed-output-location.d.ts +0 -0
  644. package/dist/user-passed-output-location.d.ts.map +0 -0
  645. package/dist/user-passed-output-location.js +0 -0
  646. package/dist/user-passed-output-location.js.map +0 -0
  647. package/dist/validate-ffmpeg-version.d.ts +0 -0
  648. package/dist/validate-ffmpeg-version.d.ts.map +0 -0
  649. package/dist/validate-ffmpeg-version.js +0 -0
  650. package/dist/validate-ffmpeg-version.js.map +0 -0
  651. package/dist/versions.d.ts +4 -0
  652. package/dist/versions.d.ts.map +1 -0
  653. package/dist/versions.js +107 -0
  654. package/dist/versions.js.map +1 -0
  655. package/dist/warn-about-ffmpeg-version.d.ts +0 -0
  656. package/dist/warn-about-ffmpeg-version.d.ts.map +0 -0
  657. package/dist/warn-about-ffmpeg-version.js +0 -0
  658. package/dist/warn-about-ffmpeg-version.js.map +0 -0
  659. package/package.json +44 -26
  660. package/remotion-cli.js +1 -2
  661. package/dist/delete-directory.d.ts +0 -2
  662. package/dist/delete-directory.d.ts.map +0 -1
  663. package/dist/delete-directory.js +0 -15
  664. package/dist/delete-directory.js.map +0 -1
  665. package/dist/editor/components/IFrameWrapper.d.ts +0 -6
  666. package/dist/editor/components/IFrameWrapper.d.ts.map +0 -1
  667. package/dist/editor/components/IFrameWrapper.js +0 -19
  668. package/dist/editor/components/IFrameWrapper.js.map +0 -1
  669. package/dist/editor/components/KeyboardShortcuts.d.ts +0 -1
  670. package/dist/editor/components/KeyboardShortcuts.d.ts.map +0 -1
  671. package/dist/editor/components/KeyboardShortcuts.js +0 -2
  672. package/dist/editor/components/KeyboardShortcuts.js.map +0 -1
  673. package/dist/editor/components/NewComposition/CompositionType.d.ts +0 -7
  674. package/dist/editor/components/NewComposition/CompositionType.d.ts.map +0 -1
  675. package/dist/editor/components/NewComposition/CompositionType.js +0 -57
  676. package/dist/editor/components/NewComposition/CompositionType.js.map +0 -1
  677. package/dist/editor/components/NewComposition/ModalHeader.d.ts +0 -3
  678. package/dist/editor/components/NewComposition/ModalHeader.d.ts.map +0 -1
  679. package/dist/editor/components/NewComposition/ModalHeader.js +0 -29
  680. package/dist/editor/components/NewComposition/ModalHeader.js.map +0 -1
  681. package/dist/editor/components/NewComposition/NewCompHeader.d.ts +0 -3
  682. package/dist/editor/components/NewComposition/NewCompHeader.d.ts.map +0 -1
  683. package/dist/editor/components/NewComposition/NewCompHeader.js +0 -29
  684. package/dist/editor/components/NewComposition/NewCompHeader.js.map +0 -1
  685. package/dist/editor/helpers/css-reset.d.ts +0 -3
  686. package/dist/editor/helpers/css-reset.d.ts.map +0 -1
  687. package/dist/editor/helpers/css-reset.js +0 -9
  688. package/dist/editor/helpers/css-reset.js.map +0 -1
  689. package/dist/editor/helpers/font.d.ts +0 -2
  690. package/dist/editor/helpers/font.d.ts.map +0 -1
  691. package/dist/editor/helpers/font.js +0 -5
  692. package/dist/editor/helpers/font.js.map +0 -1
  693. package/dist/empty-audio.d.ts +0 -2
  694. package/dist/empty-audio.d.ts.map +0 -1
  695. package/dist/empty-audio.js +0 -5
  696. package/dist/empty-audio.js.map +0 -1
package/.prettierrc.js ADDED
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ singleQuote: true,
3
+ bracketSpacing: false,
4
+ useTabs: true,
5
+ overrides: [
6
+ {
7
+ files: ['*.yml'],
8
+ options: {
9
+ singleQuote: false,
10
+ },
11
+ },
12
+ ],
13
+ plugins: [require.resolve('prettier-plugin-organize-imports')],
14
+ };
package/LICENSE.md CHANGED
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
7
7
 
8
8
  ## Free license
9
9
 
10
- Copyright © 2021 [Jonny Burger](https://jonny.io)
10
+ Copyright © 2022 [Jonny Burger](https://jonny.io)
11
11
 
12
12
  ### Eligibility
13
13
 
@@ -32,7 +32,7 @@ The software is provided "as is", without warranty of any kind, express or impli
32
32
 
33
33
  ### Support
34
34
 
35
- Support is provided on a best-we-can-do basis via GitHub Issues.
35
+ Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
36
36
 
37
37
  ## Company license
38
38
 
@@ -0,0 +1,41 @@
1
+ /// <reference types="node" />
2
+ declare type Options = {
3
+ width?: number;
4
+ height?: number;
5
+ };
6
+ export declare class AnsiDiff {
7
+ x: number;
8
+ y: number;
9
+ width: number;
10
+ height: number;
11
+ _buffer: string | null;
12
+ _out: Buffer[];
13
+ _lines: Line[];
14
+ constructor(opts?: Options);
15
+ resize: (opts: Options) => void;
16
+ toString(): string | null;
17
+ update(buffer: string | Buffer, opts?: {
18
+ moveTo?: [number, number];
19
+ }): Buffer;
20
+ _clearDown(y: number): void;
21
+ _newline(): void;
22
+ _write(line: Line): void;
23
+ _moveTo(x: number, y: number): void;
24
+ _push: (buf: Buffer) => void;
25
+ }
26
+ declare class Line {
27
+ y: number;
28
+ width: number;
29
+ parts: string[];
30
+ height: number;
31
+ remainder: number;
32
+ raw: string;
33
+ length: number;
34
+ newline: boolean;
35
+ constructor(str: string, y: number, nl: boolean, term: AnsiDiff);
36
+ diffLeft(other: Line): number;
37
+ diffRight(other: Line): number;
38
+ toBuffer(): Buffer;
39
+ }
40
+ export {};
41
+ //# sourceMappingURL=ansi-diff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi-diff.d.ts","sourceRoot":"","sources":["../../src/ansi/ansi-diff.ts"],"names":[],"mappings":";AAKA,aAAK,OAAO,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAEjD,qBAAa,QAAQ;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,IAAI,EAAE,CAAC;gBAEH,IAAI,CAAC,EAAE,OAAO;IAW1B,MAAM,SAAU,OAAO,UAkBrB;IAEF,QAAQ;IAIR,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE;QAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAC;IAuElE,UAAU,CAAC,CAAC,EAAE,MAAM;IASpB,QAAQ;IAMR,MAAM,CAAC,IAAI,EAAE,IAAI;IAMjB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAa5B,KAAK,QAAS,MAAM,UAElB;CACF;AAeD,cAAM,IAAI;IACT,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;gBACL,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ;IAe/D,QAAQ,CAAC,KAAK,EAAE,IAAI;IASpB,SAAS,CAAC,KAAK,EAAE,IAAI;IAUrB,QAAQ;CAGR"}
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnsiDiff = void 0;
4
+ const ansi_split_1 = require("./ansi-split");
5
+ const CLEAR_LINE = Buffer.from([0x1b, 0x5b, 0x30, 0x4b]);
6
+ const NEWLINE = Buffer.from('\n');
7
+ class AnsiDiff {
8
+ constructor(opts) {
9
+ this.resize = (opts) => {
10
+ if (!opts)
11
+ opts = {};
12
+ if (opts.width)
13
+ this.width = opts.width;
14
+ if (opts.height)
15
+ this.height = opts.height;
16
+ if (this._buffer)
17
+ this.update(this._buffer);
18
+ const last = top(this._lines);
19
+ // eslint-disable-next-line no-negated-condition
20
+ if (!last) {
21
+ this.x = 0;
22
+ this.y = 0;
23
+ }
24
+ else {
25
+ this.x = last.remainder;
26
+ this.y = last.y + last.height;
27
+ }
28
+ };
29
+ this._push = (buf) => {
30
+ this._out.push(buf);
31
+ };
32
+ this.x = 0;
33
+ this.y = 0;
34
+ this.width = (opts === null || opts === void 0 ? void 0 : opts.width) || Infinity;
35
+ this.height = (opts === null || opts === void 0 ? void 0 : opts.height) || Infinity;
36
+ this._buffer = null;
37
+ this._out = [];
38
+ this._lines = [];
39
+ }
40
+ toString() {
41
+ return this._buffer;
42
+ }
43
+ update(buffer, opts) {
44
+ this._buffer = Buffer.isBuffer(buffer) ? buffer.toString() : buffer;
45
+ const other = this._buffer;
46
+ const oldLines = this._lines;
47
+ const lines = split(other, this);
48
+ this._lines = lines;
49
+ this._out = [];
50
+ const min = Math.min(lines.length, oldLines.length);
51
+ let i = 0;
52
+ let a;
53
+ let b;
54
+ let scrub = false;
55
+ for (; i < min; i++) {
56
+ a = lines[i];
57
+ b = oldLines[i];
58
+ if (same(a, b))
59
+ continue;
60
+ // if x === width there is an edgecase with inline diffing
61
+ // easiest solution is just not to do it then! :)
62
+ if (!scrub && this.x !== this.width && inlineDiff(a, b)) {
63
+ const left = a.diffLeft(b);
64
+ const right = a.diffRight(b);
65
+ const slice = a.raw.slice(left, right ? -right : a.length);
66
+ if (left + right > 4 && left + slice.length < this.width - 1) {
67
+ this._moveTo(left, a.y);
68
+ this._push(Buffer.from(slice));
69
+ this.x += slice.length;
70
+ continue;
71
+ }
72
+ }
73
+ this._moveTo(0, a.y);
74
+ this._write(a);
75
+ if (a.y !== b.y || a.height !== b.height)
76
+ scrub = true;
77
+ if (b.length > a.length || scrub)
78
+ this._push(CLEAR_LINE);
79
+ if (a.newline)
80
+ this._newline();
81
+ }
82
+ for (; i < lines.length; i++) {
83
+ a = lines[i];
84
+ this._moveTo(0, a.y);
85
+ this._write(a);
86
+ if (scrub)
87
+ this._push(CLEAR_LINE);
88
+ if (a.newline)
89
+ this._newline();
90
+ }
91
+ const oldLast = top(oldLines);
92
+ const last = top(lines);
93
+ if (oldLast &&
94
+ (!last || last.y + last.height < oldLast.y + oldLast.height)) {
95
+ this._clearDown(oldLast.y + oldLast.height);
96
+ }
97
+ if (opts === null || opts === void 0 ? void 0 : opts.moveTo) {
98
+ this._moveTo(opts.moveTo[0], opts.moveTo[1]);
99
+ }
100
+ else if (last) {
101
+ this._moveTo(last.remainder, last.y + last.height);
102
+ }
103
+ return Buffer.concat(this._out);
104
+ }
105
+ _clearDown(y) {
106
+ let { x } = this;
107
+ for (let i = this.y; i <= y; i++) {
108
+ this._moveTo(x, i);
109
+ this._push(CLEAR_LINE);
110
+ x = 0;
111
+ }
112
+ }
113
+ _newline() {
114
+ this._push(NEWLINE);
115
+ this.x = 0;
116
+ this.y++;
117
+ }
118
+ _write(line) {
119
+ this._out.push(line.toBuffer());
120
+ this.x = line.remainder;
121
+ this.y += line.height;
122
+ }
123
+ _moveTo(x, y) {
124
+ const dx = x - this.x;
125
+ const dy = y - this.y;
126
+ if (dx > 0)
127
+ this._push(moveRight(dx));
128
+ else if (dx < 0)
129
+ this._push(moveLeft(-dx));
130
+ if (dy > 0)
131
+ this._push(moveDown(dy));
132
+ else if (dy < 0)
133
+ this._push(moveUp(-dy));
134
+ this.x = x;
135
+ this.y = y;
136
+ }
137
+ }
138
+ exports.AnsiDiff = AnsiDiff;
139
+ function same(a, b) {
140
+ return (a.y === b.y &&
141
+ a.width === b.width &&
142
+ a.raw === b.raw &&
143
+ a.newline === b.newline);
144
+ }
145
+ function top(list) {
146
+ return list.length ? list[list.length - 1] : null;
147
+ }
148
+ class Line {
149
+ constructor(str, y, nl, term) {
150
+ this.y = y;
151
+ this.width = term.width;
152
+ this.parts = (0, ansi_split_1.splitAnsi)(str);
153
+ this.length = length(this.parts);
154
+ this.raw = str;
155
+ this.newline = nl;
156
+ this.height = Math.floor(this.length / term.width);
157
+ this.remainder = this.length - (this.height && this.height * term.width);
158
+ if (this.height && !this.remainder) {
159
+ this.height--;
160
+ this.remainder = this.width;
161
+ }
162
+ }
163
+ diffLeft(other) {
164
+ let left = 0;
165
+ for (; left < this.length; left++) {
166
+ if (this.raw[left] !== other.raw[left])
167
+ return left;
168
+ }
169
+ return left;
170
+ }
171
+ diffRight(other) {
172
+ let right = 0;
173
+ for (; right < this.length; right++) {
174
+ const r = this.length - right - 1;
175
+ if (this.raw[r] !== other.raw[r])
176
+ return right;
177
+ }
178
+ return right;
179
+ }
180
+ toBuffer() {
181
+ return Buffer.from(this.raw);
182
+ }
183
+ }
184
+ function inlineDiff(a, b) {
185
+ return (a.length === b.length &&
186
+ a.parts.length === 1 &&
187
+ b.parts.length === 1 &&
188
+ a.y === b.y &&
189
+ a.newline &&
190
+ b.newline &&
191
+ a.width === b.width);
192
+ }
193
+ function split(str, term) {
194
+ let y = 0;
195
+ const lines = str.split('\n');
196
+ const wrapped = [];
197
+ let line;
198
+ for (let i = 0; i < lines.length; i++) {
199
+ line = new Line(lines[i], y, i < lines.length - 1, term);
200
+ y += line.height + (line.newline ? 1 : 0);
201
+ wrapped.push(line);
202
+ }
203
+ return wrapped;
204
+ }
205
+ function moveUp(n) {
206
+ return Buffer.from('1b5b' + toHex(n) + '41', 'hex');
207
+ }
208
+ function moveDown(n) {
209
+ return Buffer.from('1b5b' + toHex(n) + '42', 'hex');
210
+ }
211
+ function moveRight(n) {
212
+ return Buffer.from('1b5b' + toHex(n) + '43', 'hex');
213
+ }
214
+ function moveLeft(n) {
215
+ return Buffer.from('1b5b' + toHex(n) + '44', 'hex');
216
+ }
217
+ function length(parts) {
218
+ let len = 0;
219
+ for (let i = 0; i < parts.length; i += 2) {
220
+ len += parts[i].length;
221
+ }
222
+ return len;
223
+ }
224
+ function toHex(n) {
225
+ return Buffer.from(String(n)).toString('hex');
226
+ }
227
+ //# sourceMappingURL=ansi-diff.js.map
@@ -0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ACrD,CAAC;AAED,SAAS,MAAM,CAAC,KAAe;IAC9B,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACzC,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;KACvB;IAED,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,SAAS,KAAK,CAAC,CAAS;IACvB,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const ansiRegex: () => RegExp;
2
+ export declare const stripAnsi: (str: string) => string;
3
+ //# sourceMappingURL=ansi-regex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi-regex.d.ts","sourceRoot":"","sources":["../../src/ansi/ansi-regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,cAOrB,CAAC;AAEF,eAAO,MAAM,SAAS,QAAS,MAAM,WAMpC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stripAnsi = exports.ansiRegex = void 0;
4
+ const ansiRegex = () => {
5
+ const pattern = [
6
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
7
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))',
8
+ ].join('|');
9
+ return new RegExp(pattern, 'g');
10
+ };
11
+ exports.ansiRegex = ansiRegex;
12
+ const stripAnsi = (str) => {
13
+ if (typeof str !== 'string') {
14
+ throw new TypeError(`Expected a \`string\`, got \`${typeof str}\``);
15
+ }
16
+ return str.replace((0, exports.ansiRegex)(), '');
17
+ };
18
+ exports.stripAnsi = stripAnsi;
19
+ //# sourceMappingURL=ansi-regex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi-regex.js","sourceRoot":"","sources":["../../src/ansi/ansi-regex.ts"],"names":[],"mappings":";;;AAAO,MAAM,SAAS,GAAG,GAAG,EAAE;IAC7B,MAAM,OAAO,GAAG;QACf,8HAA8H;QAC9H,0DAA0D;KAC1D,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEZ,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC,CAAC;AAPW,QAAA,SAAS,aAOpB;AAEK,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,EAAE;IACxC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,SAAS,CAAC,gCAAgC,OAAO,GAAG,IAAI,CAAC,CAAC;KACpE;IAED,OAAO,GAAG,CAAC,OAAO,CAAC,IAAA,iBAAS,GAAE,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC,CAAC;AANW,QAAA,SAAS,aAMpB"}
@@ -0,0 +1,2 @@
1
+ export declare function splitAnsi(str: string): string[];
2
+ //# sourceMappingURL=ansi-split.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi-split.d.ts","sourceRoot":"","sources":["../../src/ansi/ansi-split.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAwB/C"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.splitAnsi = void 0;
4
+ const ansi_regex_1 = require("./ansi-regex");
5
+ function splitAnsi(str) {
6
+ const parts = str.match((0, ansi_regex_1.ansiRegex)());
7
+ if (!parts)
8
+ return [str];
9
+ const result = [];
10
+ let offset = 0;
11
+ let ptr = 0;
12
+ for (let i = 0; i < parts.length; i++) {
13
+ offset = str.indexOf(parts[i], offset);
14
+ if (offset === -1)
15
+ throw new Error('Could not split string');
16
+ if (ptr !== offset)
17
+ result.push(str.slice(ptr, offset));
18
+ if (ptr === offset && result.length) {
19
+ result[result.length - 1] += parts[i];
20
+ }
21
+ else {
22
+ if (offset === 0)
23
+ result.push('');
24
+ result.push(parts[i]);
25
+ }
26
+ ptr = offset + parts[i].length;
27
+ }
28
+ result.push(str.slice(ptr));
29
+ return result;
30
+ }
31
+ exports.splitAnsi = splitAnsi;
32
+ //# sourceMappingURL=ansi-split.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi-split.js","sourceRoot":"","sources":["../../src/ansi/ansi-split.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAEvC,SAAgB,SAAS,CAAC,GAAW;IACpC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,IAAA,sBAAS,GAAE,CAAC,CAAC;IACrC,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEzB,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,GAAG,GAAG,CAAC,CAAC;IAEZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QACvC,IAAI,MAAM,KAAK,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC7D,IAAI,GAAG,KAAK,MAAM;YAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;QACxD,IAAI,GAAG,KAAK,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE;YACpC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;SACtC;aAAM;YACN,IAAI,MAAM,KAAK,CAAC;gBAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAClC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;QAED,GAAG,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;KAC/B;IAED,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,OAAO,MAAM,CAAC;AACf,CAAC;AAxBD,8BAwBC"}
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import { ErrorWithStackFrame } from '@remotion/renderer';
2
+ export declare const printCodeFrameAndStack: (err: ErrorWithStackFrame) => void;
3
+ //# sourceMappingURL=code-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-frame.d.ts","sourceRoot":"","sources":["../src/code-frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAyB,MAAM,oBAAoB,CAAC;AA8D/E,eAAO,MAAM,sBAAsB,QAAS,mBAAmB,SAsC9D,CAAC"}
@@ -0,0 +1,79 @@
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.printCodeFrameAndStack = void 0;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const remotion_1 = require("remotion");
9
+ const log_1 = require("./log");
10
+ const makeFileName = (firstFrame) => {
11
+ return [
12
+ firstFrame.originalFileName,
13
+ firstFrame.originalLineNumber,
14
+ firstFrame.originalColumnNumber === 0
15
+ ? null
16
+ : firstFrame.originalColumnNumber,
17
+ ]
18
+ .filter(remotion_1.Internals.truthy)
19
+ .join(':');
20
+ };
21
+ const printCodeFrame = (frame) => {
22
+ if (!frame.originalScriptCode) {
23
+ return;
24
+ }
25
+ log_1.Log.info();
26
+ const longestLineNumber = Math.max(...frame.originalScriptCode.map((script) => script.lineNumber)).toString().length;
27
+ log_1.Log.info('at', chalk_1.default.underline(makeFileName(frame)));
28
+ const alignLeftAmount = Math.min(...frame.originalScriptCode.map((c) => c.content.length - c.content.trimStart().length));
29
+ log_1.Log.info(`${frame.originalScriptCode
30
+ .map((c) => {
31
+ const content = `${String(c.lineNumber).padStart(longestLineNumber, ' ')} | ${c.content.substring(alignLeftAmount)}`;
32
+ return c.highlight ? content : chalk_1.default.gray(content);
33
+ })
34
+ .join('\n')}`);
35
+ };
36
+ const logLine = (frame) => {
37
+ const fileName = makeFileName(frame);
38
+ if (!fileName) {
39
+ return;
40
+ }
41
+ log_1.Log.info(chalk_1.default.gray(['at', frame.originalFunctionName, `${chalk_1.default.blueBright(`(${fileName})`)}`]
42
+ .filter(remotion_1.Internals.truthy)
43
+ .join(' ')));
44
+ };
45
+ const printCodeFrameAndStack = (err) => {
46
+ var _a, _b, _c;
47
+ if (!err.symbolicatedStackFrames) {
48
+ log_1.Log.error(err.stack);
49
+ return;
50
+ }
51
+ const firstFrame = err.symbolicatedStackFrames[0];
52
+ log_1.Log.error(chalk_1.default.bgRed(chalk_1.default.white(` ${err.name} `)), err.message);
53
+ printCodeFrame(firstFrame);
54
+ log_1.Log.info();
55
+ for (const frame of err.symbolicatedStackFrames) {
56
+ if (frame === firstFrame) {
57
+ continue;
58
+ }
59
+ logLine(frame);
60
+ }
61
+ if (err.delayRenderCall) {
62
+ log_1.Log.error();
63
+ log_1.Log.error('🕧 The delayRender() call is located at:');
64
+ for (const frame of err.delayRenderCall) {
65
+ const showCodeFrame = (!((_a = frame.originalFileName) === null || _a === void 0 ? void 0 : _a.includes('node_modules')) &&
66
+ !((_b = frame.originalFileName) === null || _b === void 0 ? void 0 : _b.startsWith('webpack/'))) ||
67
+ frame === err.delayRenderCall[0] ||
68
+ ((_c = frame.originalScriptCode) === null || _c === void 0 ? void 0 : _c.map((c) => c.content).join('').includes('delayRender'));
69
+ if (showCodeFrame) {
70
+ printCodeFrame(frame);
71
+ }
72
+ else {
73
+ logLine(frame);
74
+ }
75
+ }
76
+ }
77
+ };
78
+ exports.printCodeFrameAndStack = printCodeFrameAndStack;
79
+ //# sourceMappingURL=code-frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-frame.js","sourceRoot":"","sources":["../src/code-frame.ts"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAC1B,uCAAmC;AACnC,+BAA0B;AAE1B,MAAM,YAAY,GAAG,CAAC,UAAkC,EAAE,EAAE;IAC3D,OAAO;QACN,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,oBAAoB,KAAK,CAAC;YACpC,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,UAAU,CAAC,oBAAoB;KAClC;SACC,MAAM,CAAC,oBAAS,CAAC,MAAM,CAAC;SACxB,IAAI,CAAC,GAAG,CAAC,CAAC;AACb,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAA6B,EAAE,EAAE;IACxD,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE;QAC9B,OAAO;KACP;IAED,SAAG,CAAC,IAAI,EAAE,CAAC;IACX,MAAM,iBAAiB,GAAG,IAAI,CAAC,GAAG,CACjC,GAAG,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAC9D,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC;IACpB,SAAG,CAAC,IAAI,CAAC,IAAI,EAAE,eAAK,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAC/B,GAAG,KAAK,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
1
+ export declare const listCompositionsCommand: () => Promise<void>;
2
+ //# sourceMappingURL=compositions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../src/compositions.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,uBAAuB,qBAqDnC,CAAC"}
@@ -0,0 +1,64 @@
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.listCompositionsCommand = void 0;
7
+ const renderer_1 = require("@remotion/renderer");
8
+ const path_1 = __importDefault(require("path"));
9
+ const get_config_file_name_1 = require("./get-config-file-name");
10
+ const log_1 = require("./log");
11
+ const parse_command_line_1 = require("./parse-command-line");
12
+ const setup_cache_1 = require("./setup-cache");
13
+ const max = (arr) => {
14
+ if (arr.length === 0) {
15
+ throw new Error('Array of 0 length');
16
+ }
17
+ let biggest = arr[0];
18
+ for (let i = 0; i < arr.length; i++) {
19
+ const elem = arr[i];
20
+ if (elem > biggest) {
21
+ biggest = elem;
22
+ }
23
+ }
24
+ return biggest;
25
+ };
26
+ const listCompositionsCommand = async () => {
27
+ const file = parse_command_line_1.parsedCli._[1];
28
+ if (!file) {
29
+ log_1.Log.error('The compositions command requires you to specify a root file. For example');
30
+ log_1.Log.error(' npx remotion compositions src/index.tsx');
31
+ log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
32
+ process.exit(1);
33
+ }
34
+ const fullPath = path_1.default.join(process.cwd(), file);
35
+ (0, get_config_file_name_1.loadConfig)();
36
+ const bundled = await (0, setup_cache_1.bundleOnCli)(fullPath, ['bundling']);
37
+ const compositions = await (0, renderer_1.getCompositions)(bundled);
38
+ log_1.Log.info();
39
+ log_1.Log.info('The following compositions are available:');
40
+ log_1.Log.info();
41
+ const firstColumnLength = max(compositions.map(({ id }) => id.length)) + 4;
42
+ const secondColumnLength = 8;
43
+ const thirdColumnLength = 15;
44
+ log_1.Log.info(`${'Composition'.padEnd(firstColumnLength, ' ')}${'FPS'.padEnd(secondColumnLength)}${'Dimensions'.padEnd(thirdColumnLength, ' ')}Duration`);
45
+ log_1.Log.info(compositions
46
+ .map((comp) => {
47
+ const isStill = comp.durationInFrames === 1;
48
+ const dimensions = `${comp.width}x${comp.height}`;
49
+ const fps = isStill ? '' : comp.fps.toString();
50
+ const durationInSeconds = (comp.durationInFrames / comp.fps).toFixed(2);
51
+ const formattedDuration = isStill
52
+ ? 'Still'
53
+ : `${comp.durationInFrames} (${durationInSeconds} sec)`;
54
+ return [
55
+ comp.id.padEnd(firstColumnLength, ' '),
56
+ fps.padEnd(secondColumnLength, ' '),
57
+ dimensions.padEnd(thirdColumnLength, ' '),
58
+ formattedDuration,
59
+ ].join('');
60
+ })
61
+ .join('\n'));
62
+ };
63
+ exports.listCompositionsCommand = listCompositionsCommand;
64
+ //# sourceMappingURL=compositions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compositions.js","sourceRoot":"","sources":["../src/compositions.ts"],"names":[],"mappings":";;;;;;AAAA,iDAAmD;AACnD,gDAAwB;AACxB,iEAAkD;AAClD,+BAA0B;AAC1B,6DAA+C;AAC/C,+CAA0C;AAE1C,MAAM,GAAG,GAAG,CAAC,GAAa,EAAE,EAAE;IAC7B,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;KACrC;IAED,IAAI,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,IAAI,GAAG,OAAO,EAAE;YACnB,OAAO,GAAG,IAAI,CAAC;SACf;KACD;IAED,OAAO,OAAO,CAAC;AA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CACP,YAAY;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACb,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,KAAK,CAAC,CAAC;QAC5C,MAAM,UAAU,GAAG,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAClD,MAAM,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC/C,MAAM,iBAAiB,GAAG,CAAC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACxE,MAAM,iBAAiB,GAAG,OAAO;YAChC,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,GAAG,IAAI,CAAC,gBAAgB,KAAK,iBAAiB,OAAO,CAAC;QACzD,OAAO;YACN,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC;YACtC,GAAG,CAAC,MAAM,CAAC,kBAAkB,EAAE,GAAG,CAAC;YACnC,UAAU,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC;YACzC,iBAAiB;SACjB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACZ,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CACZ,CAAC;AACH,CAAC,CAAC;AArDW,QAAA,uBAAuB,2BAqDlC"}
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"AudioWaveform.d.ts","sourceRoot":"","sources":["../../../src/editor/components/AudioWaveform.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAuBlE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB,EAAE,MAAM,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAClE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;CAC1B,CAwGA,CAAC"}
1
+ {"version":3,"file":"AudioWaveform.d.ts","sourceRoot":"","sources":["../../../src/editor/components/AudioWaveform.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAiClE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB,EAAE,MAAM,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAClE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;CAC1B,CAwHA,CAAC"}