@remotion/player 3.3.24 → 3.3.26

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/Player.d.ts CHANGED
@@ -40,7 +40,4 @@ export declare type PlayerProps<T> = {
40
40
  renderFullscreenButton?: RenderFullscreenButton;
41
41
  } & PropsIfHasProps<T> & CompProps<T>;
42
42
  export declare const componentOrNullIfLazy: <T>(props: CompProps<T>) => ComponentType<T> | null;
43
- declare module 'react' {
44
- function forwardRef<T, P = {}>(render: (props: P, ref: React.MutableRefObject<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
45
- }
46
- export declare const Player: <T>(props: PlayerProps<T> & React.RefAttributes<PlayerRef>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
43
+ export declare const Player: <T>(props: PlayerProps<T> & React.RefAttributes<PlayerRef>) => React.ReactElement | null;
package/dist/Player.js CHANGED
@@ -137,4 +137,5 @@ const PlayerFn = ({ durationInFrames, compositionHeight, compositionWidth, fps,
137
137
  }
138
138
  return ((0, jsx_runtime_1.jsx)(SharedPlayerContext_1.SharedPlayerContexts, { timelineContext: timelineContextValue, component: component, compositionHeight: compositionHeight, compositionWidth: compositionWidth, durationInFrames: durationInFrames, fps: fps, inputProps: inputProps, numberOfSharedAudioTags: numberOfSharedAudioTags, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.Timeline.SetTimelineContext.Provider, { value: setTimelineContextValue, children: (0, jsx_runtime_1.jsx)(emitter_context_1.PlayerEventEmitterContext.Provider, { value: emitter, children: (0, jsx_runtime_1.jsx)(PlayerUI_1.default, { ref: rootRef, renderLoading: renderLoading, autoPlay: Boolean(autoPlay), loop: Boolean(loop), controls: Boolean(controls), errorFallback: errorFallback, style: style, inputProps: passedInputProps, allowFullscreen: Boolean(allowFullscreen), moveToBeginningWhenEnded: Boolean(moveToBeginningWhenEnded), clickToPlay: typeof clickToPlay === 'boolean' ? clickToPlay : Boolean(controls), showVolumeControls: Boolean(showVolumeControls), doubleClickToFullscreen: Boolean(doubleClickToFullscreen), spaceKeyToPlayOrPause: Boolean(spaceKeyToPlayOrPause), playbackRate: playbackRate, className: className !== null && className !== void 0 ? className : undefined, showPosterWhenUnplayed: Boolean(showPosterWhenUnplayed), showPosterWhenEnded: Boolean(showPosterWhenEnded), showPosterWhenPaused: Boolean(showPosterWhenPaused), renderPoster: renderPoster, inFrame: inFrame !== null && inFrame !== void 0 ? inFrame : null, outFrame: outFrame !== null && outFrame !== void 0 ? outFrame : null, initiallyShowControls: initiallyShowControls !== null && initiallyShowControls !== void 0 ? initiallyShowControls : true, renderFullscreen: renderFullscreenButton !== null && renderFullscreenButton !== void 0 ? renderFullscreenButton : null, renderPlayPauseButton: renderPlayPauseButton !== null && renderPlayPauseButton !== void 0 ? renderPlayPauseButton : null }) }) }) }));
139
139
  };
140
- exports.Player = (0, react_1.forwardRef)(PlayerFn);
140
+ const forward = react_1.forwardRef;
141
+ exports.Player = forward(PlayerFn);
@@ -9,7 +9,7 @@ export declare type RenderLoading = (canvas: {
9
9
  width: number;
10
10
  }) => React.ReactNode;
11
11
  export declare type RenderPoster = RenderLoading;
12
- declare const _default: (props: {
12
+ declare const _default: React.ForwardRefExoticComponent<{
13
13
  controls: boolean;
14
14
  loop: boolean;
15
15
  autoPlay: boolean;
@@ -34,5 +34,5 @@ declare const _default: (props: {
34
34
  initiallyShowControls: number | boolean;
35
35
  renderPlayPauseButton: RenderPlayPauseButton | null;
36
36
  renderFullscreen: RenderFullscreenButton | null;
37
- } & React.RefAttributes<PlayerRef | null>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
37
+ } & React.RefAttributes<PlayerRef>>;
38
38
  export default _default;
@@ -16,8 +16,5 @@ declare type ThumbnailProps<T> = PropsIfHasProps<T> & CompProps<T> & {
16
16
  className?: string;
17
17
  };
18
18
  export declare const ThumbnailFn: <T>({ frameToDisplay, style, inputProps, compositionHeight, compositionWidth, durationInFrames, fps, className, errorFallback, renderLoading, ...componentProps }: ThumbnailProps<T>, ref: MutableRefObject<ThumbnailMethods>) => JSX.Element;
19
- declare module 'react' {
20
- function forwardRef<T, P = {}>(render: (props: P, ref: React.MutableRefObject<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
21
- }
22
19
  export declare const Thumbnail: <T>(props: ThumbnailProps<T> & import("react").RefAttributes<ThumbnailMethods>) => React.ReactElement | null;
23
20
  export {};
package/dist/Thumbnail.js CHANGED
@@ -38,4 +38,5 @@ const ThumbnailFn = ({ frameToDisplay, style, inputProps, compositionHeight, com
38
38
  return ((0, jsx_runtime_1.jsx)(SharedPlayerContext_1.SharedPlayerContexts, { timelineContext: timelineState, component: Component, compositionHeight: compositionHeight, compositionWidth: compositionWidth, durationInFrames: durationInFrames, fps: fps, inputProps: inputProps, numberOfSharedAudioTags: 0, children: (0, jsx_runtime_1.jsx)(emitter_context_1.ThumbnailEmitterContext.Provider, { value: emitter, children: (0, jsx_runtime_1.jsx)(ThumbnailUI_1.default, { className: className, errorFallback: errorFallback, inputProps: passedInputProps, renderLoading: renderLoading, style: style }) }) }));
39
39
  };
40
40
  exports.ThumbnailFn = ThumbnailFn;
41
- exports.Thumbnail = (0, react_1.forwardRef)(exports.ThumbnailFn);
41
+ const forward = react_1.forwardRef;
42
+ exports.Thumbnail = forward(exports.ThumbnailFn);
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { ThumbnailMethods } from './player-methods';
3
3
  import type { ErrorFallback, RenderLoading } from './PlayerUI';
4
- declare const _default: (props: {
4
+ declare const _default: React.ForwardRefExoticComponent<{
5
5
  inputProps: unknown;
6
6
  style?: React.CSSProperties | undefined;
7
7
  errorFallback: ErrorFallback;
8
8
  renderLoading: RenderLoading | undefined;
9
9
  className: string | undefined;
10
- } & React.RefAttributes<ThumbnailMethods | null>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
10
+ } & React.RefAttributes<ThumbnailMethods>>;
11
11
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/player",
3
- "version": "3.3.24",
3
+ "version": "3.3.26",
4
4
  "description": "Remotion Player",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "license": "SEE LICENSE IN LICENSE.md",
29
29
  "dependencies": {
30
- "remotion": "3.3.24"
30
+ "remotion": "3.3.26"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
@@ -37,8 +37,8 @@
37
37
  "@jonny/eslint-config": "3.0.266",
38
38
  "@testing-library/react": "13.1.1",
39
39
  "@types/node": "^14.14.14",
40
- "@types/react": "18.0.23",
41
- "@types/react-dom": "18.0.0",
40
+ "@types/react": "18.0.26",
41
+ "@types/react-dom": "18.0.10",
42
42
  "@vitejs/plugin-react": "^2.0.0",
43
43
  "csstype": "^3.0.11",
44
44
  "eslint": "8.25.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "9f8cc6c51864f3e780dabc03e9570409fad1d0ef"
64
+ "gitHead": "8efe8771f7c2b1d22bd50e8c81cc37ae054dfae9"
65
65
  }