@remotion/three 4.0.0-copy.4 → 4.0.0-esm.17

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/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 © 2022 [Remotion](https://www.remotion.dev/)
10
+ Copyright © 2023 [Remotion](https://www.remotion.dev/)
11
11
 
12
12
  ### Eligibility
13
13
 
@@ -5,12 +5,15 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const remotion_1 = require("remotion");
7
7
  const Unblocker = () => {
8
- const [handle] = (0, react_1.useState)(() => (0, remotion_1.delayRender)(`Waiting for <Suspense /> of <ThreeCanvas /> to resolve`));
9
- (0, react_1.useEffect)(() => {
10
- return () => {
11
- (0, remotion_1.continueRender)(handle);
12
- };
13
- }, [handle]);
8
+ if (typeof document !== 'undefined') {
9
+ // eslint-disable-next-line react-hooks/rules-of-hooks
10
+ (0, react_1.useLayoutEffect)(() => {
11
+ const handle = (0, remotion_1.delayRender)(`Waiting for <Suspense /> of <ThreeCanvas /> to resolve`);
12
+ return () => {
13
+ (0, remotion_1.continueRender)(handle);
14
+ };
15
+ }, []);
16
+ }
14
17
  return null;
15
18
  };
16
19
  const SuspenseLoader = ({ children }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/three",
3
- "version": "4.0.0-copy.4+07d4897fb",
3
+ "version": "4.0.0-esm.17+da08690d2",
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-copy.4+07d4897fb"
23
+ "remotion": "4.0.0-esm.17+da08690d2"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@react-three/fiber": ">=8.0.0",
@@ -32,7 +32,7 @@
32
32
  "@jonny/eslint-config": "3.0.266",
33
33
  "@react-three/fiber": ">=8.0.0",
34
34
  "@types/node": "^14.14.14",
35
- "@types/react": "18.0.23",
35
+ "@types/react": "18.0.26",
36
36
  "@types/react-reconciler": "^0.26.4",
37
37
  "@types/three": "^0.134.0",
38
38
  "@types/web": "0.0.78",
@@ -49,11 +49,11 @@
49
49
  "ffmpeg",
50
50
  "video",
51
51
  "react",
52
- "puppeteer",
52
+ "three",
53
53
  "player"
54
54
  ],
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "07d4897fb44920b58dc85cf7465d990a0a139994"
58
+ "gitHead": "da08690d241e1f5d6dde8a8d89f3379a54ec7681"
59
59
  }
package/.prettierrc.js DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- singleQuote: true,
3
- bracketSpacing: false,
4
- useTabs: true,
5
- overrides: [
6
- {
7
- files: ['*.yml'],
8
- options: {
9
- singleQuote: false,
10
- },
11
- },
12
- ],
13
- plugins: [require.resolve('prettier-plugin-organize-imports')],
14
- };
package/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "../tsconfig.settings.json",
3
- "compilerOptions": {
4
- "composite": true,
5
- "rootDir": "src",
6
- "outDir": "dist",
7
- "skipLibCheck": true
8
- },
9
- "references": [
10
- {
11
- "path": "../core"
12
- }
13
- ]
14
- }