@remotion/three 3.0.0-lambda.41 → 3.0.0-lambda.419
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/.turbo/turbo-build.log +5 -0
- package/LICENSE.md +2 -2
- package/dist/SuspenseLoader.d.ts +0 -0
- package/dist/SuspenseLoader.d.ts.map +1 -1
- package/dist/SuspenseLoader.js +3 -3
- package/dist/SuspenseLoader.js.map +1 -1
- package/dist/ThreeCanvas.d.ts +0 -0
- package/dist/ThreeCanvas.d.ts.map +1 -1
- package/dist/ThreeCanvas.js +7 -2
- package/dist/ThreeCanvas.js.map +1 -1
- package/dist/ThreeContext.d.ts +0 -0
- package/dist/ThreeContext.d.ts.map +0 -0
- package/dist/ThreeContext.js +0 -0
- package/dist/ThreeContext.js.map +0 -0
- package/dist/ThreeVideo.d.ts +0 -0
- package/dist/ThreeVideo.d.ts.map +0 -0
- package/dist/ThreeVideo.js +0 -0
- package/dist/ThreeVideo.js.map +0 -0
- package/dist/context-bridge.d.ts +0 -0
- package/dist/context-bridge.d.ts.map +0 -0
- package/dist/context-bridge.js +0 -0
- package/dist/context-bridge.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/use-video-texture.d.ts +0 -0
- package/dist/use-video-texture.d.ts.map +0 -0
- package/dist/use-video-texture.js +0 -0
- package/dist/use-video-texture.js.map +0 -0
- package/dist/useVideoTexture.d.ts +0 -0
- package/dist/useVideoTexture.d.ts.map +0 -0
- package/dist/useVideoTexture.js +0 -0
- package/dist/useVideoTexture.js.map +0 -0
- package/dist/utils/TexturedShaderMaterial.d.ts +0 -0
- package/dist/utils/TexturedShaderMaterial.d.ts.map +0 -0
- package/dist/utils/TexturedShaderMaterial.js +0 -0
- package/dist/utils/TexturedShaderMaterial.js.map +0 -0
- package/package.json +25 -11
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
[32m@remotion/three:build: [0mcache hit, replaying output [2mea3eb8b674514264[0m
|
|
2
|
+
[32m@remotion/three:build: [0m
|
|
3
|
+
[32m@remotion/three:build: [0m> @remotion/three@2.6.11 build /Users/jonathanburger/remotion/packages/three
|
|
4
|
+
[32m@remotion/three:build: [0m> tsc -d
|
|
5
|
+
[32m@remotion/three:build: [0m
|
package/LICENSE.md
CHANGED
|
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
|
|
|
7
7
|
|
|
8
8
|
## Free license
|
|
9
9
|
|
|
10
|
-
Copyright ©
|
|
10
|
+
Copyright © 2022 [Jonny Burger](https://jonny.io)
|
|
11
11
|
|
|
12
12
|
### Eligibility
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ The software is provided "as is", without warranty of any kind, express or impli
|
|
|
32
32
|
|
|
33
33
|
### Support
|
|
34
34
|
|
|
35
|
-
Support is provided on a best-we-can-do basis via GitHub Issues.
|
|
35
|
+
Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
36
36
|
|
|
37
37
|
## Company license
|
|
38
38
|
|
package/dist/SuspenseLoader.d.ts
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseLoader.d.ts","sourceRoot":"","sources":["../src/SuspenseLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SuspenseLoader.d.ts","sourceRoot":"","sources":["../src/SuspenseLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAa7D,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAElC,CAAC"}
|
package/dist/SuspenseLoader.js
CHANGED
|
@@ -4,7 +4,8 @@ exports.SuspenseLoader = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
|
-
const Unblocker = (
|
|
7
|
+
const Unblocker = () => {
|
|
8
|
+
const [handle] = (0, react_1.useState)(() => (0, remotion_1.delayRender)());
|
|
8
9
|
(0, react_1.useEffect)(() => {
|
|
9
10
|
return () => {
|
|
10
11
|
(0, remotion_1.continueRender)(handle);
|
|
@@ -13,8 +14,7 @@ const Unblocker = ({ handle }) => {
|
|
|
13
14
|
return null;
|
|
14
15
|
};
|
|
15
16
|
const SuspenseLoader = ({ children }) => {
|
|
16
|
-
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(react_1.Suspense, Object.assign({ fallback: (0, jsx_runtime_1.jsx)(Unblocker, { handle: handle }, void 0) }, { children: children }), void 0));
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Unblocker, {}, void 0), children: children }, void 0);
|
|
18
18
|
};
|
|
19
19
|
exports.SuspenseLoader = SuspenseLoader;
|
|
20
20
|
//# sourceMappingURL=SuspenseLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseLoader.js","sourceRoot":"","sources":["../src/SuspenseLoader.tsx"],"names":[],"mappings":";;;;AAAA,iCAA6D;AAC7D,uCAAuD;AAEvD,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"SuspenseLoader.js","sourceRoot":"","sources":["../src/SuspenseLoader.tsx"],"names":[],"mappings":";;;;AAAA,iCAA6D;AAC7D,uCAAuD;AAEvD,MAAM,SAAS,GAAa,GAAG,EAAE;IAChC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,IAAA,sBAAW,GAAE,CAAC,CAAC;IAC/C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,OAAO,GAAG,EAAE;YACX,IAAA,yBAAc,EAAC,MAAM,CAAC,CAAC;QACxB,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEK,MAAM,cAAc,GAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxD,OAAO,uBAAC,gBAAQ,IAAC,QAAQ,EAAE,uBAAC,SAAS,aAAG,YAAG,QAAQ,WAAY,CAAC;AACjE,CAAC,CAAC;AAFW,QAAA,cAAc,kBAEzB"}
|
package/dist/ThreeCanvas.d.ts
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreeCanvas.d.ts","sourceRoot":"","sources":["../src/ThreeCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ThreeCanvas.d.ts","sourceRoot":"","sources":["../src/ThreeCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAiD,MAAM,OAAO,CAAC;AAItE,oBAAY,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAaF,eAAO,MAAM,WAAW,UAAW,gBAAgB,gBAuClD,CAAC"}
|
package/dist/ThreeCanvas.js
CHANGED
|
@@ -17,7 +17,8 @@ const Scale = ({ width, height }) => {
|
|
|
17
17
|
return null;
|
|
18
18
|
};
|
|
19
19
|
const ThreeCanvas = (props) => {
|
|
20
|
-
const { children, width, height, style, ...rest } = props;
|
|
20
|
+
const { children, width, height, style, onCreated, ...rest } = props;
|
|
21
|
+
const [waitForCreated] = (0, react_1.useState)(() => (0, remotion_1.delayRender)());
|
|
21
22
|
remotion_1.Internals.validateDimension(width, 'width', 'of the <ThreeCanvas /> component');
|
|
22
23
|
remotion_1.Internals.validateDimension(height, 'height', 'of the <ThreeCanvas /> component');
|
|
23
24
|
const contexts = remotion_1.Internals.useRemotionContexts();
|
|
@@ -26,7 +27,11 @@ const ThreeCanvas = (props) => {
|
|
|
26
27
|
height: props.height,
|
|
27
28
|
...(style !== null && style !== void 0 ? style : {}),
|
|
28
29
|
};
|
|
29
|
-
|
|
30
|
+
const remotion_onCreated = (0, react_1.useCallback)((state) => {
|
|
31
|
+
(0, remotion_1.continueRender)(waitForCreated);
|
|
32
|
+
onCreated === null || onCreated === void 0 ? void 0 : onCreated(state);
|
|
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 }, void 0), (0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionContextProvider, { contexts: contexts, children: children }, void 0)] }, void 0) }, void 0));
|
|
30
35
|
};
|
|
31
36
|
exports.ThreeCanvas = ThreeCanvas;
|
|
32
37
|
//# sourceMappingURL=ThreeCanvas.js.map
|
package/dist/ThreeCanvas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreeCanvas.js","sourceRoot":"","sources":["../src/ThreeCanvas.tsx"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ThreeCanvas.js","sourceRoot":"","sources":["../src/ThreeCanvas.tsx"],"names":[],"mappings":";;;;AAAA,8CAAiE;AACjE,iCAAsE;AACtE,uCAAkE;AAClE,qDAAkD;AAOlD,MAAM,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAqC,EAAE,EAAE;IACtE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAClD,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC;IAC/C,IAAA,uBAAe,EAAC,GAAG,EAAE;QACpB,OAA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AAC,+BAAc,cACd,wBAAC,cAAM,IAAC,KAAK,EAAE,WAAW,KAAM,IAAI,EAAE,SAAS,EAAE,kBAAkB,aAClE,uBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,WAAI,EACvC,uBAAC,oBAAS,CAAC,uBAAuB,IAAC,QAAQ,EAAE,QAAQ,YACnD,QAAQ,WAC0B,YAC5B,WACO,CACjB,CAAC;AACH,CAAC,CAAC;AAvCW,QAAA,WAAW,eAuCtB"}
|
package/dist/ThreeContext.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/ThreeContext.js
CHANGED
|
File without changes
|
package/dist/ThreeContext.js.map
CHANGED
|
File without changes
|
package/dist/ThreeVideo.d.ts
CHANGED
|
File without changes
|
package/dist/ThreeVideo.d.ts.map
CHANGED
|
File without changes
|
package/dist/ThreeVideo.js
CHANGED
|
File without changes
|
package/dist/ThreeVideo.js.map
CHANGED
|
File without changes
|
package/dist/context-bridge.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/context-bridge.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.d.ts.map
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/index.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/useVideoTexture.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/three",
|
|
3
|
-
"version": "3.0.0-lambda.
|
|
3
|
+
"version": "3.0.0-lambda.419+1ae289d8c",
|
|
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",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"scripts": {
|
|
9
|
-
"
|
|
9
|
+
"lint": "eslint src --ext ts,tsx",
|
|
10
10
|
"watch": "tsc -w",
|
|
11
11
|
"build": "tsc -d"
|
|
12
12
|
},
|
|
@@ -16,27 +16,41 @@
|
|
|
16
16
|
"repository": {
|
|
17
17
|
"url": "https://github.com/remotion-dev/remotion"
|
|
18
18
|
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
21
|
+
},
|
|
19
22
|
"dependencies": {
|
|
20
|
-
"remotion": "
|
|
23
|
+
"remotion": "3.0.0-lambda.419+1ae289d8c"
|
|
21
24
|
},
|
|
22
25
|
"peerDependencies": {
|
|
23
|
-
"@react-three/fiber": ">=
|
|
26
|
+
"@react-three/fiber": ">=7.0.19",
|
|
24
27
|
"react": ">=17.0.1",
|
|
25
28
|
"react-dom": ">=17.0.1",
|
|
26
|
-
"three": ">=0.
|
|
29
|
+
"three": ">=0.134.0"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
29
|
-
"@jonny/eslint-config": "^2.1.
|
|
32
|
+
"@jonny/eslint-config": "^2.1.251",
|
|
33
|
+
"@react-three/fiber": ">=7.0.26",
|
|
30
34
|
"@types/node": "^14.14.14",
|
|
31
|
-
"@types/
|
|
32
|
-
"
|
|
35
|
+
"@types/react": "17.0.39",
|
|
36
|
+
"@types/react-reconciler": "^0.26.4",
|
|
37
|
+
"@types/three": "^0.134.0",
|
|
38
|
+
"eslint": "^7.25.0",
|
|
33
39
|
"prettier": "^2.0.5",
|
|
34
40
|
"prettier-plugin-organize-imports": "^1.1.1",
|
|
35
|
-
"three": "^0.
|
|
36
|
-
"typescript": "^4.
|
|
41
|
+
"three": "^0.134.0",
|
|
42
|
+
"typescript": "^4.5.5"
|
|
37
43
|
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"remotion",
|
|
46
|
+
"ffmpeg",
|
|
47
|
+
"video",
|
|
48
|
+
"react",
|
|
49
|
+
"puppeteer",
|
|
50
|
+
"player"
|
|
51
|
+
],
|
|
38
52
|
"publishConfig": {
|
|
39
53
|
"access": "public"
|
|
40
54
|
},
|
|
41
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "1ae289d8c5f224cb57b620dfc2a40e0a1c210472"
|
|
42
56
|
}
|