@remotion/three 4.0.0-preload.17 → 4.0.0-spawn.14
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/SuspenseLoader.js
CHANGED
|
@@ -14,6 +14,6 @@ const Unblocker = () => {
|
|
|
14
14
|
return null;
|
|
15
15
|
};
|
|
16
16
|
const SuspenseLoader = ({ children }) => {
|
|
17
|
-
return (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Unblocker, {}
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Unblocker, {}), children: children });
|
|
18
18
|
};
|
|
19
19
|
exports.SuspenseLoader = SuspenseLoader;
|
package/dist/ThreeCanvas.js
CHANGED
|
@@ -31,6 +31,6 @@ const ThreeCanvas = (props) => {
|
|
|
31
31
|
(0, remotion_1.continueRender)(waitForCreated);
|
|
32
32
|
onCreated === null || onCreated === void 0 ? void 0 : onCreated(state);
|
|
33
33
|
}, [onCreated, waitForCreated]);
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)(SuspenseLoader_1.SuspenseLoader, { children: (0, jsx_runtime_1.jsxs)(fiber_1.Canvas, { style: actualStyle, ...rest, onCreated: remotion_onCreated, children: [(0, jsx_runtime_1.jsx)(Scale, { width: width, height: height }
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(SuspenseLoader_1.SuspenseLoader, { children: (0, jsx_runtime_1.jsxs)(fiber_1.Canvas, { style: actualStyle, ...rest, onCreated: remotion_onCreated, children: [(0, jsx_runtime_1.jsx)(Scale, { width: width, height: height }), (0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionContextProvider, { contexts: contexts, children: children })] }) }));
|
|
35
35
|
};
|
|
36
36
|
exports.ThreeCanvas = ThreeCanvas;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Video } from 'remotion';
|
|
3
3
|
import { VideoTexture } from 'three';
|
|
4
|
-
declare global {
|
|
5
|
-
interface HTMLVideoElement {
|
|
6
|
-
requestVideoFrameCallback?: (cb: () => void) => void;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
4
|
export declare type UseVideoTextureOptions = React.ComponentProps<typeof Video>;
|
|
10
5
|
export declare const useVideoTexture: (videoRef: React.RefObject<HTMLVideoElement>) => VideoTexture | null;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/three",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-spawn.14+243a2f006",
|
|
4
4
|
"description": "Utility functions for using react-three-fiber with remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"remotion": "4.0.0-
|
|
23
|
+
"remotion": "4.0.0-spawn.14+243a2f006"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@react-three/fiber": ">=7.0.19",
|
|
@@ -35,13 +35,14 @@
|
|
|
35
35
|
"@types/react": "18.0.1",
|
|
36
36
|
"@types/react-reconciler": "^0.26.4",
|
|
37
37
|
"@types/three": "^0.134.0",
|
|
38
|
+
"@types/web": "0.0.48",
|
|
38
39
|
"eslint": "8.13.0",
|
|
39
40
|
"prettier": "^2.0.5",
|
|
40
41
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
41
42
|
"react": "18.0.0",
|
|
42
43
|
"react-dom": "18.0.0",
|
|
43
44
|
"three": "^0.134.0",
|
|
44
|
-
"typescript": "^4.
|
|
45
|
+
"typescript": "^4.7.0"
|
|
45
46
|
},
|
|
46
47
|
"keywords": [
|
|
47
48
|
"remotion",
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"access": "public"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "243a2f0067d75e193a6a45f491987be53208f3e0"
|
|
58
59
|
}
|