@remotion/player 3.1.7 → 3.1.8

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.
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.browserSupportsFullscreen = void 0;
4
+ exports.browserSupportsFullscreen = typeof document !== 'undefined' &&
5
+ (document.fullscreenEnabled || document.webkitFullscreenEnabled);
@@ -3,6 +3,10 @@ export declare type Size = {
3
3
  height: number;
4
4
  left: number;
5
5
  top: number;
6
+ windowSize: {
7
+ width: number;
8
+ height: number;
9
+ };
6
10
  };
7
11
  export declare const updateAllElementsSizes: () => void;
8
12
  export declare const useElementSize: (ref: React.RefObject<HTMLElement>, options: {
@@ -36,6 +36,10 @@ const useElementSize = (ref, options) => {
36
36
  height,
37
37
  left: newSize[0].x,
38
38
  top: newSize[0].y,
39
+ windowSize: {
40
+ height: window.innerHeight,
41
+ width: window.innerWidth,
42
+ },
39
43
  });
40
44
  });
41
45
  }, [options.shouldApplyCssTransforms]);
@@ -53,6 +57,10 @@ const useElementSize = (ref, options) => {
53
57
  height: rect[0].height,
54
58
  left: rect[0].x,
55
59
  top: rect[0].y,
60
+ windowSize: {
61
+ height: window.innerHeight,
62
+ width: window.innerWidth,
63
+ },
56
64
  });
57
65
  }, [ref]);
58
66
  (0, react_1.useEffect)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/player",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
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.1.7"
31
+ "remotion": "3.1.8"
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": "599379fef6043a7125d1979766f915580ec1cf77"
66
+ "gitHead": "57f34a02b0f830053f92af426a6b70b6824f887e"
67
67
  }