@remotion/player 3.1.11 → 3.2.2
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/error-boundary.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class ErrorBoundary extends React.Component<{
|
|
|
15
15
|
hasError: Error;
|
|
16
16
|
};
|
|
17
17
|
componentDidCatch(error: Error): void;
|
|
18
|
-
render(): string | number | boolean |
|
|
18
|
+
render(): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
|
|
19
19
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { CallbackListener, EventTypes } from './event-emitter';
|
|
3
2
|
import { PlayerEmitter } from './event-emitter';
|
|
4
3
|
export { ErrorFallback, Player } from './Player';
|
|
@@ -14,6 +13,7 @@ export declare const PlayerInternals: {
|
|
|
14
13
|
frameBack: (frames: number) => void;
|
|
15
14
|
frameForward: (frames: number) => void;
|
|
16
15
|
isLastFrame: boolean;
|
|
16
|
+
isFirstFrame: boolean;
|
|
17
17
|
emitter: PlayerEmitter;
|
|
18
18
|
playing: boolean;
|
|
19
19
|
play: (e?: import("react").SyntheticEvent<Element, Event> | undefined) => void;
|
package/dist/use-player.d.ts
CHANGED
package/dist/use-player.js
CHANGED
|
@@ -20,6 +20,7 @@ const usePlayer = () => {
|
|
|
20
20
|
const emitter = (0, react_1.useContext)(emitter_context_1.PlayerEventEmitterContext);
|
|
21
21
|
const lastFrame = ((_a = config === null || config === void 0 ? void 0 : config.durationInFrames) !== null && _a !== void 0 ? _a : 1) - 1;
|
|
22
22
|
const isLastFrame = frame === lastFrame;
|
|
23
|
+
const isFirstFrame = frame === 0;
|
|
23
24
|
if (!emitter) {
|
|
24
25
|
throw new TypeError('Expected Player event emitter context');
|
|
25
26
|
}
|
|
@@ -104,21 +105,23 @@ const usePlayer = () => {
|
|
|
104
105
|
play,
|
|
105
106
|
pause,
|
|
106
107
|
seek,
|
|
108
|
+
isFirstFrame,
|
|
107
109
|
getCurrentFrame: () => frameRef.current,
|
|
108
110
|
isPlaying: () => imperativePlaying.current,
|
|
109
111
|
pauseAndReturnToPlayStart,
|
|
110
112
|
};
|
|
111
113
|
}, [
|
|
112
|
-
emitter,
|
|
113
114
|
frameBack,
|
|
114
115
|
frameForward,
|
|
115
|
-
imperativePlaying,
|
|
116
116
|
isLastFrame,
|
|
117
|
-
|
|
118
|
-
play,
|
|
117
|
+
emitter,
|
|
119
118
|
playing,
|
|
120
|
-
|
|
119
|
+
play,
|
|
120
|
+
pause,
|
|
121
121
|
seek,
|
|
122
|
+
isFirstFrame,
|
|
123
|
+
pauseAndReturnToPlayStart,
|
|
124
|
+
imperativePlaying,
|
|
122
125
|
]);
|
|
123
126
|
return returnValue;
|
|
124
127
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/player",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Remotion Player",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"remotion": "3.
|
|
31
|
+
"remotion": "3.2.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8e5f2d05adf7ddd3824ea734fa888b4b4761f364"
|
|
67
67
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface Document {
|
|
3
|
-
webkitFullscreenEnabled?: boolean;
|
|
4
|
-
webkitFullscreenElement?: Element;
|
|
5
|
-
webkitExitFullscreen?: Document['exitFullscreen'];
|
|
6
|
-
}
|
|
7
|
-
interface HTMLDivElement {
|
|
8
|
-
webkitRequestFullScreen: HTMLDivElement['requestFullscreen'];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare const browserSupportsFullscreen: boolean | undefined;
|