remotion 3.0.29 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/dist/CanUseRemotionHooks.d.ts +5 -0
  3. package/dist/CanUseRemotionHooks.js +10 -0
  4. package/dist/Composition.js +12 -3
  5. package/dist/CompositionManager.d.ts +1 -1
  6. package/dist/Img.js +3 -0
  7. package/dist/Still.d.ts +1 -0
  8. package/dist/audio/Audio.d.ts +2 -2
  9. package/dist/audio/AudioForDevelopment.d.ts +2 -2
  10. package/dist/audio/AudioForRendering.d.ts +1 -1
  11. package/dist/config/codec.d.ts +1 -1
  12. package/dist/config/codec.js +7 -0
  13. package/dist/config/concurrency.js +0 -3
  14. package/dist/config/crf.js +2 -2
  15. package/dist/config/every-nth-frame.d.ts +3 -0
  16. package/dist/config/every-nth-frame.js +20 -0
  17. package/dist/config/index.d.ts +12 -1
  18. package/dist/config/index.js +13 -0
  19. package/dist/config/loop.d.ts +3 -2
  20. package/dist/config/loop.js +10 -7
  21. package/dist/config/number-of-gif-loops.d.ts +4 -0
  22. package/dist/config/number-of-gif-loops.js +21 -0
  23. package/dist/config/skip-n-frames.d.ts +2 -0
  24. package/dist/config/skip-n-frames.js +12 -0
  25. package/dist/internals.d.ts +29 -25
  26. package/dist/internals.js +7 -0
  27. package/dist/preload.d.ts +7 -0
  28. package/dist/preload.js +39 -0
  29. package/dist/spring/measure-spring.js +1 -1
  30. package/dist/use-current-frame.js +8 -0
  31. package/dist/use-media-playback.js +1 -0
  32. package/dist/use-video-config.js +6 -0
  33. package/dist/validation/validate-fps.d.ts +2 -1
  34. package/dist/validation/validate-fps.js +4 -1
  35. package/dist/video/Video.d.ts +1 -1
  36. package/dist/video/VideoForDevelopment.d.ts +2 -2
  37. package/dist/video/VideoForRendering.d.ts +1 -1
  38. package/dist/video/VideoForRendering.js +1 -0
  39. package/dist/video/get-current-time.d.ts +2 -1
  40. package/dist/video/get-current-time.js +7 -7
  41. package/dist/wrap-remotion-context.d.ts +1 -0
  42. package/dist/wrap-remotion-context.js +5 -1
  43. package/package.json +6 -7
  44. package/.turbo/turbo-lint.log +0 -11
  45. package/dist/AbsoluteFill.d.ts.map +0 -1
  46. package/dist/AbsoluteFill.js.map +0 -1
  47. package/dist/AssetRoot.d.ts +0 -11
  48. package/dist/AssetRoot.js +0 -38
  49. package/dist/Composition.d.ts.map +0 -1
  50. package/dist/Composition.js.map +0 -1
  51. package/dist/CompositionManager.d.ts.map +0 -1
  52. package/dist/CompositionManager.js.map +0 -1
  53. package/dist/IFrame.d.ts.map +0 -1
  54. package/dist/IFrame.js.map +0 -1
  55. package/dist/Img.d.ts.map +0 -1
  56. package/dist/Img.js.map +0 -1
  57. package/dist/RemotionRoot.d.ts.map +0 -1
  58. package/dist/RemotionRoot.js.map +0 -1
  59. package/dist/Still.d.ts.map +0 -1
  60. package/dist/Still.js.map +0 -1
  61. package/dist/TimelineRoot.d.ts +0 -5
  62. package/dist/TimelineRoot.js +0 -51
  63. package/dist/absolute-src.d.ts.map +0 -1
  64. package/dist/absolute-src.js.map +0 -1
  65. package/dist/asset-types.d.ts.map +0 -1
  66. package/dist/asset-types.js.map +0 -1
  67. package/dist/audio/Audio.d.ts.map +0 -1
  68. package/dist/audio/Audio.js.map +0 -1
  69. package/dist/audio/AudioForDevelopment.d.ts.map +0 -1
  70. package/dist/audio/AudioForDevelopment.js.map +0 -1
  71. package/dist/audio/AudioForRendering.d.ts.map +0 -1
  72. package/dist/audio/AudioForRendering.js.map +0 -1
  73. package/dist/audio/index.d.ts.map +0 -1
  74. package/dist/audio/index.js.map +0 -1
  75. package/dist/audio/props.d.ts.map +0 -1
  76. package/dist/audio/props.js.map +0 -1
  77. package/dist/audio/shared-audio-tags.d.ts.map +0 -1
  78. package/dist/audio/shared-audio-tags.js.map +0 -1
  79. package/dist/audio/use-audio-frame.d.ts.map +0 -1
  80. package/dist/audio/use-audio-frame.js.map +0 -1
  81. package/dist/bezier.d.ts.map +0 -1
  82. package/dist/bezier.js.map +0 -1
  83. package/dist/compress-assets.d.ts.map +0 -1
  84. package/dist/compress-assets.js.map +0 -1
  85. package/dist/config/browser-executable.d.ts.map +0 -1
  86. package/dist/config/browser-executable.js.map +0 -1
  87. package/dist/config/browser.d.ts.map +0 -1
  88. package/dist/config/browser.js.map +0 -1
  89. package/dist/config/chromium-flags.d.ts.map +0 -1
  90. package/dist/config/chromium-flags.js.map +0 -1
  91. package/dist/config/codec.d.ts.map +0 -1
  92. package/dist/config/codec.js.map +0 -1
  93. package/dist/config/concurrency.d.ts.map +0 -1
  94. package/dist/config/concurrency.js.map +0 -1
  95. package/dist/config/crf.d.ts.map +0 -1
  96. package/dist/config/crf.js.map +0 -1
  97. package/dist/config/env-file.d.ts.map +0 -1
  98. package/dist/config/env-file.js.map +0 -1
  99. package/dist/config/ffmpeg-executable.d.ts.map +0 -1
  100. package/dist/config/ffmpeg-executable.js.map +0 -1
  101. package/dist/config/frame-range.d.ts.map +0 -1
  102. package/dist/config/frame-range.js.map +0 -1
  103. package/dist/config/image-format.d.ts.map +0 -1
  104. package/dist/config/image-format.js.map +0 -1
  105. package/dist/config/image-sequence.d.ts.map +0 -1
  106. package/dist/config/image-sequence.js.map +0 -1
  107. package/dist/config/index.d.ts.map +0 -1
  108. package/dist/config/index.js.map +0 -1
  109. package/dist/config/input-props.d.ts.map +0 -1
  110. package/dist/config/input-props.js.map +0 -1
  111. package/dist/config/log.d.ts.map +0 -1
  112. package/dist/config/log.js.map +0 -1
  113. package/dist/config/max-timeline-tracks.d.ts.map +0 -1
  114. package/dist/config/max-timeline-tracks.js.map +0 -1
  115. package/dist/config/override-webpack.d.ts.map +0 -1
  116. package/dist/config/override-webpack.js.map +0 -1
  117. package/dist/config/overwrite.d.ts.map +0 -1
  118. package/dist/config/overwrite.js.map +0 -1
  119. package/dist/config/pixel-format.d.ts.map +0 -1
  120. package/dist/config/pixel-format.js.map +0 -1
  121. package/dist/config/preview-server.d.ts.map +0 -1
  122. package/dist/config/preview-server.js.map +0 -1
  123. package/dist/config/prores-profile.d.ts.map +0 -1
  124. package/dist/config/prores-profile.js.map +0 -1
  125. package/dist/config/quality.d.ts.map +0 -1
  126. package/dist/config/quality.js.map +0 -1
  127. package/dist/config/scale.d.ts.map +0 -1
  128. package/dist/config/scale.js.map +0 -1
  129. package/dist/config/still-frame.d.ts.map +0 -1
  130. package/dist/config/still-frame.js.map +0 -1
  131. package/dist/config/timeout.d.ts.map +0 -1
  132. package/dist/config/timeout.js.map +0 -1
  133. package/dist/config/webpack-caching.d.ts.map +0 -1
  134. package/dist/config/webpack-caching.js.map +0 -1
  135. package/dist/default-css.d.ts.map +0 -1
  136. package/dist/default-css.js.map +0 -1
  137. package/dist/delay-render.d.ts.map +0 -1
  138. package/dist/delay-render.js.map +0 -1
  139. package/dist/easing.d.ts.map +0 -1
  140. package/dist/easing.js.map +0 -1
  141. package/dist/feature-flags.d.ts.map +0 -1
  142. package/dist/feature-flags.js.map +0 -1
  143. package/dist/freeze.d.ts.map +0 -1
  144. package/dist/freeze.js.map +0 -1
  145. package/dist/get-asset-file-name.d.ts.map +0 -1
  146. package/dist/get-asset-file-name.js.map +0 -1
  147. package/dist/get-environment.d.ts.map +0 -1
  148. package/dist/get-environment.js.map +0 -1
  149. package/dist/get-preview-dom-element.d.ts.map +0 -1
  150. package/dist/get-preview-dom-element.js.map +0 -1
  151. package/dist/get-timeline-clip-name.d.ts.map +0 -1
  152. package/dist/get-timeline-clip-name.js.map +0 -1
  153. package/dist/index.d.ts.map +0 -1
  154. package/dist/index.js.map +0 -1
  155. package/dist/initial-frame.d.ts.map +0 -1
  156. package/dist/initial-frame.js.map +0 -1
  157. package/dist/internals.d.ts.map +0 -1
  158. package/dist/internals.js.map +0 -1
  159. package/dist/interpolate.d.ts.map +0 -1
  160. package/dist/interpolate.js.map +0 -1
  161. package/dist/interpolateColors.d.ts.map +0 -1
  162. package/dist/interpolateColors.js.map +0 -1
  163. package/dist/is-approximately-the-same.d.ts.map +0 -1
  164. package/dist/is-approximately-the-same.js.map +0 -1
  165. package/dist/is-audio-codec.d.ts.map +0 -1
  166. package/dist/is-audio-codec.js.map +0 -1
  167. package/dist/loop/index.d.ts.map +0 -1
  168. package/dist/loop/index.js.map +0 -1
  169. package/dist/multiple-versions-warning.d.ts.map +0 -1
  170. package/dist/multiple-versions-warning.js.map +0 -1
  171. package/dist/nonce.d.ts.map +0 -1
  172. package/dist/nonce.js.map +0 -1
  173. package/dist/perf/index.d.ts.map +0 -1
  174. package/dist/perf/index.js.map +0 -1
  175. package/dist/play-and-handle-not-allowed-error.d.ts.map +0 -1
  176. package/dist/play-and-handle-not-allowed-error.js.map +0 -1
  177. package/dist/random.d.ts.map +0 -1
  178. package/dist/random.js.map +0 -1
  179. package/dist/register-root.d.ts.map +0 -1
  180. package/dist/register-root.js.map +0 -1
  181. package/dist/sequencing/index.d.ts.map +0 -1
  182. package/dist/sequencing/index.js.map +0 -1
  183. package/dist/series/flatten-children.d.ts.map +0 -1
  184. package/dist/series/flatten-children.js.map +0 -1
  185. package/dist/series/index.d.ts.map +0 -1
  186. package/dist/series/index.js.map +0 -1
  187. package/dist/setup-env-variables.d.ts.map +0 -1
  188. package/dist/setup-env-variables.js.map +0 -1
  189. package/dist/spring/index.d.ts.map +0 -1
  190. package/dist/spring/index.js.map +0 -1
  191. package/dist/spring/measure-spring.d.ts.map +0 -1
  192. package/dist/spring/measure-spring.js.map +0 -1
  193. package/dist/spring/spring-utils.d.ts.map +0 -1
  194. package/dist/spring/spring-utils.js.map +0 -1
  195. package/dist/static-file.d.ts.map +0 -1
  196. package/dist/static-file.js.map +0 -1
  197. package/dist/timeline-inout-position-state.d.ts.map +0 -1
  198. package/dist/timeline-inout-position-state.js.map +0 -1
  199. package/dist/timeline-position-state.d.ts.map +0 -1
  200. package/dist/timeline-position-state.js.map +0 -1
  201. package/dist/timeout.d.ts.map +0 -1
  202. package/dist/timeout.js.map +0 -1
  203. package/dist/truthy.d.ts.map +0 -1
  204. package/dist/truthy.js.map +0 -1
  205. package/dist/use-frame.d.ts.map +0 -1
  206. package/dist/use-frame.js.map +0 -1
  207. package/dist/use-lazy-component.d.ts.map +0 -1
  208. package/dist/use-lazy-component.js.map +0 -1
  209. package/dist/use-media-in-timeline.d.ts.map +0 -1
  210. package/dist/use-media-in-timeline.js.map +0 -1
  211. package/dist/use-media-playback.d.ts.map +0 -1
  212. package/dist/use-media-playback.js.map +0 -1
  213. package/dist/use-media-tag-volume.d.ts.map +0 -1
  214. package/dist/use-media-tag-volume.js.map +0 -1
  215. package/dist/use-sync-volume-with-media-tag.d.ts.map +0 -1
  216. package/dist/use-sync-volume-with-media-tag.js.map +0 -1
  217. package/dist/use-unsafe-video-config.d.ts.map +0 -1
  218. package/dist/use-unsafe-video-config.js.map +0 -1
  219. package/dist/use-video-config.d.ts.map +0 -1
  220. package/dist/use-video-config.js.map +0 -1
  221. package/dist/use-video.d.ts.map +0 -1
  222. package/dist/use-video.js.map +0 -1
  223. package/dist/validate-media-props.d.ts.map +0 -1
  224. package/dist/validate-media-props.js.map +0 -1
  225. package/dist/validate-start-from-props.d.ts.map +0 -1
  226. package/dist/validate-start-from-props.js.map +0 -1
  227. package/dist/validation/validate-composition-id.d.ts.map +0 -1
  228. package/dist/validation/validate-composition-id.js.map +0 -1
  229. package/dist/validation/validate-dimensions.d.ts.map +0 -1
  230. package/dist/validation/validate-dimensions.js.map +0 -1
  231. package/dist/validation/validate-duration-in-frames.d.ts.map +0 -1
  232. package/dist/validation/validate-duration-in-frames.js.map +0 -1
  233. package/dist/validation/validate-folder-name.d.ts.map +0 -1
  234. package/dist/validation/validate-folder-name.js.map +0 -1
  235. package/dist/validation/validate-fps.d.ts.map +0 -1
  236. package/dist/validation/validate-fps.js.map +0 -1
  237. package/dist/validation/validate-frame.d.ts.map +0 -1
  238. package/dist/validation/validate-frame.js.map +0 -1
  239. package/dist/validation/validate-image-format.d.ts.map +0 -1
  240. package/dist/validation/validate-image-format.js.map +0 -1
  241. package/dist/validation/validate-opengl-renderer.d.ts.map +0 -1
  242. package/dist/validation/validate-opengl-renderer.js.map +0 -1
  243. package/dist/validation/validate-quality.d.ts.map +0 -1
  244. package/dist/validation/validate-quality.js.map +0 -1
  245. package/dist/video/Video.d.ts.map +0 -1
  246. package/dist/video/Video.js.map +0 -1
  247. package/dist/video/VideoForDevelopment.d.ts.map +0 -1
  248. package/dist/video/VideoForDevelopment.js.map +0 -1
  249. package/dist/video/VideoForRendering.d.ts.map +0 -1
  250. package/dist/video/VideoForRendering.js.map +0 -1
  251. package/dist/video/get-current-time.d.ts.map +0 -1
  252. package/dist/video/get-current-time.js.map +0 -1
  253. package/dist/video/index.d.ts.map +0 -1
  254. package/dist/video/index.js.map +0 -1
  255. package/dist/video/props.d.ts.map +0 -1
  256. package/dist/video/props.js.map +0 -1
  257. package/dist/video-config.d.ts.map +0 -1
  258. package/dist/video-config.js.map +0 -1
  259. package/dist/volume-position-state.d.ts.map +0 -1
  260. package/dist/volume-position-state.js.map +0 -1
  261. package/dist/volume-prop.d.ts.map +0 -1
  262. package/dist/volume-prop.js.map +0 -1
  263. package/dist/warn-about-non-seekable-media.d.ts.map +0 -1
  264. package/dist/warn-about-non-seekable-media.js.map +0 -1
  265. package/dist/wrap-remotion-context.d.ts.map +0 -1
  266. package/dist/wrap-remotion-context.js.map +0 -1
package/dist/internals.js CHANGED
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Internals = void 0;
27
27
  const shared_audio_tags_1 = require("./audio/shared-audio-tags");
28
+ const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
28
29
  const CompositionManager_1 = require("./CompositionManager");
29
30
  const AssetCompression = __importStar(require("./compress-assets"));
30
31
  const browser_1 = require("./config/browser");
@@ -34,12 +35,14 @@ const codec_1 = require("./config/codec");
34
35
  const concurrency_1 = require("./config/concurrency");
35
36
  const crf_1 = require("./config/crf");
36
37
  const env_file_1 = require("./config/env-file");
38
+ const every_nth_frame_1 = require("./config/every-nth-frame");
37
39
  const ffmpeg_executable_1 = require("./config/ffmpeg-executable");
38
40
  const frame_range_1 = require("./config/frame-range");
39
41
  const image_format_1 = require("./config/image-format");
40
42
  const image_sequence_1 = require("./config/image-sequence");
41
43
  const Logging = __importStar(require("./config/log"));
42
44
  const max_timeline_tracks_1 = require("./config/max-timeline-tracks");
45
+ const number_of_gif_loops_1 = require("./config/number-of-gif-loops");
43
46
  const override_webpack_1 = require("./config/override-webpack");
44
47
  const overwrite_1 = require("./config/overwrite");
45
48
  const pixel_format_1 = require("./config/pixel-format");
@@ -102,6 +105,8 @@ exports.Internals = {
102
105
  getOutputCodecOrUndefined: codec_1.getOutputCodecOrUndefined,
103
106
  getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn,
104
107
  getQuality: quality_1.getQuality,
108
+ getAndValidateEveryNthFrame: every_nth_frame_1.getAndValidateEveryNthFrame,
109
+ getAndValidateNumberOfGifLoops: number_of_gif_loops_1.getAndValidateNumberOfGifLoops,
105
110
  getScale: scale_1.getScale,
106
111
  getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence,
107
112
  validateSelectedCrfAndCodecCombination: crf_1.validateSelectedCrfAndCodecCombination,
@@ -173,4 +178,6 @@ exports.Internals = {
173
178
  portalNode: portal_node_1.portalNode,
174
179
  waitForRoot: register_root_1.waitForRoot,
175
180
  validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat,
181
+ CanUseRemotionHooksProvider: CanUseRemotionHooks_1.CanUseRemotionHooksProvider,
182
+ CanUseRemotionHooks: CanUseRemotionHooks_1.CanUseRemotionHooks,
176
183
  };
@@ -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');
25
+ (0, validate_fps_1.validateFps)(fps, 'to the measureSpring() function', null);
26
26
  const range = Math.abs(from - to);
27
27
  let frame = 0;
28
28
  let finishedFrame = 0;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useCurrentFrame = exports.useAbsoluteCurrentFrame = void 0;
4
4
  const react_1 = require("react");
5
+ const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
5
6
  const Sequence_1 = require("./Sequence");
6
7
  const timeline_position_state_1 = require("./timeline-position-state");
7
8
  const useAbsoluteCurrentFrame = () => {
@@ -15,6 +16,13 @@ exports.useAbsoluteCurrentFrame = useAbsoluteCurrentFrame;
15
16
  * @link https://www.remotion.dev/docs/use-current-frame
16
17
  */
17
18
  const useCurrentFrame = () => {
19
+ const canUseRemotionHooks = (0, react_1.useContext)(CanUseRemotionHooks_1.CanUseRemotionHooks);
20
+ if (!canUseRemotionHooks) {
21
+ if (typeof window !== 'undefined' && window.remotion_isPlayer) {
22
+ throw new Error(`useCurrentFrame can only be called inside a component that was passed to <Player>. See: https://www.remotion.dev/docs/player/examples`);
23
+ }
24
+ throw new Error(`useCurrentFrame() can only be called inside a component that was registered as a composition. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions`);
25
+ }
18
26
  const frame = (0, exports.useAbsoluteCurrentFrame)();
19
27
  const context = (0, react_1.useContext)(Sequence_1.SequenceContext);
20
28
  const contextOffset = context
@@ -38,6 +38,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybac
38
38
  src,
39
39
  playbackRate: localPlaybackRate,
40
40
  startFrom: -mediaStartsAt,
41
+ mediaType,
41
42
  });
42
43
  const isTime = mediaRef.current.currentTime;
43
44
  const timeShift = Math.abs(shouldBeTime - isTime);
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useVideoConfig = void 0;
4
+ const react_1 = require("react");
5
+ const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
4
6
  const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
5
7
  /**
6
8
  * Get some info about the context of the video that you are making.
@@ -9,12 +11,16 @@ const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
9
11
  */
10
12
  const useVideoConfig = () => {
11
13
  const videoConfig = (0, use_unsafe_video_config_1.useUnsafeVideoConfig)();
14
+ const context = (0, react_1.useContext)(CanUseRemotionHooks_1.CanUseRemotionHooks);
12
15
  if (!videoConfig) {
13
16
  if (typeof window !== 'undefined' && window.remotion_isPlayer) {
14
17
  throw new Error('No video config found. You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.');
15
18
  }
16
19
  throw new Error('No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.');
17
20
  }
21
+ if (!context) {
22
+ throw new Error('Called useVideoConfig() outside a Remotion composition.');
23
+ }
18
24
  return videoConfig;
19
25
  };
20
26
  exports.useVideoConfig = useVideoConfig;
@@ -1 +1,2 @@
1
- export declare const validateFps: (fps: number, location: string) => void;
1
+ import type { Codec } from '../config';
2
+ export declare const validateFps: (fps: number, location: string, codec: Codec | null) => 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) => {
4
+ const validateFps = (fps, location, codec) => {
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,5 +14,8 @@ const validateFps = (fps, location) => {
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`);
19
+ }
17
20
  };
18
21
  exports.validateFps = validateFps;
@@ -3,4 +3,4 @@ import type { RemotionMainVideoProps } from './props';
3
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, "key" | "height" | "playsInline" | "poster" | "width" | "disablePictureInPicture" | "disableRemotePlayback" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "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" | "volume" | "playbackRate" | 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" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "volume" | "playbackRate" | "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, "key" | "height" | "playsInline" | "poster" | "width" | "disablePictureInPicture" | "disableRemotePlayback" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "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" | "volume" | "playbackRate"> & 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>>;
@@ -86,6 +86,7 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
86
86
  src: props.src,
87
87
  playbackRate: playbackRate || 1,
88
88
  startFrom: -mediaStartsAt,
89
+ mediaType: 'video',
89
90
  });
90
91
  })();
91
92
  const handle = (0, delay_render_1.delayRender)(`Rendering <Video /> with src="${props.src}"`);
@@ -3,10 +3,11 @@ export declare const getExpectedMediaFrameUncorrected: ({ frame, playbackRate, s
3
3
  playbackRate: number;
4
4
  startFrom: number;
5
5
  }) => number;
6
- export declare const getMediaTime: ({ fps, frame, src, playbackRate, startFrom, }: {
6
+ export declare const getMediaTime: ({ fps, frame, src, playbackRate, startFrom, mediaType, }: {
7
7
  fps: number;
8
8
  frame: number;
9
9
  src: string;
10
10
  playbackRate: number;
11
11
  startFrom: number;
12
+ mediaType: 'video' | 'audio';
12
13
  }) => number;
@@ -7,24 +7,24 @@ const getExpectedMediaFrameUncorrected = ({ frame, playbackRate, startFrom, }) =
7
7
  return (0, interpolate_1.interpolate)(frame, [-1, startFrom, startFrom + 1], [-1, startFrom, startFrom + playbackRate]);
8
8
  };
9
9
  exports.getExpectedMediaFrameUncorrected = getExpectedMediaFrameUncorrected;
10
- const getMediaTime = ({ fps, frame, src, playbackRate, startFrom, }) => {
10
+ const getMediaTime = ({ fps, frame, src, playbackRate, startFrom, mediaType, }) => {
11
11
  const expectedFrame = (0, exports.getExpectedMediaFrameUncorrected)({
12
12
  frame,
13
13
  playbackRate,
14
14
  startFrom,
15
15
  });
16
- if (src.endsWith('mp4')) {
17
- // In Chrome, for MP4s, if 30fps, the first frame is still displayed at 0.033333
18
- // even though after that it increases by 0.033333333 each.
19
- // So frame = 0 in Remotion is like frame = 1 for the browser
20
- return (expectedFrame + 1) / fps;
21
- }
22
16
  if (src.endsWith('webm')) {
23
17
  // For WebM videos, we need to add a little bit of shift to get the right frame.
24
18
  const msPerFrame = 1000 / fps;
25
19
  const msShift = msPerFrame / 2;
26
20
  return (expectedFrame * msPerFrame + msShift) / 1000;
27
21
  }
22
+ if (mediaType === 'video') {
23
+ // In Chrome, for MP4s, if 30fps, the first frame is still displayed at 0.033333
24
+ // even though after that it increases by 0.033333333 each.
25
+ // So frame = 0 in Remotion is like frame = 1 for the browser
26
+ return (expectedFrame + 1) / fps;
27
+ }
28
28
  // For audio, we don't do any shift correction
29
29
  return expectedFrame / fps;
30
30
  };
@@ -5,6 +5,7 @@ export declare function useRemotionContexts(): {
5
5
  setTimelineContext: import("./timeline-position-state").SetTimelineContextValue;
6
6
  sequenceContext: import("./Sequence").SequenceContextType | null;
7
7
  nonceContext: import("./nonce").TNonceContext;
8
+ canUseRemotionHooksContext: boolean;
8
9
  };
9
10
  export interface RemotionContextProviderProps {
10
11
  contexts: ReturnType<typeof useRemotionContexts>;
@@ -29,6 +29,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
29
29
  // such as in React Three Fiber. All the contexts need to be passed again
30
30
  // for them to be useable
31
31
  const react_1 = __importStar(require("react"));
32
+ const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
32
33
  const CompositionManager_1 = require("./CompositionManager");
33
34
  const nonce_1 = require("./nonce");
34
35
  const Sequence_1 = require("./Sequence");
@@ -39,23 +40,26 @@ function useRemotionContexts() {
39
40
  const setTimelineContext = react_1.default.useContext(timeline_position_state_1.SetTimelineContext);
40
41
  const sequenceContext = react_1.default.useContext(Sequence_1.SequenceContext);
41
42
  const nonceContext = react_1.default.useContext(nonce_1.NonceContext);
43
+ const canUseRemotionHooksContext = react_1.default.useContext(CanUseRemotionHooks_1.CanUseRemotionHooks);
42
44
  return (0, react_1.useMemo)(() => ({
43
45
  compositionManagerCtx,
44
46
  timelineContext,
45
47
  setTimelineContext,
46
48
  sequenceContext,
47
49
  nonceContext,
50
+ canUseRemotionHooksContext,
48
51
  }), [
49
52
  compositionManagerCtx,
50
53
  nonceContext,
51
54
  sequenceContext,
52
55
  setTimelineContext,
53
56
  timelineContext,
57
+ canUseRemotionHooksContext,
54
58
  ]);
55
59
  }
56
60
  exports.useRemotionContexts = useRemotionContexts;
57
61
  const RemotionContextProvider = (props) => {
58
62
  const { children, contexts } = props;
59
- return ((0, jsx_runtime_1.jsx)(nonce_1.NonceContext.Provider, { value: contexts.nonceContext, children: (0, jsx_runtime_1.jsx)(CompositionManager_1.CompositionManager.Provider, { value: contexts.compositionManagerCtx, children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: contexts.timelineContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.SetTimelineContext.Provider, { value: contexts.setTimelineContext, children: (0, jsx_runtime_1.jsx)(Sequence_1.SequenceContext.Provider, { value: contexts.sequenceContext, children: children }) }) }) }) }));
63
+ return ((0, jsx_runtime_1.jsx)(CanUseRemotionHooks_1.CanUseRemotionHooks.Provider, { value: contexts.canUseRemotionHooksContext, children: (0, jsx_runtime_1.jsx)(nonce_1.NonceContext.Provider, { value: contexts.nonceContext, children: (0, jsx_runtime_1.jsx)(CompositionManager_1.CompositionManager.Provider, { value: contexts.compositionManagerCtx, children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: contexts.timelineContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.SetTimelineContext.Provider, { value: contexts.setTimelineContext, children: (0, jsx_runtime_1.jsx)(Sequence_1.SequenceContext.Provider, { value: contexts.sequenceContext, children: children }) }) }) }) }) }));
60
64
  };
61
65
  exports.RemotionContextProvider = RemotionContextProvider;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.0.29",
3
+ "version": "3.1.0",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "sideEffects": false,
8
8
  "scripts": {
9
9
  "lint": "eslint src --ext ts,tsx",
10
- "test": "jest --coverage && node generate-badges.js",
10
+ "test": "vitest --run",
11
11
  "build": "tsc -d",
12
12
  "watch": "tsc -w",
13
13
  "prerelease": "cp ../../README.md ."
@@ -26,22 +26,21 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@jonny/eslint-config": "3.0.266",
29
- "@testing-library/react": "13.1.1",
30
- "@types/jest": "^27.4.0",
29
+ "@testing-library/react": "13.3.0",
31
30
  "@types/node": "^16.7.5",
32
31
  "@types/react": "18.0.1",
33
32
  "@types/react-dom": "18.0.0",
34
33
  "@types/webpack-env": "^1.16.0",
34
+ "@vitejs/plugin-react": "^2.0.0",
35
35
  "eslint": "8.13.0",
36
- "jest": "^27.2.4",
37
36
  "prettier": "^2.0.5",
38
37
  "prettier-plugin-organize-imports": "^2.3.4",
39
38
  "react": "^18.0.0",
40
39
  "react-dom": "^18.0.0",
41
40
  "react-test-renderer": "^18.0.0",
42
41
  "rimraf": "^3.0.2",
43
- "ts-jest": "^27.0.5",
44
42
  "typescript": "^4.7.0",
43
+ "vitest": "^0.18.0",
45
44
  "webpack": "5.72.0"
46
45
  },
47
46
  "keywords": [
@@ -55,5 +54,5 @@
55
54
  "publishConfig": {
56
55
  "access": "public"
57
56
  },
58
- "gitHead": "da2e8a33766bf01b21dfd3c2d0c944356d156722"
57
+ "gitHead": "482c66127662171577aa427f10fe265fa1bc933b"
59
58
  }
@@ -1,11 +0,0 @@
1
- remotion:lint: cache hit, replaying output 83f1866e0041ca52
2
- remotion:lint: 
3
- remotion:lint: > remotion@3.0.22 lint /Users/jonathanburger/remotion/packages/core
4
- remotion:lint: > eslint src --ext ts,tsx "--fix"
5
- remotion:lint: 
6
- remotion:lint: 
7
- remotion:lint: /Users/jonathanburger/remotion/packages/core/src/use-lazy-component.ts
8
- remotion:lint:  10:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
9
- remotion:lint: 
10
- remotion:lint: ✖ 1 problem (0 errors, 1 warning)
11
- remotion:lint: 
@@ -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,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AC,MAAM,CAAC,CAAC,CAAC;IAEb,IAAA,2BAAmB,EAClB,uBAAe,EACf,GAAG,EAAE;QACJ,OAAO;YACN,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY;SACnC,CAAC;IACH,CAAC,EACD,CAAC,YAAY,CAAC,CACd,CAAC;IAEF,MAAM,YAAY,GAAG,IAAA,eAAO,EAAC,GAA8B,EAAE;QAC5D,OAAO;YACN,YAAY;YACZ,mBAAmB;YACnB,qBAAqB;YACrB,kBAAkB;YAClB,qBAAqB;YACrB,gBAAgB;YAChB,kBAAkB;YAClB,aAAa;YACb,eAAe;YACf,SAAS;YACT,MAAM;YACN,OAAO;YACP,cAAc;YACd,gBAAgB;SAChB,CAAC;IACH,CAAC,EAAE;QACF,YAAY;QACZ,kBAAkB;QAClB,mBAAmB;QACnB,gBAAgB;QAChB,qBAAqB;QACrB,kBAAkB;QAClB,aAAa;QACb,eAAe;QACf,SAAS;QACT,MAAM;QACN,cAAc;QACd,gBAAgB;QAChB,OAAO;KACP,CAAC,CAAC;IAEH,OAAO,CACN,uBAAC,0BAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC9C,QAAQ,WACoB,CAC9B,CAAC;AACH,CAAC,CAAC;AArIW,QAAA,0BAA0B,8BAqIrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFrame.d.ts","sourceRoot":"","sources":["../src/IFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAyC/D,eAAO,MAAM,MAAM,wOAAkC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFrame.js","sourceRoot":"","sources":["../src/IFrame.tsx"],"names":[],"mappings":";;;;AAAA,iCAA+D;AAC/D,iDAA2D;AAE3D,MAAM,mBAAmB,GAMrB,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,EAAE,EAAE;IACxC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAC9B,IAAA,0BAAW,EAAC,gCAAgC,KAAK,CAAC,GAAG,EAAE,CAAC,CACxD,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,mBAAW,EAC1B,CAAC,CAAiD,EAAE,EAAE;QACrD,IAAA,6BAAc,EAAC,MAAM,CAAC,CAAC;QACvB,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,CAAC;IACb,CAAC,EACD,CAAC,MAAM,EAAE,MAAM,CAAC,CAChB,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC9B,CAAC,CAAiD,EAAE,EAAE;QACrD,IAAA,6BAAc,EAAC,MAAM,CAAC,CAAC;QACvB,IAAI,OAAO,EAAE;YACZ,OAAO,CAAC,CAAC,CAAC,CAAC;SACX;aAAM;YACN,OAAO,CAAC,KAAK,CACZ,uBAAuB,EACvB,CAAC,EACD,2EAA2E,CAC3E,CAAC;SACF;IACF,CAAC,EACD,CAAC,MAAM,EAAE,OAAO,CAAC,CACjB,CAAC;IAEF,OAAO,sCAAY,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,WAAI,CAAC;AAC/E,CAAC,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,kBAAU,EAAC,mBAAmB,CAAC,CAAC"}
package/dist/Img.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Img.d.ts","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAkD1E,eAAO,MAAM,GAAG,8NAA+B,CAAC"}
package/dist/Img.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Img.js","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":";;;;AAAA,iCAA0E;AAC1E,iDAA2D;AAE3D,MAAM,gBAAgB,GAMlB,CAAC,EAAC,MAAM,EAAE,OAA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C,CAAC;IAEP,OAAO,CACN,uBAAC,oBAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACzC,uBAAC,yCAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,oBAAoB,YACpD,uBAAC,4CAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,uBAAuB,YAC1D,uBAAC,+CAA0B,cAC1B,uBAAC,8CAA0B;oBAC1B,8LAA8L;;wBAA9L,8LAA8L;wBAC9L,iBAAiB,EAAE,CAAC,YAEnB,QAAQ,WACmB,WACD,WACA,WACJ,WACJ,CACxB,CAAC;AACH,CAAC,CAAC;AA5EW,QAAA,YAAY,gBA4EvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Still.d.ts","sourceRoot":"","sources":["../src/Still.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,UAAU,EAAC,MAAM,eAAe,CAAC;AAEtD,eAAO,MAAM,KAAK,0CAEjB,CAAC"}
package/dist/Still.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Still.js","sourceRoot":"","sources":["../src/Still.tsx"],"names":[],"mappings":";;;;AAAA,+CAAsD;AAE/C,MAAM,KAAK,GAAG,CAAK,KAAoB,EAAE,EAAE;IACjD,OAAO,uBAAC,yBAAW,IAAC,GAAG,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC,KAAM,KAAK,WAAI,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,KAAK,SAEhB"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const TimelineRoot: React.FC<{
3
- children: React.ReactNode;
4
- pageIndex: number;
5
- }>;