remotion 3.1.5 → 3.1.8

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 (256) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/dist/Composition.js +1 -1
  3. package/dist/CompositionManager.d.ts +0 -6
  4. package/dist/Still.d.ts +1 -0
  5. package/dist/audio/Audio.d.ts +2 -2
  6. package/dist/audio/AudioForDevelopment.d.ts +2 -2
  7. package/dist/audio/AudioForRendering.d.ts +1 -1
  8. package/dist/audio/is-in-strict-mode.d.ts +1 -0
  9. package/dist/audio/is-in-strict-mode.js +12 -0
  10. package/dist/config/index.d.ts +6 -2
  11. package/dist/config/index.js +5 -0
  12. package/dist/config/log.d.ts +1 -1
  13. package/dist/config/loop.d.ts +3 -2
  14. package/dist/config/loop.js +10 -7
  15. package/dist/config/skip-n-frames.d.ts +2 -0
  16. package/dist/config/skip-n-frames.js +12 -0
  17. package/dist/config.d.ts +188 -0
  18. package/dist/config.js +21 -0
  19. package/dist/delay-render.js +4 -4
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +3 -2
  22. package/dist/internals.d.ts +10 -93
  23. package/dist/internals.js +3 -93
  24. package/dist/preload.d.ts +7 -0
  25. package/dist/preload.js +39 -0
  26. package/dist/spring/measure-spring.js +1 -1
  27. package/dist/validation/validate-fps.d.ts +1 -2
  28. package/dist/validation/validate-fps.js +3 -3
  29. package/dist/video/Video.d.ts +2 -2
  30. package/dist/video/VideoForDevelopment.d.ts +2 -2
  31. package/dist/video/VideoForRendering.d.ts +1 -1
  32. package/package.json +2 -2
  33. package/dist/AbsoluteFill.d.ts.map +0 -1
  34. package/dist/AbsoluteFill.js.map +0 -1
  35. package/dist/AssetRoot.d.ts +0 -11
  36. package/dist/AssetRoot.js +0 -38
  37. package/dist/Composition.d.ts.map +0 -1
  38. package/dist/Composition.js.map +0 -1
  39. package/dist/CompositionManager.d.ts.map +0 -1
  40. package/dist/CompositionManager.js.map +0 -1
  41. package/dist/IFrame.d.ts.map +0 -1
  42. package/dist/IFrame.js.map +0 -1
  43. package/dist/Img.d.ts.map +0 -1
  44. package/dist/Img.js.map +0 -1
  45. package/dist/RemotionRoot.d.ts.map +0 -1
  46. package/dist/RemotionRoot.js.map +0 -1
  47. package/dist/Still.d.ts.map +0 -1
  48. package/dist/Still.js.map +0 -1
  49. package/dist/TimelineRoot.d.ts +0 -5
  50. package/dist/TimelineRoot.js +0 -51
  51. package/dist/absolute-src.d.ts.map +0 -1
  52. package/dist/absolute-src.js.map +0 -1
  53. package/dist/asset-types.d.ts.map +0 -1
  54. package/dist/asset-types.js.map +0 -1
  55. package/dist/audio/Audio.d.ts.map +0 -1
  56. package/dist/audio/Audio.js.map +0 -1
  57. package/dist/audio/AudioForDevelopment.d.ts.map +0 -1
  58. package/dist/audio/AudioForDevelopment.js.map +0 -1
  59. package/dist/audio/AudioForRendering.d.ts.map +0 -1
  60. package/dist/audio/AudioForRendering.js.map +0 -1
  61. package/dist/audio/index.d.ts.map +0 -1
  62. package/dist/audio/index.js.map +0 -1
  63. package/dist/audio/props.d.ts.map +0 -1
  64. package/dist/audio/props.js.map +0 -1
  65. package/dist/audio/shared-audio-tags.d.ts.map +0 -1
  66. package/dist/audio/shared-audio-tags.js.map +0 -1
  67. package/dist/audio/use-audio-frame.d.ts.map +0 -1
  68. package/dist/audio/use-audio-frame.js.map +0 -1
  69. package/dist/bezier.d.ts.map +0 -1
  70. package/dist/bezier.js.map +0 -1
  71. package/dist/compress-assets.d.ts.map +0 -1
  72. package/dist/compress-assets.js.map +0 -1
  73. package/dist/config/browser-executable.d.ts.map +0 -1
  74. package/dist/config/browser-executable.js.map +0 -1
  75. package/dist/config/browser.d.ts.map +0 -1
  76. package/dist/config/browser.js.map +0 -1
  77. package/dist/config/chromium-flags.d.ts.map +0 -1
  78. package/dist/config/chromium-flags.js.map +0 -1
  79. package/dist/config/codec.d.ts.map +0 -1
  80. package/dist/config/codec.js.map +0 -1
  81. package/dist/config/concurrency.d.ts.map +0 -1
  82. package/dist/config/concurrency.js.map +0 -1
  83. package/dist/config/crf.d.ts.map +0 -1
  84. package/dist/config/crf.js.map +0 -1
  85. package/dist/config/env-file.d.ts.map +0 -1
  86. package/dist/config/env-file.js.map +0 -1
  87. package/dist/config/ffmpeg-executable.d.ts.map +0 -1
  88. package/dist/config/ffmpeg-executable.js.map +0 -1
  89. package/dist/config/frame-range.d.ts.map +0 -1
  90. package/dist/config/frame-range.js.map +0 -1
  91. package/dist/config/image-format.d.ts.map +0 -1
  92. package/dist/config/image-format.js.map +0 -1
  93. package/dist/config/image-sequence.d.ts.map +0 -1
  94. package/dist/config/image-sequence.js.map +0 -1
  95. package/dist/config/index.d.ts.map +0 -1
  96. package/dist/config/index.js.map +0 -1
  97. package/dist/config/input-props.d.ts.map +0 -1
  98. package/dist/config/input-props.js.map +0 -1
  99. package/dist/config/log.d.ts.map +0 -1
  100. package/dist/config/log.js.map +0 -1
  101. package/dist/config/max-timeline-tracks.d.ts.map +0 -1
  102. package/dist/config/max-timeline-tracks.js.map +0 -1
  103. package/dist/config/override-webpack.d.ts.map +0 -1
  104. package/dist/config/override-webpack.js.map +0 -1
  105. package/dist/config/overwrite.d.ts.map +0 -1
  106. package/dist/config/overwrite.js.map +0 -1
  107. package/dist/config/pixel-format.d.ts.map +0 -1
  108. package/dist/config/pixel-format.js.map +0 -1
  109. package/dist/config/preview-server.d.ts.map +0 -1
  110. package/dist/config/preview-server.js.map +0 -1
  111. package/dist/config/prores-profile.d.ts.map +0 -1
  112. package/dist/config/prores-profile.js.map +0 -1
  113. package/dist/config/quality.d.ts.map +0 -1
  114. package/dist/config/quality.js.map +0 -1
  115. package/dist/config/scale.d.ts.map +0 -1
  116. package/dist/config/scale.js.map +0 -1
  117. package/dist/config/still-frame.d.ts.map +0 -1
  118. package/dist/config/still-frame.js.map +0 -1
  119. package/dist/config/timeout.d.ts.map +0 -1
  120. package/dist/config/timeout.js.map +0 -1
  121. package/dist/config/webpack-caching.d.ts.map +0 -1
  122. package/dist/config/webpack-caching.js.map +0 -1
  123. package/dist/default-css.d.ts.map +0 -1
  124. package/dist/default-css.js.map +0 -1
  125. package/dist/delay-render.d.ts.map +0 -1
  126. package/dist/delay-render.js.map +0 -1
  127. package/dist/easing.d.ts.map +0 -1
  128. package/dist/easing.js.map +0 -1
  129. package/dist/feature-flags.d.ts.map +0 -1
  130. package/dist/feature-flags.js.map +0 -1
  131. package/dist/freeze.d.ts.map +0 -1
  132. package/dist/freeze.js.map +0 -1
  133. package/dist/get-asset-file-name.d.ts.map +0 -1
  134. package/dist/get-asset-file-name.js.map +0 -1
  135. package/dist/get-environment.d.ts.map +0 -1
  136. package/dist/get-environment.js.map +0 -1
  137. package/dist/get-preview-dom-element.d.ts.map +0 -1
  138. package/dist/get-preview-dom-element.js.map +0 -1
  139. package/dist/get-timeline-clip-name.d.ts.map +0 -1
  140. package/dist/get-timeline-clip-name.js.map +0 -1
  141. package/dist/index.d.ts.map +0 -1
  142. package/dist/index.js.map +0 -1
  143. package/dist/initial-frame.d.ts.map +0 -1
  144. package/dist/initial-frame.js.map +0 -1
  145. package/dist/internals.d.ts.map +0 -1
  146. package/dist/internals.js.map +0 -1
  147. package/dist/interpolate.d.ts.map +0 -1
  148. package/dist/interpolate.js.map +0 -1
  149. package/dist/interpolateColors.d.ts.map +0 -1
  150. package/dist/interpolateColors.js.map +0 -1
  151. package/dist/is-approximately-the-same.d.ts.map +0 -1
  152. package/dist/is-approximately-the-same.js.map +0 -1
  153. package/dist/is-audio-codec.d.ts.map +0 -1
  154. package/dist/is-audio-codec.js.map +0 -1
  155. package/dist/loop/index.d.ts.map +0 -1
  156. package/dist/loop/index.js.map +0 -1
  157. package/dist/multiple-versions-warning.d.ts.map +0 -1
  158. package/dist/multiple-versions-warning.js.map +0 -1
  159. package/dist/nonce.d.ts.map +0 -1
  160. package/dist/nonce.js.map +0 -1
  161. package/dist/perf/index.d.ts.map +0 -1
  162. package/dist/perf/index.js.map +0 -1
  163. package/dist/play-and-handle-not-allowed-error.d.ts.map +0 -1
  164. package/dist/play-and-handle-not-allowed-error.js.map +0 -1
  165. package/dist/random.d.ts.map +0 -1
  166. package/dist/random.js.map +0 -1
  167. package/dist/register-root.d.ts.map +0 -1
  168. package/dist/register-root.js.map +0 -1
  169. package/dist/sequencing/index.d.ts.map +0 -1
  170. package/dist/sequencing/index.js.map +0 -1
  171. package/dist/series/flatten-children.d.ts.map +0 -1
  172. package/dist/series/flatten-children.js.map +0 -1
  173. package/dist/series/index.d.ts.map +0 -1
  174. package/dist/series/index.js.map +0 -1
  175. package/dist/setup-env-variables.d.ts.map +0 -1
  176. package/dist/setup-env-variables.js.map +0 -1
  177. package/dist/spring/index.d.ts.map +0 -1
  178. package/dist/spring/index.js.map +0 -1
  179. package/dist/spring/measure-spring.d.ts.map +0 -1
  180. package/dist/spring/measure-spring.js.map +0 -1
  181. package/dist/spring/spring-utils.d.ts.map +0 -1
  182. package/dist/spring/spring-utils.js.map +0 -1
  183. package/dist/static-file.d.ts.map +0 -1
  184. package/dist/static-file.js.map +0 -1
  185. package/dist/timeline-inout-position-state.d.ts.map +0 -1
  186. package/dist/timeline-inout-position-state.js.map +0 -1
  187. package/dist/timeline-position-state.d.ts.map +0 -1
  188. package/dist/timeline-position-state.js.map +0 -1
  189. package/dist/timeout.d.ts.map +0 -1
  190. package/dist/timeout.js.map +0 -1
  191. package/dist/truthy.d.ts.map +0 -1
  192. package/dist/truthy.js.map +0 -1
  193. package/dist/use-frame.d.ts.map +0 -1
  194. package/dist/use-frame.js.map +0 -1
  195. package/dist/use-lazy-component.d.ts.map +0 -1
  196. package/dist/use-lazy-component.js.map +0 -1
  197. package/dist/use-media-in-timeline.d.ts.map +0 -1
  198. package/dist/use-media-in-timeline.js.map +0 -1
  199. package/dist/use-media-playback.d.ts.map +0 -1
  200. package/dist/use-media-playback.js.map +0 -1
  201. package/dist/use-media-tag-volume.d.ts.map +0 -1
  202. package/dist/use-media-tag-volume.js.map +0 -1
  203. package/dist/use-sync-volume-with-media-tag.d.ts.map +0 -1
  204. package/dist/use-sync-volume-with-media-tag.js.map +0 -1
  205. package/dist/use-unsafe-video-config.d.ts.map +0 -1
  206. package/dist/use-unsafe-video-config.js.map +0 -1
  207. package/dist/use-video-config.d.ts.map +0 -1
  208. package/dist/use-video-config.js.map +0 -1
  209. package/dist/use-video.d.ts.map +0 -1
  210. package/dist/use-video.js.map +0 -1
  211. package/dist/validate-media-props.d.ts.map +0 -1
  212. package/dist/validate-media-props.js.map +0 -1
  213. package/dist/validate-start-from-props.d.ts.map +0 -1
  214. package/dist/validate-start-from-props.js.map +0 -1
  215. package/dist/validation/validate-composition-id.d.ts.map +0 -1
  216. package/dist/validation/validate-composition-id.js.map +0 -1
  217. package/dist/validation/validate-concurrency.d.ts +0 -1
  218. package/dist/validation/validate-concurrency.js +0 -21
  219. package/dist/validation/validate-dimensions.d.ts.map +0 -1
  220. package/dist/validation/validate-dimensions.js.map +0 -1
  221. package/dist/validation/validate-duration-in-frames.d.ts.map +0 -1
  222. package/dist/validation/validate-duration-in-frames.js.map +0 -1
  223. package/dist/validation/validate-folder-name.d.ts.map +0 -1
  224. package/dist/validation/validate-folder-name.js.map +0 -1
  225. package/dist/validation/validate-fps.d.ts.map +0 -1
  226. package/dist/validation/validate-fps.js.map +0 -1
  227. package/dist/validation/validate-frame.d.ts.map +0 -1
  228. package/dist/validation/validate-frame.js.map +0 -1
  229. package/dist/validation/validate-image-format.d.ts.map +0 -1
  230. package/dist/validation/validate-image-format.js.map +0 -1
  231. package/dist/validation/validate-opengl-renderer.d.ts.map +0 -1
  232. package/dist/validation/validate-opengl-renderer.js.map +0 -1
  233. package/dist/validation/validate-quality.d.ts.map +0 -1
  234. package/dist/validation/validate-quality.js.map +0 -1
  235. package/dist/video/Video.d.ts.map +0 -1
  236. package/dist/video/Video.js.map +0 -1
  237. package/dist/video/VideoForDevelopment.d.ts.map +0 -1
  238. package/dist/video/VideoForDevelopment.js.map +0 -1
  239. package/dist/video/VideoForRendering.d.ts.map +0 -1
  240. package/dist/video/VideoForRendering.js.map +0 -1
  241. package/dist/video/get-current-time.d.ts.map +0 -1
  242. package/dist/video/get-current-time.js.map +0 -1
  243. package/dist/video/index.d.ts.map +0 -1
  244. package/dist/video/index.js.map +0 -1
  245. package/dist/video/props.d.ts.map +0 -1
  246. package/dist/video/props.js.map +0 -1
  247. package/dist/video-config.d.ts.map +0 -1
  248. package/dist/video-config.js.map +0 -1
  249. package/dist/volume-position-state.d.ts.map +0 -1
  250. package/dist/volume-position-state.js.map +0 -1
  251. package/dist/volume-prop.d.ts.map +0 -1
  252. package/dist/volume-prop.js.map +0 -1
  253. package/dist/warn-about-non-seekable-media.d.ts.map +0 -1
  254. package/dist/warn-about-non-seekable-media.js.map +0 -1
  255. package/dist/wrap-remotion-context.d.ts.map +0 -1
  256. package/dist/wrap-remotion-context.js.map +0 -1
@@ -1,110 +1,41 @@
1
+ import type { Configuration } from 'webpack';
1
2
  import type { CompProps } from './Composition';
2
- import type { CompositionManagerContext, RenderAssetInfo, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
3
- import * as AssetCompression from './compress-assets';
4
- import * as Logging from './config/log';
5
- import type { WebpackOverrideFn } from './config/override-webpack';
6
- import type { ProResProfile } from './config/prores-profile';
3
+ import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
7
4
  import * as CSSUtils from './default-css';
8
5
  import type { RemotionEnvironment } from './get-environment';
9
- import * as perf from './perf';
10
- import type { SetTimelineInOutContextValue, TimelineInOutContextValue } from './timeline-inout-position-state';
11
6
  import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
7
+ import * as TimelinePosition from './timeline-position-state';
12
8
  import { truthy } from './truthy';
13
- import type { OpenGlRenderer } from './validation/validate-opengl-renderer';
14
9
  import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
15
10
  import { useRemotionContexts } from './wrap-remotion-context';
16
- declare const Timeline: {
17
- TimelineInOutContext: import("react").Context<TimelineInOutContextValue>;
18
- SetTimelineInOutContext: import("react").Context<SetTimelineInOutContextValue>;
19
- useTimelineInOutFramePosition: () => TimelineInOutContextValue;
20
- useTimelineSetInOutFramePosition: () => SetTimelineInOutContextValue;
21
- TimelineContext: import("react").Context<TimelineContextValue>;
22
- SetTimelineContext: import("react").Context<SetTimelineContextValue>;
23
- useTimelinePosition: () => number;
24
- useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
25
- usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
26
- };
11
+ declare const Timeline: typeof TimelinePosition;
27
12
  export declare const Internals: {
28
- perf: typeof perf;
29
13
  useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
30
- Timeline: {
31
- TimelineInOutContext: import("react").Context<TimelineInOutContextValue>;
32
- SetTimelineInOutContext: import("react").Context<SetTimelineInOutContextValue>;
33
- useTimelineInOutFramePosition: () => TimelineInOutContextValue;
34
- useTimelineSetInOutFramePosition: () => SetTimelineInOutContextValue;
35
- TimelineContext: import("react").Context<TimelineContextValue>;
36
- SetTimelineContext: import("react").Context<SetTimelineContextValue>;
37
- useTimelinePosition: () => number;
38
- useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
39
- usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
40
- };
14
+ Timeline: typeof TimelinePosition;
41
15
  CompositionManager: import("react").Context<CompositionManagerContext>;
42
16
  RemotionRoot: import("react").FC<{
43
17
  children: import("react").ReactNode;
44
18
  }>;
45
19
  useVideo: () => TComposition<unknown> | null;
46
20
  getRoot: () => import("react").FC<{}> | null;
47
- getBrowserExecutable: () => import("./config/browser-executable").BrowserExecutable;
48
- getCustomFfmpegExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
49
- getCustomFfprobeExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
50
- getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
51
- getConcurrency: () => number | null;
52
- getRange: () => import("./config/frame-range").FrameRange | null;
53
- getShouldOverwrite: () => boolean;
54
- getOutputCodecOrUndefined: () => import("./config/codec").CodecOrUndefined;
55
- getWebpackOverrideFn: () => WebpackOverrideFn;
56
- getQuality: () => number | undefined;
57
- getAndValidateEveryNthFrame: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
58
- getAndValidateNumberOfGifLoops: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number | null;
59
- getScale: () => number;
60
- getShouldOutputImageSequence: (frameRange: import("./config/frame-range").FrameRange | null) => boolean;
61
- validateSelectedCrfAndCodecCombination: (crf: unknown, codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
62
- getFinalOutputCodec: ({ codec: inputCodec, fileExtension, emitWarning, }: {
63
- codec: import("./config/codec").CodecOrUndefined;
64
- fileExtension: string | null;
65
- emitWarning: boolean;
66
- }) => "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
67
21
  useMediaVolumeState: () => readonly [number, (u: number) => void];
68
22
  useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
69
- DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
70
- DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
71
- FEATURE_FLAG_FIREFOX_SUPPORT: boolean;
72
- DEFAULT_WEBPACK_CACHE_ENABLED: boolean;
73
- getBrowser: () => import("./config/browser").Browser | null;
74
- DEFAULT_BROWSER: import("./config/browser").Browser;
75
- getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
76
- getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
77
- setFrameRangeFromCli: (newFrameRange: string | number) => void;
78
- getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
79
- validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "none" | "png" | "jpeg") => "none" | "valid";
80
- validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
81
- validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
82
- validateNonNullImageFormat: (imageFormat: "none" | "png" | "jpeg") => void;
83
- getWebpackCaching: () => boolean;
84
23
  useLazyComponent: <T>(compProps: CompProps<T>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<T> & import("react").RefAttributes<import("react").Component<T, any, any>>) | import("react").PropsWithRef<T>> & {
85
24
  readonly _result: import("react").ComponentType<T>;
86
25
  };
87
26
  truthy: typeof truthy;
88
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
89
- Logging: typeof Logging;
90
27
  SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
91
28
  useRemotionContexts: typeof useRemotionContexts;
92
29
  RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
93
30
  CSSUtils: typeof CSSUtils;
94
31
  setupEnvVariables: () => void;
95
32
  ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
96
- getDotEnvLocation: () => string | null;
97
- getServerPort: () => number | undefined;
98
33
  MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
99
34
  SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
100
35
  validateDurationInFrames: (durationInFrames: number, component: string) => void;
101
- validateFps: (fps: number, location: string, codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null) => void;
36
+ validateFps: (fps: number, location: string, isGif: boolean) => void;
102
37
  validateDimension: (amount: number, nameOfProp: string, location: string) => void;
103
38
  getRemotionEnvironment: () => RemotionEnvironment;
104
- getProResProfile: () => "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined;
105
- setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
106
- validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", actualProResProfile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
107
- getMaxTimelineTracks: () => number;
108
39
  SharedAudioContext: import("react").Context<{
109
40
  registerAudio: (aud: import("./audio").RemotionAudioProps, audioId: string) => {
110
41
  id: number;
@@ -121,25 +52,8 @@ export declare const Internals: {
121
52
  numberOfAudioTags: number;
122
53
  children: import("react").ReactNode;
123
54
  }>;
124
- validateQuality: (q: number | undefined) => void;
125
- validateFrame: (frame: number, durationInFrames: number) => void;
126
- setStillFrame: (frame: number) => void;
127
- getStillFrame: () => number;
128
55
  invalidCompositionErrorMessage: string;
129
56
  isCompositionIdValid: (id: string) => RegExpMatchArray | null;
130
- DEFAULT_OVERWRITE: boolean;
131
- AssetCompression: typeof AssetCompression;
132
- defaultOverrideFunction: WebpackOverrideFn;
133
- DEFAULT_PUPPETEER_TIMEOUT: number;
134
- setupPuppeteerTimeout: () => void;
135
- setPuppeteerTimeout: (newPuppeteerTimeout: number) => void;
136
- getCurrentPuppeteerTimeout: () => number;
137
- getChromiumDisableWebSecurity: () => boolean;
138
- getIgnoreCertificateErrors: () => boolean;
139
- validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
140
- getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | null;
141
- getChromiumHeadlessMode: () => boolean;
142
- DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
143
57
  getPreviewDomElement: () => HTMLElement | null;
144
58
  compositionsRef: import("react").RefObject<{
145
59
  getCompositions: () => TCompMetadata[];
@@ -153,5 +67,8 @@ export declare const Internals: {
153
67
  children: import("react").ReactNode;
154
68
  }>;
155
69
  CanUseRemotionHooks: import("react").Context<boolean>;
70
+ enableLegacyRemotionConfig: () => void;
156
71
  };
157
- export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, TAsset, RenderAssetInfo, TimelineContextValue, SetTimelineContextValue, TimelineInOutContextValue, SetTimelineInOutContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, ProResProfile, OpenGlRenderer, };
72
+ declare type WebpackConfiguration = Configuration;
73
+ declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
74
+ export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
package/dist/internals.js CHANGED
@@ -24,50 +24,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Internals = void 0;
27
+ const config_1 = require("./config");
27
28
  const shared_audio_tags_1 = require("./audio/shared-audio-tags");
28
29
  const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
29
30
  const CompositionManager_1 = require("./CompositionManager");
30
- const AssetCompression = __importStar(require("./compress-assets"));
31
- const browser_1 = require("./config/browser");
32
- const browser_executable_1 = require("./config/browser-executable");
33
- const chromium_flags_1 = require("./config/chromium-flags");
34
- const codec_1 = require("./config/codec");
35
- const concurrency_1 = require("./config/concurrency");
36
- const crf_1 = require("./config/crf");
37
- const env_file_1 = require("./config/env-file");
38
- const every_nth_frame_1 = require("./config/every-nth-frame");
39
- const ffmpeg_executable_1 = require("./config/ffmpeg-executable");
40
- const frame_range_1 = require("./config/frame-range");
41
- const image_format_1 = require("./config/image-format");
42
- const image_sequence_1 = require("./config/image-sequence");
43
- const Logging = __importStar(require("./config/log"));
44
- const max_timeline_tracks_1 = require("./config/max-timeline-tracks");
45
- const number_of_gif_loops_1 = require("./config/number-of-gif-loops");
46
- const override_webpack_1 = require("./config/override-webpack");
47
- const overwrite_1 = require("./config/overwrite");
48
- const pixel_format_1 = require("./config/pixel-format");
49
- const preview_server_1 = require("./config/preview-server");
50
- const prores_profile_1 = require("./config/prores-profile");
51
- const quality_1 = require("./config/quality");
52
- const scale_1 = require("./config/scale");
53
- const still_frame_1 = require("./config/still-frame");
54
- const timeout_1 = require("./config/timeout");
55
- const webpack_caching_1 = require("./config/webpack-caching");
56
31
  const CSSUtils = __importStar(require("./default-css"));
57
32
  const delay_render_1 = require("./delay-render");
58
- const feature_flags_1 = require("./feature-flags");
59
33
  const get_environment_1 = require("./get-environment");
60
34
  const get_preview_dom_element_1 = require("./get-preview-dom-element");
61
- const is_audio_codec_1 = require("./is-audio-codec");
62
- const perf = __importStar(require("./perf"));
63
35
  const portal_node_1 = require("./portal-node");
64
36
  const register_root_1 = require("./register-root");
65
37
  const RemotionRoot_1 = require("./RemotionRoot");
66
38
  const Sequence_1 = require("./Sequence");
67
39
  const setup_env_variables_1 = require("./setup-env-variables");
68
- const TimelineInOutPosition = __importStar(require("./timeline-inout-position-state"));
69
40
  const TimelinePosition = __importStar(require("./timeline-position-state"));
70
- const timeout_2 = require("./timeout");
71
41
  const truthy_1 = require("./truthy");
72
42
  const use_current_frame_1 = require("./use-current-frame");
73
43
  const use_lazy_component_1 = require("./use-lazy-component");
@@ -77,100 +47,39 @@ const validate_composition_id_1 = require("./validation/validate-composition-id"
77
47
  const validate_dimensions_1 = require("./validation/validate-dimensions");
78
48
  const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
79
49
  const validate_fps_1 = require("./validation/validate-fps");
80
- const validate_frame_1 = require("./validation/validate-frame");
81
- const validate_image_format_1 = require("./validation/validate-image-format");
82
50
  const validate_offthreadvideo_image_format_1 = require("./validation/validate-offthreadvideo-image-format");
83
- const validate_opengl_renderer_1 = require("./validation/validate-opengl-renderer");
84
- const validate_quality_1 = require("./validation/validate-quality");
85
51
  const volume_position_state_1 = require("./volume-position-state");
86
52
  const wrap_remotion_context_1 = require("./wrap-remotion-context");
87
- const Timeline = { ...TimelinePosition, ...TimelineInOutPosition };
53
+ const Timeline = TimelinePosition;
88
54
  // Mark them as Internals so use don't assume this is public
89
55
  // API and are less likely to use it
90
56
  exports.Internals = {
91
- perf,
92
57
  useUnsafeVideoConfig: use_unsafe_video_config_1.useUnsafeVideoConfig,
93
58
  Timeline,
94
59
  CompositionManager: CompositionManager_1.CompositionManager,
95
60
  RemotionRoot: RemotionRoot_1.RemotionRoot,
96
61
  useVideo: use_video_1.useVideo,
97
62
  getRoot: register_root_1.getRoot,
98
- getBrowserExecutable: browser_executable_1.getBrowserExecutable,
99
- getCustomFfmpegExecutable: ffmpeg_executable_1.getCustomFfmpegExecutable,
100
- getCustomFfprobeExecutable: ffmpeg_executable_1.getCustomFfprobeExecutable,
101
- getPixelFormat: pixel_format_1.getPixelFormat,
102
- getConcurrency: concurrency_1.getConcurrency,
103
- getRange: frame_range_1.getRange,
104
- getShouldOverwrite: overwrite_1.getShouldOverwrite,
105
- getOutputCodecOrUndefined: codec_1.getOutputCodecOrUndefined,
106
- getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn,
107
- getQuality: quality_1.getQuality,
108
- getAndValidateEveryNthFrame: every_nth_frame_1.getAndValidateEveryNthFrame,
109
- getAndValidateNumberOfGifLoops: number_of_gif_loops_1.getAndValidateNumberOfGifLoops,
110
- getScale: scale_1.getScale,
111
- getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence,
112
- validateSelectedCrfAndCodecCombination: crf_1.validateSelectedCrfAndCodecCombination,
113
- getFinalOutputCodec: codec_1.getFinalOutputCodec,
114
63
  useMediaVolumeState: volume_position_state_1.useMediaVolumeState,
115
64
  useMediaMutedState: volume_position_state_1.useMediaMutedState,
116
- DEFAULT_CODEC: codec_1.DEFAULT_CODEC,
117
- DEFAULT_PIXEL_FORMAT: pixel_format_1.DEFAULT_PIXEL_FORMAT,
118
- FEATURE_FLAG_FIREFOX_SUPPORT: feature_flags_1.FEATURE_FLAG_FIREFOX_SUPPORT,
119
- DEFAULT_WEBPACK_CACHE_ENABLED: webpack_caching_1.DEFAULT_WEBPACK_CACHE_ENABLED,
120
- getBrowser: browser_1.getBrowser,
121
- DEFAULT_BROWSER: browser_1.DEFAULT_BROWSER,
122
- getDefaultCrfForCodec: crf_1.getDefaultCrfForCodec,
123
- getActualCrf: crf_1.getActualCrf,
124
- setFrameRangeFromCli: frame_range_1.setFrameRangeFromCli,
125
- getUserPreferredImageFormat: image_format_1.getUserPreferredImageFormat,
126
- validateSelectedPixelFormatAndImageFormatCombination: image_format_1.validateSelectedPixelFormatAndImageFormatCombination,
127
- validateSelectedPixelFormatAndCodecCombination: pixel_format_1.validateSelectedPixelFormatAndCodecCombination,
128
- validateFrameRange: frame_range_1.validateFrameRange,
129
- validateNonNullImageFormat: validate_image_format_1.validateNonNullImageFormat,
130
- getWebpackCaching: webpack_caching_1.getWebpackCaching,
131
65
  useLazyComponent: use_lazy_component_1.useLazyComponent,
132
66
  truthy: truthy_1.truthy,
133
- isAudioCodec: is_audio_codec_1.isAudioCodec,
134
- Logging,
135
67
  SequenceContext: Sequence_1.SequenceContext,
136
68
  useRemotionContexts: wrap_remotion_context_1.useRemotionContexts,
137
69
  RemotionContextProvider: wrap_remotion_context_1.RemotionContextProvider,
138
70
  CSSUtils,
139
71
  setupEnvVariables: setup_env_variables_1.setupEnvVariables,
140
72
  ENV_VARIABLES_ENV_NAME: setup_env_variables_1.ENV_VARIABLES_ENV_NAME,
141
- getDotEnvLocation: env_file_1.getDotEnvLocation,
142
- getServerPort: preview_server_1.getServerPort,
143
73
  MediaVolumeContext: volume_position_state_1.MediaVolumeContext,
144
74
  SetMediaVolumeContext: volume_position_state_1.SetMediaVolumeContext,
145
75
  validateDurationInFrames: validate_duration_in_frames_1.validateDurationInFrames,
146
76
  validateFps: validate_fps_1.validateFps,
147
77
  validateDimension: validate_dimensions_1.validateDimension,
148
78
  getRemotionEnvironment: get_environment_1.getRemotionEnvironment,
149
- getProResProfile: prores_profile_1.getProResProfile,
150
- setProResProfile: prores_profile_1.setProResProfile,
151
- validateSelectedCodecAndProResCombination: prores_profile_1.validateSelectedCodecAndProResCombination,
152
- getMaxTimelineTracks: max_timeline_tracks_1.getMaxTimelineTracks,
153
79
  SharedAudioContext: shared_audio_tags_1.SharedAudioContext,
154
80
  SharedAudioContextProvider: shared_audio_tags_1.SharedAudioContextProvider,
155
- validateQuality: validate_quality_1.validateQuality,
156
- validateFrame: validate_frame_1.validateFrame,
157
- setStillFrame: still_frame_1.setStillFrame,
158
- getStillFrame: still_frame_1.getStillFrame,
159
81
  invalidCompositionErrorMessage: validate_composition_id_1.invalidCompositionErrorMessage,
160
82
  isCompositionIdValid: validate_composition_id_1.isCompositionIdValid,
161
- DEFAULT_OVERWRITE: overwrite_1.DEFAULT_OVERWRITE,
162
- AssetCompression,
163
- defaultOverrideFunction: override_webpack_1.defaultOverrideFunction,
164
- DEFAULT_PUPPETEER_TIMEOUT: timeout_2.DEFAULT_PUPPETEER_TIMEOUT,
165
- setupPuppeteerTimeout: timeout_2.setupPuppeteerTimeout,
166
- setPuppeteerTimeout: timeout_1.setPuppeteerTimeout,
167
- getCurrentPuppeteerTimeout: timeout_1.getCurrentPuppeteerTimeout,
168
- getChromiumDisableWebSecurity: chromium_flags_1.getChromiumDisableWebSecurity,
169
- getIgnoreCertificateErrors: chromium_flags_1.getIgnoreCertificateErrors,
170
- validateOpenGlRenderer: validate_opengl_renderer_1.validateOpenGlRenderer,
171
- getChromiumOpenGlRenderer: chromium_flags_1.getChromiumOpenGlRenderer,
172
- getChromiumHeadlessMode: chromium_flags_1.getChromiumHeadlessMode,
173
- DEFAULT_OPENGL_RENDERER: chromium_flags_1.DEFAULT_OPENGL_RENDERER,
174
83
  getPreviewDomElement: get_preview_dom_element_1.getPreviewDomElement,
175
84
  compositionsRef: CompositionManager_1.compositionsRef,
176
85
  DELAY_RENDER_CALLSTACK_TOKEN: delay_render_1.DELAY_RENDER_CALLSTACK_TOKEN,
@@ -180,4 +89,5 @@ exports.Internals = {
180
89
  validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat,
181
90
  CanUseRemotionHooksProvider: CanUseRemotionHooks_1.CanUseRemotionHooksProvider,
182
91
  CanUseRemotionHooks: CanUseRemotionHooks_1.CanUseRemotionHooks,
92
+ enableLegacyRemotionConfig: config_1.enableLegacyRemotionConfig,
183
93
  };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare type PreloadProps = {
3
+ for: number;
4
+ children: React.ReactNode;
5
+ };
6
+ export declare const Preload: React.FC<PreloadProps>;
7
+ export {};
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Preload = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const Sequence_1 = require("./Sequence");
7
+ const timeline_position_state_1 = require("./timeline-position-state");
8
+ const Preload = ({ for: preloadFor, children, }) => {
9
+ const sequenceContext = (0, react_1.useContext)(Sequence_1.SequenceContext);
10
+ if (typeof preloadFor === 'undefined') {
11
+ throw new Error(`The <Preload /> component requires a 'for' prop, but none was passed.`);
12
+ }
13
+ if (typeof preloadFor !== 'number') {
14
+ throw new Error(`The 'for' prop of <Preload /> must be a number, but is of type ${typeof preloadFor}`);
15
+ }
16
+ if (Number.isNaN(preloadFor)) {
17
+ throw new Error(`The 'for' prop of <Preload /> must be a real number, but it is NaN.`);
18
+ }
19
+ if (!Number.isFinite(preloadFor)) {
20
+ throw new Error(`The 'for' prop of <Preload /> must be a finite number, but it is ${preloadFor}.`);
21
+ }
22
+ const context = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
23
+ const value = (0, react_1.useMemo)(() => {
24
+ const contextOffset = sequenceContext
25
+ ? sequenceContext.cumulatedFrom + sequenceContext.relativeFrom
26
+ : 0;
27
+ const currentFrame = context.frame - contextOffset;
28
+ return {
29
+ ...context,
30
+ playing: currentFrame < preloadFor ? false : context.playing,
31
+ imperativePlaying: {
32
+ current: currentFrame < preloadFor ? false : context.imperativePlaying.current,
33
+ },
34
+ frame: Math.max(0, currentFrame - preloadFor) + contextOffset,
35
+ };
36
+ }, [context, preloadFor, sequenceContext]);
37
+ return ((0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: value, children: children }));
38
+ };
39
+ exports.Preload = Preload;
@@ -22,7 +22,7 @@ function measureSpring({ fps, config = {}, threshold = 0.005, from = 0, to = 1,
22
22
  if (threshold < 0) {
23
23
  throw new TypeError('Threshold is below 0');
24
24
  }
25
- (0, validate_fps_1.validateFps)(fps, 'to the measureSpring() function', null);
25
+ (0, validate_fps_1.validateFps)(fps, 'to the measureSpring() function', false);
26
26
  const range = Math.abs(from - to);
27
27
  let frame = 0;
28
28
  let finishedFrame = 0;
@@ -1,2 +1 @@
1
- import type { Codec } from '../config';
2
- export declare const validateFps: (fps: number, location: string, codec: Codec | null) => void;
1
+ export declare const validateFps: (fps: number, location: string, isGif: boolean) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateFps = void 0;
4
- const validateFps = (fps, location, codec) => {
4
+ const validateFps = (fps, location, isGif) => {
5
5
  if (typeof fps !== 'number') {
6
6
  throw new Error(`"fps" must be a number, but you passed a value of type ${typeof fps} ${location}`);
7
7
  }
@@ -14,8 +14,8 @@ const validateFps = (fps, location, codec) => {
14
14
  if (fps <= 0) {
15
15
  throw new TypeError(`"fps" must be positive, but got ${fps} ${location}`);
16
16
  }
17
- if (codec === 'gif' && fps > 50) {
18
- throw new TypeError(`The FPS for a GIF canot be higher than 50. Use the --skip-n-frames option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
17
+ if (isGif && fps > 50) {
18
+ throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --skip-n-frames option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
19
19
  }
20
20
  };
21
21
  exports.validateFps = validateFps;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { RemotionMainVideoProps } from './props';
3
- export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
3
+ export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
6
+ } & RemotionMainVideoProps, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "property" | "key" | "is" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
2
+ export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
3
3
  volume?: import("../volume-prop").VolumeProp | undefined;
4
4
  playbackRate?: number | undefined;
5
5
  } & {
6
6
  onlyWarnForMediaSeekingError: boolean;
7
- }, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | "onlyWarnForMediaSeekingError"> & React.RefAttributes<HTMLVideoElement>>;
7
+ }, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "property" | "key" | "is" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | "onlyWarnForMediaSeekingError"> & React.RefAttributes<HTMLVideoElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { RemotionVideoProps } from './props';
3
- export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
3
+ export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "property" | "key" | "is" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.1.5",
3
+ "version": "3.1.8",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "965ca68bd4efce9ca5e27fe30c4a31aec594575c"
57
+ "gitHead": "57f34a02b0f830053f92af426a6b70b6824f887e"
58
58
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AbsoluteFill.d.ts","sourceRoot":"","sources":["../src/AbsoluteFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,cAAc,EAAU,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,CAoBjE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AbsoluteFill.js","sourceRoot":"","sources":["../src/AbsoluteFill.tsx"],"names":[],"mappings":";;;;AAAA,iCAAqD;AAE9C,MAAM,YAAY,GAA6C,CACrE,KAAK,EACJ,EAAE;IACH,MAAM,EAAC,KAAK,EAAE,GAAG,KAAK,EAAC,GAAG,KAAK,CAAC;IAChC,MAAM,WAAW,GAAG,IAAA,eAAO,EAAC,GAAwB,EAAE;QACrD,OAAO;YACN,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,GAAG,KAAK;SACR,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,gCAAK,KAAK,EAAE,WAAW,KAAM,KAAK,WAAI,CAAC;AAC/C,CAAC,CAAC;AApBW,QAAA,YAAY,gBAoBvB"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { TAsset } from './CompositionManager';
3
- export declare type AssetRootContext = {
4
- registerAsset: (asset: TAsset) => void;
5
- unregisterAsset: (id: string) => void;
6
- };
7
- export declare const AssetManager: React.Context<AssetRootContext>;
8
- export declare const AssetRoot: React.FC<{
9
- children: React.ReactNode;
10
- pageIndex: number;
11
- }>;
package/dist/AssetRoot.js DELETED
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AssetRoot = exports.AssetManager = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- exports.AssetManager = (0, react_1.createContext)({
7
- registerAsset: () => undefined,
8
- unregisterAsset: () => undefined,
9
- });
10
- const AssetRoot = ({ children, pageIndex }) => {
11
- const [assets, setAssets] = (0, react_1.useState)([]);
12
- const registerAsset = (0, react_1.useCallback)((asset) => {
13
- setAssets((assts) => {
14
- return [...assts, asset];
15
- });
16
- }, []);
17
- const unregisterAsset = (0, react_1.useCallback)((id) => {
18
- setAssets((assts) => {
19
- return assts.filter((a) => a.id !== id);
20
- });
21
- }, []);
22
- const context = (0, react_1.useMemo)(() => {
23
- return { assets, registerAsset, unregisterAsset };
24
- }, [assets, registerAsset, unregisterAsset]);
25
- (0, react_1.useLayoutEffect)(() => {
26
- if (typeof window !== 'undefined') {
27
- if (window.remotion_collectAssets === undefined) {
28
- window.remotion_collectAssets = [];
29
- }
30
- window.remotion_collectAssets[pageIndex] = () => {
31
- setAssets([]); // clear assets at next render
32
- return assets;
33
- };
34
- }
35
- }, [assets, pageIndex]);
36
- return ((0, jsx_runtime_1.jsx)(exports.AssetManager.Provider, { value: context, children: children }));
37
- };
38
- exports.AssetRoot = AssetRoot;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,aAAa,EAEb,EAAE,EAIF,MAAM,OAAO,CAAC;AAqBf,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAC,CAgChE,CAAC;AAEF,aAAK,kBAAkB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;AAEhF,oBAAY,SAAS,CAAC,CAAC,IACpB;IACA,aAAa,EAAE,MAAM,OAAO,CAAC;QAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,CAAC;CAC9D,GACD;IACA,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEL,oBAAY,UAAU,CAAC,CAAC,IAAI;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,CAAC,CAAC;CACjB,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAEjB,aAAK,gBAAgB,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,4GAgEvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Composition.js","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":";;;;AAAA,iCAOe;AACf,6DAAwD;AACxD,mCAAiC;AACjC,qCAAgC;AAChC,6DAAsD;AACtD,kFAA2E;AAC3E,0EAAmE;AACnE,0FAAkF;AAClF,4EAAqE;AACrE,4DAAsD;AAOtD,MAAM,aAAa,GAAG,IAAA,qBAAa,EAAoB;IACtD,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEI,MAAM,MAAM,GAAkD,CAAC,EACrE,IAAI,EACJ,QAAQ,GACR,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAC;IACzC,MAAM,EAAC,cAAc,EAAE,gBAAgB,EAAC,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAE1E,IAAA,yCAAkB,EAAC,IAAI,CAAC,CAAC;IAEzB,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;IAE5E,MAAM,UAAU,GACf,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE7D,MAAM,KAAK,GAAG,IAAA,eAAO,EAAC,GAAsB,EAAE;QAC7C,OAAO;YACN,UAAU,EAAE,IAAI;YAChB,UAAU;SACV,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;IAEvB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAEjC,OAAO,GAAG,EAAE;YACX,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACpC,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAE5E,OAAO,CACN,uBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,WAA0B,CACzE,CAAC;AACH,CAAC,CAAC;AAhCW,QAAA,MAAM,UAgCjB;AAwBK,MAAM,WAAW,GAAG,CAAK,EAC/B,KAAK,EACL,MAAM,EACN,GAAG,EACH,gBAAgB,EAChB,EAAE,EACF,YAAY,EACZ,GAAG,SAAS,EACS,EAAE,EAAE;IACzB,MAAM,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,GACjD,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAEhC,MAAM,IAAI,GAAG,IAAA,qCAAgB,EAAC,SAAS,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAEzB,MAAM,EAAC,UAAU,EAAE,UAAU,EAAC,GAAG,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAC;IAE3D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,4BAA4B;QAC5B,IAAI,CAAC,EAAE,EAAE;YACR,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;SACjD;QAED,IAAA,+CAAqB,EAAC,EAAE,CAAC,CAAC;QAC1B,IAAA,uCAAiB,EAAC,KAAK,EAAE,OAAO,EAAE,iCAAiC,CAAC,CAAC;QACrE,IAAA,uCAAiB,EAAC,MAAM,EAAE,QAAQ,EAAE,iCAAiC,CAAC,CAAC;QACvE,IAAA,sDAAwB,EACvB,gBAAgB,EAChB,iCAAiC,CACjC,CAAC;QAEF,IAAA,0BAAW,EAAC,GAAG,EAAE,2CAA2C,CAAC,CAAC;QAC9D,mBAAmB,CAAI;YACtB,gBAAgB;YAChB,GAAG;YACH,MAAM;YACN,KAAK;YACL,EAAE;YACF,UAAU;YACV,SAAS,EAAE,IAAI;YACf,YAAY;YACZ,KAAK;YACL,gBAAgB,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACX,qBAAqB,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,CAAC;IACH,CAAC,EAAE;QACF,gBAAgB;QAChB,GAAG;QACH,MAAM;QACN,IAAI;QACJ,EAAE;QACF,UAAU;QACV,YAAY;QACZ,mBAAmB;QACnB,qBAAqB;QACrB,KAAK;QACL,KAAK;QACL,UAAU;KACV,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAhEW,QAAA,WAAW,eAgEtB"}