remotion 4.0.472 → 4.0.474

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 (36) hide show
  1. package/dist/cjs/CompositionManager.d.ts +1 -1
  2. package/dist/cjs/Img.d.ts +0 -1
  3. package/dist/cjs/Sequence.d.ts +3 -1
  4. package/dist/cjs/Sequence.js +7 -1
  5. package/dist/cjs/SequenceManager.d.ts +13 -5
  6. package/dist/cjs/SequenceManager.js +23 -13
  7. package/dist/cjs/calculate-media-duration.js +1 -1
  8. package/dist/cjs/canvas-image/CanvasImage.d.ts +0 -1
  9. package/dist/cjs/effects/use-memoized-effects.d.ts +5 -5
  10. package/dist/cjs/effects/use-memoized-effects.js +32 -21
  11. package/dist/cjs/get-effective-visual-mode-value.d.ts +2 -2
  12. package/dist/cjs/get-effective-visual-mode-value.js +11 -8
  13. package/dist/cjs/internals.d.ts +14 -14
  14. package/dist/cjs/internals.js +7 -3
  15. package/dist/cjs/interpolate-keyframed-status.d.ts +3 -1
  16. package/dist/cjs/interpolate-keyframed-status.js +3 -2
  17. package/dist/cjs/interpolate.d.ts +8 -1
  18. package/dist/cjs/interpolate.js +34 -1
  19. package/dist/cjs/no-react.d.ts +0 -1
  20. package/dist/cjs/sequence-field-schema.d.ts +70 -3
  21. package/dist/cjs/sequence-field-schema.js +6 -2
  22. package/dist/cjs/series/index.js +2 -2
  23. package/dist/cjs/timeline-position-state.d.ts +1 -0
  24. package/dist/cjs/timeline-position-state.js +6 -2
  25. package/dist/cjs/use-media-in-timeline.d.ts +1 -1
  26. package/dist/cjs/use-schema.d.ts +3 -4
  27. package/dist/cjs/use-schema.js +6 -6
  28. package/dist/cjs/version.d.ts +1 -1
  29. package/dist/cjs/version.js +1 -1
  30. package/dist/cjs/wrap-in-schema.js +3 -3
  31. package/dist/cjs/wrap-remotion-context.d.ts +2 -0
  32. package/dist/cjs/wrap-remotion-context.js +7 -1
  33. package/dist/esm/index.mjs +179 -82
  34. package/dist/esm/no-react.mjs +43 -2
  35. package/dist/esm/version.mjs +1 -1
  36. package/package.json +2 -2
@@ -261,6 +261,36 @@ const interpolateString = ({ input, inputRange, outputRange, options, }) => {
261
261
  dimensions,
262
262
  });
263
263
  };
264
+ const validateTupleOutputRange = (outputRange) => {
265
+ var _a;
266
+ const dimensions = (_a = outputRange[0]) === null || _a === void 0 ? void 0 : _a.length;
267
+ if (dimensions === undefined) {
268
+ throw new Error('outputRange must have at least 1 element');
269
+ }
270
+ if (dimensions === 0) {
271
+ throw new TypeError('outputRange tuples must contain at least 1 number');
272
+ }
273
+ for (const output of outputRange) {
274
+ if (output.length !== dimensions) {
275
+ throw new TypeError(`outputRange tuples must all have the same length, but got ${dimensions} and ${output.length}`);
276
+ }
277
+ for (const value of output) {
278
+ if (typeof value !== 'number' || !Number.isFinite(value)) {
279
+ throw new TypeError(`outputRange tuples must contain only finite numbers, but got [${output.join(',')}]`);
280
+ }
281
+ }
282
+ }
283
+ return dimensions;
284
+ };
285
+ const interpolateTuple = ({ input, inputRange, outputRange, options, }) => {
286
+ const dimensions = validateTupleOutputRange(outputRange);
287
+ return new Array(dimensions).fill(true).map((_, axis) => interpolateNumber({
288
+ input,
289
+ inputRange,
290
+ outputRange: outputRange.map((output) => output[axis]),
291
+ options,
292
+ }));
293
+ };
264
294
  function checkValidInputRange(arr) {
265
295
  for (let i = 1; i < arr.length; ++i) {
266
296
  if (!(arr[i] > arr[i - 1])) {
@@ -342,8 +372,11 @@ function interpolate(input, inputRange, outputRange, options) {
342
372
  }
343
373
  return interpolateString({ input, inputRange, outputRange, options });
344
374
  }
375
+ if (outputRange.every((output) => Array.isArray(output))) {
376
+ return interpolateTuple({ input, inputRange, outputRange, options });
377
+ }
345
378
  if (!outputRange.every((output) => typeof output === 'number')) {
346
- throw new TypeError('outputRange must contain only numbers, or supported scale, translate, and rotate strings');
379
+ throw new TypeError('outputRange must contain only numbers, numeric tuples, or supported scale, translate, and rotate strings');
347
380
  }
348
381
  checkInfiniteRange('outputRange', outputRange);
349
382
  return interpolateNumber({ input, inputRange, outputRange, options });
@@ -90,7 +90,6 @@ export declare const NoReactInternals: {
90
90
  };
91
91
  readonly 'style.scale': {
92
92
  readonly type: "scale";
93
- readonly min: 0.05;
94
93
  readonly max: 100;
95
94
  readonly step: 0.01;
96
95
  readonly default: 1;
@@ -55,6 +55,7 @@ export type UvCoordinateFieldSchema = {
55
55
  min?: number;
56
56
  max?: number;
57
57
  step?: number;
58
+ lineTo?: string;
58
59
  default: readonly [number, number] | undefined;
59
60
  description?: string;
60
61
  keyframable?: boolean;
@@ -109,7 +110,6 @@ export declare const sequenceVisualStyleSchema: {
109
110
  };
110
111
  readonly 'style.scale': {
111
112
  readonly type: "scale";
112
- readonly min: 0.05;
113
113
  readonly max: 100;
114
114
  readonly step: 0.01;
115
115
  readonly default: 1;
@@ -163,7 +163,6 @@ export declare const sequenceStyleSchema: {
163
163
  };
164
164
  readonly 'style.scale': {
165
165
  readonly type: "scale";
166
- readonly min: 0.05;
167
166
  readonly max: 100;
168
167
  readonly step: 0.01;
169
168
  readonly default: 1;
@@ -249,7 +248,75 @@ export declare const sequenceSchema: {
249
248
  };
250
249
  readonly 'style.scale': {
251
250
  readonly type: "scale";
252
- readonly min: 0.05;
251
+ readonly max: 100;
252
+ readonly step: 0.01;
253
+ readonly default: 1;
254
+ readonly description: "Scale";
255
+ };
256
+ readonly 'style.rotate': {
257
+ readonly type: "rotation-css";
258
+ readonly step: 1;
259
+ readonly default: "0deg";
260
+ readonly description: "Rotation";
261
+ };
262
+ readonly 'style.opacity': {
263
+ readonly type: "number";
264
+ readonly min: 0;
265
+ readonly max: 1;
266
+ readonly step: 0.01;
267
+ readonly default: 1;
268
+ readonly description: "Opacity";
269
+ readonly hiddenFromList: false;
270
+ };
271
+ readonly premountFor: {
272
+ readonly type: "number";
273
+ readonly default: 0;
274
+ readonly description: "Premount For";
275
+ readonly min: 0;
276
+ readonly step: 1;
277
+ readonly hiddenFromList: false;
278
+ };
279
+ readonly postmountFor: {
280
+ readonly type: "number";
281
+ readonly default: 0;
282
+ readonly min: 0;
283
+ readonly step: 1;
284
+ readonly hiddenFromList: true;
285
+ };
286
+ readonly styleWhilePremounted: {
287
+ readonly type: "hidden";
288
+ };
289
+ readonly styleWhilePostmounted: {
290
+ readonly type: "hidden";
291
+ };
292
+ };
293
+ readonly none: {};
294
+ };
295
+ };
296
+ };
297
+ export declare const sequenceSchemaWithoutFrom: {
298
+ readonly hidden: BooleanFieldSchema;
299
+ readonly durationInFrames: {
300
+ readonly type: "number";
301
+ readonly default: undefined;
302
+ readonly min: 1;
303
+ readonly step: 1;
304
+ readonly hiddenFromList: true;
305
+ };
306
+ readonly layout: {
307
+ readonly type: "enum";
308
+ readonly default: "absolute-fill";
309
+ readonly description: "Layout";
310
+ readonly variants: {
311
+ readonly 'absolute-fill': {
312
+ readonly 'style.translate': {
313
+ readonly type: "translate";
314
+ readonly step: 1;
315
+ readonly default: "0px 0px";
316
+ readonly description: "Offset";
317
+ };
318
+ readonly 'style.scale': {
319
+ readonly type: "scale";
253
320
  readonly max: 100;
254
321
  readonly step: 0.01;
255
322
  readonly default: 1;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchema = exports.fromField = exports.durationInFramesField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.sequenceVisualStyleSchema = void 0;
3
+ exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.sequenceSchema = exports.fromField = exports.durationInFramesField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.sequenceVisualStyleSchema = void 0;
4
4
  exports.sequenceVisualStyleSchema = {
5
5
  'style.translate': {
6
6
  type: 'translate',
@@ -10,7 +10,6 @@ exports.sequenceVisualStyleSchema = {
10
10
  },
11
11
  'style.scale': {
12
12
  type: 'scale',
13
- min: 0.05,
14
13
  max: 100,
15
14
  step: 0.01,
16
15
  default: 1,
@@ -91,6 +90,11 @@ exports.sequenceSchema = {
91
90
  },
92
91
  },
93
92
  };
93
+ exports.sequenceSchemaWithoutFrom = {
94
+ hidden: exports.hiddenField,
95
+ durationInFrames: exports.durationInFramesField,
96
+ layout: exports.sequenceSchema.layout,
97
+ };
94
98
  exports.sequenceSchemaDefaultLayoutNone = {
95
99
  ...exports.sequenceSchema,
96
100
  layout: {
@@ -16,6 +16,7 @@ const SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
16
16
  return jsx_runtime_1.jsx(is_inside_series_js_1.IsNotInsideSeriesProvider, { children: children });
17
17
  };
18
18
  const SeriesSequence = (0, react_1.forwardRef)(SeriesSequenceRefForwardingFunction);
19
+ const SequenceWithoutSchemaWithRef = Sequence_js_1.SequenceWithoutSchema;
19
20
  const SeriesInner = (props) => {
20
21
  const childrenValue = (0, react_1.useMemo)(() => {
21
22
  let startFrame = 0;
@@ -55,7 +56,7 @@ const SeriesInner = (props) => {
55
56
  }
56
57
  const currentStartFrame = startFrame + offset;
57
58
  startFrame += durationInFramesProp + offset;
58
- return (jsx_runtime_1.jsx(Sequence_js_1.Sequence, { name: name || '<Series.Sequence>', _remotionInternalDocumentationLink: name ? undefined : 'https://www.remotion.dev/docs/series', from: currentStartFrame, durationInFrames: durationInFramesProp, ...passedProps, ref: castedChild.ref, children: child }));
59
+ return (jsx_runtime_1.jsx(SequenceWithoutSchemaWithRef, { ref: castedChild.ref, name: name || '<Series.Sequence>', _remotionInternalDocumentationLink: name ? undefined : 'https://www.remotion.dev/docs/series', from: currentStartFrame, durationInFrames: durationInFramesProp, ...passedProps, children: child }));
59
60
  });
60
61
  }, [props.children]);
61
62
  return (jsx_runtime_1.jsx(is_inside_series_js_1.IsInsideSeriesContainer, { children: jsx_runtime_1.jsx(Sequence_js_1.Sequence, { layout: "none", name: "<Series>", _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/series", ...props, children: childrenValue }) }));
@@ -73,4 +74,3 @@ const Series = Object.assign((0, wrap_in_schema_js_1.wrapInSchema)({
73
74
  });
74
75
  exports.Series = Series;
75
76
  (0, enable_sequence_stack_traces_js_1.addSequenceStackTraces)(Series);
76
- (0, enable_sequence_stack_traces_js_1.addSequenceStackTraces)(SeriesSequence);
@@ -8,6 +8,7 @@ type CurrentTimePerComposition = Record<string, number>;
8
8
  export declare const persistCurrentFrame: (time: CurrentTimePerComposition) => void;
9
9
  export declare const getInitialFrameState: () => CurrentTimePerComposition;
10
10
  export declare const getFrameForComposition: (composition: string) => number;
11
+ export declare const clampFrameToCompositionRange: (frame: number, durationInFrames: number) => number;
11
12
  export declare const useTimelineContext: () => TimelineContextValue;
12
13
  export declare const usePlaybackRate: () => PlaybackRateContextValue;
13
14
  export declare const useTimelinePosition: () => number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usePlayingState = exports.useTimelineSetFrame = exports.useAbsoluteTimelinePosition = exports.useTimelinePosition = exports.usePlaybackRate = exports.useTimelineContext = exports.getFrameForComposition = exports.getInitialFrameState = exports.persistCurrentFrame = void 0;
3
+ exports.usePlayingState = exports.useTimelineSetFrame = exports.useAbsoluteTimelinePosition = exports.useTimelinePosition = exports.usePlaybackRate = exports.useTimelineContext = exports.clampFrameToCompositionRange = exports.getFrameForComposition = exports.getInitialFrameState = exports.persistCurrentFrame = void 0;
4
4
  const react_1 = require("react");
5
5
  const TimelineContext_js_1 = require("./TimelineContext.js");
6
6
  const use_remotion_environment_js_1 = require("./use-remotion-environment.js");
@@ -32,6 +32,10 @@ const getFrameForComposition = (composition) => {
32
32
  return (_b = window.remotion_initialFrame) !== null && _b !== void 0 ? _b : 0;
33
33
  };
34
34
  exports.getFrameForComposition = getFrameForComposition;
35
+ const clampFrameToCompositionRange = (frame, durationInFrames) => {
36
+ return Math.max(0, Math.min(Math.max(0, durationInFrames - 1), frame));
37
+ };
38
+ exports.clampFrameToCompositionRange = clampFrameToCompositionRange;
35
39
  const useTimelinePositionFromContext = (state) => {
36
40
  var _a, _b;
37
41
  const videoConfig = (0, use_video_js_1.useVideo)();
@@ -42,7 +46,7 @@ const useTimelinePositionFromContext = (state) => {
42
46
  : ((_a = window.remotion_initialFrame) !== null && _a !== void 0 ? _a : 0);
43
47
  }
44
48
  const unclamped = (_b = state.frame[videoConfig.id]) !== null && _b !== void 0 ? _b : (env.isPlayer ? 0 : (0, exports.getFrameForComposition)(videoConfig.id));
45
- return Math.min(videoConfig.durationInFrames - 1, unclamped);
49
+ return (0, exports.clampFrameToCompositionRange)(unclamped, videoConfig.durationInFrames);
46
50
  };
47
51
  const useTimelineContext = () => {
48
52
  const state = (0, react_1.useContext)(TimelineContext_js_1.TimelineContext);
@@ -38,5 +38,5 @@ export declare const useMediaInTimeline: ({ volume, mediaVolume, src, mediaType,
38
38
  postmountDisplay: number | null;
39
39
  loopDisplay: LoopDisplay | undefined;
40
40
  documentationLink: string | null;
41
- refForOutline: import("react").RefObject<HTMLElement | null> | null;
41
+ refForOutline: import("react").RefObject<Element | null> | null;
42
42
  }) => void;
@@ -20,7 +20,6 @@ export type CanUpdateSequencePropStatusComputed = {
20
20
  };
21
21
  export type CanUpdateSequencePropStatusKeyframed = {
22
22
  status: 'keyframed';
23
- codeValue: unknown;
24
23
  interpolationFunction: CanUpdateSequencePropStatusInterpolationFunction;
25
24
  keyframes: CanUpdateSequencePropStatusKeyframe[];
26
25
  easing: CanUpdateSequencePropStatusEasing[];
@@ -38,9 +37,9 @@ export type DragOverrideValue = {
38
37
  };
39
38
  export type DragOverrides = Record<string, Record<string, DragOverrideValue>>;
40
39
  export type EffectDragOverrides = Record<string, Record<string, DragOverrideValue>>;
41
- export type CodeValues = Record<string, CanUpdateSequencePropsResponse>;
42
- export type GetCodeValues = (nodePath: SequencePropsSubscriptionKey) => Record<string, CanUpdateSequencePropStatus> | undefined;
43
- export type GetEffectCodeValues = (nodePath: SequencePropsSubscriptionKey, effectIndex: number) => Record<string, CanUpdateSequencePropStatus> | undefined;
40
+ export type PropStatuses = Record<string, CanUpdateSequencePropsResponse>;
41
+ export type GetPropStatuses = (nodePath: SequencePropsSubscriptionKey) => Record<string, CanUpdateSequencePropStatus> | undefined;
42
+ export type GetEffectPropStatuses = (nodePath: SequencePropsSubscriptionKey, effectIndex: number) => Record<string, CanUpdateSequencePropStatus> | undefined;
44
43
  export type GetDragOverrides = (nodePath: SequencePropsSubscriptionKey) => DragOverrides[string];
45
44
  export type GetEffectDragOverrides = (nodePath: SequencePropsSubscriptionKey, effectIndex: number) => Record<string, DragOverrideValue>;
46
45
  export declare const makeStaticDragOverride: (value: unknown) => DragOverrideValue;
@@ -64,16 +64,16 @@ const computeEffectiveSchemaValuesDotNotation = ({ schema, currentValue, overrid
64
64
  const merged = {};
65
65
  const propsToDelete = new Set();
66
66
  for (const key of Object.keys(currentValue)) {
67
- const codeValueStatus = (_b = propStatus === null || propStatus === void 0 ? void 0 : propStatus[key]) !== null && _b !== void 0 ? _b : null;
67
+ const status = (_b = propStatus === null || propStatus === void 0 ? void 0 : propStatus[key]) !== null && _b !== void 0 ? _b : null;
68
68
  const field = findFieldInSchema(schema, key);
69
69
  if ((field === null || field === void 0 ? void 0 : field.type) === 'hidden') {
70
70
  continue;
71
71
  }
72
72
  let value;
73
- if (codeValueStatus === null) {
73
+ if (status === null) {
74
74
  value = currentValue[key];
75
75
  }
76
- else if ((0, exports.isKeyframedStatus)(codeValueStatus)) {
76
+ else if ((0, exports.isKeyframedStatus)(status)) {
77
77
  if ((field === null || field === void 0 ? void 0 : field.type) === 'array' || (field === null || field === void 0 ? void 0 : field.keyframable) === false) {
78
78
  value = currentValue[key];
79
79
  }
@@ -88,7 +88,7 @@ const computeEffectiveSchemaValuesDotNotation = ({ schema, currentValue, overrid
88
88
  else if (frame !== null) {
89
89
  const interpolated = (0, interpolate_keyframed_status_js_1.interpolateKeyframedStatus)({
90
90
  frame,
91
- status: codeValueStatus,
91
+ status,
92
92
  });
93
93
  value = interpolated !== null && interpolated !== void 0 ? interpolated : currentValue[key];
94
94
  }
@@ -97,12 +97,12 @@ const computeEffectiveSchemaValuesDotNotation = ({ schema, currentValue, overrid
97
97
  }
98
98
  }
99
99
  }
100
- else if (codeValueStatus.status === 'computed') {
100
+ else if (status.status === 'computed') {
101
101
  value = currentValue[key];
102
102
  }
103
103
  else {
104
104
  value = (0, get_effective_visual_mode_value_js_1.getEffectiveVisualModeValue)({
105
- codeValue: codeValueStatus,
105
+ propStatus: status,
106
106
  dragOverrideValue: overrideValues[key],
107
107
  defaultValue: field === null || field === void 0 ? void 0 : field.default,
108
108
  frame,
@@ -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.472";
6
+ export declare const VERSION = "4.0.474";
@@ -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.472';
10
+ exports.VERSION = '4.0.474';
@@ -112,7 +112,7 @@ const wrapInSchema = ({ Component, schema, supportsEffects, }) => {
112
112
  });
113
113
  }
114
114
  // eslint-disable-next-line react-hooks/rules-of-hooks
115
- const { codeValues } = (0, react_1.useContext)(SequenceManager_js_1.VisualModeCodeValuesContext);
115
+ const { propStatuses } = (0, react_1.useContext)(SequenceManager_js_1.VisualModePropStatusesContext);
116
116
  // eslint-disable-next-line react-hooks/rules-of-hooks
117
117
  const { getDragOverrides } = (0, react_1.useContext)(SequenceManager_js_1.VisualModeDragOverridesContext);
118
118
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -169,14 +169,14 @@ const wrapInSchema = ({ Component, schema, supportsEffects, }) => {
169
169
  overrideValues: nodePath === null ? {} : getDragOverrides(nodePath),
170
170
  propStatus: nodePath === null
171
171
  ? undefined
172
- : (0, use_memoized_effects_js_1.getCodeValuesCtx)(codeValues, nodePath),
172
+ : (0, use_memoized_effects_js_1.getPropStatusesCtx)(propStatuses, nodePath),
173
173
  frame,
174
174
  });
175
175
  }, [
176
176
  currentRuntimeValueDotNotation,
177
177
  getDragOverrides,
178
178
  nodePath,
179
- codeValues,
179
+ propStatuses,
180
180
  frame,
181
181
  ]);
182
182
  // 4. Eliminate values forbidden by the resolved discriminated union.
@@ -25,6 +25,8 @@ export declare function useRemotionContexts(): {
25
25
  } | null;
26
26
  renderAssetManagerContext: import("./RenderAssetManager.js").RenderAssetManagerContext;
27
27
  sequenceManagerContext: import("./SequenceManager.js").SequenceManagerContext;
28
+ sequenceManagerRefContext: import("./SequenceManager.js").SequenceManagerRef;
29
+ visualModePropStatusesRefContext: import("./SequenceManager.js").VisualModePropStatusesRef;
28
30
  bufferManagerContext: {
29
31
  addBlock: (block: {
30
32
  id: string;
@@ -62,6 +62,8 @@ function useRemotionContexts() {
62
62
  const resolveCompositionContext = react_1.default.useContext(ResolveCompositionConfig_js_1.ResolveCompositionContext);
63
63
  const renderAssetManagerContext = react_1.default.useContext(RenderAssetManager_js_1.RenderAssetManager);
64
64
  const sequenceManagerContext = react_1.default.useContext(SequenceManager_js_1.SequenceManager);
65
+ const sequenceManagerRefContext = react_1.default.useContext(SequenceManager_js_1.SequenceManagerRefContext);
66
+ const visualModePropStatusesRefContext = react_1.default.useContext(SequenceManager_js_1.VisualModePropStatusesRefContext);
65
67
  const bufferManagerContext = react_1.default.useContext(buffering_js_1.BufferingContextReact);
66
68
  const logLevelContext = react_1.default.useContext(log_level_context_js_1.LogLevelContext);
67
69
  return (0, react_1.useMemo)(() => ({
@@ -75,6 +77,8 @@ function useRemotionContexts() {
75
77
  resolveCompositionContext,
76
78
  renderAssetManagerContext,
77
79
  sequenceManagerContext,
80
+ sequenceManagerRefContext,
81
+ visualModePropStatusesRefContext,
78
82
  bufferManagerContext,
79
83
  logLevelContext,
80
84
  }), [
@@ -88,12 +92,14 @@ function useRemotionContexts() {
88
92
  resolveCompositionContext,
89
93
  renderAssetManagerContext,
90
94
  sequenceManagerContext,
95
+ sequenceManagerRefContext,
96
+ visualModePropStatusesRefContext,
91
97
  bufferManagerContext,
92
98
  logLevelContext,
93
99
  ]);
94
100
  }
95
101
  const RemotionContextProvider = (props) => {
96
102
  const { children, contexts } = props;
97
- return (jsx_runtime_1.jsx(log_level_context_js_1.LogLevelContext.Provider, { value: contexts.logLevelContext, children: jsx_runtime_1.jsx(CanUseRemotionHooks_js_1.CanUseRemotionHooks.Provider, { value: contexts.canUseRemotionHooksContext, children: jsx_runtime_1.jsx(nonce_js_1.NonceContext.Provider, { value: contexts.nonceContext, children: jsx_runtime_1.jsx(prefetch_state_js_1.PreloadContext.Provider, { value: contexts.preloadContext, children: jsx_runtime_1.jsx(CompositionManagerContext_js_1.CompositionManager.Provider, { value: contexts.compositionManagerCtx, children: jsx_runtime_1.jsx(SequenceManager_js_1.SequenceManager.Provider, { value: contexts.sequenceManagerContext, children: jsx_runtime_1.jsx(RenderAssetManager_js_1.RenderAssetManager.Provider, { value: contexts.renderAssetManagerContext, children: jsx_runtime_1.jsx(ResolveCompositionConfig_js_1.ResolveCompositionContext.Provider, { value: contexts.resolveCompositionContext, children: jsx_runtime_1.jsx(TimelineContext_js_1.TimelineContext.Provider, { value: contexts.timelineContext, children: jsx_runtime_1.jsx(TimelineContext_js_1.SetTimelineContext.Provider, { value: contexts.setTimelineContext, children: jsx_runtime_1.jsx(SequenceContext_js_1.SequenceContext.Provider, { value: contexts.sequenceContext, children: jsx_runtime_1.jsx(buffering_js_1.BufferingContextReact.Provider, { value: contexts.bufferManagerContext, children: children }) }) }) }) }) }) }) }) }) }) }) }));
103
+ return (jsx_runtime_1.jsx(log_level_context_js_1.LogLevelContext.Provider, { value: contexts.logLevelContext, children: jsx_runtime_1.jsx(CanUseRemotionHooks_js_1.CanUseRemotionHooks.Provider, { value: contexts.canUseRemotionHooksContext, children: jsx_runtime_1.jsx(nonce_js_1.NonceContext.Provider, { value: contexts.nonceContext, children: jsx_runtime_1.jsx(prefetch_state_js_1.PreloadContext.Provider, { value: contexts.preloadContext, children: jsx_runtime_1.jsx(CompositionManagerContext_js_1.CompositionManager.Provider, { value: contexts.compositionManagerCtx, children: jsx_runtime_1.jsx(SequenceManager_js_1.SequenceManagerRefContext.Provider, { value: contexts.sequenceManagerRefContext, children: jsx_runtime_1.jsx(SequenceManager_js_1.SequenceManager.Provider, { value: contexts.sequenceManagerContext, children: jsx_runtime_1.jsx(SequenceManager_js_1.VisualModePropStatusesRefContext.Provider, { value: contexts.visualModePropStatusesRefContext, children: jsx_runtime_1.jsx(RenderAssetManager_js_1.RenderAssetManager.Provider, { value: contexts.renderAssetManagerContext, children: jsx_runtime_1.jsx(ResolveCompositionConfig_js_1.ResolveCompositionContext.Provider, { value: contexts.resolveCompositionContext, children: jsx_runtime_1.jsx(TimelineContext_js_1.TimelineContext.Provider, { value: contexts.timelineContext, children: jsx_runtime_1.jsx(TimelineContext_js_1.SetTimelineContext.Provider, { value: contexts.setTimelineContext, children: jsx_runtime_1.jsx(SequenceContext_js_1.SequenceContext.Provider, { value: contexts.sequenceContext, children: jsx_runtime_1.jsx(buffering_js_1.BufferingContextReact.Provider, { value: contexts.bufferManagerContext, children: children }) }) }) }) }) }) }) }) }) }) }) }) }) }));
98
104
  };
99
105
  exports.RemotionContextProvider = RemotionContextProvider;