remotion 3.0.28 → 3.0.31

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 (257) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/dist/CanUseRemotionHooks.d.ts +5 -0
  3. package/dist/CanUseRemotionHooks.js +10 -0
  4. package/dist/Composition.js +11 -2
  5. package/dist/Still.d.ts +1 -0
  6. package/dist/audio/Audio.d.ts +2 -2
  7. package/dist/audio/AudioForDevelopment.d.ts +2 -2
  8. package/dist/audio/AudioForRendering.d.ts +1 -1
  9. package/dist/config/concurrency.js +0 -3
  10. package/dist/config/every-nth-frame.d.ts +3 -0
  11. package/dist/config/every-nth-frame.js +20 -0
  12. package/dist/config/image-format.d.ts +1 -1
  13. package/dist/config/index.d.ts +3 -3
  14. package/dist/config/log.d.ts +1 -1
  15. package/dist/config/skip-n-frames.d.ts +2 -0
  16. package/dist/config/skip-n-frames.js +12 -0
  17. package/dist/internals.d.ts +22 -20
  18. package/dist/internals.js +3 -0
  19. package/dist/preload.d.ts +7 -0
  20. package/dist/preload.js +39 -0
  21. package/dist/use-current-frame.js +8 -0
  22. package/dist/use-media-playback.js +1 -0
  23. package/dist/use-video-config.js +6 -0
  24. package/dist/video/Video.d.ts +2 -2
  25. package/dist/video/VideoForDevelopment.d.ts +2 -2
  26. package/dist/video/VideoForRendering.d.ts +1 -1
  27. package/dist/video/VideoForRendering.js +1 -0
  28. package/dist/video/get-current-time.d.ts +2 -1
  29. package/dist/video/get-current-time.js +7 -7
  30. package/dist/warn-about-non-seekable-media.d.ts +1 -1
  31. package/dist/warn-about-non-seekable-media.js +3 -0
  32. package/dist/wrap-remotion-context.d.ts +1 -0
  33. package/dist/wrap-remotion-context.js +5 -1
  34. package/package.json +2 -2
  35. package/.turbo/turbo-lint.log +0 -11
  36. package/dist/AbsoluteFill.d.ts.map +0 -1
  37. package/dist/AbsoluteFill.js.map +0 -1
  38. package/dist/AssetRoot.d.ts +0 -11
  39. package/dist/AssetRoot.js +0 -38
  40. package/dist/Composition.d.ts.map +0 -1
  41. package/dist/Composition.js.map +0 -1
  42. package/dist/CompositionManager.d.ts.map +0 -1
  43. package/dist/CompositionManager.js.map +0 -1
  44. package/dist/IFrame.d.ts.map +0 -1
  45. package/dist/IFrame.js.map +0 -1
  46. package/dist/Img.d.ts.map +0 -1
  47. package/dist/Img.js.map +0 -1
  48. package/dist/RemotionRoot.d.ts.map +0 -1
  49. package/dist/RemotionRoot.js.map +0 -1
  50. package/dist/Still.d.ts.map +0 -1
  51. package/dist/Still.js.map +0 -1
  52. package/dist/TimelineRoot.d.ts +0 -5
  53. package/dist/TimelineRoot.js +0 -51
  54. package/dist/absolute-src.d.ts.map +0 -1
  55. package/dist/absolute-src.js.map +0 -1
  56. package/dist/asset-types.d.ts.map +0 -1
  57. package/dist/asset-types.js.map +0 -1
  58. package/dist/audio/Audio.d.ts.map +0 -1
  59. package/dist/audio/Audio.js.map +0 -1
  60. package/dist/audio/AudioForDevelopment.d.ts.map +0 -1
  61. package/dist/audio/AudioForDevelopment.js.map +0 -1
  62. package/dist/audio/AudioForRendering.d.ts.map +0 -1
  63. package/dist/audio/AudioForRendering.js.map +0 -1
  64. package/dist/audio/index.d.ts.map +0 -1
  65. package/dist/audio/index.js.map +0 -1
  66. package/dist/audio/props.d.ts.map +0 -1
  67. package/dist/audio/props.js.map +0 -1
  68. package/dist/audio/shared-audio-tags.d.ts.map +0 -1
  69. package/dist/audio/shared-audio-tags.js.map +0 -1
  70. package/dist/audio/use-audio-frame.d.ts.map +0 -1
  71. package/dist/audio/use-audio-frame.js.map +0 -1
  72. package/dist/bezier.d.ts.map +0 -1
  73. package/dist/bezier.js.map +0 -1
  74. package/dist/compress-assets.d.ts.map +0 -1
  75. package/dist/compress-assets.js.map +0 -1
  76. package/dist/config/browser-executable.d.ts.map +0 -1
  77. package/dist/config/browser-executable.js.map +0 -1
  78. package/dist/config/browser.d.ts.map +0 -1
  79. package/dist/config/browser.js.map +0 -1
  80. package/dist/config/chromium-flags.d.ts.map +0 -1
  81. package/dist/config/chromium-flags.js.map +0 -1
  82. package/dist/config/codec.d.ts.map +0 -1
  83. package/dist/config/codec.js.map +0 -1
  84. package/dist/config/concurrency.d.ts.map +0 -1
  85. package/dist/config/concurrency.js.map +0 -1
  86. package/dist/config/crf.d.ts.map +0 -1
  87. package/dist/config/crf.js.map +0 -1
  88. package/dist/config/env-file.d.ts.map +0 -1
  89. package/dist/config/env-file.js.map +0 -1
  90. package/dist/config/ffmpeg-executable.d.ts.map +0 -1
  91. package/dist/config/ffmpeg-executable.js.map +0 -1
  92. package/dist/config/frame-range.d.ts.map +0 -1
  93. package/dist/config/frame-range.js.map +0 -1
  94. package/dist/config/image-format.d.ts.map +0 -1
  95. package/dist/config/image-format.js.map +0 -1
  96. package/dist/config/image-sequence.d.ts.map +0 -1
  97. package/dist/config/image-sequence.js.map +0 -1
  98. package/dist/config/index.d.ts.map +0 -1
  99. package/dist/config/index.js.map +0 -1
  100. package/dist/config/input-props.d.ts.map +0 -1
  101. package/dist/config/input-props.js.map +0 -1
  102. package/dist/config/log.d.ts.map +0 -1
  103. package/dist/config/log.js.map +0 -1
  104. package/dist/config/max-timeline-tracks.d.ts.map +0 -1
  105. package/dist/config/max-timeline-tracks.js.map +0 -1
  106. package/dist/config/override-webpack.d.ts.map +0 -1
  107. package/dist/config/override-webpack.js.map +0 -1
  108. package/dist/config/overwrite.d.ts.map +0 -1
  109. package/dist/config/overwrite.js.map +0 -1
  110. package/dist/config/pixel-format.d.ts.map +0 -1
  111. package/dist/config/pixel-format.js.map +0 -1
  112. package/dist/config/preview-server.d.ts.map +0 -1
  113. package/dist/config/preview-server.js.map +0 -1
  114. package/dist/config/prores-profile.d.ts.map +0 -1
  115. package/dist/config/prores-profile.js.map +0 -1
  116. package/dist/config/quality.d.ts.map +0 -1
  117. package/dist/config/quality.js.map +0 -1
  118. package/dist/config/scale.d.ts.map +0 -1
  119. package/dist/config/scale.js.map +0 -1
  120. package/dist/config/still-frame.d.ts.map +0 -1
  121. package/dist/config/still-frame.js.map +0 -1
  122. package/dist/config/timeout.d.ts.map +0 -1
  123. package/dist/config/timeout.js.map +0 -1
  124. package/dist/config/webpack-caching.d.ts.map +0 -1
  125. package/dist/config/webpack-caching.js.map +0 -1
  126. package/dist/default-css.d.ts.map +0 -1
  127. package/dist/default-css.js.map +0 -1
  128. package/dist/delay-render.d.ts.map +0 -1
  129. package/dist/delay-render.js.map +0 -1
  130. package/dist/easing.d.ts.map +0 -1
  131. package/dist/easing.js.map +0 -1
  132. package/dist/feature-flags.d.ts.map +0 -1
  133. package/dist/feature-flags.js.map +0 -1
  134. package/dist/freeze.d.ts.map +0 -1
  135. package/dist/freeze.js.map +0 -1
  136. package/dist/get-asset-file-name.d.ts.map +0 -1
  137. package/dist/get-asset-file-name.js.map +0 -1
  138. package/dist/get-environment.d.ts.map +0 -1
  139. package/dist/get-environment.js.map +0 -1
  140. package/dist/get-preview-dom-element.d.ts.map +0 -1
  141. package/dist/get-preview-dom-element.js.map +0 -1
  142. package/dist/get-timeline-clip-name.d.ts.map +0 -1
  143. package/dist/get-timeline-clip-name.js.map +0 -1
  144. package/dist/index.d.ts.map +0 -1
  145. package/dist/index.js.map +0 -1
  146. package/dist/initial-frame.d.ts.map +0 -1
  147. package/dist/initial-frame.js.map +0 -1
  148. package/dist/internals.d.ts.map +0 -1
  149. package/dist/internals.js.map +0 -1
  150. package/dist/interpolate.d.ts.map +0 -1
  151. package/dist/interpolate.js.map +0 -1
  152. package/dist/interpolateColors.d.ts.map +0 -1
  153. package/dist/interpolateColors.js.map +0 -1
  154. package/dist/is-approximately-the-same.d.ts.map +0 -1
  155. package/dist/is-approximately-the-same.js.map +0 -1
  156. package/dist/is-audio-codec.d.ts.map +0 -1
  157. package/dist/is-audio-codec.js.map +0 -1
  158. package/dist/loop/index.d.ts.map +0 -1
  159. package/dist/loop/index.js.map +0 -1
  160. package/dist/multiple-versions-warning.d.ts.map +0 -1
  161. package/dist/multiple-versions-warning.js.map +0 -1
  162. package/dist/nonce.d.ts.map +0 -1
  163. package/dist/nonce.js.map +0 -1
  164. package/dist/perf/index.d.ts.map +0 -1
  165. package/dist/perf/index.js.map +0 -1
  166. package/dist/play-and-handle-not-allowed-error.d.ts.map +0 -1
  167. package/dist/play-and-handle-not-allowed-error.js.map +0 -1
  168. package/dist/random.d.ts.map +0 -1
  169. package/dist/random.js.map +0 -1
  170. package/dist/register-root.d.ts.map +0 -1
  171. package/dist/register-root.js.map +0 -1
  172. package/dist/sequencing/index.d.ts.map +0 -1
  173. package/dist/sequencing/index.js.map +0 -1
  174. package/dist/series/flatten-children.d.ts.map +0 -1
  175. package/dist/series/flatten-children.js.map +0 -1
  176. package/dist/series/index.d.ts.map +0 -1
  177. package/dist/series/index.js.map +0 -1
  178. package/dist/setup-env-variables.d.ts.map +0 -1
  179. package/dist/setup-env-variables.js.map +0 -1
  180. package/dist/spring/index.d.ts.map +0 -1
  181. package/dist/spring/index.js.map +0 -1
  182. package/dist/spring/measure-spring.d.ts.map +0 -1
  183. package/dist/spring/measure-spring.js.map +0 -1
  184. package/dist/spring/spring-utils.d.ts.map +0 -1
  185. package/dist/spring/spring-utils.js.map +0 -1
  186. package/dist/static-file.d.ts.map +0 -1
  187. package/dist/static-file.js.map +0 -1
  188. package/dist/timeline-inout-position-state.d.ts.map +0 -1
  189. package/dist/timeline-inout-position-state.js.map +0 -1
  190. package/dist/timeline-position-state.d.ts.map +0 -1
  191. package/dist/timeline-position-state.js.map +0 -1
  192. package/dist/timeout.d.ts.map +0 -1
  193. package/dist/timeout.js.map +0 -1
  194. package/dist/truthy.d.ts.map +0 -1
  195. package/dist/truthy.js.map +0 -1
  196. package/dist/use-frame.d.ts.map +0 -1
  197. package/dist/use-frame.js.map +0 -1
  198. package/dist/use-lazy-component.d.ts.map +0 -1
  199. package/dist/use-lazy-component.js.map +0 -1
  200. package/dist/use-media-in-timeline.d.ts.map +0 -1
  201. package/dist/use-media-in-timeline.js.map +0 -1
  202. package/dist/use-media-playback.d.ts.map +0 -1
  203. package/dist/use-media-playback.js.map +0 -1
  204. package/dist/use-media-tag-volume.d.ts.map +0 -1
  205. package/dist/use-media-tag-volume.js.map +0 -1
  206. package/dist/use-sync-volume-with-media-tag.d.ts.map +0 -1
  207. package/dist/use-sync-volume-with-media-tag.js.map +0 -1
  208. package/dist/use-unsafe-video-config.d.ts.map +0 -1
  209. package/dist/use-unsafe-video-config.js.map +0 -1
  210. package/dist/use-video-config.d.ts.map +0 -1
  211. package/dist/use-video-config.js.map +0 -1
  212. package/dist/use-video.d.ts.map +0 -1
  213. package/dist/use-video.js.map +0 -1
  214. package/dist/validate-media-props.d.ts.map +0 -1
  215. package/dist/validate-media-props.js.map +0 -1
  216. package/dist/validate-start-from-props.d.ts.map +0 -1
  217. package/dist/validate-start-from-props.js.map +0 -1
  218. package/dist/validation/validate-composition-id.d.ts.map +0 -1
  219. package/dist/validation/validate-composition-id.js.map +0 -1
  220. package/dist/validation/validate-dimensions.d.ts.map +0 -1
  221. package/dist/validation/validate-dimensions.js.map +0 -1
  222. package/dist/validation/validate-duration-in-frames.d.ts.map +0 -1
  223. package/dist/validation/validate-duration-in-frames.js.map +0 -1
  224. package/dist/validation/validate-folder-name.d.ts.map +0 -1
  225. package/dist/validation/validate-folder-name.js.map +0 -1
  226. package/dist/validation/validate-fps.d.ts.map +0 -1
  227. package/dist/validation/validate-fps.js.map +0 -1
  228. package/dist/validation/validate-frame.d.ts.map +0 -1
  229. package/dist/validation/validate-frame.js.map +0 -1
  230. package/dist/validation/validate-image-format.d.ts.map +0 -1
  231. package/dist/validation/validate-image-format.js.map +0 -1
  232. package/dist/validation/validate-opengl-renderer.d.ts.map +0 -1
  233. package/dist/validation/validate-opengl-renderer.js.map +0 -1
  234. package/dist/validation/validate-quality.d.ts.map +0 -1
  235. package/dist/validation/validate-quality.js.map +0 -1
  236. package/dist/video/Video.d.ts.map +0 -1
  237. package/dist/video/Video.js.map +0 -1
  238. package/dist/video/VideoForDevelopment.d.ts.map +0 -1
  239. package/dist/video/VideoForDevelopment.js.map +0 -1
  240. package/dist/video/VideoForRendering.d.ts.map +0 -1
  241. package/dist/video/VideoForRendering.js.map +0 -1
  242. package/dist/video/get-current-time.d.ts.map +0 -1
  243. package/dist/video/get-current-time.js.map +0 -1
  244. package/dist/video/index.d.ts.map +0 -1
  245. package/dist/video/index.js.map +0 -1
  246. package/dist/video/props.d.ts.map +0 -1
  247. package/dist/video/props.js.map +0 -1
  248. package/dist/video-config.d.ts.map +0 -1
  249. package/dist/video-config.js.map +0 -1
  250. package/dist/volume-position-state.d.ts.map +0 -1
  251. package/dist/volume-position-state.js.map +0 -1
  252. package/dist/volume-prop.d.ts.map +0 -1
  253. package/dist/volume-prop.js.map +0 -1
  254. package/dist/warn-about-non-seekable-media.d.ts.map +0 -1
  255. package/dist/warn-about-non-seekable-media.js.map +0 -1
  256. package/dist/wrap-remotion-context.d.ts.map +0 -1
  257. package/dist/wrap-remotion-context.js.map +0 -1
@@ -1,5 +1,5 @@
1
- remotion:build: cache hit, replaying output 8d918d41c8063ac6
2
- remotion:build: 
3
- remotion:build: > remotion@3.0.27 build /Users/jonathanburger/remotion/packages/core
4
- remotion:build: > tsc -d
5
- remotion:build: 
1
+ remotion:build: cache hit, replaying output 0d71ae1192217fe9
2
+ remotion:build: 
3
+ remotion:build: > remotion@3.0.30 build /Users/jonathanburger/remotion/packages/core
4
+ remotion:build: > tsc -d
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
@@ -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
  };
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, "children" | "slot" | "style" | "title" | "id" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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 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
+ }, "children" | "slot" | "style" | "title" | "id" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "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, "children" | "slot" | "style" | "title" | "id" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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<HTMLAudioElement>>;
@@ -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;
@@ -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"`);
17
+ }
18
+ return everyNthFrame;
19
+ };
20
+ exports.getAndValidateEveryNthFrame = getAndValidateEveryNthFrame;
@@ -3,6 +3,6 @@ declare const validOptions: readonly ["png", "jpeg", "none"];
3
3
  export declare type ImageFormat = typeof validOptions[number];
4
4
  export declare type StillImageFormat = 'png' | 'jpeg';
5
5
  export declare const setImageFormat: (format: ImageFormat) => void;
6
- export declare const getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
6
+ export declare const getUserPreferredImageFormat: () => "png" | "jpeg" | "none" | undefined;
7
7
  export declare const validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: PixelFormat, imageFormat: ImageFormat) => 'none' | 'valid';
8
8
  export {};
@@ -44,7 +44,7 @@ export declare const Config: {
44
44
  *
45
45
  * Set this to 'verbose' to get browser logs and other IO.
46
46
  */
47
- readonly setLevel: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
47
+ readonly setLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
48
48
  };
49
49
  readonly Puppeteer: {
50
50
  /**
@@ -99,7 +99,7 @@ export declare const Config: {
99
99
  /** Decide in which image format to render. Can be either 'jpeg' or 'png'.
100
100
  * PNG is slower, but supports transparency.
101
101
  */
102
- readonly setImageFormat: (format: "none" | "png" | "jpeg") => void;
102
+ readonly setImageFormat: (format: "png" | "jpeg" | "none") => void;
103
103
  /**
104
104
  * Render only a subset of a video.
105
105
  * Pass in a tuple [20, 30] to only render frames 20-30 into a video.
@@ -161,7 +161,7 @@ export declare const Config: {
161
161
  * Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
162
162
  * See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
163
163
  */
164
- readonly setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
164
+ readonly setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
165
165
  };
166
166
  };
167
167
  export type { PixelFormat, Concurrency, WebpackConfiguration, WebpackOverrideFn, BrowserExecutable, FfmpegExecutable, ImageFormat, Codec, Browser, FrameRange, LogLevel, StillImageFormat, };
@@ -1,7 +1,7 @@
1
1
  export declare const logLevels: readonly ["verbose", "info", "warn", "error"];
2
2
  export declare type LogLevel = typeof logLevels[number];
3
3
  export declare const DEFAULT_LOG_LEVEL: LogLevel;
4
- export declare const getLogLevel: () => "error" | "verbose" | "info" | "warn";
4
+ export declare const getLogLevel: () => "verbose" | "info" | "warn" | "error";
5
5
  export declare const setLogLevel: (newLogLevel: LogLevel) => void;
6
6
  export declare const isValidLogLevel: (level: string) => boolean;
7
7
  export declare const isEqualOrBelowLogLevel: (currentLevel: LogLevel, level: LogLevel) => boolean;
@@ -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>];
@@ -75,11 +73,11 @@ export declare const Internals: {
75
73
  getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
76
74
  getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
77
75
  setFrameRangeFromCli: (newFrameRange: string | number) => void;
78
- getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
79
- validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "none" | "png" | "jpeg") => "none" | "valid";
76
+ getUserPreferredImageFormat: () => "png" | "jpeg" | "none" | undefined;
77
+ validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "png" | "jpeg" | "none") => "none" | "valid";
80
78
  validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => void;
81
79
  validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
82
- validateNonNullImageFormat: (imageFormat: "none" | "png" | "jpeg") => void;
80
+ validateNonNullImageFormat: (imageFormat: "png" | "jpeg" | "none") => void;
83
81
  getWebpackCaching: () => boolean;
84
82
  useLazyComponent: <T>(compProps: CompProps<T>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<T> & import("react").RefAttributes<import("react").Component<T, any, any>>) | import("react").PropsWithRef<T>> & {
85
83
  readonly _result: import("react").ComponentType<T>;
@@ -101,9 +99,9 @@ export declare const Internals: {
101
99
  validateFps: (fps: number, location: string) => void;
102
100
  validateDimension: (amount: number, nameOfProp: string, location: string) => void;
103
101
  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;
102
+ getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
103
+ setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
104
+ validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv", actualProResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
107
105
  getMaxTimelineTracks: () => number;
108
106
  SharedAudioContext: import("react").Context<{
109
107
  registerAudio: (aud: import("./audio").RemotionAudioProps) => {
@@ -148,5 +146,9 @@ export declare const Internals: {
148
146
  portalNode: () => HTMLElement;
149
147
  waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
150
148
  validateOffthreadVideoImageFormat: (input: unknown) => void;
149
+ CanUseRemotionHooksProvider: import("react").FC<{
150
+ children: import("react").ReactNode;
151
+ }>;
152
+ CanUseRemotionHooks: import("react").Context<boolean>;
151
153
  };
152
154
  export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, TAsset, RenderAssetInfo, TimelineContextValue, SetTimelineContextValue, TimelineInOutContextValue, SetTimelineInOutContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, ProResProfile, OpenGlRenderer, };
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");
@@ -173,4 +174,6 @@ exports.Internals = {
173
174
  portalNode: portal_node_1.portalNode,
174
175
  waitForRoot: register_root_1.waitForRoot,
175
176
  validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat,
177
+ CanUseRemotionHooksProvider: CanUseRemotionHooks_1.CanUseRemotionHooksProvider,
178
+ CanUseRemotionHooks: CanUseRemotionHooks_1.CanUseRemotionHooks,
176
179
  };
@@ -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;
@@ -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,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { RemotionMainVideoProps } from './props';
3
- export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
3
+ export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "volume" | "playbackRate" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
6
+ } & RemotionMainVideoProps, "children" | "slot" | "style" | "title" | "id" | "height" | "width" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;