remotion 4.0.235 → 4.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/CompositionManager.d.ts +1 -1
- package/dist/cjs/EditorProps.d.ts +1 -1
- package/dist/cjs/ResolveCompositionConfig.d.ts +1 -1
- package/dist/cjs/audio/AudioForPreview.js +1 -1
- package/dist/cjs/audio/shared-audio-tags.d.ts +1 -1
- package/dist/cjs/buffer-until-first-frame.d.ts +1 -1
- package/dist/cjs/internals.d.ts +5 -5
- package/dist/cjs/play-and-handle-not-allowed-error.d.ts +1 -1
- package/dist/cjs/use-media-buffering.d.ts +1 -1
- package/dist/cjs/use-media-in-timeline.d.ts +1 -1
- package/dist/cjs/use-media-playback.d.ts +1 -1
- package/dist/cjs/use-media-tag-volume.d.ts +1 -1
- package/dist/cjs/use-request-video-callback-time.d.ts +2 -2
- package/dist/cjs/use-sync-volume-with-media-tag.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/VideoForPreview.js +1 -1
- package/dist/cjs/video/emit-video-frame.d.ts +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/version.mjs +1 -1
- package/package.json +6 -5
|
@@ -79,7 +79,7 @@ export type ArtifactAsset = {
|
|
|
79
79
|
export type TRenderAsset = AudioOrVideoAsset | ArtifactAsset;
|
|
80
80
|
export declare const compositionsRef: React.RefObject<{
|
|
81
81
|
getCompositions: () => AnyComposition[];
|
|
82
|
-
}>;
|
|
82
|
+
} | null>;
|
|
83
83
|
export declare const CompositionManagerProvider: React.FC<{
|
|
84
84
|
readonly children: React.ReactNode;
|
|
85
85
|
readonly numberOfAudioTags: number;
|
|
@@ -13,7 +13,7 @@ export declare const EditorPropsContext: React.Context<EditorPropsContextType>;
|
|
|
13
13
|
export declare const editorPropsProviderRef: React.RefObject<{
|
|
14
14
|
getProps: () => Props;
|
|
15
15
|
setProps: React.Dispatch<React.SetStateAction<Props>>;
|
|
16
|
-
}>;
|
|
16
|
+
} | null>;
|
|
17
17
|
export declare const EditorPropsProvider: React.FC<{
|
|
18
18
|
readonly children: React.ReactNode;
|
|
19
19
|
}>;
|
|
@@ -6,7 +6,7 @@ export declare const ResolveCompositionContext: import("react").Context<ResolveC
|
|
|
6
6
|
export declare const resolveCompositionsRef: import("react").RefObject<{
|
|
7
7
|
setCurrentRenderModalComposition: (compositionId: string | null) => void;
|
|
8
8
|
reloadCurrentlySelectedComposition: () => void;
|
|
9
|
-
}>;
|
|
9
|
+
} | null>;
|
|
10
10
|
type VideoConfigState = {
|
|
11
11
|
type: 'loading';
|
|
12
12
|
} | {
|
|
@@ -103,7 +103,7 @@ const AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
103
103
|
(0, react_1.useImperativeHandle)(ref, () => {
|
|
104
104
|
return audioRef.current;
|
|
105
105
|
}, [audioRef]);
|
|
106
|
-
const currentOnDurationCallback = (0, react_1.useRef)();
|
|
106
|
+
const currentOnDurationCallback = (0, react_1.useRef)(onDuration);
|
|
107
107
|
currentOnDurationCallback.current = onDuration;
|
|
108
108
|
(0, react_1.useEffect)(() => {
|
|
109
109
|
var _a;
|
|
@@ -15,7 +15,7 @@ import type { RemotionAudioProps } from './props.js';
|
|
|
15
15
|
type AudioElem = {
|
|
16
16
|
id: number;
|
|
17
17
|
props: RemotionAudioProps;
|
|
18
|
-
el: React.RefObject<HTMLAudioElement>;
|
|
18
|
+
el: React.RefObject<HTMLAudioElement | null>;
|
|
19
19
|
audioId: string;
|
|
20
20
|
};
|
|
21
21
|
type SharedContext = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const useBufferUntilFirstFrame: ({ mediaRef, mediaType, onVariableFpsVideoDetected, pauseWhenBuffering, }: {
|
|
2
|
-
mediaRef: React.RefObject<HTMLVideoElement | HTMLAudioElement>;
|
|
2
|
+
mediaRef: React.RefObject<HTMLVideoElement | HTMLAudioElement | null>;
|
|
3
3
|
mediaType: "video" | "audio";
|
|
4
4
|
onVariableFpsVideoDetected: () => void;
|
|
5
5
|
pauseWhenBuffering: boolean;
|
package/dist/cjs/internals.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const Internals: {
|
|
|
26
26
|
readonly getRoot: () => import("react").FC<{}> | null;
|
|
27
27
|
readonly useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
28
28
|
readonly useMediaMutedState: () => readonly [boolean, (u: React.SetStateAction<boolean>) => void];
|
|
29
|
-
readonly useLazyComponent: <Props>(compProps: CompProps<Props>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<Props> & import("react").RefAttributes<import("react").Component<Props, any, any>>)
|
|
29
|
+
readonly useLazyComponent: <Props>(compProps: CompProps<Props>) => import("react").ExoticComponent<Props | (import("react").PropsWithoutRef<Props> & import("react").RefAttributes<import("react").Component<Props, any, any>>)> & {
|
|
30
30
|
readonly _result: import("react").ComponentType<Props>;
|
|
31
31
|
};
|
|
32
32
|
readonly truthy: typeof truthy;
|
|
@@ -42,7 +42,7 @@ export declare const Internals: {
|
|
|
42
42
|
registerAudio: (aud: import("./index.js").RemotionAudioProps, audioId: string) => {
|
|
43
43
|
id: number;
|
|
44
44
|
props: import("./index.js").RemotionAudioProps;
|
|
45
|
-
el: import("react").RefObject<HTMLAudioElement>;
|
|
45
|
+
el: import("react").RefObject<HTMLAudioElement | null>;
|
|
46
46
|
audioId: string;
|
|
47
47
|
};
|
|
48
48
|
unregisterAudio: (id: number) => void;
|
|
@@ -64,7 +64,7 @@ export declare const Internals: {
|
|
|
64
64
|
readonly getPreviewDomElement: () => HTMLElement | null;
|
|
65
65
|
readonly compositionsRef: import("react").RefObject<{
|
|
66
66
|
getCompositions: () => import("./CompositionManager.js").AnyComposition[];
|
|
67
|
-
}>;
|
|
67
|
+
} | null>;
|
|
68
68
|
readonly portalNode: () => HTMLElement;
|
|
69
69
|
readonly waitForRoot: (fn: (comp: import("react").FC) => void) => (() => void);
|
|
70
70
|
readonly CanUseRemotionHooksProvider: import("react").FC<{
|
|
@@ -113,7 +113,7 @@ export declare const Internals: {
|
|
|
113
113
|
readonly resolveCompositionsRef: import("react").RefObject<{
|
|
114
114
|
setCurrentRenderModalComposition: (compositionId: string | null) => void;
|
|
115
115
|
reloadCurrentlySelectedComposition: () => void;
|
|
116
|
-
}>;
|
|
116
|
+
} | null>;
|
|
117
117
|
readonly ResolveCompositionConfig: import("react").FC<import("react").PropsWithChildren<{
|
|
118
118
|
children: React.ReactNode;
|
|
119
119
|
}>>;
|
|
@@ -163,7 +163,7 @@ export declare const Internals: {
|
|
|
163
163
|
setProps: import("react").Dispatch<import("react").SetStateAction<{
|
|
164
164
|
[x: string]: Record<string, unknown>;
|
|
165
165
|
}>>;
|
|
166
|
-
}>;
|
|
166
|
+
} | null>;
|
|
167
167
|
readonly PROPS_UPDATED_EXTERNALLY: "remotion.propsUpdatedExternally";
|
|
168
168
|
readonly validateRenderAsset: (artifact: TRenderAsset) => void;
|
|
169
169
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
|
-
export declare const playAndHandleNotAllowedError: (mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>, mediaType: "audio" | "video", onAutoPlayError: null | (() => void)) => void;
|
|
2
|
+
export declare const playAndHandleNotAllowedError: (mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>, mediaType: "audio" | "video", onAutoPlayError: null | (() => void)) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
export declare const useMediaBuffering: ({ element, shouldBuffer, isPremounting, }: {
|
|
3
|
-
element: React.RefObject<HTMLVideoElement | HTMLAudioElement>;
|
|
3
|
+
element: React.RefObject<HTMLVideoElement | HTMLAudioElement | null>;
|
|
4
4
|
shouldBuffer: boolean;
|
|
5
5
|
isPremounting: boolean;
|
|
6
6
|
}) => boolean;
|
|
@@ -3,7 +3,7 @@ import type { VolumeProp } from './volume-prop.js';
|
|
|
3
3
|
export declare const useMediaInTimeline: ({ volume, mediaVolume, mediaRef, src, mediaType, playbackRate, displayName, id, stack, showInTimeline, premountDisplay, onAutoPlayError, }: {
|
|
4
4
|
volume: VolumeProp | undefined;
|
|
5
5
|
mediaVolume: number;
|
|
6
|
-
mediaRef: RefObject<HTMLAudioElement | HTMLVideoElement>;
|
|
6
|
+
mediaRef: RefObject<HTMLAudioElement | HTMLVideoElement | null>;
|
|
7
7
|
src: string | undefined;
|
|
8
8
|
mediaType: "audio" | "video";
|
|
9
9
|
playbackRate: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
2
|
export declare const DEFAULT_ACCEPTABLE_TIMESHIFT = 0.45;
|
|
3
3
|
export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, onlyWarnForMediaSeekingError, acceptableTimeshift, pauseWhenBuffering, isPremounting, debugSeeking, onAutoPlayError, }: {
|
|
4
|
-
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>;
|
|
4
|
+
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>;
|
|
5
5
|
src: string | undefined;
|
|
6
6
|
mediaType: "audio" | "video";
|
|
7
7
|
playbackRate: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
|
-
export declare const useMediaTagVolume: (mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>) => number;
|
|
2
|
+
export declare const useMediaTagVolume: (mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>) => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
2
|
export declare const useRequestVideoCallbackTime: ({ mediaRef, mediaType, lastSeek, onVariableFpsVideoDetected, }: {
|
|
3
|
-
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>;
|
|
3
|
+
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>;
|
|
4
4
|
mediaType: "video" | "audio";
|
|
5
5
|
lastSeek: React.MutableRefObject<number | null>;
|
|
6
6
|
onVariableFpsVideoDetected: () => void;
|
|
7
|
-
}) =>
|
|
7
|
+
}) => RefObject<number | null>;
|
|
@@ -5,6 +5,6 @@ export type UseSyncVolumeWithMediaTagOptions = {
|
|
|
5
5
|
actualVolume: number;
|
|
6
6
|
volume?: VolumeProp;
|
|
7
7
|
mediaVolume: number;
|
|
8
|
-
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>;
|
|
8
|
+
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>;
|
|
9
9
|
};
|
|
10
10
|
export declare const useSyncVolumeWithMediaTag: ({ volumePropFrame, actualVolume, volume, mediaVolume, mediaRef, }: UseSyncVolumeWithMediaTagOptions) => void;
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -112,7 +112,7 @@ const VideoForDevelopmentRefForwardingFunction = (props, ref) => {
|
|
|
112
112
|
current.removeEventListener('error', errorHandler);
|
|
113
113
|
};
|
|
114
114
|
}, [onError, src]);
|
|
115
|
-
const currentOnDurationCallback = (0, react_1.useRef)();
|
|
115
|
+
const currentOnDurationCallback = (0, react_1.useRef)(onDuration);
|
|
116
116
|
currentOnDurationCallback.current = onDuration;
|
|
117
117
|
(0, emit_video_frame_js_1.useEmitVideoFrame)({ ref: videoRef, onVideoFrame });
|
|
118
118
|
(0, react_1.useEffect)(() => {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -102,7 +102,7 @@ function truthy(value) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// src/version.ts
|
|
105
|
-
var VERSION = "4.0.
|
|
105
|
+
var VERSION = "4.0.237";
|
|
106
106
|
|
|
107
107
|
// src/multiple-versions-warning.ts
|
|
108
108
|
var checkMultipleRemotionVersions = () => {
|
|
@@ -3411,7 +3411,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
3411
3411
|
useImperativeHandle3(ref, () => {
|
|
3412
3412
|
return audioRef.current;
|
|
3413
3413
|
}, [audioRef]);
|
|
3414
|
-
const currentOnDurationCallback = useRef8();
|
|
3414
|
+
const currentOnDurationCallback = useRef8(onDuration);
|
|
3415
3415
|
currentOnDurationCallback.current = onDuration;
|
|
3416
3416
|
useEffect14(() => {
|
|
3417
3417
|
const { current } = audioRef;
|
|
@@ -6079,7 +6079,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
6079
6079
|
current.removeEventListener("error", errorHandler);
|
|
6080
6080
|
};
|
|
6081
6081
|
}, [onError, src]);
|
|
6082
|
-
const currentOnDurationCallback = useRef13();
|
|
6082
|
+
const currentOnDurationCallback = useRef13(onDuration);
|
|
6083
6083
|
currentOnDurationCallback.current = onDuration;
|
|
6084
6084
|
useEmitVideoFrame({ ref: videoRef, onVideoFrame });
|
|
6085
6085
|
useEffect21(() => {
|
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
|
|
4
4
|
},
|
|
5
5
|
"name": "remotion",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.237",
|
|
7
7
|
"description": "Make videos programmatically",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -18,17 +18,18 @@
|
|
|
18
18
|
"react-dom": ">=16.8.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@testing-library/react": "
|
|
21
|
+
"@testing-library/react": "16.1.0",
|
|
22
|
+
"@testing-library/dom": "10.4.0",
|
|
22
23
|
"@happy-dom/global-registrator": "14.5.1",
|
|
23
24
|
"happy-dom": "15.10.2",
|
|
24
25
|
"jsdom": "21.1.0",
|
|
25
|
-
"react": "
|
|
26
|
-
"react-dom": "
|
|
26
|
+
"react": "19.0.0",
|
|
27
|
+
"react-dom": "19.0.0",
|
|
27
28
|
"vitest": "0.31.1",
|
|
28
29
|
"webpack": "5.96.1",
|
|
29
30
|
"zod": "3.22.3",
|
|
30
31
|
"eslint": "9.14.0",
|
|
31
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.237"
|
|
32
33
|
},
|
|
33
34
|
"keywords": [
|
|
34
35
|
"remotion",
|