@remotion/player 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.
@@ -1,7 +1,6 @@
1
1
  import type { ComponentType } from 'react';
2
2
  import React from 'react';
3
- import type { CompProps, LogLevel } from 'remotion';
4
- import type { AnyZodObject } from 'zod';
3
+ import type { AnyZodObject, CompProps, LogLevel } from 'remotion';
5
4
  import type { RenderMuteButton } from './MediaVolumeSlider.js';
6
5
  import type { RenderFullscreenButton, RenderPlayPauseButton } from './PlayerControls.js';
7
6
  import type { PosterFillMode, RenderLoading, RenderPoster } from './PlayerUI.js';
@@ -1,6 +1,5 @@
1
1
  import type { CSSProperties } from 'react';
2
- import type { CompProps, LogLevel } from 'remotion';
3
- import type { AnyZodObject } from 'zod';
2
+ import type { AnyZodObject, CompProps, LogLevel } from 'remotion';
4
3
  import type { ThumbnailMethods } from './player-methods.js';
5
4
  import type { ErrorFallback, RenderLoading } from './PlayerUI.js';
6
5
  import type { PropsIfHasProps } from './utils/props-if-has-props.js';
@@ -1,10 +1,18 @@
1
- import type { AnyZodObject, z } from 'zod';
1
+ import type { AnyZodObject } from 'remotion';
2
+ type InferZodInput<T> = T extends {
3
+ _zod: {
4
+ input: any;
5
+ };
6
+ } ? T['_zod']['input'] : T extends {
7
+ _input: any;
8
+ } ? T['_input'] : Record<string, unknown>;
2
9
  export type PropsIfHasProps<Schema extends AnyZodObject, Props> = AnyZodObject extends Schema ? {} extends Props ? {
3
- inputProps?: z.input<Schema> & Props;
10
+ inputProps?: InferZodInput<Schema> & Props;
4
11
  } : {
5
12
  inputProps: Props;
6
13
  } : {} extends Props ? {
7
- inputProps: z.input<Schema>;
14
+ inputProps: InferZodInput<Schema>;
8
15
  } : {
9
- inputProps: z.input<Schema> & Props;
16
+ inputProps: InferZodInput<Schema> & Props;
10
17
  };
18
+ export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/player"
4
4
  },
5
5
  "name": "@remotion/player",
6
- "version": "4.0.425",
6
+ "version": "4.0.427",
7
7
  "description": "React component for embedding a Remotion preview into your app",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "license": "SEE LICENSE IN LICENSE.md",
37
37
  "dependencies": {
38
- "remotion": "4.0.425"
38
+ "remotion": "4.0.427"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=16.8.0",
@@ -48,8 +48,8 @@
48
48
  "react": "19.2.3",
49
49
  "react-dom": "19.2.3",
50
50
  "webpack": "5.105.0",
51
- "zod": "3.22.3",
52
- "@remotion/eslint-config-internal": "4.0.425",
51
+ "zod": "4.3.6",
52
+ "@remotion/eslint-config-internal": "4.0.427",
53
53
  "eslint": "9.19.0",
54
54
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
55
55
  },