remotion 4.0.368 → 4.0.370
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/audio/shared-audio-tags.d.ts +1 -1
- package/dist/cjs/internals.d.ts +4 -4
- package/dist/cjs/use-lazy-component.d.ts +1 -1
- package/dist/cjs/use-lazy-component.js +1 -1
- package/dist/cjs/use-video.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ export type TComposition<Schema extends AnyZodObject, Props extends Record<strin
|
|
|
13
13
|
id: string;
|
|
14
14
|
folderName: string | null;
|
|
15
15
|
parentFolderName: string | null;
|
|
16
|
-
component: LazyExoticComponent<ComponentType<Props
|
|
16
|
+
component: LazyExoticComponent<ComponentType<Props>> | ComponentType<Props>;
|
|
17
17
|
nonce: number;
|
|
18
18
|
schema: Schema | null;
|
|
19
19
|
calculateMetadata: CalculateMetadataFunction<InferProps<Schema, Props>> | null;
|
|
@@ -41,7 +41,7 @@ export declare const SharedAudioContext: React.Context<SharedContext | null>;
|
|
|
41
41
|
export declare const SharedAudioContextProvider: React.FC<{
|
|
42
42
|
readonly numberOfAudioTags: number;
|
|
43
43
|
readonly children: React.ReactNode;
|
|
44
|
-
readonly component: LazyExoticComponent<ComponentType<Record<string, unknown>>> | null;
|
|
44
|
+
readonly component: LazyExoticComponent<ComponentType<Record<string, unknown>>> | ComponentType<Record<string, unknown>> | null;
|
|
45
45
|
readonly audioLatencyHint: AudioContextLatencyCategory;
|
|
46
46
|
}>;
|
|
47
47
|
export declare const useSharedAudio: ({ aud, audioId, premounting, }: {
|
package/dist/cjs/internals.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export declare const Internals: {
|
|
|
82
82
|
readonly audioEnabled: boolean | null;
|
|
83
83
|
}>;
|
|
84
84
|
readonly useVideo: () => (import("./video-config.js").VideoConfig & {
|
|
85
|
-
component: import("react").LazyExoticComponent<import("react").ComponentType<Record<string, unknown
|
|
85
|
+
component: import("react").LazyExoticComponent<import("react").ComponentType<Record<string, unknown>>> | import("react").ComponentType<Record<string, unknown>>;
|
|
86
86
|
}) | null;
|
|
87
87
|
readonly getRoot: () => import("react").FC<{}> | null;
|
|
88
88
|
readonly useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
@@ -105,9 +105,9 @@ export declare const Internals: {
|
|
|
105
105
|
compProps: CompProps<Props>;
|
|
106
106
|
componentName: string;
|
|
107
107
|
noSuspense: boolean;
|
|
108
|
-
}) => import("react").ExoticComponent<Props | (import("react").PropsWithoutRef<Props> & import("react").RefAttributes<import("react").Component<Props, any, any>>)> & {
|
|
108
|
+
}) => (import("react").ExoticComponent<Props | (import("react").PropsWithoutRef<Props> & import("react").RefAttributes<import("react").Component<Props, any, any>>)> & {
|
|
109
109
|
readonly _result: import("react").ComponentType<Props>;
|
|
110
|
-
}
|
|
110
|
+
}) | import("react").ComponentType<Props>;
|
|
111
111
|
readonly truthy: typeof truthy;
|
|
112
112
|
readonly SequenceContext: import("react").Context<import("./SequenceContext.js").SequenceContextType | null>;
|
|
113
113
|
readonly useRemotionContexts: typeof useRemotionContexts;
|
|
@@ -144,7 +144,7 @@ export declare const Internals: {
|
|
|
144
144
|
readonly SharedAudioContextProvider: import("react").FC<{
|
|
145
145
|
readonly numberOfAudioTags: number;
|
|
146
146
|
readonly children: React.ReactNode;
|
|
147
|
-
readonly component: import("react").LazyExoticComponent<import("react").ComponentType<Record<string, unknown>>> | null;
|
|
147
|
+
readonly component: import("react").LazyExoticComponent<import("react").ComponentType<Record<string, unknown>>> | import("react").ComponentType<Record<string, unknown>> | null;
|
|
148
148
|
readonly audioLatencyHint: AudioContextLatencyCategory;
|
|
149
149
|
}>;
|
|
150
150
|
readonly invalidCompositionErrorMessage: string;
|
|
@@ -7,5 +7,5 @@ export declare const useLazyComponent: <Props>({ compProps, componentName, noSus
|
|
|
7
7
|
compProps: CompProps<Props>;
|
|
8
8
|
componentName: string;
|
|
9
9
|
noSuspense: boolean;
|
|
10
|
-
}) => LazyExoticComponent<ComponentType<Props
|
|
10
|
+
}) => LazyExoticComponent<ComponentType<Props>> | ComponentType<Props>;
|
|
11
11
|
export {};
|
|
@@ -46,7 +46,7 @@ const useLazyComponent = ({ compProps, componentName, noSuspense, }) => {
|
|
|
46
46
|
if (typeof compProps.component === 'undefined') {
|
|
47
47
|
throw new Error(`A value of \`undefined\` was passed to the \`component\` prop. Check the value you are passing to the <${componentName}/> component.`);
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return compProps.component;
|
|
50
50
|
}
|
|
51
51
|
if ('lazyComponent' in compProps &&
|
|
52
52
|
typeof compProps.lazyComponent !== 'undefined') {
|
package/dist/cjs/use-video.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentType, LazyExoticComponent } from 'react';
|
|
2
2
|
import type { VideoConfig } from './video-config.js';
|
|
3
3
|
type ReturnType = (VideoConfig & {
|
|
4
|
-
component: LazyExoticComponent<ComponentType<Record<string, unknown
|
|
4
|
+
component: LazyExoticComponent<ComponentType<Record<string, unknown>>> | ComponentType<Record<string, unknown>>;
|
|
5
5
|
}) | null;
|
|
6
6
|
export declare const useVideo: () => ReturnType;
|
|
7
7
|
export {};
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -110,7 +110,7 @@ function truthy(value) {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// src/version.ts
|
|
113
|
-
var VERSION = "4.0.
|
|
113
|
+
var VERSION = "4.0.370";
|
|
114
114
|
|
|
115
115
|
// src/multiple-versions-warning.ts
|
|
116
116
|
var checkMultipleRemotionVersions = () => {
|
|
@@ -5178,7 +5178,7 @@ var useLazyComponent = ({
|
|
|
5178
5178
|
if (typeof compProps.component === "undefined") {
|
|
5179
5179
|
throw new Error(`A value of \`undefined\` was passed to the \`component\` prop. Check the value you are passing to the <${componentName}/> component.`);
|
|
5180
5180
|
}
|
|
5181
|
-
return
|
|
5181
|
+
return compProps.component;
|
|
5182
5182
|
}
|
|
5183
5183
|
if ("lazyComponent" in compProps && typeof compProps.lazyComponent !== "undefined") {
|
|
5184
5184
|
if (typeof compProps.lazyComponent === "undefined") {
|
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.370",
|
|
7
7
|
"description": "Make videos programmatically",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-dom": "19.0.0",
|
|
35
35
|
"webpack": "5.96.1",
|
|
36
36
|
"zod": "3.22.3",
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.370",
|
|
38
38
|
"eslint": "9.19.0"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|