remotion 4.0.425 → 4.0.427
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/Composition.d.ts +1 -1
- package/dist/cjs/Composition.js +1 -1
- package/dist/cjs/CompositionManager.d.ts +1 -1
- package/dist/cjs/CompositionManagerContext.d.ts +1 -1
- package/dist/cjs/CompositionManagerProvider.d.ts +1 -1
- package/dist/cjs/Still.d.ts +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/internals.d.ts +2 -2
- package/dist/cjs/props-if-has-props.d.ts +15 -3
- package/dist/cjs/resolve-video-config.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { AnyZodObject } from 'zod';
|
|
3
|
+
import type { AnyZodObject } from './any-zod-type.js';
|
|
4
4
|
import type { Codec } from './codec.js';
|
|
5
5
|
import type { InferProps, PropsIfHasProps } from './props-if-has-props.js';
|
|
6
6
|
import type { ProResProfile } from './prores-profile.js';
|
package/dist/cjs/Composition.js
CHANGED
|
@@ -7,12 +7,12 @@ const react_dom_1 = require("react-dom");
|
|
|
7
7
|
const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
|
|
8
8
|
const CompositionManagerContext_js_1 = require("./CompositionManagerContext.js");
|
|
9
9
|
const Folder_js_1 = require("./Folder.js");
|
|
10
|
-
const ResolveCompositionConfig_js_1 = require("./ResolveCompositionConfig.js");
|
|
11
10
|
const input_props_serialization_js_1 = require("./input-props-serialization.js");
|
|
12
11
|
const is_player_js_1 = require("./is-player.js");
|
|
13
12
|
const loading_indicator_js_1 = require("./loading-indicator.js");
|
|
14
13
|
const nonce_js_1 = require("./nonce.js");
|
|
15
14
|
const portal_node_js_1 = require("./portal-node.js");
|
|
15
|
+
const ResolveCompositionConfig_js_1 = require("./ResolveCompositionConfig.js");
|
|
16
16
|
const use_delay_render_js_1 = require("./use-delay-render.js");
|
|
17
17
|
const use_lazy_component_js_1 = require("./use-lazy-component.js");
|
|
18
18
|
const use_remotion_environment_js_1 = require("./use-remotion-environment.js");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentType, LazyExoticComponent } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { AnyZodObject } from 'zod';
|
|
3
|
+
import type { AnyZodObject } from './any-zod-type.js';
|
|
4
4
|
import type { CalculateMetadataFunction } from './Composition.js';
|
|
5
5
|
import type { DownloadBehavior } from './download-behavior.js';
|
|
6
6
|
import type { InferProps, PropsIfHasProps } from './props-if-has-props.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { AnyZodObject } from 'zod';
|
|
2
|
+
import type { AnyZodObject } from './any-zod-type.js';
|
|
3
3
|
import type { AnyComposition, TComposition } from './CompositionManager.js';
|
|
4
4
|
import type { TFolder } from './Folder.js';
|
|
5
5
|
import type { VideoConfig } from './video-config.js';
|
|
@@ -7,4 +7,4 @@ export declare const CompositionManagerProvider: ({ children, onlyRenderComposit
|
|
|
7
7
|
readonly currentCompositionMetadata: BaseMetadata | null;
|
|
8
8
|
readonly initialCompositions: AnyComposition[];
|
|
9
9
|
readonly initialCanvasContent: CanvasContent | null;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
package/dist/cjs/Still.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AnyZodObject } from 'zod';
|
|
2
|
+
import type { AnyZodObject } from './any-zod-type.js';
|
|
3
3
|
import type { StillProps } from './Composition.js';
|
|
4
4
|
export declare const Still: <Schema extends AnyZodObject, Props extends Record<string, unknown>>(props: StillProps<Schema, Props>) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export type BundleEvaluationState = {
|
|
|
90
90
|
export type BundleState = BundleIndexState | BundleEvaluationState | BundleCompositionState;
|
|
91
91
|
export * from './AbsoluteFill.js';
|
|
92
92
|
export * from './animated-image/index.js';
|
|
93
|
+
export type { AnyZodObject } from './any-zod-type.js';
|
|
93
94
|
export { Artifact } from './Artifact.js';
|
|
94
95
|
export { Audio, Html5Audio, RemotionAudioProps } from './audio/index.js';
|
|
95
96
|
export type { LoopVolumeCurveBehavior } from './audio/use-audio-frame.js';
|
package/dist/cjs/internals.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare const Internals: {
|
|
|
201
201
|
compositionHeight: number | null;
|
|
202
202
|
compositionFps: number | null;
|
|
203
203
|
compositionDurationInFrames: number | null;
|
|
204
|
-
calculateMetadata: import("./Composition.js").CalculateMetadataFunction<import("./props-if-has-props.js").InferProps<import("zod").AnyZodObject, Record<string, unknown>>> | null;
|
|
204
|
+
calculateMetadata: import("./Composition.js").CalculateMetadataFunction<import("./props-if-has-props.js").InferProps<import("./any-zod-type.js").AnyZodObject, Record<string, unknown>>> | null;
|
|
205
205
|
signal: AbortSignal;
|
|
206
206
|
defaultProps: Record<string, unknown>;
|
|
207
207
|
inputProps: Record<string, unknown>;
|
|
@@ -212,7 +212,7 @@ export declare const Internals: {
|
|
|
212
212
|
compositionHeight: number | null;
|
|
213
213
|
compositionFps: number | null;
|
|
214
214
|
compositionDurationInFrames: number | null;
|
|
215
|
-
calculateMetadata: import("./Composition.js").CalculateMetadataFunction<import("./props-if-has-props.js").InferProps<import("zod").AnyZodObject, Record<string, unknown>>> | null;
|
|
215
|
+
calculateMetadata: import("./Composition.js").CalculateMetadataFunction<import("./props-if-has-props.js").InferProps<import("./any-zod-type.js").AnyZodObject, Record<string, unknown>>> | null;
|
|
216
216
|
signal: AbortSignal;
|
|
217
217
|
defaultProps: Record<string, unknown>;
|
|
218
218
|
inputProps: Record<string, unknown>;
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import type { AnyZodObject
|
|
1
|
+
import type { AnyZodObject } from './any-zod-type.js';
|
|
2
2
|
type And<A extends boolean, B extends boolean> = A extends true ? B extends true ? true : false : false;
|
|
3
|
+
/**
|
|
4
|
+
* Infer the input type of a zod schema using structural typing.
|
|
5
|
+
* v3 schemas have `_input` phantom type.
|
|
6
|
+
* v4 schemas have `_zod.input` phantom type.
|
|
7
|
+
*/
|
|
8
|
+
type InferZodInput<T> = T extends {
|
|
9
|
+
_zod: {
|
|
10
|
+
input: any;
|
|
11
|
+
};
|
|
12
|
+
} ? T['_zod']['input'] : T extends {
|
|
13
|
+
_input: any;
|
|
14
|
+
} ? T['_input'] : Record<string, unknown>;
|
|
3
15
|
export type PropsIfHasProps<Schema extends AnyZodObject, Props extends Record<string, unknown>> = And<AnyZodObject extends Schema ? true : false, {} extends Props ? true : false> extends true ? {
|
|
4
16
|
defaultProps?: {};
|
|
5
17
|
} : {
|
|
6
18
|
defaultProps: InferProps<Schema, Props>;
|
|
7
19
|
};
|
|
8
|
-
export type InferProps<Schema extends AnyZodObject, Props extends Record<string, unknown>> = AnyZodObject extends Schema ? {} extends Props ? Record<string, unknown> : Props : {} extends Props ?
|
|
9
|
-
|
|
20
|
+
export type InferProps<Schema extends AnyZodObject, Props extends Record<string, unknown>> = AnyZodObject extends Schema ? {} extends Props ? Record<string, unknown> : Props : {} extends Props ? InferZodInput<Schema> : // Props and schema specified
|
|
21
|
+
InferZodInput<Schema> & Props;
|
|
10
22
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyZodObject } from 'zod';
|
|
1
|
+
import type { AnyZodObject } from './any-zod-type.js';
|
|
2
2
|
import type { CalculateMetadataFunction } from './Composition.js';
|
|
3
3
|
import type { InferProps } from './props-if-has-props.js';
|
|
4
4
|
import type { VideoConfig } from './video-config.js';
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
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.427",
|
|
7
7
|
"description": "Make videos programmatically",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"react": "19.2.3",
|
|
34
34
|
"react-dom": "19.2.3",
|
|
35
35
|
"webpack": "5.105.0",
|
|
36
|
-
"zod": "3.
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
36
|
+
"zod": "4.3.6",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.427",
|
|
38
38
|
"eslint": "9.19.0",
|
|
39
39
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
40
40
|
},
|