remotion 3.0.19 → 3.0.22

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 (52) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/dist/AbsoluteFill.d.ts +4 -0
  3. package/dist/AbsoluteFill.js +4 -0
  4. package/dist/Composition.d.ts +1 -5
  5. package/dist/Composition.js +3 -29
  6. package/dist/CompositionManager.d.ts +1 -4
  7. package/dist/Folder.d.ts +15 -0
  8. package/dist/Folder.js +33 -0
  9. package/dist/Sequence.d.ts +19 -0
  10. package/dist/Sequence.js +123 -0
  11. package/dist/audio/Audio.d.ts +2 -2
  12. package/dist/audio/Audio.js +2 -2
  13. package/dist/audio/AudioForDevelopment.d.ts +2 -2
  14. package/dist/audio/AudioForRendering.d.ts +1 -1
  15. package/dist/audio/AudioForRendering.js +5 -5
  16. package/dist/audio/use-audio-frame.js +4 -4
  17. package/dist/config/override-webpack.d.ts +1 -7
  18. package/dist/default-css.d.ts +1 -0
  19. package/dist/default-css.js +8 -1
  20. package/dist/freeze.d.ts +2 -2
  21. package/dist/freeze.js +2 -2
  22. package/dist/index.d.ts +7 -4
  23. package/dist/index.js +7 -6
  24. package/dist/internals.d.ts +3 -1
  25. package/dist/internals.js +7 -4
  26. package/dist/interpolate-colors.d.ts +5 -0
  27. package/dist/interpolate-colors.js +401 -0
  28. package/dist/register-root.d.ts +1 -0
  29. package/dist/register-root.js +20 -5
  30. package/dist/series/index.d.ts +1 -1
  31. package/dist/series/index.js +2 -2
  32. package/dist/use-current-frame.d.ts +7 -0
  33. package/dist/use-current-frame.js +25 -0
  34. package/dist/use-media-in-timeline.js +2 -2
  35. package/dist/use-media-playback.js +3 -3
  36. package/dist/use-unsafe-video-config.js +2 -2
  37. package/dist/validation/validate-offthreadvideo-image-format.d.ts +1 -0
  38. package/dist/validation/validate-offthreadvideo-image-format.js +15 -0
  39. package/dist/video/OffthreadVideo.js +4 -2
  40. package/dist/video/OffthreadVideoForRendering.js +17 -9
  41. package/dist/video/Video.d.ts +2 -2
  42. package/dist/video/Video.js +2 -2
  43. package/dist/video/VideoForDevelopment.d.ts +1 -1
  44. package/dist/video/VideoForRendering.d.ts +1 -1
  45. package/dist/video/VideoForRendering.js +5 -5
  46. package/dist/video/index.d.ts +1 -1
  47. package/dist/video/props.d.ts +2 -0
  48. package/dist/wrap-remotion-context.d.ts +1 -1
  49. package/dist/wrap-remotion-context.js +3 -3
  50. package/package.json +2 -2
  51. package/.turbo/turbo-lint.log +0 -11
  52. package/.turbo/turbo-test.log +0 -63
@@ -1,5 +1,5 @@
1
- remotion:build: cache hit, replaying output 44d83bdaa6397643
2
- remotion:build: 
3
- remotion:build: > remotion@3.0.18 build /Users/jonathanburger/remotion/packages/core
4
- remotion:build: > tsc -d
5
- remotion:build: 
1
+ remotion:build: cache hit, replaying output 700ae95ef3d996d3
2
+ remotion:build: 
3
+ remotion:build: > remotion@3.0.21 build /Users/jonathanburger/remotion/packages/core
4
+ remotion:build: > tsc -d
5
+ remotion:build: 
@@ -1,2 +1,6 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
+ /**
3
+ * An absolutely positioned <div> element with 100% width, height, and a column flex style
4
+ * @link https://www.remotion.dev/docs/absolute-fill
5
+ */
2
6
  export declare const AbsoluteFill: React.FC<HTMLAttributes<HTMLDivElement>>;
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbsoluteFill = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ /**
7
+ * An absolutely positioned <div> element with 100% width, height, and a column flex style
8
+ * @link https://www.remotion.dev/docs/absolute-fill
9
+ */
6
10
  const AbsoluteFill = (props) => {
7
11
  const { style, ...other } = props;
8
12
  const actualStyle = (0, react_1.useMemo)(() => {
@@ -1,8 +1,4 @@
1
- import React, { ComponentType, FC } from 'react';
2
- export declare const Folder: FC<{
3
- name: string;
4
- children: React.ReactNode;
5
- }>;
1
+ import React, { ComponentType } from 'react';
6
2
  declare type LooseComponentType<T> = ComponentType<T> | ((props: T) => React.ReactNode);
7
3
  export declare type CompProps<T> = {
8
4
  lazyComponent: () => Promise<{
@@ -1,49 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Composition = exports.Folder = 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
7
  const CompositionManager_1 = require("./CompositionManager");
8
8
  const input_props_1 = require("./config/input-props");
9
9
  const delay_render_1 = require("./delay-render");
10
+ const Folder_1 = require("./Folder");
10
11
  const get_environment_1 = require("./get-environment");
11
12
  const loading_indicator_1 = require("./loading-indicator");
12
13
  const nonce_1 = require("./nonce");
13
14
  const portal_node_1 = require("./portal-node");
14
- const truthy_1 = require("./truthy");
15
15
  const use_lazy_component_1 = require("./use-lazy-component");
16
16
  const use_video_1 = require("./use-video");
17
17
  const validate_composition_id_1 = require("./validation/validate-composition-id");
18
18
  const validate_dimensions_1 = require("./validation/validate-dimensions");
19
19
  const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
20
- const validate_folder_name_1 = require("./validation/validate-folder-name");
21
20
  const validate_fps_1 = require("./validation/validate-fps");
22
- const FolderContext = (0, react_1.createContext)({
23
- folderName: null,
24
- parentName: null,
25
- });
26
- const Folder = ({ name, children, }) => {
27
- const parent = (0, react_1.useContext)(FolderContext);
28
- const { registerFolder, unregisterFolder } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
29
- (0, validate_folder_name_1.validateFolderName)(name);
30
- const parentNameArr = [parent.parentName, parent.folderName].filter(truthy_1.truthy);
31
- const parentName = parentNameArr.length === 0 ? null : parentNameArr.join('/');
32
- const value = (0, react_1.useMemo)(() => {
33
- return {
34
- folderName: name,
35
- parentName,
36
- };
37
- }, [name, parentName]);
38
- (0, react_1.useEffect)(() => {
39
- registerFolder(name, parentName);
40
- return () => {
41
- unregisterFolder(name, parentName);
42
- };
43
- }, [name, parent.folderName, parentName, registerFolder, unregisterFolder]);
44
- return ((0, jsx_runtime_1.jsx)(FolderContext.Provider, { value: value, children: children }));
45
- };
46
- exports.Folder = Folder;
47
21
  const Fallback = () => {
48
22
  (0, react_1.useEffect)(() => {
49
23
  const fallback = (0, delay_render_1.delayRender)('Waiting for Root component to unsuspend');
@@ -56,7 +30,7 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, .
56
30
  const video = (0, use_video_1.useVideo)();
57
31
  const lazy = (0, use_lazy_component_1.useLazyComponent)(compProps);
58
32
  const nonce = (0, nonce_1.useNonce)();
59
- const { folderName, parentName } = (0, react_1.useContext)(FolderContext);
33
+ const { folderName, parentName } = (0, react_1.useContext)(Folder_1.FolderContext);
60
34
  (0, react_1.useEffect)(() => {
61
35
  // Ensure it's a URL safe id
62
36
  if (!id) {
@@ -1,4 +1,5 @@
1
1
  import React, { ComponentType, LazyExoticComponent } from 'react';
2
+ import { TFolder } from './Folder';
2
3
  export declare type TComposition<T = unknown> = {
3
4
  width: number;
4
5
  height: number;
@@ -74,10 +75,6 @@ export declare const CompositionManager: React.Context<CompositionManagerContext
74
75
  export declare const compositionsRef: React.RefObject<{
75
76
  getCompositions: () => TCompMetadata[];
76
77
  }>;
77
- export declare type TFolder = {
78
- name: string;
79
- parent: string | null;
80
- };
81
78
  export declare const CompositionManagerProvider: React.FC<{
82
79
  children: React.ReactNode;
83
80
  }>;
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ export declare type TFolder = {
3
+ name: string;
4
+ parent: string | null;
5
+ };
6
+ declare type FolderContextType = {
7
+ folderName: string | null;
8
+ parentName: string | null;
9
+ };
10
+ export declare const FolderContext: import("react").Context<FolderContextType>;
11
+ export declare const Folder: FC<{
12
+ name: string;
13
+ children: React.ReactNode;
14
+ }>;
15
+ export {};
package/dist/Folder.js ADDED
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Folder = exports.FolderContext = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const CompositionManager_1 = require("./CompositionManager");
7
+ const truthy_1 = require("./truthy");
8
+ const validate_folder_name_1 = require("./validation/validate-folder-name");
9
+ exports.FolderContext = (0, react_1.createContext)({
10
+ folderName: null,
11
+ parentName: null,
12
+ });
13
+ const Folder = ({ name, children, }) => {
14
+ const parent = (0, react_1.useContext)(exports.FolderContext);
15
+ const { registerFolder, unregisterFolder } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
16
+ (0, validate_folder_name_1.validateFolderName)(name);
17
+ const parentNameArr = [parent.parentName, parent.folderName].filter(truthy_1.truthy);
18
+ const parentName = parentNameArr.length === 0 ? null : parentNameArr.join('/');
19
+ const value = (0, react_1.useMemo)(() => {
20
+ return {
21
+ folderName: name,
22
+ parentName,
23
+ };
24
+ }, [name, parentName]);
25
+ (0, react_1.useEffect)(() => {
26
+ registerFolder(name, parentName);
27
+ return () => {
28
+ unregisterFolder(name, parentName);
29
+ };
30
+ }, [name, parent.folderName, parentName, registerFolder, unregisterFolder]);
31
+ return ((0, jsx_runtime_1.jsx)(exports.FolderContext.Provider, { value: value, children: children }));
32
+ };
33
+ exports.Folder = Folder;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export declare type SequenceContextType = {
3
+ cumulatedFrom: number;
4
+ relativeFrom: number;
5
+ parentFrom: number;
6
+ durationInFrames: number;
7
+ id: string;
8
+ };
9
+ export declare const SequenceContext: React.Context<SequenceContextType | null>;
10
+ export declare type SequenceProps = {
11
+ children: React.ReactNode;
12
+ from: number;
13
+ durationInFrames?: number;
14
+ name?: string;
15
+ layout?: 'absolute-fill' | 'none';
16
+ showInTimeline?: boolean;
17
+ showLoopTimesInTimeline?: number;
18
+ };
19
+ export declare const Sequence: React.FC<SequenceProps>;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Sequence = exports.SequenceContext = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const CompositionManager_1 = require("./CompositionManager");
7
+ const get_timeline_clip_name_1 = require("./get-timeline-clip-name");
8
+ const nonce_1 = require("./nonce");
9
+ const timeline_position_state_1 = require("./timeline-position-state");
10
+ const use_current_frame_1 = require("./use-current-frame");
11
+ const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
12
+ exports.SequenceContext = (0, react_1.createContext)(null);
13
+ const Sequence = ({ from, durationInFrames = Infinity, children, name, layout = 'absolute-fill', showInTimeline = true, showLoopTimesInTimeline, }) => {
14
+ const [id] = (0, react_1.useState)(() => String(Math.random()));
15
+ const parentSequence = (0, react_1.useContext)(exports.SequenceContext);
16
+ const { rootId } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
17
+ const cumulatedFrom = parentSequence
18
+ ? parentSequence.cumulatedFrom + parentSequence.relativeFrom
19
+ : 0;
20
+ const actualFrom = cumulatedFrom + from;
21
+ const nonce = (0, nonce_1.useNonce)();
22
+ if (layout !== 'absolute-fill' && layout !== 'none') {
23
+ throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${layout}`);
24
+ }
25
+ if (typeof durationInFrames !== 'number') {
26
+ throw new TypeError(`You passed to durationInFrames an argument of type ${typeof durationInFrames}, but it must be a number.`);
27
+ }
28
+ if (durationInFrames <= 0) {
29
+ throw new TypeError(`durationInFrames must be positive, but got ${durationInFrames}`);
30
+ }
31
+ // Infinity is non-integer but allowed!
32
+ if (durationInFrames % 1 !== 0 && Number.isFinite(durationInFrames)) {
33
+ throw new TypeError(`The "durationInFrames" of a sequence must be an integer, but got ${durationInFrames}.`);
34
+ }
35
+ if (typeof from !== 'number') {
36
+ throw new TypeError(`You passed to the "from" props of your <Sequence> an argument of type ${typeof from}, but it must be a number.`);
37
+ }
38
+ if (from % 1 !== 0) {
39
+ throw new TypeError(`The "from" prop of a sequence must be an integer, but got ${from}.`);
40
+ }
41
+ const absoluteFrame = (0, use_current_frame_1.useAbsoluteCurrentFrame)();
42
+ const unsafeVideoConfig = (0, use_unsafe_video_config_1.useUnsafeVideoConfig)();
43
+ const compositionDuration = unsafeVideoConfig
44
+ ? unsafeVideoConfig.durationInFrames
45
+ : 0;
46
+ const actualDurationInFrames = Math.min(compositionDuration - from, parentSequence
47
+ ? Math.min(parentSequence.durationInFrames +
48
+ (parentSequence.cumulatedFrom + parentSequence.relativeFrom) -
49
+ actualFrom, durationInFrames)
50
+ : durationInFrames);
51
+ const { registerSequence, unregisterSequence } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
52
+ const contextValue = (0, react_1.useMemo)(() => {
53
+ var _a;
54
+ return {
55
+ cumulatedFrom,
56
+ relativeFrom: from,
57
+ durationInFrames: actualDurationInFrames,
58
+ parentFrom: (_a = parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.relativeFrom) !== null && _a !== void 0 ? _a : 0,
59
+ id,
60
+ };
61
+ }, [
62
+ cumulatedFrom,
63
+ from,
64
+ actualDurationInFrames,
65
+ parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.relativeFrom,
66
+ id,
67
+ ]);
68
+ const timelineClipName = (0, react_1.useMemo)(() => {
69
+ return name !== null && name !== void 0 ? name : (0, get_timeline_clip_name_1.getTimelineClipName)(children);
70
+ }, [children, name]);
71
+ (0, react_1.useEffect)(() => {
72
+ var _a;
73
+ registerSequence({
74
+ from,
75
+ duration: actualDurationInFrames,
76
+ id,
77
+ displayName: timelineClipName,
78
+ parent: (_a = parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.id) !== null && _a !== void 0 ? _a : null,
79
+ type: 'sequence',
80
+ rootId,
81
+ showInTimeline,
82
+ nonce,
83
+ showLoopTimesInTimeline,
84
+ });
85
+ return () => {
86
+ unregisterSequence(id);
87
+ };
88
+ }, [
89
+ durationInFrames,
90
+ actualFrom,
91
+ id,
92
+ name,
93
+ registerSequence,
94
+ timelineClipName,
95
+ unregisterSequence,
96
+ parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.id,
97
+ actualDurationInFrames,
98
+ rootId,
99
+ from,
100
+ showInTimeline,
101
+ nonce,
102
+ showLoopTimesInTimeline,
103
+ ]);
104
+ const endThreshold = (() => {
105
+ return actualFrom + durationInFrames - 1;
106
+ })();
107
+ const content = absoluteFrame < actualFrom
108
+ ? null
109
+ : absoluteFrame > endThreshold
110
+ ? null
111
+ : children;
112
+ return ((0, jsx_runtime_1.jsx)(exports.SequenceContext.Provider, { value: contextValue, children: content === null ? null : layout === 'absolute-fill' ? ((0, jsx_runtime_1.jsx)("div", { style: {
113
+ position: 'absolute',
114
+ display: 'flex',
115
+ width: '100%',
116
+ height: '100%',
117
+ top: 0,
118
+ bottom: 0,
119
+ left: 0,
120
+ right: 0,
121
+ }, children: content })) : (content) }));
122
+ };
123
+ exports.Sequence = Sequence;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RemotionMainAudioProps } from './props';
3
- export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
3
+ export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainAudioProps, "dir" | "slot" | "style" | "title" | "id" | "children" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "volume" | "playbackRate" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
6
+ } & RemotionMainAudioProps, "dir" | "slot" | "style" | "title" | "onError" | "volume" | "playbackRate" | "src" | "muted" | "className" | "children" | "id" | "key" | "crossOrigin" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "controlsList" | "mediaGroup" | "playsInline" | "preload" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
@@ -4,7 +4,7 @@ exports.Audio = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const get_environment_1 = require("../get-environment");
7
- const sequencing_1 = require("../sequencing");
7
+ const Sequence_1 = require("../Sequence");
8
8
  const validate_media_props_1 = require("../validate-media-props");
9
9
  const validate_start_from_props_1 = require("../validate-start-from-props");
10
10
  const AudioForDevelopment_1 = require("./AudioForDevelopment");
@@ -21,7 +21,7 @@ const AudioRefForwardingFunction = (props, ref) => {
21
21
  (0, validate_start_from_props_1.validateStartFromProps)(startFrom, endAt);
22
22
  const startFromFrameNo = startFrom !== null && startFrom !== void 0 ? startFrom : 0;
23
23
  const endAtFrameNo = endAt !== null && endAt !== void 0 ? endAt : Infinity;
24
- return ((0, jsx_runtime_1.jsx)(sequencing_1.Sequence, { layout: "none", from: 0 - startFromFrameNo, showInTimeline: false, durationInFrames: endAtFrameNo, children: (0, jsx_runtime_1.jsx)(exports.Audio, { ...otherProps, ref: ref }) }));
24
+ return ((0, jsx_runtime_1.jsx)(Sequence_1.Sequence, { layout: "none", from: 0 - startFromFrameNo, showInTimeline: false, durationInFrames: endAtFrameNo, children: (0, jsx_runtime_1.jsx)(exports.Audio, { ...otherProps, ref: ref }) }));
25
25
  }
26
26
  (0, validate_media_props_1.validateMediaProps)(props, 'Audio');
27
27
  if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering') {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
2
+ export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
3
3
  volume?: import("../volume-prop").VolumeProp | undefined;
4
4
  playbackRate?: number | undefined;
5
5
  } & {
6
6
  shouldPreMountAudioTags: boolean;
7
- }, "dir" | "slot" | "style" | "title" | "id" | "children" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "volume" | "playbackRate" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
7
+ }, "dir" | "slot" | "style" | "title" | "onError" | "volume" | "playbackRate" | "src" | "muted" | "className" | "children" | "id" | "key" | "crossOrigin" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "controlsList" | "mediaGroup" | "playsInline" | "preload" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { RemotionAudioProps } from './props';
3
- export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "dir" | "slot" | "style" | "title" | "id" | "children" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "volume" | "playbackRate"> & React.RefAttributes<HTMLAudioElement>>;
3
+ export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "dir" | "slot" | "style" | "title" | "onError" | "volume" | "playbackRate" | "src" | "muted" | "className" | "children" | "id" | "key" | "crossOrigin" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "controlsList" | "mediaGroup" | "playsInline" | "preload"> & React.RefAttributes<HTMLAudioElement>>;
@@ -6,16 +6,16 @@ const react_1 = require("react");
6
6
  const absolute_src_1 = require("../absolute-src");
7
7
  const CompositionManager_1 = require("../CompositionManager");
8
8
  const random_1 = require("../random");
9
- const sequencing_1 = require("../sequencing");
10
- const use_frame_1 = require("../use-frame");
9
+ const Sequence_1 = require("../Sequence");
10
+ const use_current_frame_1 = require("../use-current-frame");
11
11
  const volume_prop_1 = require("../volume-prop");
12
12
  const use_audio_frame_1 = require("./use-audio-frame");
13
13
  const AudioForRenderingRefForwardingFunction = (props, ref) => {
14
14
  const audioRef = (0, react_1.useRef)(null);
15
- const absoluteFrame = (0, use_frame_1.useAbsoluteCurrentFrame)();
15
+ const absoluteFrame = (0, use_current_frame_1.useAbsoluteCurrentFrame)();
16
16
  const volumePropFrame = (0, use_audio_frame_1.useFrameForVolumeProp)();
17
- const frame = (0, use_frame_1.useCurrentFrame)();
18
- const sequenceContext = (0, react_1.useContext)(sequencing_1.SequenceContext);
17
+ const frame = (0, use_current_frame_1.useCurrentFrame)();
18
+ const sequenceContext = (0, react_1.useContext)(Sequence_1.SequenceContext);
19
19
  const { registerAsset, unregisterAsset } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
20
20
  // Generate a string that's as unique as possible for this asset
21
21
  // but at the same time the same on all threads
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useFrameForVolumeProp = exports.useMediaStartsAt = void 0;
4
4
  const react_1 = require("react");
5
- const sequencing_1 = require("../sequencing");
6
- const use_frame_1 = require("../use-frame");
5
+ const Sequence_1 = require("../Sequence");
6
+ const use_current_frame_1 = require("../use-current-frame");
7
7
  const useMediaStartsAt = () => {
8
8
  var _a;
9
- const parentSequence = (0, react_1.useContext)(sequencing_1.SequenceContext);
9
+ const parentSequence = (0, react_1.useContext)(Sequence_1.SequenceContext);
10
10
  const startsAt = Math.min(0, (_a = parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.relativeFrom) !== null && _a !== void 0 ? _a : 0);
11
11
  return startsAt;
12
12
  };
@@ -16,7 +16,7 @@ exports.useMediaStartsAt = useMediaStartsAt;
16
16
  * we calculate the way more intuitive value for currentFrame
17
17
  */
18
18
  const useFrameForVolumeProp = () => {
19
- const frame = (0, use_frame_1.useCurrentFrame)();
19
+ const frame = (0, use_current_frame_1.useCurrentFrame)();
20
20
  const startsAt = (0, exports.useMediaStartsAt)();
21
21
  return frame + startsAt;
22
22
  };
@@ -1,11 +1,5 @@
1
1
  import { Configuration } from 'webpack';
2
- export declare type WebpackConfiguration = Configuration & {
3
- devServer: {
4
- contentBase: string;
5
- historyApiFallback: boolean;
6
- hot: true;
7
- };
8
- };
2
+ export declare type WebpackConfiguration = Configuration;
9
3
  export declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
10
4
  export declare const defaultOverrideFunction: WebpackOverrideFn;
11
5
  export declare const getWebpackOverrideFn: () => WebpackOverrideFn;
@@ -1,2 +1,3 @@
1
1
  export declare const injectCSS: (css: string) => void;
2
+ export declare const OFFTHREAD_VIDEO_CLASS_NAME = "__remotion_offthreadvideo";
2
3
  export declare const makeDefaultCSS: (scope: string | null, backgroundColor: string) => string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeDefaultCSS = exports.injectCSS = void 0;
3
+ exports.makeDefaultCSS = exports.OFFTHREAD_VIDEO_CLASS_NAME = exports.injectCSS = void 0;
4
4
  const injected = {};
5
5
  const injectCSS = (css) => {
6
6
  // Skip in node
@@ -17,6 +17,7 @@ const injectCSS = (css) => {
17
17
  injected[css] = true;
18
18
  };
19
19
  exports.injectCSS = injectCSS;
20
+ exports.OFFTHREAD_VIDEO_CLASS_NAME = '__remotion_offthreadvideo';
20
21
  const makeDefaultCSS = (scope, backgroundColor) => {
21
22
  if (!scope) {
22
23
  return `
@@ -27,6 +28,9 @@ const makeDefaultCSS = (scope, backgroundColor) => {
27
28
  margin: 0;
28
29
  background-color: ${backgroundColor};
29
30
  }
31
+ .${exports.OFFTHREAD_VIDEO_CLASS_NAME} {
32
+ object-fit: contain;
33
+ }
30
34
  `;
31
35
  }
32
36
  return `
@@ -37,6 +41,9 @@ const makeDefaultCSS = (scope, backgroundColor) => {
37
41
  width: 100%;
38
42
  height: 100%;
39
43
  }
44
+ ${scope} .${exports.OFFTHREAD_VIDEO_CLASS_NAME} {
45
+ object-fit: contain;
46
+ }
40
47
  `;
41
48
  };
42
49
  exports.makeDefaultCSS = makeDefaultCSS;
package/dist/freeze.d.ts CHANGED
@@ -3,5 +3,5 @@ declare type FreezeProps = {
3
3
  frame: number;
4
4
  children: React.ReactNode;
5
5
  };
6
- declare const Freeze: React.FC<FreezeProps>;
7
- export { Freeze };
6
+ export declare const Freeze: React.FC<FreezeProps>;
7
+ export {};
package/dist/freeze.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Freeze = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const sequencing_1 = require("./sequencing");
6
+ const Sequence_1 = require("./Sequence");
7
7
  const timeline_position_state_1 = require("./timeline-position-state");
8
8
  const Freeze = ({ frame, children }) => {
9
9
  if (typeof frame === 'undefined') {
@@ -29,6 +29,6 @@ const Freeze = ({ frame, children }) => {
29
29
  frame,
30
30
  };
31
31
  }, [context, frame]);
32
- return ((0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(sequencing_1.SequenceContext.Provider, { value: null, children: children }) }));
32
+ return ((0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)(Sequence_1.SequenceContext.Provider, { value: null, children: children }) }));
33
33
  };
34
34
  exports.Freeze = Freeze;
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@ declare global {
18
18
  remotion_collectAssets: () => TAsset[];
19
19
  remotion_isPlayer: boolean;
20
20
  remotion_imported: boolean;
21
+ remotion_isBuilding: undefined | (() => void);
22
+ remotion_finishedBuilding: undefined | (() => void);
21
23
  siteVersion: '3';
22
24
  }
23
25
  }
@@ -32,27 +34,28 @@ export declare type BundleState = {
32
34
  export * from './AbsoluteFill';
33
35
  export * from './audio';
34
36
  export * from './Composition';
35
- export { SmallTCompMetadata, TAsset, TCompMetadata, TFolder, } from './CompositionManager';
37
+ export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
36
38
  export * from './config';
37
39
  export { getInputProps } from './config/input-props';
38
40
  export * from './delay-render';
39
41
  export * from './easing';
42
+ export * from './Folder';
40
43
  export * from './freeze';
41
44
  export * from './IFrame';
42
45
  export * from './Img';
43
46
  export * from './internals';
44
47
  export * from './interpolate';
45
- export { interpolateColors } from './interpolateColors';
48
+ export { interpolateColors } from './interpolate-colors';
46
49
  export { Loop } from './loop';
47
50
  export * from './random';
48
51
  export { registerRoot } from './register-root';
49
- export { Sequence } from './sequencing';
52
+ export { Sequence } from './Sequence';
50
53
  export { Series } from './series';
51
54
  export * from './spring';
52
55
  export { staticFile } from './static-file';
53
56
  export * from './Still';
54
57
  export type { PlayableMediaTag } from './timeline-position-state';
55
- export { useCurrentFrame } from './use-frame';
58
+ export { useCurrentFrame } from './use-current-frame';
56
59
  export * from './use-video-config';
57
60
  export * from './video';
58
61
  export * from './video-config';