remotion 4.0.537 → 4.0.538

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 (167) hide show
  1. package/dist/cjs/AbsoluteFill.d.ts +62 -62
  2. package/dist/cjs/AbsoluteFill.js +3 -3
  3. package/dist/cjs/AbsoluteFillElement.d.ts +1 -1
  4. package/dist/cjs/AbsoluteFillElement.js +36 -3
  5. package/dist/cjs/CanUseRemotionHooks.js +1 -1
  6. package/dist/cjs/Composition.js +5 -11
  7. package/dist/cjs/CompositionErrorBoundary.js +5 -2
  8. package/dist/cjs/CompositionManager.d.ts +1 -0
  9. package/dist/cjs/CompositionManagerProvider.d.ts +1 -1
  10. package/dist/cjs/CompositionManagerProvider.js +1 -1
  11. package/dist/cjs/CompositionRegistryProvider.d.ts +1 -1
  12. package/dist/cjs/CompositionRegistryProvider.js +1 -1
  13. package/dist/cjs/EditorProps.d.ts +2 -2
  14. package/dist/cjs/EditorProps.js +1 -1
  15. package/dist/cjs/Folder.js +1 -1
  16. package/dist/cjs/HtmlInCanvas.d.ts +58 -67
  17. package/dist/cjs/HtmlInCanvas.js +22 -9
  18. package/dist/cjs/HtmlInCanvasFallback.d.ts +6 -0
  19. package/dist/cjs/HtmlInCanvasFallback.js +39 -0
  20. package/dist/cjs/IFrame.d.ts +2 -2
  21. package/dist/cjs/IFrame.js +1 -1
  22. package/dist/cjs/Img.d.ts +62 -62
  23. package/dist/cjs/Img.js +160 -132
  24. package/dist/cjs/Interactive.d.ts +147 -145
  25. package/dist/cjs/Interactive.js +2 -2
  26. package/dist/cjs/RemotionRoot.js +1 -1
  27. package/dist/cjs/RenderAssetManager.js +1 -1
  28. package/dist/cjs/Sequence.js +37 -27
  29. package/dist/cjs/SequenceActivityBoundary.js +1 -1
  30. package/dist/cjs/SequenceActivityBudget.js +1 -1
  31. package/dist/cjs/SequenceActivitySuspensionProvider.js +1 -1
  32. package/dist/cjs/SequenceManager.d.ts +6 -0
  33. package/dist/cjs/SequenceManager.js +71 -27
  34. package/dist/cjs/SequenceRegistryProvider.js +16 -3
  35. package/dist/cjs/TimelineContext.js +1 -1
  36. package/dist/cjs/Track.js +2 -2
  37. package/dist/cjs/animated-image/AnimatedImage.d.ts +69 -69
  38. package/dist/cjs/animated-image/AnimatedImage.js +6 -6
  39. package/dist/cjs/animated-image/canvas.d.ts +6 -5
  40. package/dist/cjs/animated-image/canvas.js +1 -1
  41. package/dist/cjs/animated-image/create-image-decoder.d.ts +1 -1
  42. package/dist/cjs/animated-image/decode-image.d.ts +1 -1
  43. package/dist/cjs/animated-image/get-duration-in-seconds.d.ts +1 -1
  44. package/dist/cjs/animated-image/index.js +1 -1
  45. package/dist/cjs/audio/AudioForPreview.js +5 -28
  46. package/dist/cjs/audio/AudioForRendering.d.ts +5 -20
  47. package/dist/cjs/audio/AudioForRendering.js +44 -5
  48. package/dist/cjs/audio/html5-audio.d.ts +36 -36
  49. package/dist/cjs/audio/html5-audio.js +8 -10
  50. package/dist/cjs/audio/index.js +1 -1
  51. package/dist/cjs/audio/shared-audio-tags.js +10 -16
  52. package/dist/cjs/audio/shared-element-source-node.d.ts +1 -1
  53. package/dist/cjs/audio/use-audio-context.d.ts +2 -1
  54. package/dist/cjs/audio/wait-until-actually-resumed.d.ts +2 -1
  55. package/dist/cjs/buffer-until-first-frame.d.ts +4 -3
  56. package/dist/cjs/buffering.js +1 -1
  57. package/dist/cjs/cancel-render.js +3 -0
  58. package/dist/cjs/canvas-image/CanvasImage.d.ts +71 -71
  59. package/dist/cjs/canvas-image/CanvasImage.js +27 -24
  60. package/dist/cjs/canvas-image/index.js +1 -1
  61. package/dist/cjs/codec.d.ts +1 -1
  62. package/dist/cjs/committed-metadata.d.ts +4 -2
  63. package/dist/cjs/composition-registry-fallback.d.ts +4 -2
  64. package/dist/cjs/composition-registry-fallback.js +12 -10
  65. package/dist/cjs/create-element-source-proxy.js +46 -6
  66. package/dist/cjs/default-css.d.ts +1 -1
  67. package/dist/cjs/delay-render.d.ts +2 -1
  68. package/dist/cjs/delay-render.js +4 -2
  69. package/dist/cjs/easing.js +3 -1
  70. package/dist/cjs/effects/Solid.d.ts +60 -60
  71. package/dist/cjs/effects/Solid.js +2 -2
  72. package/dist/cjs/effects/canvas-pool.js +6 -9
  73. package/dist/cjs/effects/index.js +1 -1
  74. package/dist/cjs/effects/use-memoized-effects.d.ts +2 -1
  75. package/dist/cjs/effects/use-memoized-effects.js +23 -12
  76. package/dist/cjs/freeze.js +2 -2
  77. package/dist/cjs/get-cross-origin-value.d.ts +1 -1
  78. package/dist/cjs/get-effective-visual-mode-value.d.ts +2 -2
  79. package/dist/cjs/index.d.ts +3 -1
  80. package/dist/cjs/index.js +32 -32
  81. package/dist/cjs/interactivity-schema.d.ts +286 -286
  82. package/dist/cjs/internals.d.ts +408 -595
  83. package/dist/cjs/internals.js +7 -0
  84. package/dist/cjs/interpolate-colors.d.ts +1 -1
  85. package/dist/cjs/interpolate-colors.js +17 -16
  86. package/dist/cjs/interpolate.d.ts +2 -9
  87. package/dist/cjs/is-player.js +1 -1
  88. package/dist/cjs/loading-indicator.js +2 -6
  89. package/dist/cjs/log-level-context.d.ts +1 -1
  90. package/dist/cjs/log.d.ts +12 -7
  91. package/dist/cjs/loop/index.js +1 -1
  92. package/dist/cjs/media-resource-manager.d.ts +1 -1
  93. package/dist/cjs/media-tag-current-time-timestamp.d.ts +1 -1
  94. package/dist/cjs/no-react.d.ts +85 -91
  95. package/dist/cjs/no-react.js +2 -2
  96. package/dist/cjs/play-and-handle-not-allowed-error.d.ts +5 -4
  97. package/dist/cjs/playback-logging.d.ts +2 -1
  98. package/dist/cjs/playback-pitch-context.d.ts +1 -0
  99. package/dist/cjs/playback-pitch-context.js +5 -0
  100. package/dist/cjs/prefetch-state.js +1 -1
  101. package/dist/cjs/prefetch.d.ts +7 -6
  102. package/dist/cjs/props-if-has-props.d.ts +2 -1
  103. package/dist/cjs/prores-profile.d.ts +1 -1
  104. package/dist/cjs/register-root.d.ts +2 -2
  105. package/dist/cjs/render-resource-manager.d.ts +1 -1
  106. package/dist/cjs/render-types.d.ts +2 -2
  107. package/dist/cjs/resolve-video-config.d.ts +8 -8
  108. package/dist/cjs/runtime-value-store.d.ts +1 -1
  109. package/dist/cjs/scale-value.d.ts +1 -1
  110. package/dist/cjs/seek.d.ts +3 -2
  111. package/dist/cjs/sequence-activity-context.js +1 -1
  112. package/dist/cjs/sequence-crop.js +1 -4
  113. package/dist/cjs/series/flatten-children.d.ts +3 -1
  114. package/dist/cjs/series/index.js +4 -5
  115. package/dist/cjs/series/is-inside-series.js +2 -2
  116. package/dist/cjs/spring/index.d.ts +1 -1
  117. package/dist/cjs/spring/index.js +1 -1
  118. package/dist/cjs/spring/measure-spring.d.ts +1 -1
  119. package/dist/cjs/spring/spring-utils.d.ts +1 -1
  120. package/dist/cjs/spring/spring-utils.js +11 -5
  121. package/dist/cjs/timeline-position-state.d.ts +1 -1
  122. package/dist/cjs/timeline-position-state.js +2 -2
  123. package/dist/cjs/use-amplification.d.ts +4 -7
  124. package/dist/cjs/use-current-scale.d.ts +2 -2
  125. package/dist/cjs/use-delay-render.d.ts +2 -1
  126. package/dist/cjs/use-lazy-component.d.ts +1 -1
  127. package/dist/cjs/use-lazy-component.js +15 -5
  128. package/dist/cjs/use-media-buffering.d.ts +3 -2
  129. package/dist/cjs/use-media-duration.d.ts +4 -0
  130. package/dist/cjs/use-media-duration.js +36 -0
  131. package/dist/cjs/use-media-enabled.d.ts +1 -1
  132. package/dist/cjs/use-media-enabled.js +1 -1
  133. package/dist/cjs/use-media-in-timeline.d.ts +1 -1
  134. package/dist/cjs/use-media-playback.d.ts +3 -3
  135. package/dist/cjs/use-media-tag.d.ts +2 -2
  136. package/dist/cjs/use-pixel-density.d.ts +1 -1
  137. package/dist/cjs/use-premounting.d.ts +1 -1
  138. package/dist/cjs/use-premounting.js +6 -2
  139. package/dist/cjs/use-request-video-callback-time.d.ts +3 -3
  140. package/dist/cjs/use-schema.d.ts +4 -4
  141. package/dist/cjs/use-video.js +1 -1
  142. package/dist/cjs/validate-media-props.d.ts +1 -1
  143. package/dist/cjs/validation/validate-default-props.d.ts +1 -1
  144. package/dist/cjs/version.d.ts +1 -1
  145. package/dist/cjs/version.js +1 -1
  146. package/dist/cjs/video/MediaPlaybackError.js +0 -1
  147. package/dist/cjs/video/OffthreadVideo.js +5 -5
  148. package/dist/cjs/video/OffthreadVideoForRendering.js +9 -7
  149. package/dist/cjs/video/VideoForPreview.js +6 -28
  150. package/dist/cjs/video/VideoForRendering.d.ts +5 -3
  151. package/dist/cjs/video/VideoForRendering.js +4 -2
  152. package/dist/cjs/video/duration-state.d.ts +1 -0
  153. package/dist/cjs/video/duration-state.js +8 -2
  154. package/dist/cjs/video/emit-video-frame.d.ts +1 -1
  155. package/dist/cjs/video/html5-video.d.ts +36 -36
  156. package/dist/cjs/video/html5-video.js +8 -10
  157. package/dist/cjs/video/index.js +2 -2
  158. package/dist/cjs/video/seek-until-right.d.ts +3 -2
  159. package/dist/cjs/warn-about-non-seekable-media.d.ts +1 -1
  160. package/dist/cjs/with-interactivity-schema.d.ts +1 -1
  161. package/dist/cjs/with-interactivity-schema.js +3 -8
  162. package/dist/cjs/wrap-remotion-context.d.ts +4 -4
  163. package/dist/cjs/wrap-remotion-context.js +2 -2
  164. package/dist/esm/index.mjs +808 -560
  165. package/dist/esm/no-react.mjs +27 -22
  166. package/dist/esm/version.mjs +1 -1
  167. package/package.json +4 -4
@@ -72,6 +72,8 @@ const get_asset_file_name_js_1 = require("./get-asset-file-name.js");
72
72
  const get_effective_visual_mode_value_js_1 = require("./get-effective-visual-mode-value.js");
73
73
  const get_preview_dom_element_js_1 = require("./get-preview-dom-element.js");
74
74
  const get_remotion_environment_js_1 = require("./get-remotion-environment.js");
75
+ const HtmlInCanvas_js_1 = require("./HtmlInCanvas.js");
76
+ const HtmlInCanvasFallback_js_1 = require("./HtmlInCanvasFallback.js");
75
77
  const input_props_override_js_1 = require("./input-props-override.js");
76
78
  const interactivity_schema_js_1 = require("./interactivity-schema.js");
77
79
  const interpolate_keyframed_status_js_1 = require("./interpolate-keyframed-status.js");
@@ -82,6 +84,7 @@ const max_video_cache_size_js_1 = require("./max-video-cache-size.js");
82
84
  const media_resource_manager_js_1 = require("./media-resource-manager.js");
83
85
  const optimistic_sequence_deletion_js_1 = require("./optimistic-sequence-deletion.js");
84
86
  const playback_logging_js_1 = require("./playback-logging.js");
87
+ const playback_pitch_context_1 = require("./playback-pitch-context");
85
88
  const portal_node_js_1 = require("./portal-node.js");
86
89
  const prefetch_state_js_1 = require("./prefetch-state.js");
87
90
  const prefetch_js_1 = require("./prefetch.js");
@@ -146,6 +149,8 @@ const compositionSelectorRef = (0, react_1.createRef)();
146
149
  // Mark them as Internals so use don't assume this is public
147
150
  // API and are less likely to use it
148
151
  exports.Internals = {
152
+ HtmlInCanvasFallback: HtmlInCanvasFallback_js_1.HtmlInCanvasFallback,
153
+ useHtmlInCanvasUnsupportedMessage: HtmlInCanvas_js_1.useHtmlInCanvasUnsupportedMessage,
149
154
  OptimisticSequenceDeletion: optimistic_sequence_deletion_js_1.OptimisticSequenceDeletion,
150
155
  usePendingSequenceDeletions: optimistic_sequence_deletion_js_1.usePendingSequenceDeletions,
151
156
  createElementSourceProxy: create_element_source_proxy_js_1.createElementSourceProxy,
@@ -184,6 +189,7 @@ exports.Internals = {
184
189
  CompositionSetters: CompositionManagerContext_js_1.CompositionSetters,
185
190
  VisualModePropStatusesContext: SequenceManager_js_1.VisualModePropStatusesContext,
186
191
  VisualModePropStatusesRefContext: SequenceManager_js_1.VisualModePropStatusesRefContext,
192
+ VisualModePropStatusesSubscriptionContext: SequenceManager_js_1.VisualModePropStatusesSubscriptionContext,
187
193
  VisualModeBatchSettersContext: SequenceManager_js_1.VisualModeBatchSettersContext,
188
194
  VisualModeDragOverridesContext: SequenceManager_js_1.VisualModeDragOverridesContext,
189
195
  VisualModeDragOverridesRefContext: SequenceManager_js_1.VisualModeDragOverridesRefContext,
@@ -321,6 +327,7 @@ exports.Internals = {
321
327
  DelayRenderContextType: use_delay_render_js_1.DelayRenderContextType,
322
328
  TimelineContext: TimelineContext_js_1.TimelineContext,
323
329
  usePlaying: use_playing_js_1.usePlaying,
330
+ PlaybackPitchContext: playback_pitch_context_1.PlaybackPitchContext,
324
331
  PlaybackRateContext: TimelineContext_js_1.PlaybackRateContext,
325
332
  AbsoluteTimeContext: TimelineContext_js_1.AbsoluteTimeContext,
326
333
  RenderAssetManagerProvider: RenderAssetManager_js_1.RenderAssetManagerProvider,
@@ -8,4 +8,4 @@ export declare const colorNames: {
8
8
  [key: string]: number;
9
9
  };
10
10
  export declare function processColor(color: string): number;
11
- export declare const interpolateColors: (input: number, inputRange: readonly number[], outputRange: readonly string[], options?: InterpolateColorsOptions | undefined) => string;
11
+ export declare const interpolateColors: (input: number, inputRange: readonly number[], outputRange: readonly string[], options?: InterpolateColorsOptions) => string;
@@ -27,23 +27,24 @@ function modernColorCall(name) {
27
27
  MODERN_VALUE +
28
28
  '))?\\s*\\)');
29
29
  }
30
+ const cachedMatchers = {
31
+ rgb: undefined,
32
+ rgba: undefined,
33
+ hsl: undefined,
34
+ hsla: undefined,
35
+ hex3: undefined,
36
+ hex4: undefined,
37
+ hex5: undefined,
38
+ hex6: undefined,
39
+ hex8: undefined,
40
+ oklch: undefined,
41
+ oklab: undefined,
42
+ lab: undefined,
43
+ lch: undefined,
44
+ hwb: undefined,
45
+ };
30
46
  function getMatchers() {
31
- const cachedMatchers = {
32
- rgb: undefined,
33
- rgba: undefined,
34
- hsl: undefined,
35
- hsla: undefined,
36
- hex3: undefined,
37
- hex4: undefined,
38
- hex5: undefined,
39
- hex6: undefined,
40
- hex8: undefined,
41
- oklch: undefined,
42
- oklab: undefined,
43
- lab: undefined,
44
- lch: undefined,
45
- hwb: undefined,
46
- };
47
+ // These expressions have no global or sticky flags, so exec() can reuse them.
47
48
  if (cachedMatchers.rgb === undefined) {
48
49
  cachedMatchers.rgb = new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER));
49
50
  cachedMatchers.rgba = new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER));
@@ -35,13 +35,6 @@ export declare function interpolate(input: number, inputRange: readonly number[]
35
35
  export declare const prepareNumericInterpolation: ({ inputRange, outputRange, options, }: {
36
36
  inputRange: readonly number[];
37
37
  outputRange: readonly number[];
38
- options: Omit<Partial<{
39
- easing: readonly EasingFunction[] | EasingFunction;
40
- extrapolateLeft: ExtrapolateType;
41
- extrapolateRight: ExtrapolateType;
42
- output: InterpolateOutputOption;
43
- outputType: InterpolateOutputType;
44
- posterize: number;
45
- }>, "outputType">;
46
- }) => (input: number) => number;
38
+ options: Omit<InterpolateOptions, 'outputType'>;
39
+ }) => ((input: number) => number);
47
40
  export {};
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const IsPlayerContext = (0, react_1.createContext)(false);
7
7
  const IsPlayerContextProvider = ({ children, }) => {
8
- return jsx_runtime_1.jsx(IsPlayerContext.Provider, { value: true, children: children });
8
+ return (0, jsx_runtime_1.jsx)(IsPlayerContext.Provider, { value: true, children: children });
9
9
  };
10
10
  exports.IsPlayerContextProvider = IsPlayerContextProvider;
11
11
  const useIsPlayer = () => {
@@ -27,8 +27,7 @@ const content = {
27
27
  };
28
28
  const Loading = () => {
29
29
  const scale = (0, use_current_scale_js_1.useCurrentScale)({ dontThrowIfOutsideOfRemotion: true });
30
- return (jsx_runtime_1.jsxs(AbsoluteFillElement_js_1.AbsoluteFillElement, { style: container, id: "remotion-comp-loading", children: [
31
- jsx_runtime_1.jsx("style", { type: "text/css", children: `
30
+ return ((0, jsx_runtime_1.jsxs)(AbsoluteFillElement_js_1.AbsoluteFillElement, { style: container, id: "remotion-comp-loading", children: [(0, jsx_runtime_1.jsx)("style", { type: "text/css", children: `
32
31
  @keyframes anim {
33
32
  from {
34
33
  opacity: 0
@@ -37,9 +36,6 @@ const Loading = () => {
37
36
  opacity: 1
38
37
  }
39
38
  }
40
- ` }), jsx_runtime_1.jsxs("div", { id: "remotion-comp-loading-content", style: content, children: [
41
- jsx_runtime_1.jsx("svg", { width: ICON_SIZE / scale, height: ICON_SIZE / scale, viewBox: "-100 -100 400 400", style: rotate, children: jsx_runtime_1.jsx("path", { fill: "#555", stroke: "#555", strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }), jsx_runtime_1.jsxs("p", { style: { ...label, fontSize: LABEL_SIZE / scale }, children: ["Resolving ", '<Suspense>', "..."] })
42
- ] })
43
- ] }));
39
+ ` }), (0, jsx_runtime_1.jsxs)("div", { id: "remotion-comp-loading-content", style: content, children: [(0, jsx_runtime_1.jsx)("svg", { width: ICON_SIZE / scale, height: ICON_SIZE / scale, viewBox: "-100 -100 400 400", style: rotate, children: (0, jsx_runtime_1.jsx)("path", { fill: "#555", stroke: "#555", strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }), (0, jsx_runtime_1.jsxs)("p", { style: { ...label, fontSize: LABEL_SIZE / scale }, children: ["Resolving ", '<Suspense>', "..."] })] })] }));
44
40
  };
45
41
  exports.Loading = Loading;
@@ -5,5 +5,5 @@ export type LoggingContextValue = {
5
5
  mountTime: number;
6
6
  };
7
7
  export declare const LogLevelContext: React.Context<LoggingContextValue>;
8
- export declare const useLogLevel: () => "error" | "info" | "trace" | "verbose" | "warn";
8
+ export declare const useLogLevel: () => LogLevel;
9
9
  export declare const useMountTime: () => number;
package/dist/cjs/log.d.ts CHANGED
@@ -1,15 +1,20 @@
1
- export declare const logLevels: readonly ["trace", "verbose", "info", "warn", "error"];
1
+ export declare const logLevels: readonly ['trace', 'verbose', 'info', 'warn', 'error'];
2
2
  export type LogLevel = (typeof logLevels)[number];
3
- export declare const isEqualOrBelowLogLevel: (currentLevel: "error" | "info" | "trace" | "verbose" | "warn", level: "error" | "info" | "trace" | "verbose" | "warn") => boolean;
3
+ export declare const isEqualOrBelowLogLevel: (currentLevel: LogLevel, level: LogLevel) => boolean;
4
4
  type Options = {
5
5
  logLevel: LogLevel;
6
6
  tag: string | null;
7
7
  };
8
+ declare const verbose: (options: Options, ...args: Parameters<typeof console.log>) => void;
9
+ declare const trace: (options: Options, ...args: Parameters<typeof console.log>) => void;
10
+ declare const info: (options: Options, ...args: Parameters<typeof console.log>) => void;
11
+ declare const warn: (options: Options, ...args: Parameters<typeof console.log>) => void;
12
+ declare const error: (options: Options, ...args: Parameters<typeof console.log>) => void;
8
13
  export declare const Log: {
9
- trace: (options: Options, message?: any, ...optionalParams: any[]) => void;
10
- verbose: (options: Options, message?: any, ...optionalParams: any[]) => void;
11
- info: (options: Options, message?: any, ...optionalParams: any[]) => void;
12
- warn: (options: Options, message?: any, ...optionalParams: any[]) => void;
13
- error: (options: Options, message?: any, ...optionalParams: any[]) => void;
14
+ trace: typeof trace;
15
+ verbose: typeof verbose;
16
+ info: typeof info;
17
+ warn: typeof warn;
18
+ error: typeof error;
14
19
  };
15
20
  export {};
@@ -115,7 +115,7 @@ const Loop = ({ durationInFrames, times = Infinity, children, name, showInTimeli
115
115
  if (actualTimes === 0) {
116
116
  return null;
117
117
  }
118
- return (jsx_runtime_1.jsx(exports.LoopTimelineContext.Provider, { value: timelineContext, children: jsx_runtime_1.jsx(loop_context_js_1.LoopContext.Provider, { value: loopContext, children: jsx_runtime_1.jsx(Sequence_js_1.Sequence, { durationInFrames: durationInFrames, from: from, name: name !== null && name !== void 0 ? name : '<Loop>', _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/loop", _remotionInternalLoopDisplay: loopDisplay, ...props, showInTimeline: showInTimeline, playbackRate: playbackRate, children: children }) }) }));
118
+ return ((0, jsx_runtime_1.jsx)(exports.LoopTimelineContext.Provider, { value: timelineContext, children: (0, jsx_runtime_1.jsx)(loop_context_js_1.LoopContext.Provider, { value: loopContext, children: (0, jsx_runtime_1.jsx)(Sequence_js_1.Sequence, { durationInFrames: durationInFrames, from: from, name: name !== null && name !== void 0 ? name : '<Loop>', _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/loop", _remotionInternalLoopDisplay: loopDisplay, ...props, showInTimeline: showInTimeline, playbackRate: playbackRate, children: children }) }) }));
119
119
  };
120
120
  exports.Loop = Loop;
121
121
  exports.Loop.useLoop = useLoop;
@@ -4,7 +4,7 @@ export type MediaResourceLease<T> = {
4
4
  release: () => void;
5
5
  };
6
6
  export type MediaResourceManager = {
7
- acquire: <T>({ key, create }: {
7
+ acquire: <T>({ key, create, }: {
8
8
  key: string;
9
9
  create: () => {
10
10
  resource: T;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const useCurrentTimeOfMediaTagWithUpdateTimeStamp: (mediaRef: React.RefObject<HTMLAudioElement | HTMLVideoElement | null>) => React.RefObject<{
2
+ export declare const useCurrentTimeOfMediaTagWithUpdateTimeStamp: (mediaRef: React.RefObject<HTMLVideoElement | HTMLAudioElement | null>) => React.RefObject<{
3
3
  time: number;
4
4
  lastUpdate: number;
5
5
  }>;
@@ -1,57 +1,55 @@
1
- export type { ArtifactAsset, AudioOrVideoAsset, InlineAudioAsset, TRenderAsset, } from './CompositionManager';
1
+ import type { ArtifactAsset, AudioOrVideoAsset as InternalAudioOrVideoAsset, InlineAudioAsset } from './CompositionManager';
2
+ import { evaluateSourceNumericValue, evaluateSourcePropStatuses } from './evaluate-source-expressions.js';
3
+ export type { ArtifactAsset, InlineAudioAsset } from './CompositionManager';
4
+ export type AudioOrVideoAsset = Omit<InternalAudioOrVideoAsset, 'preservePitch'> & {
5
+ preservePitch?: boolean | null;
6
+ };
7
+ export type TRenderAsset = AudioOrVideoAsset | ArtifactAsset | InlineAudioAsset;
2
8
  export type { DownloadBehavior } from './download-behavior';
3
9
  export { assertValidInterpolateEasingOption, assertValidInterpolatePosterizeOption, interpolate, } from './interpolate';
4
10
  export type { EasingFunction, ExtrapolateType, InterpolateOptions, InterpolateOutputOption, InterpolateOutputType, } from './interpolate';
5
11
  export { random } from './random.js';
6
12
  export type { RandomSeed } from './random.js';
7
13
  export type { VideoConfig } from './video-config';
14
+ import { validateDefaultPremountInSeconds } from './default-premount-in-seconds';
15
+ import { findPropsToDelete } from './find-props-to-delete';
16
+ import { fetchFontData, getRegisteredFontFaces, registerFontFace } from './font-face-registry';
17
+ import { deserializeJSONWithSpecialTypes, serializeJSONWithSpecialTypes } from './input-props-serialization';
8
18
  import { processColor } from './interpolate-colors';
19
+ import { parseScaleValue, serializeScaleValue } from './scale-value';
9
20
  import { truthy } from './truthy';
21
+ import { validateFrame } from './validate-frame';
10
22
  import { validateCodec } from './validation/validate-default-codec';
23
+ import { validateDefaultAndInputProps } from './validation/validate-default-props';
11
24
  import { validateDimension } from './validation/validate-dimensions';
12
25
  import { validateDurationInFrames } from './validation/validate-duration-in-frames';
13
26
  import { validateFps } from './validation/validate-fps';
27
+ import { getExpectedMediaFrameUncorrected } from './video/get-current-time';
28
+ import { getOffthreadVideoSource } from './video/offthread-video-source';
14
29
  export declare const NoReactInternals: {
15
30
  DEFAULT_PREMOUNT_IN_SECONDS: number;
16
31
  DEFAULT_STUDIO_PREMOUNT_IN_SECONDS: number;
17
32
  DEFAULT_SEQUENCE_ACTIVITY_LIMIT: number;
18
- validateDefaultPremountInSeconds: (value: unknown) => void;
19
- evaluateSourceNumericValue: (expression: import("./use-schema.js").SourceNumericValue, config: import("./video-config").VideoConfigValues | null) => number;
20
- evaluateSourcePropStatuses: (props: Record<string, import("./use-schema.js").CanUpdateSequencePropSource>, config: import("./video-config").VideoConfigValues | null) => Record<string, import("./use-schema.js").CanUpdateSequencePropStatus>;
33
+ validateDefaultPremountInSeconds: typeof validateDefaultPremountInSeconds;
34
+ evaluateSourceNumericValue: typeof evaluateSourceNumericValue;
35
+ evaluateSourcePropStatuses: typeof evaluateSourcePropStatuses;
21
36
  processColor: typeof processColor;
22
37
  truthy: typeof truthy;
23
38
  validateFps: typeof validateFps;
24
39
  validateDimension: typeof validateDimension;
25
40
  validateDurationInFrames: typeof validateDurationInFrames;
26
- validateDefaultAndInputProps: (defaultProps: unknown, name: "defaultProps" | "inputProps", compositionId: string | null) => void;
27
- validateFrame: ({ allowFloats, durationInFrames, frame, }: {
28
- frame: number;
29
- durationInFrames: number;
30
- allowFloats: boolean;
31
- }) => void;
32
- serializeJSONWithSpecialTypes: ({ data, indent, staticBase, }: {
33
- data: Record<string, unknown>;
34
- indent: number | undefined;
35
- staticBase: string | null;
36
- }) => import("./input-props-serialization").SerializedJSONWithCustomFields;
41
+ validateDefaultAndInputProps: typeof validateDefaultAndInputProps;
42
+ validateFrame: typeof validateFrame;
43
+ serializeJSONWithSpecialTypes: typeof serializeJSONWithSpecialTypes;
37
44
  bundleName: string;
38
45
  bundleMapName: string;
39
- deserializeJSONWithSpecialTypes: <T = Record<string, unknown>>(data: string) => T;
46
+ deserializeJSONWithSpecialTypes: typeof deserializeJSONWithSpecialTypes;
40
47
  DELAY_RENDER_CALLSTACK_TOKEN: string;
41
48
  DELAY_RENDER_RETRY_TOKEN: string;
42
49
  DELAY_RENDER_CLEAR_TOKEN: string;
43
50
  DELAY_RENDER_ATTEMPT_TOKEN: string;
44
- getOffthreadVideoSource: ({ src, transparent, currentTime, toneMapped, }: {
45
- src: string;
46
- transparent: boolean;
47
- currentTime: number;
48
- toneMapped: boolean;
49
- }) => string;
50
- getExpectedMediaFrameUncorrected: ({ frame, playbackRate, startFrom, }: {
51
- frame: number;
52
- playbackRate: number;
53
- startFrom: number;
54
- }) => number;
51
+ getOffthreadVideoSource: typeof getOffthreadVideoSource;
52
+ getExpectedMediaFrameUncorrected: typeof getExpectedMediaFrameUncorrected;
55
53
  ENABLE_V5_BREAKING_CHANGES: false;
56
54
  MIN_NODE_VERSION: number;
57
55
  MIN_BUN_VERSION: string;
@@ -63,43 +61,39 @@ export declare const NoReactInternals: {
63
61
  FILE_TOKEN: string;
64
62
  validateCodec: typeof validateCodec;
65
63
  proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
66
- findPropsToDelete: ({ schema, key, value, }: {
67
- schema: import("./interactivity-schema").InteractivitySchema;
68
- key: string;
69
- value: unknown;
70
- }) => string[];
64
+ findPropsToDelete: typeof findPropsToDelete;
71
65
  sequenceSchema: {
72
66
  readonly durationInFrames: {
73
- readonly type: "number";
67
+ readonly type: 'number';
74
68
  readonly default: undefined;
75
69
  readonly min: 1;
76
70
  readonly step: 1;
77
71
  readonly hiddenFromList: true;
78
72
  };
79
73
  readonly from: {
80
- readonly type: "number";
74
+ readonly type: 'number';
81
75
  readonly default: 0;
82
76
  readonly step: 1;
83
77
  readonly hiddenFromList: true;
84
78
  };
85
79
  readonly trimBefore: {
86
- readonly type: "number";
80
+ readonly type: 'number';
87
81
  readonly default: 0;
88
82
  readonly min: 0;
89
83
  readonly step: 1;
90
84
  readonly hiddenFromList: true;
91
85
  };
92
86
  readonly playbackRate: {
93
- readonly type: "number";
87
+ readonly type: 'number';
94
88
  readonly default: 1;
95
89
  readonly min: 0.01;
96
90
  readonly step: 0.1;
97
- readonly description: "Playback rate";
91
+ readonly description: 'Playback rate';
98
92
  readonly hiddenFromList: false;
99
93
  readonly keyframable: false;
100
94
  };
101
95
  readonly freeze: {
102
- readonly type: "number";
96
+ readonly type: 'number';
103
97
  readonly default: null;
104
98
  readonly step: 1;
105
99
  readonly hiddenFromList: true;
@@ -108,58 +102,58 @@ export declare const NoReactInternals: {
108
102
  readonly name: import("./interactivity-schema").HiddenFieldSchema;
109
103
  readonly showInTimeline: import("./interactivity-schema").HiddenFieldSchema;
110
104
  readonly layout: {
111
- readonly type: "enum";
112
- readonly default: "absolute-fill";
113
- readonly description: "Layout";
105
+ readonly type: 'enum';
106
+ readonly default: 'absolute-fill';
107
+ readonly description: 'Layout';
114
108
  readonly variants: {
115
109
  readonly 'absolute-fill': {
116
110
  readonly 'style.transformOrigin': {
117
- readonly type: "transform-origin";
111
+ readonly type: 'transform-origin';
118
112
  readonly step: 1;
119
- readonly default: "50% 50%";
120
- readonly description: "Transform origin";
113
+ readonly default: '50% 50%';
114
+ readonly description: 'Transform origin';
121
115
  };
122
116
  readonly 'style.translate': {
123
- readonly type: "translate";
117
+ readonly type: 'translate';
124
118
  readonly step: 1;
125
- readonly default: "0px 0px";
126
- readonly description: "Offset";
119
+ readonly default: '0px 0px';
120
+ readonly description: 'Offset';
127
121
  };
128
122
  readonly 'style.scale': {
129
- readonly type: "scale";
123
+ readonly type: 'scale';
130
124
  readonly max: 100;
131
125
  readonly step: 0.01;
132
126
  readonly default: 1;
133
- readonly description: "Scale";
134
- readonly defaultKeyframeOutput: "perceptual-scale";
127
+ readonly description: 'Scale';
128
+ readonly defaultKeyframeOutput: 'perceptual-scale';
135
129
  };
136
130
  readonly 'style.rotate': {
137
- readonly type: "rotation-css";
131
+ readonly type: 'rotation-css';
138
132
  readonly step: 1;
139
- readonly default: "0deg";
140
- readonly description: "Rotation";
133
+ readonly default: '0deg';
134
+ readonly description: 'Rotation';
141
135
  };
142
136
  readonly 'style.opacity': {
143
- readonly type: "number";
137
+ readonly type: 'number';
144
138
  readonly min: 0;
145
139
  readonly max: 1;
146
140
  readonly step: 0.01;
147
141
  readonly default: 1;
148
- readonly description: "Opacity";
142
+ readonly description: 'Opacity';
149
143
  readonly hiddenFromList: false;
150
144
  };
151
145
  readonly 'style.borderWidth': {
152
- readonly type: "number";
146
+ readonly type: 'number';
153
147
  readonly default: undefined;
154
148
  readonly min: 0;
155
149
  readonly step: 1;
156
- readonly description: "Border width";
150
+ readonly description: 'Border width';
157
151
  readonly hiddenFromList: false;
158
152
  };
159
153
  readonly 'style.borderStyle': {
160
- readonly type: "enum";
161
- readonly default: "none";
162
- readonly description: "Border style";
154
+ readonly type: 'enum';
155
+ readonly default: 'none';
156
+ readonly description: 'Border style';
163
157
  readonly variants: {
164
158
  readonly none: {};
165
159
  readonly hidden: {};
@@ -174,67 +168,67 @@ export declare const NoReactInternals: {
174
168
  };
175
169
  };
176
170
  readonly 'style.borderColor': {
177
- readonly type: "color";
171
+ readonly type: 'color';
178
172
  readonly default: undefined;
179
- readonly description: "Border color";
173
+ readonly description: 'Border color';
180
174
  };
181
175
  readonly 'style.borderRadius': {
182
- readonly type: "number";
176
+ readonly type: 'number';
183
177
  readonly default: 0;
184
178
  readonly min: 0;
185
179
  readonly step: 1;
186
- readonly description: "Border radius";
180
+ readonly description: 'Border radius';
187
181
  readonly hiddenFromList: false;
188
182
  readonly keyframable: true;
189
183
  };
190
184
  readonly 'style.borderTopLeftRadius': {
191
- readonly type: "number";
185
+ readonly type: 'number';
192
186
  readonly default: 0;
193
187
  readonly min: 0;
194
188
  readonly step: 1;
195
- readonly description: "Top left radius";
189
+ readonly description: 'Top left radius';
196
190
  readonly hiddenFromList: false;
197
191
  };
198
192
  readonly 'style.borderTopRightRadius': {
199
- readonly type: "number";
193
+ readonly type: 'number';
200
194
  readonly default: 0;
201
195
  readonly min: 0;
202
196
  readonly step: 1;
203
- readonly description: "Top right radius";
197
+ readonly description: 'Top right radius';
204
198
  readonly hiddenFromList: false;
205
199
  };
206
200
  readonly 'style.borderBottomRightRadius': {
207
- readonly type: "number";
201
+ readonly type: 'number';
208
202
  readonly default: 0;
209
203
  readonly min: 0;
210
204
  readonly step: 1;
211
- readonly description: "Bottom right radius";
205
+ readonly description: 'Bottom right radius';
212
206
  readonly hiddenFromList: false;
213
207
  };
214
208
  readonly 'style.borderBottomLeftRadius': {
215
- readonly type: "number";
209
+ readonly type: 'number';
216
210
  readonly default: 0;
217
211
  readonly min: 0;
218
212
  readonly step: 1;
219
- readonly description: "Bottom left radius";
213
+ readonly description: 'Bottom left radius';
220
214
  readonly hiddenFromList: false;
221
215
  };
222
216
  readonly 'style.backgroundColor': {
223
- readonly type: "color";
224
- readonly default: "transparent";
225
- readonly description: "Color";
217
+ readonly type: 'color';
218
+ readonly default: 'transparent';
219
+ readonly description: 'Color';
226
220
  };
227
221
  readonly premountFor: {
228
- readonly type: "number";
222
+ readonly type: 'number';
229
223
  readonly default: undefined;
230
- readonly description: "Premount For";
224
+ readonly description: 'Premount For';
231
225
  readonly min: 0;
232
226
  readonly step: 1;
233
227
  readonly hiddenFromList: false;
234
228
  readonly keyframable: false;
235
229
  };
236
230
  readonly postmountFor: {
237
- readonly type: "number";
231
+ readonly type: 'number';
238
232
  readonly default: 0;
239
233
  readonly min: 0;
240
234
  readonly step: 1;
@@ -242,9 +236,9 @@ export declare const NoReactInternals: {
242
236
  readonly keyframable: false;
243
237
  };
244
238
  readonly cropLeft: {
245
- readonly type: "number";
239
+ readonly type: 'number';
246
240
  readonly default: 0;
247
- readonly description: "Crop left";
241
+ readonly description: 'Crop left';
248
242
  readonly min: 0;
249
243
  readonly max: 1;
250
244
  readonly step: 0.01;
@@ -252,9 +246,9 @@ export declare const NoReactInternals: {
252
246
  readonly keyframable: true;
253
247
  };
254
248
  readonly cropRight: {
255
- readonly type: "number";
249
+ readonly type: 'number';
256
250
  readonly default: 0;
257
- readonly description: "Crop right";
251
+ readonly description: 'Crop right';
258
252
  readonly min: 0;
259
253
  readonly max: 1;
260
254
  readonly step: 0.01;
@@ -262,9 +256,9 @@ export declare const NoReactInternals: {
262
256
  readonly keyframable: true;
263
257
  };
264
258
  readonly cropTop: {
265
- readonly type: "number";
259
+ readonly type: 'number';
266
260
  readonly default: 0;
267
- readonly description: "Crop top";
261
+ readonly description: 'Crop top';
268
262
  readonly min: 0;
269
263
  readonly max: 1;
270
264
  readonly step: 0.01;
@@ -272,9 +266,9 @@ export declare const NoReactInternals: {
272
266
  readonly keyframable: true;
273
267
  };
274
268
  readonly cropBottom: {
275
- readonly type: "number";
269
+ readonly type: 'number';
276
270
  readonly default: 0;
277
- readonly description: "Crop bottom";
271
+ readonly description: 'Crop bottom';
278
272
  readonly min: 0;
279
273
  readonly max: 1;
280
274
  readonly step: 0.01;
@@ -286,9 +280,9 @@ export declare const NoReactInternals: {
286
280
  };
287
281
  };
288
282
  };
289
- parseScaleValue: (value: unknown) => import("./scale-value").ScaleValue;
290
- serializeScaleValue: ([x, y, z]: import("./scale-value").ScaleValue) => string | number;
291
- getRegisteredFontFaces: () => import("./font-face-registry").RegisteredFontFace[];
292
- registerFontFace: (fontFace: import("./font-face-registry").RegisteredFontFace) => void;
293
- fetchFontData: (fontUrl: string) => Promise<ArrayBuffer>;
283
+ parseScaleValue: typeof parseScaleValue;
284
+ serializeScaleValue: typeof serializeScaleValue;
285
+ getRegisteredFontFaces: typeof getRegisteredFontFaces;
286
+ registerFontFace: typeof registerFontFace;
287
+ fetchFontData: typeof fetchFontData;
294
288
  };
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NoReactInternals = exports.random = exports.interpolate = exports.assertValidInterpolatePosterizeOption = exports.assertValidInterpolateEasingOption = void 0;
4
4
  const evaluate_source_expressions_js_1 = require("./evaluate-source-expressions.js");
5
5
  const sequence_activity_defaults_js_1 = require("./sequence-activity-defaults.js");
6
- const interpolate_1 = require("./interpolate");
6
+ var interpolate_1 = require("./interpolate");
7
7
  Object.defineProperty(exports, "assertValidInterpolateEasingOption", { enumerable: true, get: function () { return interpolate_1.assertValidInterpolateEasingOption; } });
8
8
  Object.defineProperty(exports, "assertValidInterpolatePosterizeOption", { enumerable: true, get: function () { return interpolate_1.assertValidInterpolatePosterizeOption; } });
9
9
  Object.defineProperty(exports, "interpolate", { enumerable: true, get: function () { return interpolate_1.interpolate; } });
10
- const random_js_1 = require("./random.js");
10
+ var random_js_1 = require("./random.js");
11
11
  Object.defineProperty(exports, "random", { enumerable: true, get: function () { return random_js_1.random; } });
12
12
  const default_premount_in_seconds_1 = require("./default-premount-in-seconds");
13
13
  const delay_render_constants_1 = require("./delay-render-constants");
@@ -1,9 +1,10 @@
1
1
  import type { RefObject } from 'react';
2
+ import { type LogLevel } from './log';
2
3
  export declare const playAndHandleNotAllowedError: ({ mediaRef, mediaType, onAutoPlayError, logLevel, mountTime, reason, isPlayer, }: {
3
- mediaRef: RefObject<HTMLAudioElement | HTMLVideoElement | null>;
4
- mediaType: "audio" | "video";
5
- onAutoPlayError: (() => void) | null;
6
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
4
+ mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>;
5
+ mediaType: 'audio' | 'video';
6
+ onAutoPlayError: null | (() => void);
7
+ logLevel: LogLevel;
7
8
  mountTime: number;
8
9
  reason: string;
9
10
  isPlayer: boolean;
@@ -1,5 +1,6 @@
1
+ import { type LogLevel } from './log';
1
2
  export declare const playbackLogging: ({ logLevel, tag, message, mountTime, }: {
2
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
3
+ logLevel: LogLevel;
3
4
  tag: string;
4
5
  message: string;
5
6
  mountTime: number | null;
@@ -0,0 +1 @@
1
+ export declare const PlaybackPitchContext: import("react").Context<boolean>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlaybackPitchContext = void 0;
4
+ const react_1 = require("react");
5
+ exports.PlaybackPitchContext = (0, react_1.createContext)(false);
@@ -22,6 +22,6 @@ const PrefetchProvider = ({ children }) => {
22
22
  updaters = updaters.filter((u) => u !== updaterFunction);
23
23
  };
24
24
  }, []);
25
- return (jsx_runtime_1.jsx(exports.PreloadContext.Provider, { value: _preloads, children: children }));
25
+ return ((0, jsx_runtime_1.jsx)(exports.PreloadContext.Provider, { value: _preloads, children: children }));
26
26
  };
27
27
  exports.PrefetchProvider = PrefetchProvider;