@remotion/three 4.0.423 → 4.0.425

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.
@@ -18,6 +18,6 @@ const Unblocker = () => {
18
18
  return null;
19
19
  };
20
20
  const SuspenseLoader = ({ children }) => {
21
- return (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Unblocker, {}), children: children });
21
+ return jsx_runtime_1.jsx(react_1.Suspense, { fallback: jsx_runtime_1.jsx(Unblocker, {}), children: children });
22
22
  };
23
23
  exports.SuspenseLoader = SuspenseLoader;
@@ -69,6 +69,8 @@ const ThreeCanvas = (props) => {
69
69
  frameDelayHandle.current = null;
70
70
  }
71
71
  }, [continueRender]);
72
- return ((0, jsx_runtime_1.jsx)(SuspenseLoader_1.SuspenseLoader, { children: (0, jsx_runtime_1.jsxs)(fiber_1.Canvas, { style: actualStyle, ...rest, frameloop: isRendering ? 'never' : (frameloop !== null && frameloop !== void 0 ? frameloop : 'always'), onCreated: remotion_onCreated, children: [(0, jsx_runtime_1.jsx)(Scale, { width: width, height: height }), (0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionContextProvider, { contexts: contexts, children: [isRendering && (0, jsx_runtime_1.jsx)(ManualFrameRenderer, { onRendered: handleRendered }), children] })] }) }));
72
+ return (jsx_runtime_1.jsx(SuspenseLoader_1.SuspenseLoader, { children: jsx_runtime_1.jsxs(fiber_1.Canvas, { style: actualStyle, ...rest, frameloop: isRendering ? 'never' : (frameloop !== null && frameloop !== void 0 ? frameloop : 'always'), onCreated: remotion_onCreated, children: [
73
+ jsx_runtime_1.jsx(Scale, { width: width, height: height }), jsx_runtime_1.jsxs(remotion_1.Internals.RemotionContextProvider, { contexts: contexts, children: [isRendering && jsx_runtime_1.jsx(ManualFrameRenderer, { onRendered: handleRendered }), children] })
74
+ ] }) }));
73
75
  };
74
76
  exports.ThreeCanvas = ThreeCanvas;
@@ -16,7 +16,7 @@ type UseOffthreadVideoTextureOptions = UseOffthreadVideoTextureOptionsType;
16
16
  * @deprecated useVideoTexture has been deprecated.
17
17
  * Use the approach documented at https://remotion.dev/docs/videos/as-threejs-texture instead.
18
18
  */
19
- declare const useVideoTexture: (videoRef: React.RefObject<HTMLVideoElement | null>) => import("three").VideoTexture | null;
19
+ declare const useVideoTexture: (videoRef: import("react").RefObject<HTMLVideoElement | null>) => import("three").VideoTexture | null;
20
20
  /**
21
21
  * @deprecated useVideoTexture has been deprecated.
22
22
  * Use the approach documented at https://remotion.dev/docs/videos/as-threejs-texture instead.
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useVideoTexture = exports.useOffthreadVideoTexture = exports.ThreeCanvas = void 0;
4
- var ThreeCanvas_1 = require("./ThreeCanvas");
4
+ const ThreeCanvas_1 = require("./ThreeCanvas");
5
5
  Object.defineProperty(exports, "ThreeCanvas", { enumerable: true, get: function () { return ThreeCanvas_1.ThreeCanvas; } });
6
6
  const use_offthread_video_texture_1 = require("./use-offthread-video-texture");
7
7
  const use_video_texture_1 = require("./use-video-texture");
@@ -12,7 +12,7 @@ export declare const useInnerVideoTexture: ({ playbackRate, src, transparent, to
12
12
  src: string;
13
13
  transparent: boolean;
14
14
  toneMapped: boolean;
15
- delayRenderRetries?: number;
16
- delayRenderTimeoutInMilliseconds?: number;
15
+ delayRenderRetries?: number | undefined;
16
+ delayRenderTimeoutInMilliseconds?: number | undefined;
17
17
  }) => Texture | null;
18
- export declare function useOffthreadVideoTexture({ src, playbackRate, transparent, toneMapped, delayRenderRetries, delayRenderTimeoutInMilliseconds, }: UseOffthreadVideoTextureOptions): Texture | null;
18
+ export declare function useOffthreadVideoTexture({ src, playbackRate, transparent, toneMapped, delayRenderRetries, delayRenderTimeoutInMilliseconds }: UseOffthreadVideoTextureOptions): Texture | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { Video } from 'remotion';
3
- import type { VideoTexture } from 'three/src/textures/VideoTexture';
3
+ import type { VideoTexture } from 'three';
4
4
  export type UseVideoTextureOptions = React.ComponentProps<typeof Video>;
5
5
  export declare const useVideoTexture: (videoRef: React.RefObject<HTMLVideoElement | null>) => VideoTexture | null;
package/package.json CHANGED
@@ -3,16 +3,16 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/three"
4
4
  },
5
5
  "name": "@remotion/three",
6
- "version": "4.0.423",
6
+ "version": "4.0.425",
7
7
  "description": "Include React Three Fiber components in a Remotion video",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
10
10
  "module": "dist/esm/index.mjs",
11
11
  "sideEffects": false,
12
12
  "scripts": {
13
- "formatting": "prettier --experimental-cli src --check",
13
+ "formatting": "prettier src --check",
14
14
  "lint": "eslint src",
15
- "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
15
+ "make": "tsgo -d && bun --env-file=../.env.bundle bundle.ts"
16
16
  },
17
17
  "author": "Björn Zeutzheim",
18
18
  "contributors": [],
@@ -21,14 +21,14 @@
21
21
  "url": "https://github.com/remotion-dev/remotion/issues"
22
22
  },
23
23
  "dependencies": {
24
- "remotion": "4.0.423"
24
+ "remotion": "4.0.425"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@react-three/fiber": ">=8.0.0",
28
28
  "react": ">=16.8.0",
29
29
  "react-dom": ">=16.8.0",
30
30
  "three": ">=0.137.0",
31
- "remotion": "4.0.423"
31
+ "remotion": "4.0.425"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@react-three/fiber": "9.2.0",
@@ -37,10 +37,11 @@
37
37
  "@types/web": "0.0.166",
38
38
  "react": "19.2.3",
39
39
  "react-dom": "19.2.3",
40
- "remotion": "4.0.423",
40
+ "remotion": "4.0.425",
41
41
  "three": "0.178.0",
42
- "@remotion/eslint-config-internal": "4.0.423",
43
- "eslint": "9.19.0"
42
+ "@remotion/eslint-config-internal": "4.0.425",
43
+ "eslint": "9.19.0",
44
+ "@typescript/native-preview": "7.0.0-dev.20260217.1"
44
45
  },
45
46
  "keywords": [
46
47
  "remotion",