@remotion/three 4.0.136 → 4.0.138

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,9 +1,9 @@
1
1
  import { Canvas } from '@react-three/fiber';
2
2
  import React from 'react';
3
3
  export type ThreeCanvasProps = React.ComponentProps<typeof Canvas> & {
4
- width: number;
5
- height: number;
6
- children: React.ReactNode;
4
+ readonly width: number;
5
+ readonly height: number;
6
+ readonly children: React.ReactNode;
7
7
  };
8
8
  /**
9
9
  * @description A wrapper for React Three Fiber's <Canvas /> which synchronizes with Remotions useCurrentFrame().
@@ -7,7 +7,7 @@ const react_1 = require("react");
7
7
  const remotion_1 = require("remotion");
8
8
  const SuspenseLoader_1 = require("./SuspenseLoader");
9
9
  const validate_1 = require("./validate");
10
- const Scale = ({ width, height }) => {
10
+ const Scale = ({ width, height, }) => {
11
11
  const { set, setSize: threeSetSize } = (0, fiber_1.useThree)();
12
12
  const [setSize] = (0, react_1.useState)(() => threeSetSize);
13
13
  (0, react_1.useLayoutEffect)(() => {
@@ -1,3 +1,3 @@
1
1
  export { ThreeCanvas, ThreeCanvasProps } from './ThreeCanvas';
2
- export { useOffthreadVideoTexture, UseOffthreadVideoTextureOptions, } from './use-offthread-video-texture';
3
- export { useVideoTexture, UseVideoTextureOptions } from './use-video-texture';
2
+ export { UseOffthreadVideoTextureOptions, useOffthreadVideoTexture, } from './use-offthread-video-texture';
3
+ export { UseVideoTextureOptions, useVideoTexture } from './use-video-texture';
@@ -1,9 +1,9 @@
1
1
  import { Canvas } from '@react-three/fiber';
2
2
  import React from 'react';
3
3
  export type ThreeCanvasProps = React.ComponentProps<typeof Canvas> & {
4
- width: number;
5
- height: number;
6
- children: React.ReactNode;
4
+ readonly width: number;
5
+ readonly height: number;
6
+ readonly children: React.ReactNode;
7
7
  };
8
8
  /**
9
9
  * @description A wrapper for React Three Fiber's <Canvas /> which synchronizes with Remotions useCurrentFrame().
@@ -1,3 +1,3 @@
1
1
  export { ThreeCanvas, ThreeCanvasProps } from './ThreeCanvas';
2
- export { useOffthreadVideoTexture, UseOffthreadVideoTextureOptions, } from './use-offthread-video-texture';
3
- export { useVideoTexture, UseVideoTextureOptions } from './use-video-texture';
2
+ export { UseOffthreadVideoTextureOptions, useOffthreadVideoTexture, } from './use-offthread-video-texture';
3
+ export { UseVideoTextureOptions, useVideoTexture } from './use-video-texture';
@@ -23,7 +23,7 @@ const SuspenseLoader = ({ children }) => {
23
23
  /* eslint-disable prefer-destructuring */
24
24
  const validateDimension = NoReactInternals.validateDimension;
25
25
 
26
- const Scale = ({ width, height }) => {
26
+ const Scale = ({ width, height, }) => {
27
27
  const { set, setSize: threeSetSize } = useThree();
28
28
  const [setSize] = useState(() => threeSetSize);
29
29
  useLayoutEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/three",
3
- "version": "4.0.136",
3
+ "version": "4.0.138",
4
4
  "description": "Utility functions for using react-three-fiber with remotion",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -16,17 +16,17 @@
16
16
  "url": "https://github.com/remotion-dev/remotion/issues"
17
17
  },
18
18
  "dependencies": {
19
- "remotion": "4.0.136"
19
+ "remotion": "4.0.138"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@react-three/fiber": ">=8.0.0",
23
23
  "react": ">=16.8.0",
24
24
  "react-dom": ">=16.8.0",
25
25
  "three": ">=0.137.0",
26
- "remotion": "4.0.136"
26
+ "remotion": "4.0.138"
27
27
  },
28
28
  "devDependencies": {
29
- "@jonny/eslint-config": "3.0.276",
29
+ "@jonny/eslint-config": "3.0.281",
30
30
  "@react-three/fiber": "8.13.5",
31
31
  "@rollup/plugin-typescript": "^8.2.0",
32
32
  "@types/node": "18.14.6",
@@ -34,14 +34,14 @@
34
34
  "@types/react-reconciler": "^0.26.4",
35
35
  "@types/three": "0.157.2",
36
36
  "@types/web": "0.0.78",
37
- "eslint": "8.42.0",
38
- "prettier": "3.1.1",
37
+ "eslint": "8.56.0",
38
+ "prettier": "3.2.5",
39
39
  "prettier-plugin-organize-imports": "3.2.4",
40
40
  "react": "18.2.0",
41
41
  "react-dom": "18.2.0",
42
42
  "rollup": "^2.70.1",
43
43
  "three": "0.158.0",
44
- "remotion": "4.0.136"
44
+ "remotion": "4.0.138"
45
45
  },
46
46
  "keywords": [
47
47
  "remotion",