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
@@ -1,5 +1,5 @@
1
- remotion:build: cache hit, replaying output 39dcfe0ce8ce0a46
1
+ remotion:build: cache hit, replaying output 4b47939fcdea9f24
2
2
  remotion:build: 
3
- remotion:build: > remotion@3.0.28 build /Users/jonathanburger/remotion/packages/core
3
+ remotion:build: > remotion@3.0.31 build /Users/jonathanburger/remotion/packages/core
4
4
  remotion:build: > tsc -d
5
5
  remotion:build: 
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const CanUseRemotionHooks: React.Context<boolean>;
3
+ export declare const CanUseRemotionHooksProvider: React.FC<{
4
+ children: React.ReactNode;
5
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CanUseRemotionHooksProvider = exports.CanUseRemotionHooks = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ exports.CanUseRemotionHooks = (0, react_1.createContext)(false);
7
+ const CanUseRemotionHooksProvider = ({ children }) => {
8
+ return ((0, jsx_runtime_1.jsx)(exports.CanUseRemotionHooks.Provider, { value: true, children: children }));
9
+ };
10
+ exports.CanUseRemotionHooksProvider = CanUseRemotionHooksProvider;
@@ -4,11 +4,13 @@ exports.Composition = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_dom_1 = require("react-dom");
7
+ const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
7
8
  const CompositionManager_1 = require("./CompositionManager");
8
9
  const input_props_1 = require("./config/input-props");
9
10
  const delay_render_1 = require("./delay-render");
10
11
  const Folder_1 = require("./Folder");
11
12
  const get_environment_1 = require("./get-environment");
13
+ const internals_1 = require("./internals");
12
14
  const loading_indicator_1 = require("./loading-indicator");
13
15
  const nonce_1 = require("./nonce");
14
16
  const portal_node_1 = require("./portal-node");
@@ -30,6 +32,13 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, .
30
32
  const video = (0, use_video_1.useVideo)();
31
33
  const lazy = (0, use_lazy_component_1.useLazyComponent)(compProps);
32
34
  const nonce = (0, nonce_1.useNonce)();
35
+ const canUseComposition = (0, react_1.useContext)(internals_1.Internals.CanUseRemotionHooks);
36
+ if (canUseComposition) {
37
+ if (typeof window !== 'undefined' && window.remotion_isPlayer) {
38
+ throw new Error('<Composition> was mounted inside the `component` that was passed to the <Player>. See https://remotion.dev/docs/wrong-composition-mount for help.');
39
+ }
40
+ throw new Error('<Composition> mounted inside another composition. See https://remotion.dev/docs/wrong-composition-mount for help.');
41
+ }
33
42
  const { folderName, parentName } = (0, react_1.useContext)(Folder_1.FolderContext);
34
43
  (0, react_1.useEffect)(() => {
35
44
  // Ensure it's a URL safe id
@@ -40,7 +49,7 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, .
40
49
  (0, validate_dimensions_1.validateDimension)(width, 'width', 'of the <Composition/> component');
41
50
  (0, validate_dimensions_1.validateDimension)(height, 'height', 'of the <Composition/> component');
42
51
  (0, validate_duration_in_frames_1.validateDurationInFrames)(durationInFrames, 'of the <Composition/> component');
43
- (0, validate_fps_1.validateFps)(fps, 'as a prop of the <Composition/> component');
52
+ (0, validate_fps_1.validateFps)(fps, 'as a prop of the <Composition/> component', null);
44
53
  registerComposition({
45
54
  durationInFrames,
46
55
  fps,
@@ -75,14 +84,14 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, .
75
84
  video.component === lazy) {
76
85
  const Comp = lazy;
77
86
  const inputProps = (0, input_props_1.getInputProps)();
78
- return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(loading_indicator_1.Loading, {}), children: (0, jsx_runtime_1.jsx)(Comp, { ...defaultProps, ...inputProps }) }), (0, portal_node_1.portalNode)());
87
+ return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(CanUseRemotionHooks_1.CanUseRemotionHooksProvider, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(loading_indicator_1.Loading, {}), children: (0, jsx_runtime_1.jsx)(Comp, { ...defaultProps, ...inputProps }) }) }), (0, portal_node_1.portalNode)());
79
88
  }
80
89
  if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering' &&
81
90
  video &&
82
91
  video.component === lazy) {
83
92
  const Comp = lazy;
84
93
  const inputProps = (0, input_props_1.getInputProps)();
85
- return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Fallback, {}), children: (0, jsx_runtime_1.jsx)(Comp, { ...defaultProps, ...inputProps }) }), (0, portal_node_1.portalNode)());
94
+ return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(CanUseRemotionHooks_1.CanUseRemotionHooksProvider, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Fallback, {}), children: (0, jsx_runtime_1.jsx)(Comp, { ...defaultProps, ...inputProps }) }) }), (0, portal_node_1.portalNode)());
86
95
  }
87
96
  return null;
88
97
  };
@@ -53,8 +53,8 @@ export declare type TAsset = {
53
53
  export declare type RenderAssetInfo = {
54
54
  assets: TAsset[][];
55
55
  imageSequenceName: string;
56
- firstFrameIndex: number;
57
56
  downloadDir: string;
57
+ firstFrameIndex: number;
58
58
  };
59
59
  export declare type CompositionManagerContext = {
60
60
  compositions: TComposition[];
package/dist/Img.js CHANGED
@@ -20,6 +20,9 @@ const ImgRefForwarding = ({ onError, ...props }, ref) => {
20
20
  }, [onError]);
21
21
  // If image source switches, make new handle
22
22
  (0, react_1.useLayoutEffect)(() => {
23
+ if (process.env.NODE_ENV === 'test') {
24
+ return;
25
+ }
23
26
  const newHandle = (0, delay_render_1.delayRender)('Loading <Img> with src=' + props.src);
24
27
  const { current } = imageRef;
25
28
  const didLoad = () => {
package/dist/Still.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import type { StillProps } from './Composition';
2
3
  export declare const Still: <T>(props: StillProps<T>) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { RemotionMainAudioProps } from './props';
3
- export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
3
+ export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainAudioProps, "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" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "volume" | "playbackRate" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
6
+ } & RemotionMainAudioProps, "id" | "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" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
2
+ export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
3
3
  volume?: import("../volume-prop").VolumeProp | undefined;
4
4
  playbackRate?: number | undefined;
5
5
  } & {
6
6
  shouldPreMountAudioTags: 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" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "volume" | "playbackRate" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
7
+ }, "id" | "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" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { RemotionAudioProps } from './props';
3
- export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "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" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "volume" | "playbackRate"> & React.RefAttributes<HTMLAudioElement>>;
3
+ export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "id" | "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"> & React.RefAttributes<HTMLAudioElement>>;
@@ -1,4 +1,4 @@
1
- declare const validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv"];
1
+ declare const validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
2
2
  export declare type Codec = typeof validCodecs[number];
3
3
  export declare type CodecOrUndefined = Codec | undefined;
4
4
  declare const validLegacyFormats: readonly ["mp4", "png-sequence"];
@@ -11,6 +11,7 @@ const validCodecs = [
11
11
  'wav',
12
12
  'prores',
13
13
  'h264-mkv',
14
+ 'gif',
14
15
  ];
15
16
  const validLegacyFormats = ['mp4', 'png-sequence'];
16
17
  let codec;
@@ -68,6 +69,12 @@ const getFinalOutputCodec = ({ codec: inputCodec, fileExtension, emitWarning, })
68
69
  }
69
70
  return 'h264-mkv';
70
71
  }
72
+ if (inputCodec === undefined && fileExtension === 'gif') {
73
+ if (emitWarning) {
74
+ console.info('You have specified a .gif extension, rendering a GIF');
75
+ }
76
+ return 'gif';
77
+ }
71
78
  return inputCodec !== null && inputCodec !== void 0 ? inputCodec : exports.DEFAULT_CODEC;
72
79
  };
73
80
  exports.getFinalOutputCodec = getFinalOutputCodec;
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getConcurrency = exports.setConcurrency = void 0;
4
4
  let currentConcurrency = null;
5
5
  const setConcurrency = (newConcurrency) => {
6
- if (typeof newConcurrency !== 'number') {
7
- throw new Error('--concurrency flag must be a number.');
8
- }
9
6
  currentConcurrency = newConcurrency;
10
7
  };
11
8
  exports.setConcurrency = setConcurrency;
@@ -21,7 +21,7 @@ const getDefaultCrfForCodec = (codec) => {
21
21
  if (codec === 'h264' || codec === 'h264-mkv') {
22
22
  return 18; // FFMPEG default 23
23
23
  }
24
- if (codec === 'h265') {
24
+ if (codec === 'h265' || codec === 'gif') {
25
25
  return 23; // FFMPEG default 28
26
26
  }
27
27
  if (codec === 'vp8') {
@@ -46,7 +46,7 @@ const getValidCrfRanges = (codec) => {
46
46
  if (codec === 'h264' || codec === 'h264-mkv') {
47
47
  return [1, 51];
48
48
  }
49
- if (codec === 'h265') {
49
+ if (codec === 'h265' || codec === 'gif') {
50
50
  return [0, 51];
51
51
  }
52
52
  if (codec === 'vp8') {
@@ -0,0 +1,3 @@
1
+ import type { Codec } from './codec';
2
+ export declare const setEveryNthFrame: (frame: number) => void;
3
+ export declare const getAndValidateEveryNthFrame: (codec: Codec) => number;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAndValidateEveryNthFrame = exports.setEveryNthFrame = void 0;
4
+ const validate_every_nth_frame_1 = require("../validation/validate-every-nth-frame");
5
+ let everyNthFrame = 1;
6
+ const setEveryNthFrame = (frame) => {
7
+ (0, validate_every_nth_frame_1.validateEveryNthFrame)(frame);
8
+ everyNthFrame = frame;
9
+ };
10
+ exports.setEveryNthFrame = setEveryNthFrame;
11
+ const getAndValidateEveryNthFrame = (codec) => {
12
+ if (everyNthFrame === 1) {
13
+ return everyNthFrame;
14
+ }
15
+ if (codec !== 'gif') {
16
+ throw new Error(`"everyNthFrame" can only be set if "codec" is set to "gif". The codec is "${codec}"`);
17
+ }
18
+ return everyNthFrame;
19
+ };
20
+ exports.getAndValidateEveryNthFrame = getAndValidateEveryNthFrame;
@@ -122,6 +122,17 @@ export declare const Config: {
122
122
  * Default: 1.
123
123
  */
124
124
  readonly setScale: (newScale: number) => void;
125
+ /**
126
+ * Specify which frames should be picked for rendering a GIF
127
+ * Default: 1, which means every frame
128
+ * https://remotion.dev/docs/render-as-gif
129
+ */
130
+ readonly setEveryNthFrame: (frame: number) => void;
131
+ /**
132
+ * Specify the number of Loop a GIF should have.
133
+ * Default: null (means GIF will loop infinite)
134
+ */
135
+ readonly setNumberOfGifLoops: (newLoop: import("./number-of-gif-loops").Loop) => void;
125
136
  };
126
137
  readonly Output: {
127
138
  /**
@@ -161,7 +172,7 @@ export declare const Config: {
161
172
  * Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
162
173
  * See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
163
174
  */
164
- readonly setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
175
+ readonly setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
165
176
  };
166
177
  };
167
178
  export type { PixelFormat, Concurrency, WebpackConfiguration, WebpackOverrideFn, BrowserExecutable, FfmpegExecutable, ImageFormat, Codec, Browser, FrameRange, LogLevel, StillImageFormat, };
@@ -7,12 +7,14 @@ const codec_1 = require("./codec");
7
7
  const concurrency_1 = require("./concurrency");
8
8
  const crf_1 = require("./crf");
9
9
  const env_file_1 = require("./env-file");
10
+ const every_nth_frame_1 = require("./every-nth-frame");
10
11
  const ffmpeg_executable_1 = require("./ffmpeg-executable");
11
12
  const frame_range_1 = require("./frame-range");
12
13
  const image_format_1 = require("./image-format");
13
14
  const image_sequence_1 = require("./image-sequence");
14
15
  const log_1 = require("./log");
15
16
  const max_timeline_tracks_1 = require("./max-timeline-tracks");
17
+ const number_of_gif_loops_1 = require("./number-of-gif-loops");
16
18
  const override_webpack_1 = require("./override-webpack");
17
19
  const overwrite_1 = require("./overwrite");
18
20
  const pixel_format_1 = require("./pixel-format");
@@ -136,6 +138,17 @@ exports.Config = {
136
138
  * Default: 1.
137
139
  */
138
140
  setScale: scale_1.setScale,
141
+ /**
142
+ * Specify which frames should be picked for rendering a GIF
143
+ * Default: 1, which means every frame
144
+ * https://remotion.dev/docs/render-as-gif
145
+ */
146
+ setEveryNthFrame: every_nth_frame_1.setEveryNthFrame,
147
+ /**
148
+ * Specify the number of Loop a GIF should have.
149
+ * Default: null (means GIF will loop infinite)
150
+ */
151
+ setNumberOfGifLoops: number_of_gif_loops_1.setNumberOfGifLoops,
139
152
  },
140
153
  Output: {
141
154
  /**
@@ -1,3 +1,4 @@
1
+ import type { Codec } from './codec';
1
2
  export declare type Loop = number | null;
2
- export declare const setLoop: (newLoop: Loop) => void;
3
- export declare const getLoop: () => Loop;
3
+ export declare const setNumberOfGifLoops: (newLoop: Loop | null) => void;
4
+ export declare const getAndValidateNumberOfGifLoops: (codec: Codec) => Loop;
@@ -1,15 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLoop = exports.setLoop = void 0;
3
+ exports.getAndValidateNumberOfGifLoops = exports.setNumberOfGifLoops = void 0;
4
4
  let currentLoop = null;
5
- const setLoop = (newLoop) => {
6
- if (typeof newLoop !== 'number') {
7
- throw new Error('--loop flag must be a number.');
5
+ const setNumberOfGifLoops = (newLoop) => {
6
+ if (newLoop !== null && typeof newLoop !== 'number') {
7
+ throw new Error('--number-of-gif-loops flag must be a number.');
8
8
  }
9
9
  currentLoop = newLoop;
10
10
  };
11
- exports.setLoop = setLoop;
12
- const getLoop = () => {
11
+ exports.setNumberOfGifLoops = setNumberOfGifLoops;
12
+ const getAndValidateNumberOfGifLoops = (codec) => {
13
+ if (codec !== 'gif') {
14
+ throw new Error(`The "numberOfGifLoops" setting can only be used for GIFs. The codec is set to ${codec}`);
15
+ }
13
16
  return currentLoop;
14
17
  };
15
- exports.getLoop = getLoop;
18
+ exports.getAndValidateNumberOfGifLoops = getAndValidateNumberOfGifLoops;
@@ -0,0 +1,4 @@
1
+ import type { Codec } from './codec';
2
+ export declare type Loop = number | null;
3
+ export declare const setNumberOfGifLoops: (newLoop: Loop | null) => void;
4
+ export declare const getAndValidateNumberOfGifLoops: (codec: Codec) => number | null;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAndValidateNumberOfGifLoops = exports.setNumberOfGifLoops = void 0;
4
+ let currentLoop = null;
5
+ const setNumberOfGifLoops = (newLoop) => {
6
+ if (newLoop !== null && typeof newLoop !== 'number') {
7
+ throw new Error('--number-of-gif-loops flag must be a number.');
8
+ }
9
+ currentLoop = newLoop;
10
+ };
11
+ exports.setNumberOfGifLoops = setNumberOfGifLoops;
12
+ const getAndValidateNumberOfGifLoops = (codec) => {
13
+ if (currentLoop === null) {
14
+ return currentLoop;
15
+ }
16
+ if (codec !== 'gif') {
17
+ throw new Error(`The "numberOfGifLoops" setting can only be used for GIFs. The codec is set to ${codec}`);
18
+ }
19
+ return currentLoop;
20
+ };
21
+ exports.getAndValidateNumberOfGifLoops = getAndValidateNumberOfGifLoops;
@@ -0,0 +1,2 @@
1
+ export declare const setSkipNFrames: (frame: number) => void;
2
+ export declare const getSkipNFrames: () => number;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSkipNFrames = exports.setSkipNFrames = void 0;
4
+ const validate_frame_1 = require("../validation/validate-frame");
5
+ let skipNFrames = 0;
6
+ const setSkipNFrames = (frame) => {
7
+ (0, validate_frame_1.validateFrame)(frame, Infinity);
8
+ skipNFrames = frame;
9
+ };
10
+ exports.setSkipNFrames = setSkipNFrames;
11
+ const getSkipNFrames = () => skipNFrames;
12
+ exports.getSkipNFrames = getSkipNFrames;
@@ -7,21 +7,19 @@ import type { ProResProfile } from './config/prores-profile';
7
7
  import * as CSSUtils from './default-css';
8
8
  import type { RemotionEnvironment } from './get-environment';
9
9
  import * as perf from './perf';
10
- import * as TimelineInOutPosition from './timeline-inout-position-state';
11
10
  import type { SetTimelineInOutContextValue, TimelineInOutContextValue } from './timeline-inout-position-state';
12
- import * as TimelinePosition from './timeline-position-state';
13
11
  import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
14
12
  import { truthy } from './truthy';
15
13
  import type { OpenGlRenderer } from './validation/validate-opengl-renderer';
16
14
  import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
17
15
  import { useRemotionContexts } from './wrap-remotion-context';
18
16
  declare const Timeline: {
19
- TimelineInOutContext: import("react").Context<TimelineInOutPosition.TimelineInOutContextValue>;
20
- SetTimelineInOutContext: import("react").Context<TimelineInOutPosition.SetTimelineInOutContextValue>;
21
- useTimelineInOutFramePosition: () => TimelineInOutPosition.TimelineInOutContextValue;
22
- useTimelineSetInOutFramePosition: () => TimelineInOutPosition.SetTimelineInOutContextValue;
23
- TimelineContext: import("react").Context<TimelinePosition.TimelineContextValue>;
24
- SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
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>;
25
23
  useTimelinePosition: () => number;
26
24
  useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
27
25
  usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
@@ -30,12 +28,12 @@ export declare const Internals: {
30
28
  perf: typeof perf;
31
29
  useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
32
30
  Timeline: {
33
- TimelineInOutContext: import("react").Context<TimelineInOutPosition.TimelineInOutContextValue>;
34
- SetTimelineInOutContext: import("react").Context<TimelineInOutPosition.SetTimelineInOutContextValue>;
35
- useTimelineInOutFramePosition: () => TimelineInOutPosition.TimelineInOutContextValue;
36
- useTimelineSetInOutFramePosition: () => TimelineInOutPosition.SetTimelineInOutContextValue;
37
- TimelineContext: import("react").Context<TimelinePosition.TimelineContextValue>;
38
- SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
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>;
39
37
  useTimelinePosition: () => number;
40
38
  useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
41
39
  usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
@@ -56,28 +54,30 @@ export declare const Internals: {
56
54
  getOutputCodecOrUndefined: () => import("./config/codec").CodecOrUndefined;
57
55
  getWebpackOverrideFn: () => WebpackOverrideFn;
58
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
59
  getScale: () => number;
60
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") => void;
61
+ validateSelectedCrfAndCodecCombination: (crf: unknown, codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
62
62
  getFinalOutputCodec: ({ codec: inputCodec, fileExtension, emitWarning, }: {
63
63
  codec: import("./config/codec").CodecOrUndefined;
64
64
  fileExtension: string | null;
65
65
  emitWarning: boolean;
66
- }) => "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv";
66
+ }) => "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
67
67
  useMediaVolumeState: () => readonly [number, (u: number) => void];
68
68
  useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
69
- DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv";
69
+ DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
70
70
  DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
71
71
  FEATURE_FLAG_FIREFOX_SUPPORT: boolean;
72
72
  DEFAULT_WEBPACK_CACHE_ENABLED: boolean;
73
73
  getBrowser: () => import("./config/browser").Browser | null;
74
74
  DEFAULT_BROWSER: import("./config/browser").Browser;
75
- getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
76
- getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
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
77
  setFrameRangeFromCli: (newFrameRange: string | number) => void;
78
78
  getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
79
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") => void;
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
81
  validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
82
82
  validateNonNullImageFormat: (imageFormat: "none" | "png" | "jpeg") => void;
83
83
  getWebpackCaching: () => boolean;
@@ -85,7 +85,7 @@ export declare const Internals: {
85
85
  readonly _result: import("react").ComponentType<T>;
86
86
  };
87
87
  truthy: typeof truthy;
88
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | undefined) => boolean;
88
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
89
89
  Logging: typeof Logging;
90
90
  SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
91
91
  useRemotionContexts: typeof useRemotionContexts;
@@ -98,12 +98,12 @@ export declare const Internals: {
98
98
  MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
99
99
  SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
100
100
  validateDurationInFrames: (durationInFrames: number, component: string) => void;
101
- validateFps: (fps: number, location: string) => void;
101
+ validateFps: (fps: number, location: string, codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null) => void;
102
102
  validateDimension: (amount: number, nameOfProp: string, location: string) => void;
103
103
  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", actualProResProfile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
104
+ getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
105
+ setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
106
+ validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", actualProResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
107
107
  getMaxTimelineTracks: () => number;
108
108
  SharedAudioContext: import("react").Context<{
109
109
  registerAudio: (aud: import("./audio").RemotionAudioProps) => {
@@ -148,5 +148,9 @@ export declare const Internals: {
148
148
  portalNode: () => HTMLElement;
149
149
  waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
150
150
  validateOffthreadVideoImageFormat: (input: unknown) => void;
151
+ CanUseRemotionHooksProvider: import("react").FC<{
152
+ children: import("react").ReactNode;
153
+ }>;
154
+ CanUseRemotionHooks: import("react").Context<boolean>;
151
155
  };
152
156
  export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, TAsset, RenderAssetInfo, TimelineContextValue, SetTimelineContextValue, TimelineInOutContextValue, SetTimelineInOutContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, ProResProfile, OpenGlRenderer, };