remotion 4.0.227 → 4.0.228

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.
package/README.md CHANGED
@@ -26,11 +26,11 @@ Remotion is a framework for **creating videos programmatically using React.**
26
26
  <table>
27
27
  <tr>
28
28
  <td align="center">
29
- <img style="width: 290px" src="packages/docs/static/img/fireship-quick.gif" />
29
+ <img style="width: 290px" src="https://remotion-assets.s3.eu-central-1.amazonaws.com/fireship-quick.gif" />
30
30
  <p>"This video was made with code" <em>- Fireship</em> <a href="https://youtu.be/deg8bOoziaE">Watch</a> • <a href="https://github.com/wcandillon/remotion-fireship">Source</a></p>
31
31
  </td>
32
32
  <td align="center">
33
- <img style="width: 240px" src="packages/docs/static/img/unwrapped-2023.gif" />
33
+ <img style="width: 240px" src="https://remotion-assets.s3.eu-central-1.amazonaws.com/unwrapped-2023.gif" />
34
34
  <p>GitHub Unwrapped - Personalized Year in Review <a href="https://www.githubunwrapped.com">Try</a> • <a href="https://github.com/remotion-dev/github-unwrapped-2023">Source</a></p>
35
35
  </td>
36
36
  <td align="center">
@@ -1,7 +1,5 @@
1
1
  import type React from 'react';
2
- export declare const Clipper: React.FC<{
3
- readonly width: number;
4
- readonly height: number;
5
- readonly x: number;
6
- readonly y: number;
7
- }>;
2
+ /**
3
+ * @deprecated <Clipper> has been removed as of Remotion v4.0.228. The native clipping APIs were experimental and subject to removal at any time. We removed them because they were sparingly used and made rendering often slower rather than faster.
4
+ */
5
+ export declare const Clipper: React.FC<{}>;
@@ -1,24 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Clipper = void 0;
4
- const react_1 = require("react");
5
- const NativeLayers_js_1 = require("./NativeLayers.js");
6
- const Clipper = ({ height, width, x, y }) => {
7
- const { setClipRegion } = (0, react_1.useContext)(NativeLayers_js_1.NativeLayersContext);
8
- (0, react_1.useEffect)(() => {
9
- setClipRegion((c) => {
10
- if (c === 'hide') {
11
- throw new Error('Cannot render <Clipper>, because another <Null> is already rendered');
12
- }
13
- if (c === null) {
14
- return { height, width, x, y };
15
- }
16
- throw new Error('Cannot render <Clipper>, because another component clipping the region was already rendered (most likely <Clipper>)');
17
- });
18
- return () => {
19
- setClipRegion(null);
20
- };
21
- }, [height, setClipRegion, width, x, y]);
22
- return null;
4
+ /**
5
+ * @deprecated <Clipper> has been removed as of Remotion v4.0.228. The native clipping APIs were experimental and subject to removal at any time. We removed them because they were sparingly used and made rendering often slower rather than faster.
6
+ */
7
+ const Clipper = () => {
8
+ throw new Error('<Clipper> has been removed as of Remotion v4.0.228. The native clipping APIs were experimental and subject to removal at any time. We removed them because they were sparingly used and made rendering often slower rather than faster.');
23
9
  };
24
10
  exports.Clipper = Clipper;
@@ -1,4 +1,4 @@
1
- import type { ComponentType, PropsWithChildren } from 'react';
1
+ import type { ComponentType } from 'react';
2
2
  import React from 'react';
3
3
  import type { AnyZodObject } from 'zod';
4
4
  import type { Codec } from './codec.js';
@@ -47,7 +47,6 @@ export type StillProps<Schema extends AnyZodObject, Props extends Record<string,
47
47
  id: string;
48
48
  schema?: Schema;
49
49
  } & StillCalculateMetadataOrExplicit<Schema, Props> & CompProps<Props> & PropsIfHasProps<Schema, Props>;
50
- export declare const ClipComposition: React.FC<PropsWithChildren>;
51
50
  export type CompositionProps<Schema extends AnyZodObject, Props extends Record<string, unknown>> = {
52
51
  readonly id: string;
53
52
  readonly schema?: Schema;
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Composition = exports.ClipComposition = void 0;
3
+ 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 AbsoluteFill_js_1 = require("./AbsoluteFill.js");
8
7
  const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
9
8
  const CompositionManagerContext_js_1 = require("./CompositionManagerContext.js");
10
9
  const Folder_js_1 = require("./Folder.js");
11
- const NativeLayers_js_1 = require("./NativeLayers.js");
12
10
  const ResolveCompositionConfig_js_1 = require("./ResolveCompositionConfig.js");
13
11
  const delay_render_js_1 = require("./delay-render.js");
14
12
  const get_remotion_environment_js_1 = require("./get-remotion-environment.js");
@@ -21,21 +19,6 @@ const use_lazy_component_js_1 = require("./use-lazy-component.js");
21
19
  const use_video_js_1 = require("./use-video.js");
22
20
  const validate_composition_id_js_1 = require("./validation/validate-composition-id.js");
23
21
  const validate_default_props_js_1 = require("./validation/validate-default-props.js");
24
- const ClipComposition = ({ children }) => {
25
- const { clipRegion } = (0, react_1.useContext)(NativeLayers_js_1.NativeLayersContext);
26
- const style = (0, react_1.useMemo)(() => {
27
- return {
28
- display: 'flex',
29
- flexDirection: 'row',
30
- opacity: clipRegion === 'hide' ? 0 : 1,
31
- clipPath: clipRegion && clipRegion !== 'hide'
32
- ? `polygon(${clipRegion.x}px ${clipRegion.y}px, ${clipRegion.x}px ${clipRegion.height + clipRegion.y}px, ${clipRegion.width + clipRegion.x}px ${clipRegion.height + clipRegion.y}px, ${clipRegion.width + clipRegion.x}px ${clipRegion.y}px)`
33
- : undefined,
34
- };
35
- }, [clipRegion]);
36
- return (0, jsx_runtime_1.jsx)(AbsoluteFill_js_1.AbsoluteFill, { style: style, children: children });
37
- };
38
- exports.ClipComposition = ClipComposition;
39
22
  const Fallback = () => {
40
23
  (0, react_1.useEffect)(() => {
41
24
  const fallback = (0, delay_render_js_1.delayRender)('Waiting for Root component to unsuspend');
@@ -110,7 +93,7 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, s
110
93
  if (resolved === null || resolved.type !== 'success') {
111
94
  return null;
112
95
  }
113
- return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(exports.ClipComposition, { children: (0, jsx_runtime_1.jsx)(CanUseRemotionHooks_js_1.CanUseRemotionHooksProvider, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(loading_indicator_js_1.Loading, {}), children: (0, jsx_runtime_1.jsx)(Comp, { ...((_a = resolved.result.props) !== null && _a !== void 0 ? _a : {}) }) }) }) }), (0, portal_node_js_1.portalNode)());
96
+ return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(CanUseRemotionHooks_js_1.CanUseRemotionHooksProvider, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(loading_indicator_js_1.Loading, {}), children: (0, jsx_runtime_1.jsx)(Comp, { ...((_a = resolved.result.props) !== null && _a !== void 0 ? _a : {}) }) }) }), (0, portal_node_js_1.portalNode)());
114
97
  }
115
98
  if (environment.isRendering && video && video.component === lazy) {
116
99
  const Comp = lazy;
@@ -1 +1,4 @@
1
+ /**
2
+ * @deprecated <Null /> has been removed as of Remotion v4.0.228. The native clipping APIs were experimental and subject to removal at any time. We removed them because they were sparingly used and made rendering often slower rather than faster.
3
+ */
1
4
  export declare const Null: React.FC;
package/dist/cjs/Null.js CHANGED
@@ -1,25 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Null = void 0;
4
- const react_1 = require("react");
5
- const NativeLayers_js_1 = require("./NativeLayers.js");
4
+ /**
5
+ * @deprecated <Null /> has been removed as of Remotion v4.0.228. The native clipping APIs were experimental and subject to removal at any time. We removed them because they were sparingly used and made rendering often slower rather than faster.
6
+ */
6
7
  const Null = () => {
7
- const { setClipRegion } = (0, react_1.useContext)(NativeLayers_js_1.NativeLayersContext);
8
- (0, react_1.useEffect)(() => {
9
- setClipRegion((c) => {
10
- if (c === null) {
11
- return 'hide';
12
- }
13
- // Rendering multiple <Null> is fine, because they are all hidden
14
- if (c === 'hide') {
15
- return 'hide';
16
- }
17
- throw new Error('Cannot render <Null>, because another component clipping the region was already rendered (most likely <Clipper>)');
18
- });
19
- return () => {
20
- setClipRegion(null);
21
- };
22
- }, [setClipRegion]);
23
- return null;
8
+ throw new Error('<Null> has been removed as of Remotion v4.0.228. The native clipping APIs were experimental and subject to removal at any time. We removed them because they were sparingly used and made rendering often slower rather than faster.');
24
9
  };
25
10
  exports.Null = Null;
@@ -5,7 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const CompositionManager_js_1 = require("./CompositionManager.js");
7
7
  const EditorProps_js_1 = require("./EditorProps.js");
8
- const NativeLayers_js_1 = require("./NativeLayers.js");
9
8
  const buffering_js_1 = require("./buffering.js");
10
9
  const delay_render_js_1 = require("./delay-render.js");
11
10
  const nonce_js_1 = require("./nonce.js");
@@ -87,6 +86,6 @@ const RemotionRoot = ({ children, numberOfAudioTags }) => {
87
86
  }
88
87
  }
89
88
  }, []);
90
- return ((0, jsx_runtime_1.jsx)(nonce_js_1.NonceContext.Provider, { value: nonceContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.TimelineContext.Provider, { value: timelineContextValue, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.SetTimelineContext.Provider, { value: setTimelineContextValue, children: (0, jsx_runtime_1.jsx)(EditorProps_js_1.EditorPropsProvider, { children: (0, jsx_runtime_1.jsx)(prefetch_state_js_1.PrefetchProvider, { children: (0, jsx_runtime_1.jsx)(NativeLayers_js_1.NativeLayersProvider, { children: (0, jsx_runtime_1.jsx)(CompositionManager_js_1.CompositionManagerProvider, { numberOfAudioTags: numberOfAudioTags, children: (0, jsx_runtime_1.jsx)(duration_state_js_1.DurationsContextProvider, { children: (0, jsx_runtime_1.jsx)(buffering_js_1.BufferingProvider, { children: children }) }) }) }) }) }) }) }) }));
89
+ return ((0, jsx_runtime_1.jsx)(nonce_js_1.NonceContext.Provider, { value: nonceContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.TimelineContext.Provider, { value: timelineContextValue, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.SetTimelineContext.Provider, { value: setTimelineContextValue, children: (0, jsx_runtime_1.jsx)(EditorProps_js_1.EditorPropsProvider, { children: (0, jsx_runtime_1.jsx)(prefetch_state_js_1.PrefetchProvider, { children: (0, jsx_runtime_1.jsx)(CompositionManager_js_1.CompositionManagerProvider, { numberOfAudioTags: numberOfAudioTags, children: (0, jsx_runtime_1.jsx)(duration_state_js_1.DurationsContextProvider, { children: (0, jsx_runtime_1.jsx)(buffering_js_1.BufferingProvider, { children: children }) }) }) }) }) }) }) }));
91
90
  };
92
91
  exports.RemotionRoot = RemotionRoot;
@@ -50,6 +50,9 @@ const AudioRefForwardingFunction = (props, ref) => {
50
50
  }, [setDurations]);
51
51
  const durationFetched = (_a = durations[(0, absolute_src_js_1.getAbsoluteSrc)(preloadedSrc)]) !== null && _a !== void 0 ? _a : durations[(0, absolute_src_js_1.getAbsoluteSrc)(props.src)];
52
52
  if (loop && durationFetched !== undefined) {
53
+ if (!Number.isFinite(durationFetched)) {
54
+ return ((0, jsx_runtime_1.jsx)(exports.Audio, { ...propsOtherThanLoop, ref: ref, _remotionInternalNativeLoopPassed: true }));
55
+ }
53
56
  const duration = durationFetched * fps;
54
57
  return ((0, jsx_runtime_1.jsx)(index_js_1.Loop, { layout: "none", durationInFrames: (0, calculate_loop_js_1.calculateLoopDuration)({
55
58
  endAt,
@@ -3,7 +3,6 @@ import './asset-types.js';
3
3
  import type { Codec } from './codec.js';
4
4
  import type { TRenderAsset } from './CompositionManager.js';
5
5
  import type { StaticFile } from './get-static-files.js';
6
- import type { ClipRegion } from './NativeLayers.js';
7
6
  import type { VideoConfig } from './video-config.js';
8
7
  export type VideoConfigWithSerializedProps = Omit<VideoConfig, 'defaultProps' | 'props'> & {
9
8
  serializedDefaultPropsWithCustomSchema: string;
@@ -43,7 +42,6 @@ declare global {
43
42
  remotion_inputProps: string;
44
43
  remotion_envVariables: string;
45
44
  remotion_collectAssets: () => TRenderAsset[];
46
- remotion_getClipRegion: () => ClipRegion | null;
47
45
  remotion_isPlayer: boolean;
48
46
  remotion_isStudio: boolean;
49
47
  remotion_isReadOnlyStudio: boolean;
@@ -88,7 +86,6 @@ export { Img, ImgProps } from './Img.js';
88
86
  export * from './internals.js';
89
87
  export { interpolateColors } from './interpolate-colors.js';
90
88
  export { Loop } from './loop/index.js';
91
- export { ClipRegion } from './NativeLayers.js';
92
89
  export { EasingFunction, ExtrapolateType, interpolate, InterpolateOptions, random, RandomSeed, } from './no-react';
93
90
  export { prefetch, PrefetchOnProgress } from './prefetch.js';
94
91
  export { registerRoot } from './register-root.js';
@@ -111,12 +108,7 @@ export declare const Experimental: {
111
108
  * @description This is a special component that will cause Remotion to only partially capture the frame of the video.
112
109
  * @see [Documentation](https://www.remotion.dev/docs/clipper)
113
110
  */
114
- Clipper: import("react").FC<{
115
- readonly width: number;
116
- readonly height: number;
117
- readonly x: number;
118
- readonly y: number;
119
- }>;
111
+ Clipper: import("react").FC<{}>;
120
112
  /**
121
113
  * @description This is a special component, that, when rendered, will skip rendering the frame altogether.
122
114
  * @see [Documentation](https://www.remotion.dev/docs/null)
@@ -123,12 +123,6 @@ export declare const Internals: {
123
123
  [x: string]: number;
124
124
  }) => void;
125
125
  readonly useTimelineSetFrame: () => ((u: React.SetStateAction<Record<string, number>>) => void);
126
- readonly NativeLayersProvider: import("react").FC<{
127
- children?: import("react").ReactNode | undefined;
128
- }>;
129
- readonly ClipComposition: import("react").FC<{
130
- children?: import("react").ReactNode | undefined;
131
- }>;
132
126
  readonly isIosSafari: () => boolean;
133
127
  readonly WATCH_REMOTION_STATIC_FILES: "remotion_staticFilesChanged";
134
128
  readonly addSequenceStackTraces: (component: unknown) => void;
@@ -28,7 +28,6 @@ const shared_audio_tags_js_1 = require("./audio/shared-audio-tags.js");
28
28
  const use_audio_frame_js_1 = require("./audio/use-audio-frame.js");
29
29
  const buffering_js_1 = require("./buffering.js");
30
30
  const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
31
- const Composition_js_1 = require("./Composition.js");
32
31
  const CompositionManager_js_1 = require("./CompositionManager.js");
33
32
  const CompositionManagerContext_js_1 = require("./CompositionManagerContext.js");
34
33
  const CSSUtils = __importStar(require("./default-css.js"));
@@ -37,7 +36,6 @@ const enable_sequence_stack_traces_js_1 = require("./enable-sequence-stack-trace
37
36
  const get_preview_dom_element_js_1 = require("./get-preview-dom-element.js");
38
37
  const get_remotion_environment_js_1 = require("./get-remotion-environment.js");
39
38
  const is_player_js_1 = require("./is-player.js");
40
- const NativeLayers_js_1 = require("./NativeLayers.js");
41
39
  const nonce_js_1 = require("./nonce.js");
42
40
  const portal_node_js_1 = require("./portal-node.js");
43
41
  const prefetch_state_js_1 = require("./prefetch-state.js");
@@ -113,8 +111,6 @@ exports.Internals = {
113
111
  RenderAssetManager: RenderAssetManager_js_1.RenderAssetManager,
114
112
  persistCurrentFrame: timeline_position_state_js_1.persistCurrentFrame,
115
113
  useTimelineSetFrame: timeline_position_state_js_1.useTimelineSetFrame,
116
- NativeLayersProvider: NativeLayers_js_1.NativeLayersProvider,
117
- ClipComposition: Composition_js_1.ClipComposition,
118
114
  isIosSafari: video_fragment_js_1.isIosSafari,
119
115
  WATCH_REMOTION_STATIC_FILES: watch_static_file_js_1.WATCH_REMOTION_STATIC_FILES,
120
116
  addSequenceStackTraces: enable_sequence_stack_traces_js_1.addSequenceStackTraces,
@@ -1,6 +1,5 @@
1
1
  export type { ArtifactAsset, AudioOrVideoAsset, TRenderAsset, } from './CompositionManager';
2
2
  export { EasingFunction, ExtrapolateType, interpolate, InterpolateOptions, } from './interpolate';
3
- export type { ClipRegion } from './NativeLayers';
4
3
  export { random, RandomSeed } from './random.js';
5
4
  export type { VideoConfig } from './video-config';
6
5
  import { processColor } from './interpolate-colors';
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.227";
6
+ export declare const VERSION = "4.0.228";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.227';
10
+ exports.VERSION = '4.0.228';
@@ -37,6 +37,9 @@ const VideoForwardingFunction = (props, ref) => {
37
37
  const onVideoFrame = (0, react_1.useCallback)(() => { }, []);
38
38
  const durationFetched = (_a = durations[(0, absolute_src_js_1.getAbsoluteSrc)(preloadedSrc)]) !== null && _a !== void 0 ? _a : durations[(0, absolute_src_js_1.getAbsoluteSrc)(props.src)];
39
39
  if (loop && durationFetched !== undefined) {
40
+ if (!Number.isFinite(durationFetched)) {
41
+ return ((0, jsx_runtime_1.jsx)(exports.Video, { ...propsOtherThanLoop, ref: ref, _remotionInternalNativeLoopPassed: true }));
42
+ }
40
43
  const mediaDuration = durationFetched * fps;
41
44
  return ((0, jsx_runtime_1.jsx)(index_js_1.Loop, { durationInFrames: (0, calculate_loop_js_1.calculateLoopDuration)({
42
45
  endAt,
@@ -106,7 +106,7 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, allowAm
106
106
  startFrom: -mediaStartsAt,
107
107
  fps: videoConfig.fps,
108
108
  });
109
- const handle = (0, delay_render_js_1.delayRender)(`Rendering <Video /> with src="${props.src}"`, {
109
+ const handle = (0, delay_render_js_1.delayRender)(`Rendering <Video /> with src="${props.src}" at time ${currentTime}`, {
110
110
  retries: delayRenderRetries !== null && delayRenderRetries !== void 0 ? delayRenderRetries : undefined,
111
111
  timeoutInMilliseconds: delayRenderTimeoutInMilliseconds !== null && delayRenderTimeoutInMilliseconds !== void 0 ? delayRenderTimeoutInMilliseconds : undefined,
112
112
  });
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.seekToTimeMultipleUntilRight = exports.seekToTime = void 0;
4
+ const is_approximately_the_same_1 = require("../is-approximately-the-same");
4
5
  const roundTo6Commas = (num) => {
5
6
  return Math.round(num * 100000) / 100000;
6
7
  };
7
8
  const seekToTime = (element, desiredTime) => {
9
+ if ((0, is_approximately_the_same_1.isApproximatelyTheSame)(element.currentTime, desiredTime)) {
10
+ return {
11
+ wait: Promise.resolve(desiredTime),
12
+ cancel: () => { },
13
+ };
14
+ }
8
15
  element.currentTime = desiredTime;
9
16
  let cancel;
10
17
  let cancelSeeked = null;
@@ -6,7 +6,6 @@ export declare function useRemotionContexts(): {
6
6
  sequenceContext: import("./SequenceContext.js").SequenceContextType | null;
7
7
  nonceContext: import("./nonce.js").TNonceContext;
8
8
  canUseRemotionHooksContext: boolean;
9
- nativeLayersContext: import("./NativeLayers.js").TNativeLayersContext;
10
9
  preloadContext: {
11
10
  [x: string]: string;
12
11
  };
@@ -32,7 +32,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
32
32
  const react_1 = __importStar(require("react"));
33
33
  const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
34
34
  const CompositionManagerContext_js_1 = require("./CompositionManagerContext.js");
35
- const NativeLayers_js_1 = require("./NativeLayers.js");
36
35
  const RenderAssetManager_js_1 = require("./RenderAssetManager.js");
37
36
  const ResolveCompositionConfig_js_1 = require("./ResolveCompositionConfig.js");
38
37
  const SequenceContext_js_1 = require("./SequenceContext.js");
@@ -48,7 +47,6 @@ function useRemotionContexts() {
48
47
  const sequenceContext = react_1.default.useContext(SequenceContext_js_1.SequenceContext);
49
48
  const nonceContext = react_1.default.useContext(nonce_js_1.NonceContext);
50
49
  const canUseRemotionHooksContext = react_1.default.useContext(CanUseRemotionHooks_js_1.CanUseRemotionHooks);
51
- const nativeLayersContext = react_1.default.useContext(NativeLayers_js_1.NativeLayersContext);
52
50
  const preloadContext = react_1.default.useContext(prefetch_state_js_1.PreloadContext);
53
51
  const resolveCompositionContext = react_1.default.useContext(ResolveCompositionConfig_js_1.ResolveCompositionContext);
54
52
  const renderAssetManagerContext = react_1.default.useContext(RenderAssetManager_js_1.RenderAssetManager);
@@ -61,7 +59,6 @@ function useRemotionContexts() {
61
59
  sequenceContext,
62
60
  nonceContext,
63
61
  canUseRemotionHooksContext,
64
- nativeLayersContext,
65
62
  preloadContext,
66
63
  resolveCompositionContext,
67
64
  renderAssetManagerContext,
@@ -74,7 +71,6 @@ function useRemotionContexts() {
74
71
  setTimelineContext,
75
72
  timelineContext,
76
73
  canUseRemotionHooksContext,
77
- nativeLayersContext,
78
74
  preloadContext,
79
75
  resolveCompositionContext,
80
76
  renderAssetManagerContext,
@@ -84,6 +80,6 @@ function useRemotionContexts() {
84
80
  }
85
81
  const RemotionContextProvider = (props) => {
86
82
  const { children, contexts } = props;
87
- return ((0, jsx_runtime_1.jsx)(CanUseRemotionHooks_js_1.CanUseRemotionHooks.Provider, { value: contexts.canUseRemotionHooksContext, children: (0, jsx_runtime_1.jsx)(nonce_js_1.NonceContext.Provider, { value: contexts.nonceContext, children: (0, jsx_runtime_1.jsx)(NativeLayers_js_1.NativeLayersContext.Provider, { value: contexts.nativeLayersContext, children: (0, jsx_runtime_1.jsx)(prefetch_state_js_1.PreloadContext.Provider, { value: contexts.preloadContext, children: (0, jsx_runtime_1.jsx)(CompositionManagerContext_js_1.CompositionManager.Provider, { value: contexts.compositionManagerCtx, children: (0, jsx_runtime_1.jsx)(SequenceManager_js_1.SequenceManager.Provider, { value: contexts.sequenceManagerContext, children: (0, jsx_runtime_1.jsx)(RenderAssetManager_js_1.RenderAssetManager.Provider, { value: contexts.renderAssetManagerContext, children: (0, jsx_runtime_1.jsx)(ResolveCompositionConfig_js_1.ResolveCompositionContext.Provider, { value: contexts.resolveCompositionContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.TimelineContext.Provider, { value: contexts.timelineContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.SetTimelineContext.Provider, { value: contexts.setTimelineContext, children: (0, jsx_runtime_1.jsx)(SequenceContext_js_1.SequenceContext.Provider, { value: contexts.sequenceContext, children: (0, jsx_runtime_1.jsx)(buffering_js_1.BufferingContextReact.Provider, { value: contexts.bufferManagerContext, children: children }) }) }) }) }) }) }) }) }) }) }) }));
83
+ return ((0, jsx_runtime_1.jsx)(CanUseRemotionHooks_js_1.CanUseRemotionHooks.Provider, { value: contexts.canUseRemotionHooksContext, children: (0, jsx_runtime_1.jsx)(nonce_js_1.NonceContext.Provider, { value: contexts.nonceContext, children: (0, jsx_runtime_1.jsx)(prefetch_state_js_1.PreloadContext.Provider, { value: contexts.preloadContext, children: (0, jsx_runtime_1.jsx)(CompositionManagerContext_js_1.CompositionManager.Provider, { value: contexts.compositionManagerCtx, children: (0, jsx_runtime_1.jsx)(SequenceManager_js_1.SequenceManager.Provider, { value: contexts.sequenceManagerContext, children: (0, jsx_runtime_1.jsx)(RenderAssetManager_js_1.RenderAssetManager.Provider, { value: contexts.renderAssetManagerContext, children: (0, jsx_runtime_1.jsx)(ResolveCompositionConfig_js_1.ResolveCompositionContext.Provider, { value: contexts.resolveCompositionContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.TimelineContext.Provider, { value: contexts.timelineContext, children: (0, jsx_runtime_1.jsx)(timeline_position_state_js_1.SetTimelineContext.Provider, { value: contexts.setTimelineContext, children: (0, jsx_runtime_1.jsx)(SequenceContext_js_1.SequenceContext.Provider, { value: contexts.sequenceContext, children: (0, jsx_runtime_1.jsx)(buffering_js_1.BufferingContextReact.Provider, { value: contexts.bufferManagerContext, children: children }) }) }) }) }) }) }) }) }) }) }));
88
84
  };
89
85
  exports.RemotionContextProvider = RemotionContextProvider;