@remotion/player 4.0.178 → 4.0.179
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/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/Player.d.ts +40 -43
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/Player.js +4 -7
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/PlayerControls.d.ts +24 -24
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/PlayerControls.js +3 -3
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/PlayerUI.d.ts +31 -31
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/PlayerUI.js +2 -3
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/SharedPlayerContext.d.ts +9 -9
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/index.d.ts +3 -4
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/test/test-utils.d.ts +1 -1
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/test/test-utils.js +1 -1
- package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/tsconfig-esm.tsbuildinfo +1 -1
- package/dist/esm/BufferingIndicator.d.ts +5 -0
- package/dist/esm/DefaultPlayPauseButton.d.ts +5 -0
- package/dist/esm/EmitterProvider.d.ts +5 -0
- package/dist/esm/MediaVolumeSlider.d.ts +5 -0
- package/dist/esm/PlaybackrateControl.d.ts +8 -0
- package/dist/esm/Player.d.ts +56 -0
- package/dist/esm/PlayerControls.d.ts +47 -0
- package/dist/esm/PlayerSeekBar.d.ts +8 -0
- package/dist/esm/PlayerUI.d.ts +46 -0
- package/dist/esm/SharedPlayerContext.d.ts +15 -0
- package/dist/esm/Thumbnail.d.ts +23 -0
- package/dist/esm/ThumbnailUI.d.ts +11 -0
- package/dist/esm/calculate-next-frame.d.ts +14 -0
- package/dist/esm/calculate-scale.d.ts +50 -0
- package/dist/esm/emitter-context.d.ts +4 -0
- package/dist/esm/error-boundary.d.ts +19 -0
- package/dist/esm/event-emitter.d.ts +91 -0
- package/dist/esm/format-time.d.ts +1 -0
- package/dist/esm/icons.d.ts +10 -0
- package/dist/esm/index.d.ts +64 -0
- package/dist/esm/is-backgrounded.d.ts +2 -0
- package/dist/esm/player-css-classname.d.ts +1 -0
- package/dist/esm/player-methods.d.ts +25 -0
- package/dist/esm/test/index.test.d.ts +1 -0
- package/dist/esm/test/test-utils.d.ts +6 -0
- package/dist/esm/test/validate-in-out-frames.test.d.ts +1 -0
- package/dist/esm/test/validate-prop.test.d.ts +1 -0
- package/dist/esm/use-buffer-state-emitter.d.ts +2 -0
- package/dist/esm/use-hover-state.d.ts +1 -0
- package/dist/esm/use-playback.d.ts +8 -0
- package/dist/esm/use-player.d.ts +24 -0
- package/dist/esm/use-thumbnail.d.ts +6 -0
- package/dist/esm/use-video-controls-resize.d.ts +11 -0
- package/dist/esm/utils/calculate-player-size.d.ts +9 -0
- package/dist/esm/utils/cancellable-promise.d.ts +5 -0
- package/dist/esm/utils/delay.d.ts +1 -0
- package/dist/esm/utils/is-node.d.ts +1 -0
- package/dist/esm/utils/props-if-has-props.d.ts +10 -0
- package/dist/esm/utils/use-cancellable-promises.d.ts +7 -0
- package/dist/esm/utils/use-click-prevention-on-double-click.d.ts +3 -0
- package/dist/esm/utils/use-component-visible.d.ts +6 -0
- package/dist/esm/utils/use-element-size.d.ts +16 -0
- package/dist/esm/utils/validate-in-out-frame.d.ts +6 -0
- package/dist/esm/utils/validate-initial-frame.d.ts +4 -0
- package/dist/esm/utils/validate-playbackrate.d.ts +1 -0
- package/dist/esm/validate.d.ts +5 -0
- package/dist/esm/volume-persistance.d.ts +2 -0
- package/dist/tsconfig-esm.tsbuildinfo +1 -0
- package/package.json +2 -2
|
@@ -2,58 +2,55 @@ import type { ComponentType } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { CompProps } from 'remotion';
|
|
4
4
|
import type { AnyZodObject } from 'zod';
|
|
5
|
+
import type { PlayerRef } from './player-methods.js';
|
|
5
6
|
import type { RenderFullscreenButton, RenderPlayPauseButton } from './PlayerControls.js';
|
|
6
7
|
import type { PosterFillMode, RenderLoading, RenderPoster } from './PlayerUI.js';
|
|
7
|
-
import type { PlayerRef } from './player-methods.js';
|
|
8
8
|
import type { PropsIfHasProps } from './utils/props-if-has-props.js';
|
|
9
9
|
export type ErrorFallback = (info: {
|
|
10
10
|
error: Error;
|
|
11
11
|
}) => React.ReactNode;
|
|
12
12
|
export type PlayerProps<Schema extends AnyZodObject, Props> = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
13
|
+
durationInFrames: number;
|
|
14
|
+
compositionWidth: number;
|
|
15
|
+
compositionHeight: number;
|
|
16
|
+
fps: number;
|
|
17
|
+
showVolumeControls?: boolean;
|
|
18
|
+
controls?: boolean;
|
|
19
|
+
errorFallback?: ErrorFallback;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
loop?: boolean;
|
|
22
|
+
autoPlay?: boolean;
|
|
23
|
+
allowFullscreen?: boolean;
|
|
24
|
+
clickToPlay?: boolean;
|
|
25
|
+
doubleClickToFullscreen?: boolean;
|
|
26
|
+
spaceKeyToPlayOrPause?: boolean;
|
|
27
|
+
numberOfSharedAudioTags?: number;
|
|
28
|
+
playbackRate?: number;
|
|
29
|
+
renderLoading?: RenderLoading;
|
|
30
|
+
moveToBeginningWhenEnded?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
initialFrame?: number;
|
|
33
|
+
renderPoster?: RenderPoster;
|
|
34
|
+
showPosterWhenPaused?: boolean;
|
|
35
|
+
showPosterWhenEnded?: boolean;
|
|
36
|
+
showPosterWhenUnplayed?: boolean;
|
|
37
|
+
showPosterWhenBuffering?: boolean;
|
|
38
|
+
inFrame?: number | null;
|
|
39
|
+
outFrame?: number | null;
|
|
40
|
+
initiallyShowControls?: number | boolean;
|
|
41
|
+
renderPlayPauseButton?: RenderPlayPauseButton;
|
|
42
|
+
renderFullscreenButton?: RenderFullscreenButton;
|
|
43
|
+
alwaysShowControls?: boolean;
|
|
44
|
+
schema?: Schema;
|
|
45
|
+
initiallyMuted?: boolean;
|
|
46
|
+
showPlaybackRateControl?: boolean | number[];
|
|
47
|
+
posterFillMode?: PosterFillMode;
|
|
48
|
+
bufferStateDelayInMilliseconds?: number;
|
|
49
|
+
hideControlsWhenPointerDoesntMove?: boolean | number;
|
|
50
50
|
} & CompProps<Props> & PropsIfHasProps<Schema, Props>;
|
|
51
51
|
export declare const componentOrNullIfLazy: <Props>(props: CompProps<Props>) => ComponentType<Props> | null;
|
|
52
52
|
/**
|
|
53
|
-
* @description
|
|
54
|
-
* @see [Documentation](https://remotion.dev/docs/player/
|
|
55
|
-
* @param {PlayerProps<Schema, Props>} props The properties for configuring the player, including video specifics and UI controls.
|
|
56
|
-
* @param {MutableRefObject<PlayerRef>} ref Reference to the player for controlling playback, volume, and other aspects.
|
|
57
|
-
* @returns {JSX.Element} The rendered video player component.
|
|
53
|
+
* @description A component which can be rendered in a regular React App (for example: Vite, Next.js) to display a Remotion video.
|
|
54
|
+
* @see [Documentation](https://www.remotion.dev/docs/player/player)
|
|
58
55
|
*/
|
|
59
56
|
export declare const Player: <Schema extends AnyZodObject, Props>(props: PlayerProps<Schema, Props> & React.RefAttributes<PlayerRef>) => React.ReactElement | null;
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, } from 'react';
|
|
3
3
|
import { Composition, Internals } from 'remotion';
|
|
4
4
|
import { PlayerEmitterProvider } from './EmitterProvider.js';
|
|
5
|
+
import { PLAYER_CSS_CLASSNAME } from './player-css-classname.js';
|
|
5
6
|
import PlayerUI from './PlayerUI.js';
|
|
6
7
|
import { PLAYER_COMP_ID, SharedPlayerContexts } from './SharedPlayerContext.js';
|
|
7
|
-
import { PLAYER_CSS_CLASSNAME } from './player-css-classname.js';
|
|
8
8
|
import { validateInOutFrames } from './utils/validate-in-out-frame.js';
|
|
9
9
|
import { validateInitialFrame } from './utils/validate-initial-frame.js';
|
|
10
10
|
import { validatePlaybackRate } from './utils/validate-playbackrate.js';
|
|
@@ -127,7 +127,7 @@ const PlayerFn = ({ durationInFrames, compositionHeight, compositionWidth, fps,
|
|
|
127
127
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
128
128
|
useLayoutEffect(() => {
|
|
129
129
|
// Inject CSS only on client, and also only after the Player has hydrated
|
|
130
|
-
Internals.CSSUtils.injectCSS(Internals.CSSUtils.
|
|
130
|
+
Internals.CSSUtils.injectCSS(Internals.CSSUtils.makeDefaultCSS(`.${PLAYER_CSS_CLASSNAME}`, '#fff'));
|
|
131
131
|
}, []);
|
|
132
132
|
}
|
|
133
133
|
const actualInputProps = useMemo(() => inputProps !== null && inputProps !== void 0 ? inputProps : {}, [inputProps]);
|
|
@@ -137,10 +137,7 @@ const PlayerFn = ({ durationInFrames, compositionHeight, compositionWidth, fps,
|
|
|
137
137
|
};
|
|
138
138
|
const forward = forwardRef;
|
|
139
139
|
/**
|
|
140
|
-
* @description
|
|
141
|
-
* @see [Documentation](https://remotion.dev/docs/player/
|
|
142
|
-
* @param {PlayerProps<Schema, Props>} props The properties for configuring the player, including video specifics and UI controls.
|
|
143
|
-
* @param {MutableRefObject<PlayerRef>} ref Reference to the player for controlling playback, volume, and other aspects.
|
|
144
|
-
* @returns {JSX.Element} The rendered video player component.
|
|
140
|
+
* @description A component which can be rendered in a regular React App (for example: Vite, Next.js) to display a Remotion video.
|
|
141
|
+
* @see [Documentation](https://www.remotion.dev/docs/player/player)
|
|
145
142
|
*/
|
|
146
143
|
export const Player = forward(PlayerFn);
|
package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/PlayerControls.d.ts
CHANGED
|
@@ -20,28 +20,28 @@ declare global {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
export declare const Controls: React.FC<{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
23
|
+
fps: number;
|
|
24
|
+
durationInFrames: number;
|
|
25
|
+
showVolumeControls: boolean;
|
|
26
|
+
player: ReturnType<typeof usePlayer>;
|
|
27
|
+
onFullscreenButtonClick: MouseEventHandler<HTMLButtonElement>;
|
|
28
|
+
isFullscreen: boolean;
|
|
29
|
+
allowFullscreen: boolean;
|
|
30
|
+
onExitFullscreenButtonClick: MouseEventHandler<HTMLButtonElement>;
|
|
31
|
+
spaceKeyToPlayOrPause: boolean;
|
|
32
|
+
onSeekEnd: () => void;
|
|
33
|
+
onSeekStart: () => void;
|
|
34
|
+
inFrame: number | null;
|
|
35
|
+
outFrame: number | null;
|
|
36
|
+
initiallyShowControls: number | boolean;
|
|
37
|
+
canvasSize: Size | null;
|
|
38
|
+
renderPlayPauseButton: RenderPlayPauseButton | null;
|
|
39
|
+
renderFullscreenButton: RenderFullscreenButton | null;
|
|
40
|
+
alwaysShowControls: boolean;
|
|
41
|
+
showPlaybackRateControl: boolean | number[];
|
|
42
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
43
|
+
buffering: boolean;
|
|
44
|
+
hideControlsWhenPointerDoesntMove: boolean | number;
|
|
45
|
+
onPointerUp: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
46
|
+
onDoubleClick: MouseEventHandler<HTMLDivElement> | undefined;
|
|
47
47
|
}>;
|
package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/PlayerControls.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { Internals } from 'remotion';
|
|
4
4
|
import { DefaultPlayPauseButton } from './DefaultPlayPauseButton.js';
|
|
5
|
+
import { formatTime } from './format-time.js';
|
|
6
|
+
import { FullscreenIcon } from './icons.js';
|
|
5
7
|
import { MediaVolumeSlider } from './MediaVolumeSlider.js';
|
|
6
8
|
import { PlaybackrateControl, playerButtonStyle } from './PlaybackrateControl.js';
|
|
7
9
|
import { PlayerSeekBar } from './PlayerSeekBar.js';
|
|
8
|
-
import { formatTime } from './format-time.js';
|
|
9
|
-
import { FullscreenIcon } from './icons.js';
|
|
10
10
|
import { useHoverState } from './use-hover-state.js';
|
|
11
|
-
import {
|
|
11
|
+
import { useVideoControlsResize, X_PADDING, } from './use-video-controls-resize.js';
|
|
12
12
|
const gradientSteps = [
|
|
13
13
|
0, 0.013, 0.049, 0.104, 0.175, 0.259, 0.352, 0.45, 0.55, 0.648, 0.741, 0.825,
|
|
14
14
|
0.896, 0.951, 0.987,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { RenderFullscreenButton, RenderPlayPauseButton } from './PlayerControls.js';
|
|
3
2
|
import type { PlayerRef } from './player-methods.js';
|
|
3
|
+
import type { RenderFullscreenButton, RenderPlayPauseButton } from './PlayerControls.js';
|
|
4
4
|
export type ErrorFallback = (info: {
|
|
5
5
|
error: Error;
|
|
6
6
|
}) => React.ReactNode;
|
|
@@ -12,35 +12,35 @@ export type RenderLoading = (canvas: {
|
|
|
12
12
|
export type RenderPoster = RenderLoading;
|
|
13
13
|
export type PosterFillMode = 'player-size' | 'composition-size';
|
|
14
14
|
declare const _default: React.ForwardRefExoticComponent<{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
15
|
+
controls: boolean;
|
|
16
|
+
loop: boolean;
|
|
17
|
+
autoPlay: boolean;
|
|
18
|
+
allowFullscreen: boolean;
|
|
19
|
+
inputProps: Record<string, unknown>;
|
|
20
|
+
showVolumeControls: boolean;
|
|
21
|
+
style?: React.CSSProperties | undefined;
|
|
22
|
+
clickToPlay: boolean;
|
|
23
|
+
doubleClickToFullscreen: boolean;
|
|
24
|
+
spaceKeyToPlayOrPause: boolean;
|
|
25
|
+
errorFallback: ErrorFallback;
|
|
26
|
+
playbackRate: number;
|
|
27
|
+
renderLoading: RenderLoading | undefined;
|
|
28
|
+
renderPoster: RenderLoading | undefined;
|
|
29
|
+
className: string | undefined;
|
|
30
|
+
moveToBeginningWhenEnded: boolean;
|
|
31
|
+
showPosterWhenPaused: boolean;
|
|
32
|
+
showPosterWhenEnded: boolean;
|
|
33
|
+
showPosterWhenUnplayed: boolean;
|
|
34
|
+
showPosterWhenBuffering: boolean;
|
|
35
|
+
inFrame: number | null;
|
|
36
|
+
outFrame: number | null;
|
|
37
|
+
initiallyShowControls: number | boolean;
|
|
38
|
+
renderPlayPauseButton: RenderPlayPauseButton | null;
|
|
39
|
+
renderFullscreen: RenderFullscreenButton | null;
|
|
40
|
+
alwaysShowControls: boolean;
|
|
41
|
+
showPlaybackRateControl: boolean | number[];
|
|
42
|
+
posterFillMode: PosterFillMode;
|
|
43
|
+
bufferStateDelayInMilliseconds: number;
|
|
44
|
+
hideControlsWhenPointerDoesntMove: number | boolean;
|
|
45
45
|
} & React.RefAttributes<PlayerRef>>;
|
|
46
46
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { forwardRef, Suspense, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState, } from 'react';
|
|
3
3
|
import { Internals } from 'remotion';
|
|
4
|
-
import { Controls } from './PlayerControls.js';
|
|
5
4
|
import { calculateCanvasTransformation, calculateContainerStyle, calculateOuter, calculateOuterStyle, } from './calculate-scale.js';
|
|
6
5
|
import { ErrorBoundary } from './error-boundary.js';
|
|
7
6
|
import { PLAYER_CSS_CLASSNAME } from './player-css-classname.js';
|
|
7
|
+
import { Controls } from './PlayerControls.js';
|
|
8
8
|
import { usePlayback } from './use-playback.js';
|
|
9
9
|
import { usePlayer } from './use-player.js';
|
|
10
10
|
import { IS_NODE } from './utils/is-node.js';
|
|
@@ -176,7 +176,6 @@ const PlayerUI = ({ controls, style, loop, autoPlay, allowFullscreen, inputProps
|
|
|
176
176
|
};
|
|
177
177
|
const onResume = () => {
|
|
178
178
|
requestAnimationFrame(() => {
|
|
179
|
-
stopped = true;
|
|
180
179
|
setShowBufferState(false);
|
|
181
180
|
if (timeout) {
|
|
182
181
|
clearTimeout(timeout);
|
|
@@ -3,13 +3,13 @@ import React from 'react';
|
|
|
3
3
|
import type { TimelineContextValue } from 'remotion';
|
|
4
4
|
export declare const PLAYER_COMP_ID = "player-comp";
|
|
5
5
|
export declare const SharedPlayerContexts: React.FC<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
timelineContext: TimelineContextValue;
|
|
8
|
+
fps: number;
|
|
9
|
+
compositionWidth: number;
|
|
10
|
+
compositionHeight: number;
|
|
11
|
+
durationInFrames: number;
|
|
12
|
+
component: LazyExoticComponent<ComponentType<unknown>>;
|
|
13
|
+
numberOfSharedAudioTags: number;
|
|
14
|
+
initiallyMuted: boolean;
|
|
15
15
|
}>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CallbackListener, PlayerEventTypes } from './event-emitter.js';
|
|
3
3
|
import { PlayerEmitter } from './event-emitter.js';
|
|
4
|
-
export
|
|
5
|
-
export { Player } from './Player.js';
|
|
6
|
-
export type { PlayerProps } from './Player.js';
|
|
4
|
+
export { PlayerMethods, PlayerRef, ThumbnailMethods, ThumbnailRef, } from './player-methods.js';
|
|
5
|
+
export { Player, PlayerProps } from './Player.js';
|
|
7
6
|
export type { RenderFullscreenButton, RenderPlayPauseButton, } from './PlayerControls.js';
|
|
8
7
|
export type { ErrorFallback, RenderLoading, RenderPoster } from './PlayerUI.js';
|
|
9
8
|
export { Thumbnail } from './Thumbnail.js';
|
|
10
|
-
export
|
|
9
|
+
export { Size } from './utils/use-element-size.js';
|
|
11
10
|
export type { CallbackListener, PlayerEventTypes as EventTypes };
|
|
12
11
|
export declare const PlayerInternals: {
|
|
13
12
|
PlayerEventEmitterContext: import("react").Context<PlayerEmitter | undefined>;
|
package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/test/test-utils.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import type { FC, ReactElement } from 'react';
|
|
|
3
3
|
declare const HelloWorld: FC;
|
|
4
4
|
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, 'queries'>) => import("@testing-library/react").RenderResult<typeof queries, HTMLElement, HTMLElement>;
|
|
5
5
|
export * from '@testing-library/react';
|
|
6
|
-
export {
|
|
6
|
+
export { customRender as render, HelloWorld };
|
package/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/esm/test/test-utils.js
CHANGED
|
@@ -11,4 +11,4 @@ const AllTheProviders = ({ children }) => {
|
|
|
11
11
|
};
|
|
12
12
|
const customRender = (ui, options) => render(ui, { wrapper: AllTheProviders, ...options });
|
|
13
13
|
export * from '@testing-library/react';
|
|
14
|
-
export {
|
|
14
|
+
export { customRender as render, HelloWorld };
|