remotion 4.0.0-webhook.27 → 4.1.0-alpha2

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 (283) hide show
  1. package/LICENSE.md +8 -8
  2. package/README.md +7 -7
  3. package/dist/{AbsoluteFill.d.ts → cjs/AbsoluteFill.d.ts} +2 -2
  4. package/dist/{AbsoluteFill.js → cjs/AbsoluteFill.js} +2 -2
  5. package/dist/cjs/AssetManager.d.ts +11 -0
  6. package/dist/cjs/AssetManager.js +40 -0
  7. package/dist/{CanUseRemotionHooks.d.ts → cjs/CanUseRemotionHooks.d.ts} +0 -0
  8. package/dist/{CanUseRemotionHooks.js → cjs/CanUseRemotionHooks.js} +0 -0
  9. package/dist/cjs/Clipper.d.ts +7 -0
  10. package/dist/cjs/Clipper.js +24 -0
  11. package/dist/cjs/Composition.d.ts +41 -0
  12. package/dist/cjs/Composition.js +132 -0
  13. package/dist/cjs/CompositionManager.d.ts +75 -0
  14. package/dist/{CompositionManager.js → cjs/CompositionManager.js} +29 -66
  15. package/dist/cjs/CompositionManagerContext.d.ts +18 -0
  16. package/dist/cjs/CompositionManagerContext.js +16 -0
  17. package/dist/cjs/EditorProps.d.ts +15 -0
  18. package/dist/cjs/EditorProps.js +53 -0
  19. package/dist/{Folder.d.ts → cjs/Folder.d.ts} +6 -2
  20. package/dist/{Folder.js → cjs/Folder.js} +10 -6
  21. package/dist/{IFrame.d.ts → cjs/IFrame.d.ts} +4 -0
  22. package/dist/{IFrame.js → cjs/IFrame.js} +8 -4
  23. package/dist/cjs/Img.d.ts +9 -0
  24. package/dist/cjs/Img.js +100 -0
  25. package/dist/cjs/NativeLayers.d.ts +13 -0
  26. package/dist/cjs/NativeLayers.js +29 -0
  27. package/dist/cjs/Null.d.ts +2 -0
  28. package/dist/cjs/Null.js +25 -0
  29. package/dist/{RemotionRoot.d.ts → cjs/RemotionRoot.d.ts} +1 -0
  30. package/dist/cjs/RemotionRoot.js +72 -0
  31. package/dist/cjs/ResolveCompositionConfig.d.ts +24 -0
  32. package/dist/cjs/ResolveCompositionConfig.js +192 -0
  33. package/dist/cjs/Sequence.d.ts +22 -0
  34. package/dist/{Sequence.js → cjs/Sequence.js} +27 -29
  35. package/dist/cjs/SequenceContext.d.ts +9 -0
  36. package/dist/cjs/SequenceContext.js +5 -0
  37. package/dist/cjs/SequenceManager.d.ts +11 -0
  38. package/dist/cjs/SequenceManager.js +57 -0
  39. package/dist/cjs/Still.d.ts +8 -0
  40. package/dist/cjs/Still.js +22 -0
  41. package/dist/{absolute-src.d.ts → cjs/absolute-src.d.ts} +0 -0
  42. package/dist/{absolute-src.js → cjs/absolute-src.js} +0 -0
  43. package/dist/{asset-types.d.ts → cjs/asset-types.d.ts} +0 -0
  44. package/dist/{asset-types.js → cjs/asset-types.js} +0 -0
  45. package/dist/{audio → cjs/audio}/Audio.d.ts +10 -4
  46. package/dist/cjs/audio/Audio.js +58 -0
  47. package/dist/cjs/audio/AudioForDevelopment.d.ts +11 -0
  48. package/dist/cjs/audio/AudioForDevelopment.js +101 -0
  49. package/dist/cjs/audio/AudioForRendering.d.ts +10 -0
  50. package/dist/cjs/audio/AudioForRendering.js +111 -0
  51. package/dist/cjs/audio/index.d.ts +2 -0
  52. package/dist/{audio → cjs/audio}/index.js +2 -2
  53. package/dist/cjs/audio/props.d.ts +12 -0
  54. package/dist/{audio → cjs/audio}/props.js +0 -0
  55. package/dist/{audio → cjs/audio}/shared-audio-tags.d.ts +10 -4
  56. package/dist/{audio → cjs/audio}/shared-audio-tags.js +35 -13
  57. package/dist/{audio → cjs/audio}/use-audio-frame.d.ts +0 -0
  58. package/dist/{audio → cjs/audio}/use-audio-frame.js +4 -4
  59. package/dist/{bezier.d.ts → cjs/bezier.d.ts} +0 -0
  60. package/dist/{bezier.js → cjs/bezier.js} +0 -0
  61. package/dist/cjs/cancel-render.d.ts +5 -0
  62. package/dist/cjs/cancel-render.js +47 -0
  63. package/dist/{config → cjs/config}/input-props.d.ts +0 -0
  64. package/dist/{config → cjs/config}/input-props.js +3 -3
  65. package/dist/{default-css.d.ts → cjs/default-css.d.ts} +0 -0
  66. package/dist/{default-css.js → cjs/default-css.js} +0 -0
  67. package/dist/{delay-render.d.ts → cjs/delay-render.d.ts} +4 -4
  68. package/dist/{delay-render.js → cjs/delay-render.js} +12 -12
  69. package/dist/{easing.d.ts → cjs/easing.d.ts} +4 -0
  70. package/dist/{easing.js → cjs/easing.js} +6 -2
  71. package/dist/cjs/freeze.d.ts +11 -0
  72. package/dist/{freeze.js → cjs/freeze.js} +8 -4
  73. package/dist/{get-asset-file-name.d.ts → cjs/get-asset-file-name.d.ts} +0 -0
  74. package/dist/{get-asset-file-name.js → cjs/get-asset-file-name.js} +0 -0
  75. package/dist/cjs/get-environment.d.ts +3 -0
  76. package/dist/{get-environment.js → cjs/get-environment.js} +14 -2
  77. package/dist/cjs/get-preview-dom-element.d.ts +2 -0
  78. package/dist/cjs/get-preview-dom-element.js +8 -0
  79. package/dist/cjs/get-static-files.d.ts +21 -0
  80. package/dist/cjs/get-static-files.js +35 -0
  81. package/dist/{get-timeline-clip-name.d.ts → cjs/get-timeline-clip-name.d.ts} +0 -0
  82. package/dist/{get-timeline-clip-name.js → cjs/get-timeline-clip-name.js} +0 -0
  83. package/dist/cjs/index.d.ts +102 -0
  84. package/dist/cjs/index.js +105 -0
  85. package/dist/cjs/internals.d.ts +131 -0
  86. package/dist/cjs/internals.js +120 -0
  87. package/dist/{interpolate-colors.d.ts → cjs/interpolate-colors.d.ts} +5 -0
  88. package/dist/{interpolate-colors.js → cjs/interpolate-colors.js} +10 -10
  89. package/dist/{interpolate.d.ts → cjs/interpolate.d.ts} +11 -7
  90. package/dist/{interpolate.js → cjs/interpolate.js} +0 -0
  91. package/dist/{is-approximately-the-same.d.ts → cjs/is-approximately-the-same.d.ts} +0 -0
  92. package/dist/{is-approximately-the-same.js → cjs/is-approximately-the-same.js} +0 -0
  93. package/dist/cjs/is-player.d.ts +3 -0
  94. package/dist/cjs/is-player.js +14 -0
  95. package/dist/{loading-indicator.d.ts → cjs/loading-indicator.d.ts} +0 -0
  96. package/dist/{loading-indicator.js → cjs/loading-indicator.js} +4 -4
  97. package/dist/cjs/loop/index.d.ts +13 -0
  98. package/dist/cjs/loop/index.js +46 -0
  99. package/dist/{multiple-versions-warning.d.ts → cjs/multiple-versions-warning.d.ts} +0 -0
  100. package/dist/{multiple-versions-warning.js → cjs/multiple-versions-warning.js} +11 -6
  101. package/dist/{nonce.d.ts → cjs/nonce.d.ts} +1 -1
  102. package/dist/{nonce.js → cjs/nonce.js} +6 -0
  103. package/dist/{play-and-handle-not-allowed-error.d.ts → cjs/play-and-handle-not-allowed-error.d.ts} +0 -0
  104. package/dist/{play-and-handle-not-allowed-error.js → cjs/play-and-handle-not-allowed-error.js} +4 -0
  105. package/dist/{portal-node.d.ts → cjs/portal-node.d.ts} +0 -0
  106. package/dist/{portal-node.js → cjs/portal-node.js} +0 -0
  107. package/dist/cjs/prefetch-state.d.ts +8 -0
  108. package/dist/cjs/prefetch-state.js +27 -0
  109. package/dist/cjs/prefetch.d.ts +13 -0
  110. package/dist/{prefetch.js → cjs/prefetch.js} +43 -17
  111. package/dist/cjs/props-if-has-props.d.ts +10 -0
  112. package/dist/{video-config.js → cjs/props-if-has-props.js} +0 -0
  113. package/dist/cjs/random.d.ts +6 -0
  114. package/dist/{random.js → cjs/random.js} +3 -3
  115. package/dist/{register-root.d.ts → cjs/register-root.d.ts} +4 -0
  116. package/dist/{register-root.js → cjs/register-root.js} +4 -0
  117. package/dist/cjs/resolve-video-config.d.ts +8 -0
  118. package/dist/cjs/resolve-video-config.js +89 -0
  119. package/dist/cjs/series/flatten-children.d.ts +2 -0
  120. package/dist/{series → cjs/series}/flatten-children.js +0 -0
  121. package/dist/cjs/series/index.d.ts +17 -0
  122. package/dist/{series → cjs/series}/index.js +22 -8
  123. package/dist/cjs/setup-env-variables.d.ts +1 -0
  124. package/dist/{setup-env-variables.js → cjs/setup-env-variables.js} +7 -9
  125. package/dist/{spring → cjs/spring}/index.d.ts +10 -6
  126. package/dist/cjs/spring/index.js +75 -0
  127. package/dist/cjs/spring/measure-spring.d.ts +12 -0
  128. package/dist/{spring → cjs/spring}/measure-spring.js +8 -4
  129. package/dist/{spring → cjs/spring}/spring-utils.d.ts +2 -2
  130. package/dist/{spring → cjs/spring}/spring-utils.js +0 -0
  131. package/dist/cjs/static-file.d.ts +33 -0
  132. package/dist/cjs/static-file.js +87 -0
  133. package/dist/{timeline-position-state.d.ts → cjs/timeline-position-state.d.ts} +4 -4
  134. package/dist/{timeline-position-state.js → cjs/timeline-position-state.js} +9 -1
  135. package/dist/cjs/truthy.d.ts +3 -0
  136. package/dist/{truthy.js → cjs/truthy.js} +0 -0
  137. package/dist/cjs/use-current-frame.d.ts +5 -0
  138. package/dist/{use-current-frame.js → cjs/use-current-frame.js} +8 -9
  139. package/dist/cjs/use-lazy-component.d.ts +7 -0
  140. package/dist/{use-lazy-component.js → cjs/use-lazy-component.js} +0 -0
  141. package/dist/{use-media-in-timeline.d.ts → cjs/use-media-in-timeline.d.ts} +3 -2
  142. package/dist/{use-media-in-timeline.js → cjs/use-media-in-timeline.js} +29 -25
  143. package/dist/{use-media-playback.d.ts → cjs/use-media-playback.d.ts} +3 -1
  144. package/dist/cjs/use-media-playback.js +86 -0
  145. package/dist/{use-media-tag-volume.d.ts → cjs/use-media-tag-volume.d.ts} +0 -0
  146. package/dist/{use-media-tag-volume.js → cjs/use-media-tag-volume.js} +0 -0
  147. package/dist/{use-sync-volume-with-media-tag.d.ts → cjs/use-sync-volume-with-media-tag.d.ts} +2 -2
  148. package/dist/{use-sync-volume-with-media-tag.js → cjs/use-sync-volume-with-media-tag.js} +5 -4
  149. package/dist/{use-unsafe-video-config.d.ts → cjs/use-unsafe-video-config.d.ts} +1 -1
  150. package/dist/{use-unsafe-video-config.js → cjs/use-unsafe-video-config.js} +4 -4
  151. package/dist/cjs/use-video-config.d.ts +8 -0
  152. package/dist/cjs/use-video-config.js +34 -0
  153. package/dist/cjs/use-video.d.ts +7 -0
  154. package/dist/cjs/use-video.js +38 -0
  155. package/dist/cjs/validate-frame.d.ts +5 -0
  156. package/dist/cjs/validate-frame.js +24 -0
  157. package/dist/cjs/validate-media-props.d.ts +4 -0
  158. package/dist/{validate-media-props.js → cjs/validate-media-props.js} +0 -0
  159. package/dist/{validate-start-from-props.d.ts → cjs/validate-start-from-props.d.ts} +0 -0
  160. package/dist/{validate-start-from-props.js → cjs/validate-start-from-props.js} +0 -0
  161. package/dist/{validation → cjs/validation}/validate-composition-id.d.ts +0 -0
  162. package/dist/{validation → cjs/validation}/validate-composition-id.js +0 -0
  163. package/dist/cjs/validation/validate-default-props.d.ts +1 -0
  164. package/dist/cjs/validation/validate-default-props.js +15 -0
  165. package/dist/{validation → cjs/validation}/validate-dimensions.d.ts +0 -0
  166. package/dist/{validation → cjs/validation}/validate-dimensions.js +0 -0
  167. package/dist/cjs/validation/validate-duration-in-frames.d.ts +5 -0
  168. package/dist/{validation → cjs/validation}/validate-duration-in-frames.js +5 -2
  169. package/dist/{validation → cjs/validation}/validate-folder-name.d.ts +0 -0
  170. package/dist/{validation → cjs/validation}/validate-folder-name.js +0 -0
  171. package/dist/{validation → cjs/validation}/validate-fps.d.ts +0 -0
  172. package/dist/{validation → cjs/validation}/validate-fps.js +0 -0
  173. package/dist/{validation → cjs/validation}/validation-spring-duration.d.ts +0 -0
  174. package/dist/{validation → cjs/validation}/validation-spring-duration.js +0 -0
  175. package/dist/cjs/version.d.ts +1 -0
  176. package/dist/{version.js → cjs/version.js} +1 -1
  177. package/dist/cjs/video/OffthreadVideo.d.ts +7 -0
  178. package/dist/cjs/video/OffthreadVideo.js +38 -0
  179. package/dist/{video → cjs/video}/OffthreadVideoForRendering.d.ts +1 -1
  180. package/dist/cjs/video/OffthreadVideoForRendering.js +103 -0
  181. package/dist/cjs/video/Video.d.ts +12 -0
  182. package/dist/cjs/video/Video.js +55 -0
  183. package/dist/{video → cjs/video}/VideoForDevelopment.d.ts +5 -2
  184. package/dist/cjs/video/VideoForDevelopment.js +117 -0
  185. package/dist/cjs/video/VideoForRendering.d.ts +10 -0
  186. package/dist/cjs/video/VideoForRendering.js +208 -0
  187. package/dist/cjs/video/duration-state.d.ts +17 -0
  188. package/dist/cjs/video/duration-state.js +35 -0
  189. package/dist/{video → cjs/video}/get-current-time.d.ts +0 -0
  190. package/dist/{video → cjs/video}/get-current-time.js +12 -11
  191. package/dist/cjs/video/index.d.ts +3 -0
  192. package/dist/{video → cjs/video}/index.js +4 -4
  193. package/dist/cjs/video/props.d.ts +32 -0
  194. package/dist/cjs/video/props.js +2 -0
  195. package/dist/cjs/video/video-fragment.d.ts +12 -0
  196. package/dist/cjs/video/video-fragment.js +60 -0
  197. package/dist/{video-config.d.ts → cjs/video-config.d.ts} +2 -2
  198. package/dist/{video/props.js → cjs/video-config.js} +0 -0
  199. package/dist/{volume-position-state.d.ts → cjs/volume-position-state.d.ts} +4 -4
  200. package/dist/{volume-position-state.js → cjs/volume-position-state.js} +0 -0
  201. package/dist/{volume-prop.d.ts → cjs/volume-prop.d.ts} +3 -2
  202. package/dist/{volume-prop.js → cjs/volume-prop.js} +4 -3
  203. package/dist/{warn-about-non-seekable-media.d.ts → cjs/warn-about-non-seekable-media.d.ts} +0 -0
  204. package/dist/{warn-about-non-seekable-media.js → cjs/warn-about-non-seekable-media.js} +2 -2
  205. package/dist/cjs/wrap-remotion-context.d.ts +31 -0
  206. package/dist/cjs/wrap-remotion-context.js +85 -0
  207. package/dist/esm/index.mjs +4623 -0
  208. package/dist/esm/version.mjs +4 -0
  209. package/package.json +80 -57
  210. package/version.js +2 -1
  211. package/.prettierrc.js +0 -14
  212. package/.turbo/turbo-build.log +0 -5
  213. package/dist/Composition.d.ts +0 -22
  214. package/dist/Composition.js +0 -98
  215. package/dist/CompositionManager.d.ts +0 -79
  216. package/dist/Img.d.ts +0 -2
  217. package/dist/Img.js +0 -51
  218. package/dist/RemotionRoot.js +0 -71
  219. package/dist/Sequence.d.ts +0 -29
  220. package/dist/Still.d.ts +0 -3
  221. package/dist/Still.js +0 -9
  222. package/dist/audio/Audio.js +0 -32
  223. package/dist/audio/AudioForDevelopment.d.ts +0 -8
  224. package/dist/audio/AudioForDevelopment.js +0 -71
  225. package/dist/audio/AudioForRendering.d.ts +0 -6
  226. package/dist/audio/AudioForRendering.js +0 -75
  227. package/dist/audio/index.d.ts +0 -2
  228. package/dist/audio/props.d.ts +0 -10
  229. package/dist/config.d.ts +0 -218
  230. package/dist/config.js +0 -21
  231. package/dist/freeze.d.ts +0 -7
  232. package/dist/get-environment.d.ts +0 -2
  233. package/dist/get-preview-dom-element.d.ts +0 -1
  234. package/dist/get-preview-dom-element.js +0 -7
  235. package/dist/index.d.ts +0 -72
  236. package/dist/index.js +0 -58
  237. package/dist/internals.d.ts +0 -88
  238. package/dist/internals.js +0 -93
  239. package/dist/loop/index.d.ts +0 -9
  240. package/dist/loop/index.js +0 -28
  241. package/dist/prefetch-state.d.ts +0 -13
  242. package/dist/prefetch-state.js +0 -26
  243. package/dist/prefetch.d.ts +0 -7
  244. package/dist/random.d.ts +0 -6
  245. package/dist/series/flatten-children.d.ts +0 -2
  246. package/dist/series/index.d.ts +0 -13
  247. package/dist/setup-env-variables.d.ts +0 -2
  248. package/dist/spring/index.js +0 -51
  249. package/dist/spring/measure-spring.d.ts +0 -8
  250. package/dist/static-file.d.ts +0 -1
  251. package/dist/static-file.js +0 -29
  252. package/dist/truthy.d.ts +0 -3
  253. package/dist/use-current-frame.d.ts +0 -6
  254. package/dist/use-lazy-component.d.ts +0 -7
  255. package/dist/use-media-playback.js +0 -75
  256. package/dist/use-video-config.d.ts +0 -7
  257. package/dist/use-video-config.js +0 -26
  258. package/dist/use-video.d.ts +0 -13
  259. package/dist/use-video.js +0 -28
  260. package/dist/validate-media-props.d.ts +0 -4
  261. package/dist/validation/validate-duration-in-frames.d.ts +0 -1
  262. package/dist/validation/validate-offthreadvideo-image-format.d.ts +0 -1
  263. package/dist/validation/validate-offthreadvideo-image-format.js +0 -15
  264. package/dist/version.d.ts +0 -1
  265. package/dist/video/LoopedVideo.d.ts +0 -3
  266. package/dist/video/LoopedVideo.js +0 -16
  267. package/dist/video/OffthreadVideo.d.ts +0 -3
  268. package/dist/video/OffthreadVideo.js +0 -27
  269. package/dist/video/OffthreadVideoForRendering.js +0 -101
  270. package/dist/video/Video.d.ts +0 -6
  271. package/dist/video/Video.js +0 -29
  272. package/dist/video/VideoForDevelopment.js +0 -69
  273. package/dist/video/VideoForRendering.d.ts +0 -6
  274. package/dist/video/VideoForRendering.js +0 -168
  275. package/dist/video/duration-state.d.ts +0 -8
  276. package/dist/video/duration-state.js +0 -15
  277. package/dist/video/index.d.ts +0 -3
  278. package/dist/video/props.d.ts +0 -21
  279. package/dist/wrap-remotion-context.d.ts +0 -14
  280. package/dist/wrap-remotion-context.js +0 -65
  281. package/ensure-correct-version.js +0 -24
  282. package/tsconfig.json +0 -12
  283. package/version.d.ts +0 -1
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AudioForDevelopment = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const prefetch_1 = require("../prefetch");
7
- const random_1 = require("../random");
8
- const Sequence_1 = require("../Sequence");
9
- const use_media_in_timeline_1 = require("../use-media-in-timeline");
10
- const use_media_playback_1 = require("../use-media-playback");
11
- const use_media_tag_volume_1 = require("../use-media-tag-volume");
12
- const use_sync_volume_with_media_tag_1 = require("../use-sync-volume-with-media-tag");
13
- const volume_position_state_1 = require("../volume-position-state");
14
- const shared_audio_tags_1 = require("./shared-audio-tags");
15
- const use_audio_frame_1 = require("./use-audio-frame");
16
- const AudioForDevelopmentForwardRefFunction = (props, ref) => {
17
- const [initialShouldPreMountAudioElements] = (0, react_1.useState)(props.shouldPreMountAudioTags);
18
- if (props.shouldPreMountAudioTags !== initialShouldPreMountAudioElements) {
19
- throw new Error('Cannot change the behavior for pre-mounting audio tags dynamically.');
20
- }
21
- const [mediaVolume] = (0, volume_position_state_1.useMediaVolumeState)();
22
- const [mediaMuted] = (0, volume_position_state_1.useMediaMutedState)();
23
- const volumePropFrame = (0, use_audio_frame_1.useFrameForVolumeProp)();
24
- const { volume, muted, playbackRate, shouldPreMountAudioTags, src, ...nativeProps } = props;
25
- if (!src) {
26
- throw new TypeError("No 'src' was passed to <Audio>.");
27
- }
28
- const preloadedSrc = (0, prefetch_1.usePreload)(src);
29
- const propsToPass = (0, react_1.useMemo)(() => {
30
- return {
31
- muted: muted || mediaMuted,
32
- src: preloadedSrc,
33
- ...nativeProps,
34
- };
35
- }, [mediaMuted, muted, nativeProps, preloadedSrc]);
36
- const sequenceContext = (0, react_1.useContext)(Sequence_1.SequenceContext);
37
- // Generate a string that's as unique as possible for this asset
38
- // but at the same time deterministic. We use it to combat strict mode issues.
39
- const id = (0, react_1.useMemo)(() => `audio-${(0, random_1.random)(src !== null && src !== void 0 ? src : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${props.muted}`, [props.muted, src, sequenceContext]);
40
- const audioRef = (0, shared_audio_tags_1.useSharedAudio)(propsToPass, id).el;
41
- const actualVolume = (0, use_media_tag_volume_1.useMediaTagVolume)(audioRef);
42
- (0, use_sync_volume_with_media_tag_1.useSyncVolumeWithMediaTag)({
43
- volumePropFrame,
44
- actualVolume,
45
- volume,
46
- mediaVolume,
47
- mediaRef: audioRef,
48
- });
49
- (0, use_media_in_timeline_1.useMediaInTimeline)({
50
- volume,
51
- mediaVolume,
52
- mediaRef: audioRef,
53
- src,
54
- mediaType: 'audio',
55
- });
56
- (0, use_media_playback_1.useMediaPlayback)({
57
- mediaRef: audioRef,
58
- src,
59
- mediaType: 'audio',
60
- playbackRate: playbackRate !== null && playbackRate !== void 0 ? playbackRate : 1,
61
- onlyWarnForMediaSeekingError: false,
62
- });
63
- (0, react_1.useImperativeHandle)(ref, () => {
64
- return audioRef.current;
65
- }, [audioRef]);
66
- if (initialShouldPreMountAudioElements) {
67
- return null;
68
- }
69
- return (0, jsx_runtime_1.jsx)("audio", { ref: audioRef, ...propsToPass });
70
- };
71
- exports.AudioForDevelopment = (0, react_1.forwardRef)(AudioForDevelopmentForwardRefFunction);
@@ -1,6 +0,0 @@
1
- import type { ForwardRefExoticComponent, RefAttributes } from 'react';
2
- import React from 'react';
3
- export declare const AudioForRendering: ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
4
- volume?: import("../volume-prop").VolumeProp | undefined;
5
- playbackRate?: number | undefined;
6
- } & RefAttributes<HTMLAudioElement>>;
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AudioForRendering = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const absolute_src_1 = require("../absolute-src");
7
- const CompositionManager_1 = require("../CompositionManager");
8
- const random_1 = require("../random");
9
- const Sequence_1 = require("../Sequence");
10
- const timeline_position_state_1 = require("../timeline-position-state");
11
- const use_current_frame_1 = require("../use-current-frame");
12
- const volume_prop_1 = require("../volume-prop");
13
- const use_audio_frame_1 = require("./use-audio-frame");
14
- const AudioForRenderingRefForwardingFunction = (props, ref) => {
15
- const audioRef = (0, react_1.useRef)(null);
16
- const absoluteFrame = (0, timeline_position_state_1.useTimelinePosition)();
17
- const volumePropFrame = (0, use_audio_frame_1.useFrameForVolumeProp)();
18
- const frame = (0, use_current_frame_1.useCurrentFrame)();
19
- const sequenceContext = (0, react_1.useContext)(Sequence_1.SequenceContext);
20
- const { registerAsset, unregisterAsset } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
21
- // Generate a string that's as unique as possible for this asset
22
- // but at the same time the same on all threads
23
- const id = (0, react_1.useMemo)(() => {
24
- var _a;
25
- return `audio-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}`;
26
- }, [props.src, sequenceContext]);
27
- const { volume: volumeProp, playbackRate, ...nativeProps } = props;
28
- const volume = (0, volume_prop_1.evaluateVolume)({
29
- volume: volumeProp,
30
- frame: volumePropFrame,
31
- mediaVolume: 1,
32
- });
33
- (0, react_1.useImperativeHandle)(ref, () => {
34
- return audioRef.current;
35
- }, []);
36
- (0, react_1.useEffect)(() => {
37
- var _a;
38
- if (!props.src) {
39
- throw new Error('No src passed');
40
- }
41
- if (!window.remotion_audioEnabled) {
42
- return;
43
- }
44
- if (props.muted) {
45
- return;
46
- }
47
- if (volume <= 0) {
48
- return;
49
- }
50
- registerAsset({
51
- type: 'audio',
52
- src: (0, absolute_src_1.getAbsoluteSrc)(props.src),
53
- id,
54
- frame: absoluteFrame,
55
- volume,
56
- mediaFrame: frame,
57
- playbackRate: (_a = props.playbackRate) !== null && _a !== void 0 ? _a : 1,
58
- });
59
- return () => unregisterAsset(id);
60
- }, [
61
- props.muted,
62
- props.src,
63
- registerAsset,
64
- absoluteFrame,
65
- id,
66
- unregisterAsset,
67
- volume,
68
- volumePropFrame,
69
- frame,
70
- playbackRate,
71
- props.playbackRate,
72
- ]);
73
- return (0, jsx_runtime_1.jsx)("audio", { ref: audioRef, ...nativeProps });
74
- };
75
- exports.AudioForRendering = (0, react_1.forwardRef)(AudioForRenderingRefForwardingFunction);
@@ -1,2 +0,0 @@
1
- export * from './Audio';
2
- export * from './props';
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import type { VolumeProp } from '../volume-prop';
3
- export declare type RemotionMainAudioProps = {
4
- startFrom?: number;
5
- endAt?: number;
6
- };
7
- export declare type RemotionAudioProps = Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, 'autoPlay' | 'controls' | 'loop' | 'onEnded'> & {
8
- volume?: VolumeProp;
9
- playbackRate?: number;
10
- };
package/dist/config.d.ts DELETED
@@ -1,218 +0,0 @@
1
- /**
2
- * The configuration has moved to @remotion/cli.
3
- * For the moment the type definitions are going to stay here
4
- */
5
- declare type Concurrency = number | null;
6
- import type { Configuration } from 'webpack';
7
- declare type WebpackConfiguration = Configuration;
8
- declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
9
- declare type BrowserExecutable = string | null;
10
- declare type FrameRange = number | [number, number];
11
- declare type FfmpegExecutable = string | null;
12
- declare type Loop = number | null;
13
- declare type CodecOrUndefined = 'h264' | 'h265' | 'vp8' | 'vp9' | 'mp3' | 'aac' | 'wav' | 'prores' | 'h264-mkv' | 'gif' | undefined;
14
- declare type Crf = number | undefined;
15
- export declare type ConfigType = {
16
- readonly Preview: {
17
- /**
18
- * Change the maximum amount of tracks that are shown in the timeline.
19
- * @param maxTracks The maximum amount of timeline tracks that you would like to show.
20
- * @default 15
21
- */
22
- readonly setMaxTimelineTracks: (maxTracks: number) => void;
23
- /**
24
- * Enable Keyboard shortcuts in the Remotion Preview.
25
- * @param enabled Boolean whether to enable the keyboard shortcuts
26
- * @default true
27
- */
28
- readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
29
- };
30
- readonly Bundling: {
31
- /**
32
- * Pass in a function which takes the current Webpack config
33
- * and return a modified Webpack configuration.
34
- * Docs: http://remotion.dev/docs/webpack
35
- */
36
- readonly overrideWebpackConfig: (fn: WebpackOverrideFn) => void;
37
- /**
38
- * Whether Webpack bundles should be cached to make
39
- * subsequent renders faster. Default: true
40
- */
41
- readonly setCachingEnabled: (flag: boolean) => void;
42
- /**
43
- * Define on which port Remotion should start it's HTTP servers during preview and rendering.
44
- * By default, Remotion will try to find a free port.
45
- * If you specify a port, but it's not available, Remotion will throw an error.
46
- */
47
- readonly setPort: (port: number | undefined) => void;
48
- /**
49
- * Define the location of the public/ directory.
50
- * By default it is a folder named "public" inside the current working directory.
51
- * You can set an absolute path or a relative path that will be resolved from the closest package.json location.
52
- */
53
- readonly setPublicDir: (publicDir: string | null) => void;
54
- };
55
- readonly Log: {
56
- /**
57
- * Set the log level.
58
- * Acceptable values: 'error' | 'warning' | 'info' | 'verbose'
59
- * Default value: 'info'
60
- *
61
- * Set this to 'verbose' to get browser logs and other IO.
62
- */
63
- readonly setLevel: (newLogLevel: 'verbose' | 'info' | 'warn' | 'error') => void;
64
- };
65
- readonly Puppeteer: {
66
- /**
67
- * Specify executable path for the browser to use.
68
- * Default: null, which will make Remotion find or download a version of said browser.
69
- */
70
- readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
71
- /**
72
- * Set how many milliseconds a frame may take to render before it times out.
73
- * Default: `30000`
74
- */
75
- readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
76
- /**
77
- * Setting deciding whether to disable CORS and other Chrome security features.
78
- * Default: false
79
- */
80
- readonly setChromiumDisableWebSecurity: (should: boolean) => void;
81
- /**
82
- * Setting whether to ignore any invalid SSL certificates, such as self-signed ones.
83
- * Default: false
84
- */
85
- readonly setChromiumIgnoreCertificateErrors: (should: boolean) => void;
86
- /**
87
- * If false, will open an actual browser during rendering to observe progress.
88
- * Default: true
89
- */
90
- readonly setChromiumHeadlessMode: (should: boolean) => void;
91
- /**
92
- * Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
93
- * Default: 'swangle' in Lambda, null elsewhere.
94
- */
95
- readonly setChromiumOpenGlRenderer: (renderer: 'swangle' | 'angle' | 'egl' | 'swiftshader') => void;
96
- };
97
- readonly Rendering: {
98
- /**
99
- * Set a custom location for a .env file.
100
- * Default: `.env`
101
- */
102
- readonly setDotEnvLocation: (file: string) => void;
103
- /**
104
- * Sets how many Puppeteer instances will work on rendering your video in parallel.
105
- * Default: `null`, meaning half of the threads available on your CPU.
106
- */
107
- readonly setConcurrency: (newConcurrency: Concurrency) => void;
108
- /**
109
- * Set the JPEG quality for the frames.
110
- * Must be between 0 and 100.
111
- * Must be between 0 and 100.
112
- * Default: 80
113
- */
114
- readonly setQuality: (q: number | undefined) => void;
115
- /** Decide in which image format to render. Can be either 'jpeg' or 'png'.
116
- * PNG is slower, but supports transparency.
117
- */
118
- readonly setImageFormat: (format: 'png' | 'jpeg' | 'none') => void;
119
- /**
120
- * Render only a subset of a video.
121
- * Pass in a tuple [20, 30] to only render frames 20-30 into a video.
122
- * Pass in a single number `20` to only render a single frame as an image.
123
- * The frame count starts at 0.
124
- */
125
- readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
126
- /**
127
- * Specify local ffmpeg executable.
128
- * Default: null, which will use ffmpeg available in PATH.
129
- */
130
- readonly setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
131
- /**
132
- * Specify local ffprobe executable.
133
- * Default: null, which will use ffprobe available in PATH.
134
- */
135
- readonly setFfprobeExecutable: (ffprobePath: FfmpegExecutable) => void;
136
- /**
137
- * Scales the output dimensions by a factor.
138
- * Default: 1.
139
- */
140
- readonly setScale: (newScale: number) => void;
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
- readonly setEveryNthFrame: (frame: number) => void;
147
- /**
148
- * Specify the number of Loop a GIF should have.
149
- * Default: null (means GIF will loop infinite)
150
- */
151
- readonly setNumberOfGifLoops: (newLoop: Loop) => void;
152
- /**
153
- * Disable audio output.
154
- * Default: false
155
- */
156
- readonly setMuted: (muted: boolean) => void;
157
- /**
158
- * Don't render an audio track if it would be silent.
159
- * Default: true
160
- */
161
- readonly setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
162
- };
163
- readonly Output: {
164
- /**
165
- * Set the output file location string. Default: `out/{composition}.{codec}`
166
- */
167
- readonly setOutputLocation: (newOutputLocation: string) => void;
168
- /**
169
- * If the video file already exists, should Remotion overwrite
170
- * the output? Default: true
171
- */
172
- readonly setOverwriteOutput: (newOverwrite: boolean) => void;
173
- /**
174
- * Sets the pixel format in FFMPEG.
175
- * See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
176
- * You can override this using the `--pixel-format` Cli flag.
177
- */
178
- readonly setPixelFormat: (format: 'yuv420p' | 'yuva420p' | 'yuv422p' | 'yuv444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv444p10le' | 'yuva444p10le') => void;
179
- /**
180
- * @deprecated Use setCodec() and setImageSequence() instead.
181
- * Specify what kind of output you, either `mp4` or `png-sequence`.
182
- */
183
- readonly setOutputFormat: (newLegacyFormat: 'mp4' | 'png-sequence') => void;
184
- /**
185
- * Specify the codec for stitching the frames into a video.
186
- * Can be `h264` (default), `h265`, `vp8` or `vp9`
187
- */
188
- readonly setCodec: (newCodec: CodecOrUndefined) => void;
189
- /**
190
- * Set the Constant Rate Factor to pass to FFMPEG.
191
- * Lower values mean better quality, but be aware that the ranges of
192
- * possible values greatly differs between codecs.
193
- */
194
- readonly setCrf: (newCrf: Crf) => void;
195
- /**
196
- * Set to true if don't want a video but an image sequence as the output.
197
- */
198
- readonly setImageSequence: (newImageSequence: boolean) => void;
199
- /**
200
- * Set the ProRes profile.
201
- * This method is only valid if the codec has been set to 'prores'.
202
- * Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
203
- * See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
204
- */
205
- readonly setProResProfile: (profile: '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy' | undefined) => void;
206
- /**
207
- * Override the arguments that Remotion passes to FFMPEG.
208
- * Consult https://remotion.dev/docs/renderer/render-media#ffmpegoverride before using this feature.
209
- */
210
- readonly overrideFfmpegCommand: (command: (info: {
211
- type: 'pre-stitcher' | 'stitcher';
212
- args: string[];
213
- }) => string[]) => void;
214
- };
215
- };
216
- export type { Concurrency, WebpackConfiguration, WebpackOverrideFn };
217
- export declare const Config: ConfigType;
218
- export declare const enableLegacyRemotionConfig: () => void;
package/dist/config.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /**
3
- * The configuration has moved to @remotion/cli.
4
- * For the moment the type definitions are going to stay here
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.enableLegacyRemotionConfig = exports.Config = void 0;
8
- const conf = {};
9
- let enabled = false;
10
- exports.Config = new Proxy(conf, {
11
- get(target, prop, receiver) {
12
- if (!enabled) {
13
- throw new Error('To use the Remotion config file, you need to have @remotion/cli installed.\n- Make sure that all versions of Remotion are the same.\n- Make sure that @remotion/cli is installed.\n- Make sure Config is imported from "@remotion/cli", not "remotion".');
14
- }
15
- return Reflect.get(target, prop, receiver);
16
- },
17
- });
18
- const enableLegacyRemotionConfig = () => {
19
- enabled = true;
20
- };
21
- exports.enableLegacyRemotionConfig = enableLegacyRemotionConfig;
package/dist/freeze.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare type FreezeProps = {
3
- frame: number;
4
- children: React.ReactNode;
5
- };
6
- export declare const Freeze: React.FC<FreezeProps>;
7
- export {};
@@ -1,2 +0,0 @@
1
- export declare type RemotionEnvironment = 'preview' | 'rendering' | 'player-development' | 'player-production';
2
- export declare const getRemotionEnvironment: () => RemotionEnvironment;
@@ -1 +0,0 @@
1
- export declare const getPreviewDomElement: () => HTMLElement | null;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPreviewDomElement = void 0;
4
- const getPreviewDomElement = () => {
5
- return document.getElementById('container');
6
- };
7
- exports.getPreviewDomElement = getPreviewDomElement;
package/dist/index.d.ts DELETED
@@ -1,72 +0,0 @@
1
- import './asset-types';
2
- import type { TAsset, TCompMetadata } from './CompositionManager';
3
- declare global {
4
- interface Window {
5
- ready: boolean;
6
- getStaticCompositions: () => TCompMetadata[];
7
- setBundleMode: (bundleMode: BundleState) => void;
8
- remotion_staticBase: string;
9
- remotion_editorName: string | null;
10
- remotion_projectName: string;
11
- remotion_cwd: string;
12
- remotion_previewServerCommand: string;
13
- remotion_setFrame: (frame: number) => void;
14
- remotion_initialFrame: number;
15
- remotion_proxyPort: number;
16
- remotion_audioEnabled: boolean;
17
- remotion_videoEnabled: boolean;
18
- remotion_puppeteerTimeout: number;
19
- remotion_inputProps: string;
20
- remotion_envVariables: string;
21
- remotion_collectAssets: () => TAsset[];
22
- remotion_isPlayer: boolean;
23
- remotion_isBuilding: undefined | (() => void);
24
- remotion_finishedBuilding: undefined | (() => void);
25
- siteVersion: '4';
26
- remotion_version: string;
27
- remotion_imported: string | boolean;
28
- }
29
- }
30
- export declare type BundleState = {
31
- type: 'index';
32
- } | {
33
- type: 'evaluation';
34
- } | {
35
- type: 'composition';
36
- compositionName: string;
37
- compositionDefaultProps: unknown;
38
- compositionHeight: number;
39
- compositionDurationInFrames: number;
40
- compositionWidth: number;
41
- compositionFps: number;
42
- };
43
- export * from './AbsoluteFill';
44
- export * from './audio';
45
- export * from './Composition';
46
- export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
47
- export { Config, ConfigType } from './config';
48
- export { getInputProps } from './config/input-props';
49
- export * from './delay-render';
50
- export * from './easing';
51
- export * from './Folder';
52
- export * from './freeze';
53
- export * from './IFrame';
54
- export * from './Img';
55
- export * from './internals';
56
- export * from './interpolate';
57
- export { interpolateColors } from './interpolate-colors';
58
- export { Loop } from './loop';
59
- export { prefetch } from './prefetch';
60
- export * from './random';
61
- export { registerRoot } from './register-root';
62
- export { Sequence } from './Sequence';
63
- export { Series } from './series';
64
- export * from './spring';
65
- export { staticFile } from './static-file';
66
- export * from './Still';
67
- export type { PlayableMediaTag } from './timeline-position-state';
68
- export { useCurrentFrame } from './use-current-frame';
69
- export * from './use-video-config';
70
- export * from './version';
71
- export * from './video';
72
- export * from './video-config';
package/dist/index.js DELETED
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.prefetch = exports.Loop = exports.interpolateColors = exports.getInputProps = exports.Config = void 0;
18
- require("./asset-types");
19
- const multiple_versions_warning_1 = require("./multiple-versions-warning");
20
- (0, multiple_versions_warning_1.checkMultipleRemotionVersions)();
21
- __exportStar(require("./AbsoluteFill"), exports);
22
- __exportStar(require("./audio"), exports);
23
- __exportStar(require("./Composition"), exports);
24
- var config_1 = require("./config");
25
- Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
26
- var input_props_1 = require("./config/input-props");
27
- Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_1.getInputProps; } });
28
- __exportStar(require("./delay-render"), exports);
29
- __exportStar(require("./easing"), exports);
30
- __exportStar(require("./Folder"), exports);
31
- __exportStar(require("./freeze"), exports);
32
- __exportStar(require("./IFrame"), exports);
33
- __exportStar(require("./Img"), exports);
34
- __exportStar(require("./internals"), exports);
35
- __exportStar(require("./interpolate"), exports);
36
- var interpolate_colors_1 = require("./interpolate-colors");
37
- Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolate_colors_1.interpolateColors; } });
38
- var loop_1 = require("./loop");
39
- Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return loop_1.Loop; } });
40
- var prefetch_1 = require("./prefetch");
41
- Object.defineProperty(exports, "prefetch", { enumerable: true, get: function () { return prefetch_1.prefetch; } });
42
- __exportStar(require("./random"), exports);
43
- var register_root_1 = require("./register-root");
44
- Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return register_root_1.registerRoot; } });
45
- var Sequence_1 = require("./Sequence");
46
- Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return Sequence_1.Sequence; } });
47
- var series_1 = require("./series");
48
- Object.defineProperty(exports, "Series", { enumerable: true, get: function () { return series_1.Series; } });
49
- __exportStar(require("./spring"), exports);
50
- var static_file_1 = require("./static-file");
51
- Object.defineProperty(exports, "staticFile", { enumerable: true, get: function () { return static_file_1.staticFile; } });
52
- __exportStar(require("./Still"), exports);
53
- var use_current_frame_1 = require("./use-current-frame");
54
- Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return use_current_frame_1.useCurrentFrame; } });
55
- __exportStar(require("./use-video-config"), exports);
56
- __exportStar(require("./version"), exports);
57
- __exportStar(require("./video"), exports);
58
- __exportStar(require("./video-config"), exports);
@@ -1,88 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Configuration } from 'webpack';
3
- import type { CompProps } from './Composition';
4
- import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
5
- import * as CSSUtils from './default-css';
6
- import type { RemotionEnvironment } from './get-environment';
7
- import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
8
- import * as TimelinePosition from './timeline-position-state';
9
- import { truthy } from './truthy';
10
- import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
11
- import { useRemotionContexts } from './wrap-remotion-context';
12
- declare const Timeline: typeof TimelinePosition;
13
- export declare const Internals: {
14
- useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
15
- Timeline: typeof TimelinePosition;
16
- CompositionManager: import("react").Context<CompositionManagerContext>;
17
- RemotionRoot: import("react").FC<{
18
- children: import("react").ReactNode;
19
- }>;
20
- useVideo: () => {
21
- height: number;
22
- width: number;
23
- fps: number;
24
- durationInFrames: number;
25
- defaultProps: unknown;
26
- id: string;
27
- folderName: string | null;
28
- parentFolderName: string | null;
29
- component: import("react").LazyExoticComponent<import("react").ComponentType<unknown>>;
30
- nonce: number;
31
- } | null;
32
- getRoot: () => import("react").FC<{}> | null;
33
- useMediaVolumeState: () => readonly [number, (u: number) => void];
34
- useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
35
- 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>> & {
36
- readonly _result: import("react").ComponentType<T>;
37
- };
38
- truthy: typeof truthy;
39
- SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
40
- useRemotionContexts: typeof useRemotionContexts;
41
- RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
42
- CSSUtils: typeof CSSUtils;
43
- setupEnvVariables: () => void;
44
- ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
45
- MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
46
- SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
47
- validateDurationInFrames: (durationInFrames: number, component: string) => void;
48
- validateFps: (fps: number, location: string, isGif: boolean) => void;
49
- validateDimension: (amount: number, nameOfProp: string, location: string) => void;
50
- getRemotionEnvironment: () => RemotionEnvironment;
51
- SharedAudioContext: import("react").Context<{
52
- registerAudio: (aud: import("./audio").RemotionAudioProps, audioId: string) => {
53
- id: number;
54
- props: import("./audio").RemotionAudioProps;
55
- el: import("react").RefObject<HTMLAudioElement>;
56
- audioId: string;
57
- };
58
- unregisterAudio: (id: number) => void;
59
- updateAudio: (id: number, aud: import("./audio").RemotionAudioProps) => void;
60
- playAllAudios: () => void;
61
- numberOfAudioTags: number;
62
- } | null>;
63
- SharedAudioContextProvider: import("react").FC<{
64
- numberOfAudioTags: number;
65
- children: import("react").ReactNode;
66
- }>;
67
- invalidCompositionErrorMessage: string;
68
- isCompositionIdValid: (id: string) => RegExpMatchArray | null;
69
- getPreviewDomElement: () => HTMLElement | null;
70
- compositionsRef: import("react").RefObject<{
71
- getCompositions: () => TCompMetadata[];
72
- }>;
73
- DELAY_RENDER_CALLSTACK_TOKEN: string;
74
- portalNode: () => HTMLElement;
75
- waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
76
- validateOffthreadVideoImageFormat: (input: unknown) => void;
77
- CanUseRemotionHooksProvider: import("react").FC<{
78
- children: import("react").ReactNode;
79
- }>;
80
- CanUseRemotionHooks: import("react").Context<boolean>;
81
- enableLegacyRemotionConfig: () => void;
82
- PrefetchProvider: import("react").FC<{
83
- children: import("react").ReactNode;
84
- }>;
85
- };
86
- declare type WebpackConfiguration = Configuration;
87
- declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
88
- export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };