@remotion/cli 3.1.10 → 3.1.11

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 (371) hide show
  1. package/dist/bundle-on-cli.d.ts +2 -0
  2. package/dist/bundle-on-cli.js +41 -0
  3. package/dist/bundle.d.ts +1 -0
  4. package/dist/bundle.js +31 -0
  5. package/dist/chalk/symbols.d.ts +111 -0
  6. package/dist/chalk/symbols.js +75 -0
  7. package/dist/chalk/utilities.d.ts +2 -0
  8. package/dist/chalk/utilities.js +37 -0
  9. package/dist/editor/components/CompositionManager.d.ts +4 -0
  10. package/dist/editor/components/CompositionManager.js +60 -0
  11. package/dist/editor/components/LoadingIndicator.d.ts +0 -1
  12. package/dist/editor/components/LoadingIndicator.js +1 -2
  13. package/dist/editor/components/Timeline/TimelineScrollable.js +1 -1
  14. package/dist/editor/components/Timeline/TimelineZoomControls.js +2 -18
  15. package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -40
  16. package/dist/editor/components/Timeline/timeline-scroll-logic.js +1 -203
  17. package/dist/editor/state/timeline-zoom.d.ts +1 -1
  18. package/dist/editor/state/timeline-zoom.js +1 -15
  19. package/dist/prepare-entry-point.d.ts +11 -0
  20. package/dist/prepare-entry-point.js +36 -0
  21. package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +1 -0
  22. package/dist/preview-server/error-overlay/remotion-overlay/Button.js +9 -2
  23. package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +5 -1
  24. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +24 -0
  25. package/dist/preview-server/fast-refresh/helpers.d.ts +39 -0
  26. package/dist/preview-server/fast-refresh/helpers.js +145 -0
  27. package/dist/preview-server/fast-refresh/index.d.ts +30 -0
  28. package/dist/preview-server/fast-refresh/index.js +86 -0
  29. package/dist/preview-server/fast-refresh/loader.d.ts +35 -0
  30. package/dist/preview-server/fast-refresh/loader.js +81 -0
  31. package/dist/preview-server/fast-refresh/runtime.d.ts +35 -0
  32. package/dist/preview-server/fast-refresh/runtime.js +32 -0
  33. package/dist/preview-server/static-preview.d.ts +1 -0
  34. package/dist/preview-server/static-preview.js +40 -0
  35. package/dist/preview-server/webpack-cache.d.ts +12 -0
  36. package/dist/preview-server/webpack-cache.js +66 -0
  37. package/package.json +7 -7
  38. package/dist/ansi/ansi-diff.d.ts.map +0 -1
  39. package/dist/ansi/ansi-diff.js.map +0 -1
  40. package/dist/ansi/ansi-regex.d.ts.map +0 -1
  41. package/dist/ansi/ansi-regex.js.map +0 -1
  42. package/dist/ansi/ansi-split.d.ts.map +0 -1
  43. package/dist/ansi/ansi-split.js.map +0 -1
  44. package/dist/check-version.d.ts.map +0 -1
  45. package/dist/check-version.js.map +0 -1
  46. package/dist/code-frame.d.ts.map +0 -1
  47. package/dist/code-frame.js.map +0 -1
  48. package/dist/compositions.d.ts.map +0 -1
  49. package/dist/compositions.js.map +0 -1
  50. package/dist/editor/components/AudioWaveform.d.ts.map +0 -1
  51. package/dist/editor/components/AudioWaveform.js.map +0 -1
  52. package/dist/editor/components/AudioWaveformBar.d.ts.map +0 -1
  53. package/dist/editor/components/AudioWaveformBar.js.map +0 -1
  54. package/dist/editor/components/Canvas.d.ts.map +0 -1
  55. package/dist/editor/components/Canvas.js.map +0 -1
  56. package/dist/editor/components/CheckboardToggle.d.ts.map +0 -1
  57. package/dist/editor/components/CheckboardToggle.js.map +0 -1
  58. package/dist/editor/components/ClipboardIcon.d.ts.map +0 -1
  59. package/dist/editor/components/ClipboardIcon.js.map +0 -1
  60. package/dist/editor/components/CompositionSelector.d.ts.map +0 -1
  61. package/dist/editor/components/CompositionSelector.js.map +0 -1
  62. package/dist/editor/components/CompositionSelectorItem.d.ts.map +0 -1
  63. package/dist/editor/components/CompositionSelectorItem.js.map +0 -1
  64. package/dist/editor/components/ControlButton.d.ts.map +0 -1
  65. package/dist/editor/components/ControlButton.js.map +0 -1
  66. package/dist/editor/components/CopyButton.d.ts.map +0 -1
  67. package/dist/editor/components/CopyButton.js.map +0 -1
  68. package/dist/editor/components/CurrentComposition.d.ts.map +0 -1
  69. package/dist/editor/components/CurrentComposition.js.map +0 -1
  70. package/dist/editor/components/Editor.d.ts.map +0 -1
  71. package/dist/editor/components/Editor.js.map +0 -1
  72. package/dist/editor/components/EditorContent.d.ts.map +0 -1
  73. package/dist/editor/components/EditorContent.js.map +0 -1
  74. package/dist/editor/components/FpsCounter.d.ts.map +0 -1
  75. package/dist/editor/components/FpsCounter.js.map +0 -1
  76. package/dist/editor/components/FramePersistor.d.ts.map +0 -1
  77. package/dist/editor/components/FramePersistor.js.map +0 -1
  78. package/dist/editor/components/GlobalKeybindings.d.ts.map +0 -1
  79. package/dist/editor/components/GlobalKeybindings.js.map +0 -1
  80. package/dist/editor/components/KeyboardShortcutsModal.d.ts.map +0 -1
  81. package/dist/editor/components/KeyboardShortcutsModal.js.map +0 -1
  82. package/dist/editor/components/LoadingIndicator.d.ts.map +0 -1
  83. package/dist/editor/components/LoadingIndicator.js.map +0 -1
  84. package/dist/editor/components/LoopToggle.d.ts.map +0 -1
  85. package/dist/editor/components/LoopToggle.js.map +0 -1
  86. package/dist/editor/components/Menu/MenuDivider.d.ts.map +0 -1
  87. package/dist/editor/components/Menu/MenuDivider.js.map +0 -1
  88. package/dist/editor/components/Menu/MenuItem.d.ts.map +0 -1
  89. package/dist/editor/components/Menu/MenuItem.js.map +0 -1
  90. package/dist/editor/components/Menu/MenuSubItem.d.ts.map +0 -1
  91. package/dist/editor/components/Menu/MenuSubItem.js.map +0 -1
  92. package/dist/editor/components/Menu/SubMenu.d.ts.map +0 -1
  93. package/dist/editor/components/Menu/SubMenu.js.map +0 -1
  94. package/dist/editor/components/Menu/portals.d.ts.map +0 -1
  95. package/dist/editor/components/Menu/portals.js.map +0 -1
  96. package/dist/editor/components/Menu/styles.d.ts.map +0 -1
  97. package/dist/editor/components/Menu/styles.js.map +0 -1
  98. package/dist/editor/components/MenuToolbar.d.ts.map +0 -1
  99. package/dist/editor/components/MenuToolbar.js.map +0 -1
  100. package/dist/editor/components/ModalContainer.d.ts.map +0 -1
  101. package/dist/editor/components/ModalContainer.js.map +0 -1
  102. package/dist/editor/components/ModalHeader.d.ts.map +0 -1
  103. package/dist/editor/components/ModalHeader.js.map +0 -1
  104. package/dist/editor/components/MuteToggle.d.ts.map +0 -1
  105. package/dist/editor/components/MuteToggle.js.map +0 -1
  106. package/dist/editor/components/NewComposition/CancelButton.d.ts.map +0 -1
  107. package/dist/editor/components/NewComposition/CancelButton.js.map +0 -1
  108. package/dist/editor/components/NewComposition/ComboBox.d.ts.map +0 -1
  109. package/dist/editor/components/NewComposition/ComboBox.js.map +0 -1
  110. package/dist/editor/components/NewComposition/CopyHint.d.ts.map +0 -1
  111. package/dist/editor/components/NewComposition/CopyHint.js.map +0 -1
  112. package/dist/editor/components/NewComposition/InputDragger.d.ts.map +0 -1
  113. package/dist/editor/components/NewComposition/InputDragger.js.map +0 -1
  114. package/dist/editor/components/NewComposition/MenuContent.d.ts.map +0 -1
  115. package/dist/editor/components/NewComposition/MenuContent.js.map +0 -1
  116. package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts.map +0 -1
  117. package/dist/editor/components/NewComposition/NewCompAspectRatio.js.map +0 -1
  118. package/dist/editor/components/NewComposition/NewCompCode.d.ts.map +0 -1
  119. package/dist/editor/components/NewComposition/NewCompCode.js.map +0 -1
  120. package/dist/editor/components/NewComposition/NewCompDuration.d.ts.map +0 -1
  121. package/dist/editor/components/NewComposition/NewCompDuration.js.map +0 -1
  122. package/dist/editor/components/NewComposition/NewComposition.d.ts.map +0 -1
  123. package/dist/editor/components/NewComposition/NewComposition.js.map +0 -1
  124. package/dist/editor/components/NewComposition/RemInput.d.ts.map +0 -1
  125. package/dist/editor/components/NewComposition/RemInput.js.map +0 -1
  126. package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts.map +0 -1
  127. package/dist/editor/components/NewComposition/ToggleAspectRatio.js.map +0 -1
  128. package/dist/editor/components/NewComposition/ValidationMessage.d.ts.map +0 -1
  129. package/dist/editor/components/NewComposition/ValidationMessage.js.map +0 -1
  130. package/dist/editor/components/NewComposition/new-comp-layout.d.ts.map +0 -1
  131. package/dist/editor/components/NewComposition/new-comp-layout.js.map +0 -1
  132. package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts.map +0 -1
  133. package/dist/editor/components/NewComposition/render-aspect-ratio.js.map +0 -1
  134. package/dist/editor/components/PlayPause.d.ts.map +0 -1
  135. package/dist/editor/components/PlayPause.js.map +0 -1
  136. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts.map +0 -1
  137. package/dist/editor/components/PlaybackKeyboardShortcutsManager.js.map +0 -1
  138. package/dist/editor/components/PlaybackRatePersistor.d.ts.map +0 -1
  139. package/dist/editor/components/PlaybackRatePersistor.js.map +0 -1
  140. package/dist/editor/components/PlaybackRateSelector.d.ts.map +0 -1
  141. package/dist/editor/components/PlaybackRateSelector.js.map +0 -1
  142. package/dist/editor/components/Preview.d.ts.map +0 -1
  143. package/dist/editor/components/Preview.js.map +0 -1
  144. package/dist/editor/components/PreviewToolbar.d.ts.map +0 -1
  145. package/dist/editor/components/PreviewToolbar.js.map +0 -1
  146. package/dist/editor/components/RichTimelineToggle.d.ts.map +0 -1
  147. package/dist/editor/components/RichTimelineToggle.js.map +0 -1
  148. package/dist/editor/components/SizeSelector.d.ts.map +0 -1
  149. package/dist/editor/components/SizeSelector.js.map +0 -1
  150. package/dist/editor/components/Splitter/SplitterContainer.d.ts.map +0 -1
  151. package/dist/editor/components/Splitter/SplitterContainer.js.map +0 -1
  152. package/dist/editor/components/Splitter/SplitterContext.d.ts.map +0 -1
  153. package/dist/editor/components/Splitter/SplitterContext.js.map +0 -1
  154. package/dist/editor/components/Splitter/SplitterElement.d.ts.map +0 -1
  155. package/dist/editor/components/Splitter/SplitterElement.js.map +0 -1
  156. package/dist/editor/components/Splitter/SplitterHandle.d.ts.map +0 -1
  157. package/dist/editor/components/Splitter/SplitterHandle.js.map +0 -1
  158. package/dist/editor/components/Thumbnail.d.ts.map +0 -1
  159. package/dist/editor/components/Thumbnail.js.map +0 -1
  160. package/dist/editor/components/TimeValue.d.ts.map +0 -1
  161. package/dist/editor/components/TimeValue.js.map +0 -1
  162. package/dist/editor/components/Timeline/LoopedIndicator.d.ts.map +0 -1
  163. package/dist/editor/components/Timeline/LoopedIndicator.js.map +0 -1
  164. package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts.map +0 -1
  165. package/dist/editor/components/Timeline/LoopedTimelineIndicators.js.map +0 -1
  166. package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts.map +0 -1
  167. package/dist/editor/components/Timeline/MaxTimelineTracks.js.map +0 -1
  168. package/dist/editor/components/Timeline/Timeline.d.ts.map +0 -1
  169. package/dist/editor/components/Timeline/Timeline.js.map +0 -1
  170. package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts.map +0 -1
  171. package/dist/editor/components/Timeline/TimelineCollapseToggle.js.map +0 -1
  172. package/dist/editor/components/Timeline/TimelineDragHandler.d.ts.map +0 -1
  173. package/dist/editor/components/Timeline/TimelineDragHandler.js.map +0 -1
  174. package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts.map +0 -1
  175. package/dist/editor/components/Timeline/TimelineInOutPointer.js.map +0 -1
  176. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts.map +0 -1
  177. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js.map +0 -1
  178. package/dist/editor/components/Timeline/TimelineList.d.ts.map +0 -1
  179. package/dist/editor/components/Timeline/TimelineList.js.map +0 -1
  180. package/dist/editor/components/Timeline/TimelineListItem.d.ts.map +0 -1
  181. package/dist/editor/components/Timeline/TimelineListItem.js.map +0 -1
  182. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -2
  183. package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -75
  184. package/dist/editor/components/Timeline/TimelineSequence.d.ts.map +0 -1
  185. package/dist/editor/components/Timeline/TimelineSequence.js.map +0 -1
  186. package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts.map +0 -1
  187. package/dist/editor/components/Timeline/TimelineSequenceFrame.js.map +0 -1
  188. package/dist/editor/components/Timeline/TimelineSlider.d.ts.map +0 -1
  189. package/dist/editor/components/Timeline/TimelineSlider.js.map +0 -1
  190. package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts.map +0 -1
  191. package/dist/editor/components/Timeline/TimelineSliderHandle.js.map +0 -1
  192. package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -5
  193. package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -79
  194. package/dist/editor/components/Timeline/TimelineTracks.d.ts.map +0 -1
  195. package/dist/editor/components/Timeline/TimelineTracks.js.map +0 -1
  196. package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts.map +0 -1
  197. package/dist/editor/components/Timeline/TimelineVideoInfo.js.map +0 -1
  198. package/dist/editor/components/Timeline/imperative-state.d.ts +0 -9
  199. package/dist/editor/components/Timeline/imperative-state.js +0 -30
  200. package/dist/editor/components/Timeline/is-collapsed.d.ts.map +0 -1
  201. package/dist/editor/components/Timeline/is-collapsed.js.map +0 -1
  202. package/dist/editor/components/Timeline/timeline-refs.d.ts.map +0 -1
  203. package/dist/editor/components/Timeline/timeline-refs.js.map +0 -1
  204. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts.map +0 -1
  205. package/dist/editor/components/Timeline/timeline-state-reducer.js.map +0 -1
  206. package/dist/editor/components/TimelineInOutToggle.d.ts.map +0 -1
  207. package/dist/editor/components/TimelineInOutToggle.js.map +0 -1
  208. package/dist/editor/components/TopPanel.d.ts.map +0 -1
  209. package/dist/editor/components/TopPanel.js.map +0 -1
  210. package/dist/editor/components/UpdateCheck.d.ts.map +0 -1
  211. package/dist/editor/components/UpdateCheck.js.map +0 -1
  212. package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +0 -1
  213. package/dist/editor/components/UpdateModal/UpdateModal.js.map +0 -1
  214. package/dist/editor/components/ZoomPersistor.d.ts +0 -4
  215. package/dist/editor/components/ZoomPersistor.js +0 -37
  216. package/dist/editor/components/layout.d.ts.map +0 -1
  217. package/dist/editor/components/layout.js.map +0 -1
  218. package/dist/editor/helpers/calculate-timeline.d.ts.map +0 -1
  219. package/dist/editor/helpers/calculate-timeline.js.map +0 -1
  220. package/dist/editor/helpers/checkerboard-background.d.ts.map +0 -1
  221. package/dist/editor/helpers/checkerboard-background.js.map +0 -1
  222. package/dist/editor/helpers/colors.d.ts.map +0 -1
  223. package/dist/editor/helpers/colors.js.map +0 -1
  224. package/dist/editor/helpers/copy-text.d.ts.map +0 -1
  225. package/dist/editor/helpers/copy-text.js.map +0 -1
  226. package/dist/editor/helpers/get-left-of-timeline-slider.d.ts.map +0 -1
  227. package/dist/editor/helpers/get-left-of-timeline-slider.js.map +0 -1
  228. package/dist/editor/helpers/get-sequence-visible-range.d.ts.map +0 -1
  229. package/dist/editor/helpers/get-sequence-visible-range.js.map +0 -1
  230. package/dist/editor/helpers/get-timeline-nestedness.d.ts.map +0 -1
  231. package/dist/editor/helpers/get-timeline-nestedness.js.map +0 -1
  232. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts.map +0 -1
  233. package/dist/editor/helpers/get-timeline-sequence-hash.js.map +0 -1
  234. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts.map +0 -1
  235. package/dist/editor/helpers/get-timeline-sequence-layout.js.map +0 -1
  236. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts.map +0 -1
  237. package/dist/editor/helpers/get-timeline-sequence-sort-key.js.map +0 -1
  238. package/dist/editor/helpers/is-composition-still.d.ts.map +0 -1
  239. package/dist/editor/helpers/is-composition-still.js.map +0 -1
  240. package/dist/editor/helpers/is-current-selected-still.d.ts.map +0 -1
  241. package/dist/editor/helpers/is-current-selected-still.js.map +0 -1
  242. package/dist/editor/helpers/noop.d.ts.map +0 -1
  243. package/dist/editor/helpers/noop.js.map +0 -1
  244. package/dist/editor/helpers/timeline-layout.d.ts.map +0 -1
  245. package/dist/editor/helpers/timeline-layout.js.map +0 -1
  246. package/dist/editor/helpers/use-keybinding.d.ts.map +0 -1
  247. package/dist/editor/helpers/use-keybinding.js.map +0 -1
  248. package/dist/editor/helpers/validate-new-comp-data.d.ts.map +0 -1
  249. package/dist/editor/helpers/validate-new-comp-data.js.map +0 -1
  250. package/dist/editor/icons/Checkmark.d.ts.map +0 -1
  251. package/dist/editor/icons/Checkmark.js.map +0 -1
  252. package/dist/editor/icons/caret.d.ts.map +0 -1
  253. package/dist/editor/icons/caret.js.map +0 -1
  254. package/dist/editor/icons/film.d.ts.map +0 -1
  255. package/dist/editor/icons/film.js.map +0 -1
  256. package/dist/editor/icons/keys.d.ts.map +0 -1
  257. package/dist/editor/icons/keys.js.map +0 -1
  258. package/dist/editor/icons/lock.d.ts.map +0 -1
  259. package/dist/editor/icons/lock.js.map +0 -1
  260. package/dist/editor/icons/media-volume.d.ts.map +0 -1
  261. package/dist/editor/icons/media-volume.js.map +0 -1
  262. package/dist/editor/icons/minus.d.ts +0 -3
  263. package/dist/editor/icons/minus.js +0 -8
  264. package/dist/editor/icons/pause.d.ts.map +0 -1
  265. package/dist/editor/icons/pause.js.map +0 -1
  266. package/dist/editor/icons/play.d.ts.map +0 -1
  267. package/dist/editor/icons/play.js.map +0 -1
  268. package/dist/editor/icons/plus.d.ts +0 -3
  269. package/dist/editor/icons/plus.js +0 -8
  270. package/dist/editor/icons/step-back.d.ts.map +0 -1
  271. package/dist/editor/icons/step-back.js.map +0 -1
  272. package/dist/editor/icons/step-forward.d.ts.map +0 -1
  273. package/dist/editor/icons/step-forward.js.map +0 -1
  274. package/dist/editor/icons/still.d.ts.map +0 -1
  275. package/dist/editor/icons/still.js.map +0 -1
  276. package/dist/editor/icons/timeline.d.ts.map +0 -1
  277. package/dist/editor/icons/timeline.js.map +0 -1
  278. package/dist/editor/icons/timelineInOutPointer.d.ts.map +0 -1
  279. package/dist/editor/icons/timelineInOutPointer.js.map +0 -1
  280. package/dist/editor/state/aspect-ratio-locked.d.ts.map +0 -1
  281. package/dist/editor/state/aspect-ratio-locked.js.map +0 -1
  282. package/dist/editor/state/checkerboard.d.ts.map +0 -1
  283. package/dist/editor/state/checkerboard.js.map +0 -1
  284. package/dist/editor/state/highest-z-index.d.ts.map +0 -1
  285. package/dist/editor/state/highest-z-index.js.map +0 -1
  286. package/dist/editor/state/input-dragger-click-lock.d.ts.map +0 -1
  287. package/dist/editor/state/input-dragger-click-lock.js.map +0 -1
  288. package/dist/editor/state/keybindings.d.ts.map +0 -1
  289. package/dist/editor/state/keybindings.js.map +0 -1
  290. package/dist/editor/state/loop.d.ts.map +0 -1
  291. package/dist/editor/state/loop.js.map +0 -1
  292. package/dist/editor/state/marks.d.ts.map +0 -1
  293. package/dist/editor/state/marks.js.map +0 -1
  294. package/dist/editor/state/modals.d.ts.map +0 -1
  295. package/dist/editor/state/modals.js.map +0 -1
  296. package/dist/editor/state/mute.d.ts.map +0 -1
  297. package/dist/editor/state/mute.js.map +0 -1
  298. package/dist/editor/state/playbackrate.d.ts.map +0 -1
  299. package/dist/editor/state/playbackrate.js.map +0 -1
  300. package/dist/editor/state/preview-size.d.ts.map +0 -1
  301. package/dist/editor/state/preview-size.js.map +0 -1
  302. package/dist/editor/state/render-frame.d.ts.map +0 -1
  303. package/dist/editor/state/render-frame.js.map +0 -1
  304. package/dist/editor/state/rich-timeline.d.ts.map +0 -1
  305. package/dist/editor/state/rich-timeline.js.map +0 -1
  306. package/dist/editor/state/timeline-ref.d.ts.map +0 -1
  307. package/dist/editor/state/timeline-ref.js.map +0 -1
  308. package/dist/editor/state/timeline.d.ts.map +0 -1
  309. package/dist/editor/state/timeline.js.map +0 -1
  310. package/dist/editor/state/z-index.d.ts.map +0 -1
  311. package/dist/editor/state/z-index.js.map +0 -1
  312. package/dist/get-cli-options.d.ts.map +0 -1
  313. package/dist/get-cli-options.js.map +0 -1
  314. package/dist/get-composition-id.d.ts.map +0 -1
  315. package/dist/get-composition-id.js.map +0 -1
  316. package/dist/get-config-file-name.d.ts.map +0 -1
  317. package/dist/get-config-file-name.js.map +0 -1
  318. package/dist/get-env.d.ts.map +0 -1
  319. package/dist/get-env.js.map +0 -1
  320. package/dist/get-filename.d.ts.map +0 -1
  321. package/dist/get-filename.js.map +0 -1
  322. package/dist/get-input-props.d.ts.map +0 -1
  323. package/dist/get-input-props.js.map +0 -1
  324. package/dist/handle-common-errors.d.ts.map +0 -1
  325. package/dist/handle-common-errors.js.map +0 -1
  326. package/dist/image-formats.d.ts.map +0 -1
  327. package/dist/image-formats.js.map +0 -1
  328. package/dist/index.d.ts.map +0 -1
  329. package/dist/index.js.map +0 -1
  330. package/dist/initialize-render-cli.d.ts.map +0 -1
  331. package/dist/initialize-render-cli.js.map +0 -1
  332. package/dist/is-javascript.d.ts.map +0 -1
  333. package/dist/is-javascript.js.map +0 -1
  334. package/dist/lambda-command.d.ts.map +0 -1
  335. package/dist/lambda-command.js.map +0 -1
  336. package/dist/load-config.d.ts.map +0 -1
  337. package/dist/load-config.js.map +0 -1
  338. package/dist/log.d.ts.map +0 -1
  339. package/dist/log.js.map +0 -1
  340. package/dist/parse-command-line.d.ts.map +0 -1
  341. package/dist/parse-command-line.js.map +0 -1
  342. package/dist/preview.d.ts.map +0 -1
  343. package/dist/preview.js.map +0 -1
  344. package/dist/previewEntry.d.ts.map +0 -1
  345. package/dist/previewEntry.js.map +0 -1
  346. package/dist/print-error.d.ts.map +0 -1
  347. package/dist/print-error.js.map +0 -1
  348. package/dist/print-help.d.ts.map +0 -1
  349. package/dist/print-help.js.map +0 -1
  350. package/dist/progress-bar.d.ts.map +0 -1
  351. package/dist/progress-bar.js.map +0 -1
  352. package/dist/render.d.ts.map +0 -1
  353. package/dist/render.js.map +0 -1
  354. package/dist/resolve-from.d.ts.map +0 -1
  355. package/dist/resolve-from.js.map +0 -1
  356. package/dist/setup-cache.d.ts.map +0 -1
  357. package/dist/setup-cache.js.map +0 -1
  358. package/dist/step.d.ts.map +0 -1
  359. package/dist/step.js.map +0 -1
  360. package/dist/still.d.ts.map +0 -1
  361. package/dist/still.js.map +0 -1
  362. package/dist/upgrade.d.ts.map +0 -1
  363. package/dist/upgrade.js.map +0 -1
  364. package/dist/user-passed-output-location.d.ts.map +0 -1
  365. package/dist/user-passed-output-location.js.map +0 -1
  366. package/dist/validate-ffmpeg-version.d.ts.map +0 -1
  367. package/dist/validate-ffmpeg-version.js.map +0 -1
  368. package/dist/versions.d.ts.map +0 -1
  369. package/dist/versions.js.map +0 -1
  370. package/dist/warn-about-ffmpeg-version.d.ts.map +0 -1
  371. package/dist/warn-about-ffmpeg-version.js.map +0 -1
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zoomAndPreserveCursor = exports.getFrameFromX = exports.getFrameWhileScrollingRight = exports.getFrameIncrement = exports.getScrollPositionForCursorOnRightEdge = exports.getScrollPositionForCursorOnLeftEdge = exports.scrollToTimelineXOffset = exports.ensureFrameIsInViewport = exports.isCursorInViewport = exports.getFrameWhileScrollingLeft = exports.SCROLL_INCREMENT = exports.canScrollTimelineIntoDirection = void 0;
4
- const remotion_1 = require("remotion");
3
+ exports.canScrollTimelineIntoDirection = void 0;
5
4
  const timeline_layout_1 = require("../../helpers/timeline-layout");
6
5
  const timeline_refs_1 = require("./timeline-refs");
7
- const TimelineSlider_1 = require("./TimelineSlider");
8
6
  const canScrollTimelineIntoDirection = () => {
9
7
  const current = timeline_refs_1.scrollableRef.current;
10
8
  const { scrollWidth, scrollLeft, clientWidth } = current;
@@ -13,203 +11,3 @@ const canScrollTimelineIntoDirection = () => {
13
11
  return { canScrollRight, canScrollLeft };
14
12
  };
15
13
  exports.canScrollTimelineIntoDirection = canScrollTimelineIntoDirection;
16
- exports.SCROLL_INCREMENT = 200;
17
- const calculateFrameWhileScrollingRight = ({ durationInFrames, width, scrollLeft, }) => {
18
- var _a;
19
- return ((0, exports.getFrameFromX)({
20
- clientX: scrollLeft,
21
- durationInFrames,
22
- width,
23
- extrapolate: 'clamp',
24
- }) +
25
- Math.ceil((((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) - timeline_layout_1.TIMELINE_PADDING) /
26
- (0, exports.getFrameIncrement)(durationInFrames)));
27
- };
28
- const getFrameWhileScrollingLeft = ({ durationInFrames, width, }) => {
29
- var _a, _b;
30
- const nextFrame = (0, exports.getFrameFromX)({
31
- clientX: ((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollLeft) - exports.SCROLL_INCREMENT,
32
- durationInFrames,
33
- width,
34
- extrapolate: 'clamp',
35
- });
36
- const currentFrame = (0, exports.getFrameFromX)({
37
- clientX: (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollLeft,
38
- durationInFrames,
39
- width,
40
- extrapolate: 'clamp',
41
- });
42
- // Should go back at least 1 frame, but not less than 0
43
- return Math.max(0, Math.min(currentFrame - 1, nextFrame));
44
- };
45
- exports.getFrameWhileScrollingLeft = getFrameWhileScrollingLeft;
46
- const isCursorInViewport = ({ frame, durationInFrames, }) => {
47
- var _a, _b, _c, _d;
48
- const width = (_b = (_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) !== null && _b !== void 0 ? _b : 0;
49
- const scrollLeft = (_d = (_c = timeline_refs_1.scrollableRef.current) === null || _c === void 0 ? void 0 : _c.scrollLeft) !== null && _d !== void 0 ? _d : 0;
50
- const scrollPosOnRightEdge = (0, exports.getScrollPositionForCursorOnRightEdge)({
51
- nextFrame: frame,
52
- durationInFrames,
53
- });
54
- const scrollPosOnLeftEdge = (0, exports.getScrollPositionForCursorOnLeftEdge)({
55
- nextFrame: frame,
56
- durationInFrames,
57
- });
58
- const currentFrameRight = calculateFrameWhileScrollingRight({
59
- durationInFrames,
60
- scrollLeft,
61
- width,
62
- });
63
- return !(scrollPosOnRightEdge >=
64
- (0, exports.getScrollPositionForCursorOnRightEdge)({
65
- nextFrame: currentFrameRight,
66
- durationInFrames,
67
- }) || scrollPosOnLeftEdge < scrollLeft);
68
- };
69
- exports.isCursorInViewport = isCursorInViewport;
70
- const ensureFrameIsInViewport = ({ direction, durationInFrames, frame, }) => {
71
- var _a, _b, _c, _d, _e;
72
- (_a = TimelineSlider_1.redrawTimelineSliderFast.current) === null || _a === void 0 ? void 0 : _a.draw(frame);
73
- const width = (_c = (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollWidth) !== null && _c !== void 0 ? _c : 0;
74
- const scrollLeft = (_e = (_d = timeline_refs_1.scrollableRef.current) === null || _d === void 0 ? void 0 : _d.scrollLeft) !== null && _e !== void 0 ? _e : 0;
75
- if (direction === 'fit-left') {
76
- const currentFrameLeft = (0, exports.getFrameFromX)({
77
- clientX: scrollLeft,
78
- durationInFrames,
79
- width,
80
- extrapolate: 'clamp',
81
- });
82
- const scrollPos = (0, exports.getScrollPositionForCursorOnLeftEdge)({
83
- nextFrame: frame,
84
- durationInFrames,
85
- });
86
- const needsToScrollLeft = scrollPos <=
87
- (0, exports.getScrollPositionForCursorOnLeftEdge)({
88
- nextFrame: currentFrameLeft,
89
- durationInFrames,
90
- });
91
- if (needsToScrollLeft) {
92
- (0, exports.scrollToTimelineXOffset)(scrollPos);
93
- }
94
- }
95
- if (direction === 'fit-right') {
96
- const currentFrameRight = calculateFrameWhileScrollingRight({
97
- durationInFrames,
98
- scrollLeft: scrollLeft,
99
- width,
100
- });
101
- const scrollPos = (0, exports.getScrollPositionForCursorOnRightEdge)({
102
- nextFrame: frame,
103
- durationInFrames,
104
- });
105
- const needsToScrollRight = scrollPos >=
106
- (0, exports.getScrollPositionForCursorOnRightEdge)({
107
- nextFrame: currentFrameRight,
108
- durationInFrames,
109
- });
110
- if (needsToScrollRight) {
111
- (0, exports.scrollToTimelineXOffset)(scrollPos);
112
- }
113
- }
114
- if (direction === 'page-right' || direction === 'page-left') {
115
- if (!(0, exports.isCursorInViewport)({ frame, durationInFrames })) {
116
- (0, exports.scrollToTimelineXOffset)(direction === 'page-left'
117
- ? (0, exports.getScrollPositionForCursorOnRightEdge)({
118
- nextFrame: frame,
119
- durationInFrames,
120
- })
121
- : (0, exports.getScrollPositionForCursorOnLeftEdge)({
122
- nextFrame: frame,
123
- durationInFrames,
124
- }));
125
- }
126
- }
127
- if (direction === 'center') {
128
- const scrollPosOnRightEdge = (0, exports.getScrollPositionForCursorOnRightEdge)({
129
- nextFrame: frame,
130
- durationInFrames,
131
- });
132
- const scrollPosOnLeftEdge = (0, exports.getScrollPositionForCursorOnLeftEdge)({
133
- nextFrame: frame,
134
- durationInFrames,
135
- });
136
- (0, exports.scrollToTimelineXOffset)((scrollPosOnLeftEdge + scrollPosOnRightEdge) / 2);
137
- }
138
- };
139
- exports.ensureFrameIsInViewport = ensureFrameIsInViewport;
140
- const scrollToTimelineXOffset = (scrollPos) => {
141
- var _a;
142
- (_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scroll({
143
- left: scrollPos,
144
- });
145
- };
146
- exports.scrollToTimelineXOffset = scrollToTimelineXOffset;
147
- const getScrollPositionForCursorOnLeftEdge = ({ nextFrame, durationInFrames, }) => {
148
- const frameIncrement = (0, exports.getFrameIncrement)(durationInFrames);
149
- const scrollPos = frameIncrement * nextFrame;
150
- return scrollPos;
151
- };
152
- exports.getScrollPositionForCursorOnLeftEdge = getScrollPositionForCursorOnLeftEdge;
153
- const getScrollPositionForCursorOnRightEdge = ({ nextFrame, durationInFrames, }) => {
154
- var _a, _b;
155
- const frameIncrement = (0, exports.getFrameIncrement)(durationInFrames);
156
- const framesRemaining = durationInFrames - 1 - nextFrame;
157
- const fromRight = framesRemaining * frameIncrement + timeline_layout_1.TIMELINE_PADDING;
158
- const scrollPos = ((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) -
159
- fromRight -
160
- ((_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) +
161
- timeline_layout_1.TIMELINE_PADDING +
162
- 4; // clearfix;
163
- return scrollPos;
164
- };
165
- exports.getScrollPositionForCursorOnRightEdge = getScrollPositionForCursorOnRightEdge;
166
- const getFrameIncrement = (durationInFrames) => {
167
- var _a, _b;
168
- const width = (_b = (_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollWidth) !== null && _b !== void 0 ? _b : 0;
169
- return ((width - timeline_layout_1.TIMELINE_PADDING * 2) /
170
- (durationInFrames - 1));
171
- };
172
- exports.getFrameIncrement = getFrameIncrement;
173
- const getFrameWhileScrollingRight = ({ durationInFrames, width, }) => {
174
- var _a, _b;
175
- const nextFrame = calculateFrameWhileScrollingRight({
176
- durationInFrames,
177
- width,
178
- scrollLeft: ((_a = timeline_refs_1.scrollableRef.current) === null || _a === void 0 ? void 0 : _a.scrollLeft) + exports.SCROLL_INCREMENT,
179
- });
180
- const currentFrame = calculateFrameWhileScrollingRight({
181
- durationInFrames,
182
- width,
183
- scrollLeft: (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.scrollLeft,
184
- });
185
- // Should scroll by at least 1 frame, but not overshoot duration
186
- return Math.min(durationInFrames - 1, Math.max(nextFrame, currentFrame + 1));
187
- };
188
- exports.getFrameWhileScrollingRight = getFrameWhileScrollingRight;
189
- const getFrameFromX = ({ clientX, durationInFrames, width, extrapolate, }) => {
190
- var _a;
191
- const pos = clientX - timeline_layout_1.TIMELINE_PADDING;
192
- const frame = Math.round((0, remotion_1.interpolate)(pos, [0, width - timeline_layout_1.TIMELINE_PADDING * 2], [0, (_a = durationInFrames - 1) !== null && _a !== void 0 ? _a : 0], {
193
- extrapolateLeft: extrapolate,
194
- extrapolateRight: extrapolate,
195
- }));
196
- return frame;
197
- };
198
- exports.getFrameFromX = getFrameFromX;
199
- const zoomAndPreserveCursor = ({ oldZoom, newZoom, currentFrame, currentDurationInFrames, }) => {
200
- var _a, _b, _c;
201
- const ratio = newZoom / oldZoom;
202
- if (ratio === 1) {
203
- return;
204
- }
205
- const { current } = timeline_refs_1.scrollableRef;
206
- if (!current) {
207
- return;
208
- }
209
- const frameIncrement = (0, exports.getFrameIncrement)(currentDurationInFrames);
210
- const prevCursorPosition = frameIncrement * currentFrame + timeline_layout_1.TIMELINE_PADDING;
211
- const newCursorPosition = ratio * (prevCursorPosition - timeline_layout_1.TIMELINE_PADDING) + timeline_layout_1.TIMELINE_PADDING;
212
- current.scrollLeft += newCursorPosition - prevCursorPosition;
213
- (_a = TimelineSlider_1.redrawTimelineSliderFast.current) === null || _a === void 0 ? void 0 : _a.draw(currentFrame, ((_c = (_b = timeline_refs_1.scrollableRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) !== null && _c !== void 0 ? _c : 0) * ratio);
214
- };
215
- exports.zoomAndPreserveCursor = zoomAndPreserveCursor;
@@ -3,7 +3,7 @@ export declare const TIMELINE_MIN_ZOOM = 1;
3
3
  export declare const TIMELINE_MAX_ZOOM = 5;
4
4
  export declare const TimelineZoomCtx: React.Context<{
5
5
  zoom: number;
6
- setZoom: (prev: (prevZoom: number) => number) => void;
6
+ setZoom: React.Dispatch<React.SetStateAction<number>>;
7
7
  }>;
8
8
  export declare const TimelineZoomContext: React.FC<{
9
9
  children: React.ReactNode;
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TimelineZoomContext = exports.TimelineZoomCtx = exports.TIMELINE_MAX_ZOOM = exports.TIMELINE_MIN_ZOOM = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const imperative_state_1 = require("../components/Timeline/imperative-state");
7
- const timeline_scroll_logic_1 = require("../components/Timeline/timeline-scroll-logic");
8
6
  exports.TIMELINE_MIN_ZOOM = 1;
9
7
  exports.TIMELINE_MAX_ZOOM = 5;
10
8
  exports.TimelineZoomCtx = (0, react_1.createContext)({
@@ -18,19 +16,7 @@ const TimelineZoomContext = ({ children }) => {
18
16
  const value = (0, react_1.useMemo)(() => {
19
17
  return {
20
18
  zoom,
21
- setZoom: (callback) => {
22
- setZoom((prevZoom) => {
23
- const newZoomWithFloatingPointErrors = Math.min(exports.TIMELINE_MAX_ZOOM, Math.max(exports.TIMELINE_MIN_ZOOM, callback(prevZoom)));
24
- const newZoom = Math.round(newZoomWithFloatingPointErrors * 10) / 10;
25
- (0, timeline_scroll_logic_1.zoomAndPreserveCursor)({
26
- oldZoom: prevZoom,
27
- newZoom,
28
- currentDurationInFrames: (0, imperative_state_1.getCurrentDuration)(),
29
- currentFrame: (0, imperative_state_1.getCurrentFrame)(),
30
- });
31
- return newZoom;
32
- });
33
- },
19
+ setZoom,
34
20
  };
35
21
  }, [zoom]);
36
22
  return ((0, jsx_runtime_1.jsx)(exports.TimelineZoomCtx.Provider, { value: value, children: children }));
@@ -0,0 +1,11 @@
1
+ import { RenderStep } from './step';
2
+ export declare const prepareEntryPoint: ({ file, otherSteps, publicPath, outDir, }: {
3
+ file: string;
4
+ otherSteps: RenderStep[];
5
+ outDir: string | null;
6
+ publicPath: string | null;
7
+ }) => Promise<{
8
+ urlOrBundle: string;
9
+ steps: RenderStep[];
10
+ shouldDelete: boolean;
11
+ }>;
@@ -0,0 +1,36 @@
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.prepareEntryPoint = void 0;
7
+ const renderer_1 = require("@remotion/renderer");
8
+ const promises_1 = require("fs/promises");
9
+ const path_1 = __importDefault(require("path"));
10
+ const process_1 = require("process");
11
+ const log_1 = require("./log");
12
+ const setup_cache_1 = require("./setup-cache");
13
+ const prepareEntryPoint = async ({ file, otherSteps, publicPath, outDir, }) => {
14
+ if (renderer_1.RenderInternals.isServeUrl(file)) {
15
+ return { urlOrBundle: file, steps: otherSteps, shouldDelete: false };
16
+ }
17
+ const joined = path_1.default.resolve(process.cwd(), file);
18
+ try {
19
+ const stats = await (0, promises_1.stat)(joined);
20
+ if (stats.isDirectory()) {
21
+ return { urlOrBundle: joined, steps: otherSteps, shouldDelete: false };
22
+ }
23
+ }
24
+ catch (err) {
25
+ log_1.Log.error(`No file or directory exists at ${joined}.`);
26
+ (0, process_1.exit)(1);
27
+ }
28
+ const urlOrBundle = await (0, setup_cache_1.bundleOnCli)({
29
+ fullPath: joined,
30
+ steps: ['bundling', ...otherSteps],
31
+ outDir,
32
+ publicPath,
33
+ });
34
+ return { urlOrBundle, steps: ['bundling', ...otherSteps], shouldDelete: true };
35
+ };
36
+ exports.prepareEntryPoint = prepareEntryPoint;
@@ -3,4 +3,5 @@ export declare const Button: React.FC<{
3
3
  onClick: () => void;
4
4
  disabled?: boolean;
5
5
  children: React.ReactNode;
6
+ style?: React.CSSProperties;
6
7
  }>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Button = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const colors_1 = require("../../../editor/helpers/colors");
6
7
  const button = {
7
8
  border: `1px solid ${colors_1.INPUT_BORDER_COLOR_UNHOVERED}`,
@@ -18,7 +19,13 @@ const buttonContainer = {
18
19
  cursor: 'pointer',
19
20
  fontSize: 14,
20
21
  };
21
- const Button = ({ children, onClick, disabled }) => {
22
- return ((0, jsx_runtime_1.jsx)("button", { style: button, type: "button", disabled: disabled, onClick: onClick, children: (0, jsx_runtime_1.jsx)("div", { style: buttonContainer, children: children }) }));
22
+ const Button = ({ children, onClick, disabled, style }) => {
23
+ const combined = (0, react_1.useMemo)(() => {
24
+ return {
25
+ ...button,
26
+ ...(style !== null && style !== void 0 ? style : {}),
27
+ };
28
+ }, [style]);
29
+ return ((0, jsx_runtime_1.jsx)("button", { style: combined, type: "button", disabled: disabled, onClick: onClick, children: (0, jsx_runtime_1.jsx)("div", { style: buttonContainer, children: children }) }));
23
30
  };
24
31
  exports.Button = Button;
@@ -6,6 +6,10 @@ const react_1 = require("react");
6
6
  const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
7
7
  const Button_1 = require("./Button");
8
8
  const ShortcutHint_1 = require("./ShortcutHint");
9
+ const buttonStyle = {
10
+ backgroundColor: 'var(--blue)',
11
+ color: 'white',
12
+ };
9
13
  const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
10
14
  const openLink = (0, react_1.useCallback)(() => {
11
15
  window.open(link.url, '_blank');
@@ -26,6 +30,6 @@ const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
26
30
  });
27
31
  return () => unregister();
28
32
  }, [canHaveKeyboardShortcuts, openLink, registerKeybinding]);
29
- return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { onClick: openLink, children: ["Help: ", '"', link.title, '"', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "h", cmdOrCtrl: true })) : null] }));
33
+ return ((0, jsx_runtime_1.jsxs)(Button_1.Button, { style: buttonStyle, onClick: openLink, children: ["Help: ", '"', link.title, '"', canHaveKeyboardShortcuts ? ((0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "h", cmdOrCtrl: true })) : null] }));
30
34
  };
31
35
  exports.HelpLink = HelpLink;
@@ -14,6 +14,30 @@ const getHelpLink = (message) => {
14
14
  url: 'https://remotion.dev/docs/wrong-composition-mount',
15
15
  };
16
16
  }
17
+ if (message.includes('https://remotion.dev/docs/staticfile-relative-paths')) {
18
+ return {
19
+ title: 'staticFile() relative paths',
20
+ url: 'https://remotion.dev/docs/staticfile-relative-paths',
21
+ };
22
+ }
23
+ if (message.includes('https://remotion.dev/docs/staticfile-remote-urls')) {
24
+ return {
25
+ title: 'staticFile() remote URLs',
26
+ url: 'https://remotion.dev/docs/staticfile-remote-urls',
27
+ };
28
+ }
29
+ if (message.includes('https://remotion.dev/docs/non-seekable-media')) {
30
+ return {
31
+ title: 'Non-seekable media',
32
+ url: 'https://remotion.dev/docs/non-seekable-media',
33
+ };
34
+ }
35
+ if (message.includes('https://remotion.dev/docs/media-playback-error')) {
36
+ return {
37
+ title: 'Media playback error',
38
+ url: 'https://remotion.dev/docs/media-playback-error',
39
+ };
40
+ }
17
41
  return null;
18
42
  };
19
43
  exports.getHelpLink = getHelpLink;
@@ -0,0 +1,39 @@
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
+ * MIT License
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
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 function registerExportsForReactRefresh(moduleExports: unknown, moduleID: unknown): void;
28
+ declare function isReactRefreshBoundary(moduleExports: unknown): boolean;
29
+ declare function shouldInvalidateReactRefreshBoundary(prevExports: unknown, nextExports: unknown): boolean;
30
+ declare function getRefreshBoundarySignature(moduleExports: unknown): any[];
31
+ declare function scheduleUpdate(): void;
32
+ declare const _default: {
33
+ registerExportsForReactRefresh: typeof registerExportsForReactRefresh;
34
+ isReactRefreshBoundary: typeof isReactRefreshBoundary;
35
+ shouldInvalidateReactRefreshBoundary: typeof shouldInvalidateReactRefreshBoundary;
36
+ getRefreshBoundarySignature: typeof getRefreshBoundarySignature;
37
+ scheduleUpdate: typeof scheduleUpdate;
38
+ };
39
+ export default _default;
@@ -0,0 +1,145 @@
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
+ /**
6
+ * MIT License
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ * of this software and associated documentation files (the "Software"), to deal
12
+ * in the Software without restriction, including without limitation the rights
13
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ * copies of the Software, and to permit persons to whom the Software is
15
+ * furnished to do so, subject to the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice shall be included in all
18
+ * copies or substantial portions of the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ * SOFTWARE.
27
+ */
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ // This file is copied from the Metro JavaScript bundler, with minor tweaks for
30
+ // webpack compatibility.
31
+ //
32
+ // https://github.com/facebook/metro/blob/d6b9685c730d0d63577db40f41369157f28dfa3a/packages/metro/src/lib/polyfills/require.js
33
+ const RefreshRuntime = require('react-refresh/runtime');
34
+ function isSafeExport(key) {
35
+ return (key === '__esModule' ||
36
+ key === '__N_SSG' ||
37
+ key === '__N_SSP' ||
38
+ key === 'config');
39
+ }
40
+ function registerExportsForReactRefresh(moduleExports, moduleID) {
41
+ RefreshRuntime.register(moduleExports, moduleID + ' %exports%');
42
+ if (moduleExports === null ||
43
+ moduleExports === undefined ||
44
+ typeof moduleExports !== 'object') {
45
+ // Exit if we can't iterate over exports.
46
+ // (This is important for legacy environments.)
47
+ return;
48
+ }
49
+ for (const key in moduleExports) {
50
+ if (isSafeExport(key)) {
51
+ continue;
52
+ }
53
+ // @ts-expect-error
54
+ const exportValue = moduleExports[key];
55
+ const typeID = moduleID + ' %exports% ' + key;
56
+ RefreshRuntime.register(exportValue, typeID);
57
+ }
58
+ }
59
+ function isReactRefreshBoundary(moduleExports) {
60
+ if (RefreshRuntime.isLikelyComponentType(moduleExports)) {
61
+ return true;
62
+ }
63
+ if (moduleExports === null ||
64
+ moduleExports === undefined ||
65
+ typeof moduleExports !== 'object') {
66
+ // Exit if we can't iterate over exports.
67
+ return false;
68
+ }
69
+ let hasExports = false;
70
+ let areAllExportsComponents = true;
71
+ for (const key in moduleExports) {
72
+ hasExports = true;
73
+ if (isSafeExport(key)) {
74
+ continue;
75
+ }
76
+ // @ts-expect-error
77
+ const exportValue = moduleExports[key];
78
+ if (!RefreshRuntime.isLikelyComponentType(exportValue)) {
79
+ areAllExportsComponents = false;
80
+ }
81
+ }
82
+ return hasExports && areAllExportsComponents;
83
+ }
84
+ function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
85
+ const prevSignature = getRefreshBoundarySignature(prevExports);
86
+ const nextSignature = getRefreshBoundarySignature(nextExports);
87
+ if (prevSignature.length !== nextSignature.length) {
88
+ return true;
89
+ }
90
+ for (let i = 0; i < nextSignature.length; i++) {
91
+ if (prevSignature[i] !== nextSignature[i]) {
92
+ return true;
93
+ }
94
+ }
95
+ return false;
96
+ }
97
+ function getRefreshBoundarySignature(moduleExports) {
98
+ const signature = [];
99
+ signature.push(RefreshRuntime.getFamilyByType(moduleExports));
100
+ if (moduleExports === null ||
101
+ moduleExports === undefined ||
102
+ typeof moduleExports !== 'object') {
103
+ // Exit if we can't iterate over exports.
104
+ // (This is important for legacy environments.)
105
+ return signature;
106
+ }
107
+ for (const key in moduleExports) {
108
+ if (isSafeExport(key)) {
109
+ continue;
110
+ }
111
+ // @ts-expect-error
112
+ const exportValue = moduleExports[key];
113
+ signature.push(key);
114
+ signature.push(RefreshRuntime.getFamilyByType(exportValue));
115
+ }
116
+ return signature;
117
+ }
118
+ function scheduleUpdate() {
119
+ var _a, _b;
120
+ const execute = () => {
121
+ try {
122
+ RefreshRuntime.performReactRefresh();
123
+ }
124
+ catch (err) {
125
+ console.warn('Warning: Failed to re-render. We will retry on the next Fast Refresh event.\n' +
126
+ err);
127
+ }
128
+ };
129
+ // Only trigger refresh if the webpack HMR state is idle
130
+ if (((_a = module.hot) === null || _a === void 0 ? void 0 : _a.status()) === 'idle') {
131
+ return;
132
+ }
133
+ (_b = module.hot) === null || _b === void 0 ? void 0 : _b.addStatusHandler((status) => {
134
+ if (status === 'idle') {
135
+ execute();
136
+ }
137
+ });
138
+ }
139
+ exports.default = {
140
+ registerExportsForReactRefresh,
141
+ isReactRefreshBoundary,
142
+ shouldInvalidateReactRefreshBoundary,
143
+ getRefreshBoundarySignature,
144
+ scheduleUpdate,
145
+ };
@@ -0,0 +1,30 @@
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
+ import webpack from 'webpack';
28
+ export declare class ReactFreshWebpackPlugin {
29
+ apply(compiler: webpack.Compiler): void;
30
+ }