🎥 Make videos programmatically with React
fix three example in docs
Jonny Burger9bfa6c4868f6
diff --git a/.npmrc b/.npmrcindex ae3aef0ac8..782cb5a3aa 100644--- a/.npmrc+++ b/.npmrc@@ -1,3 +1,6 @@+# Defaults, without eslintpublic-hoist-pattern[]=*types*public-hoist-pattern[]=*@prettier/plugin-*public-hoist-pattern[]=*prettier-plugin-*+# Is a devDependency of `three` and a dependency of docs. Need to hoist+public-hoist-pattern[]=@react-three/fiberdiff --git a/packages/docs/package.json b/packages/docs/package.jsonindex af38bda2db..d3e63548cd 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -20,7 +20,6 @@"@docusaurus/preset-classic": "2.0.0-beta.7","@jonny/docusaurus-preset-shiki-twoslash": "1.1.36","@mdx-js/react": "^1.6.21",- "@react-three/fiber": "7.0.19","@remotion/babel-loader": "2.6.8","@remotion/bundler": "2.6.8","@remotion/gif": "2.6.8",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d946669f3a..8ebdafb921 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -241,7 +241,6 @@ importers:'@docusaurus/preset-classic': 2.0.0-beta.7'@jonny/docusaurus-preset-shiki-twoslash': 1.1.36'@mdx-js/react': ^1.6.21- '@react-three/fiber': 7.0.19'@remotion/babel-loader': 2.6.8'@remotion/bundler': 2.6.8'@remotion/gif': 2.6.8@@ -276,7 +275,6 @@ importers:'@docusaurus/preset-classic': [email protected][email protected]'@jonny/docusaurus-preset-shiki-twoslash': 1.1.36'@mdx-js/react': [email protected]- '@react-three/fiber': 7.0.19_907a6f2f9ddb15de374f8d77b33fd4f4'@remotion/babel-loader': link:../babel-loader'@remotion/bundler': link:../bundler'@remotion/gif': link:../gif@@ -6306,31 +6304,6 @@ packages:zustand: 3.6.5dev: false- /@react-three/fiber/7.0.19_907a6f2f9ddb15de374f8d77b33fd4f4:- resolution: {integrity: sha512-R3/HTMJjjYhJXJu3U3JJ8bmLxv0X+y6/jNBkHm+wSWTFbXkWnKYzWbHkMVMzVesKyyQK1HBP6ZoJVNG+EzM9PA==}- peerDependencies:- react: '>=17.0'- react-dom: '>=17.0'- three: '>=0.126'- peerDependenciesMeta:- react-dom:- optional: true- dependencies:- '@babel/runtime': 7.15.4- react: 17.0.2- react-dom: [email protected]- react-merge-refs: 1.1.0- react-reconciler: [email protected]- react-three-fiber: 0.0.0-deprecated- react-use-measure: [email protected][email protected]- resize-observer-polyfill: 1.5.1- scheduler: 0.20.2- three: 0.134.0- use-asset: [email protected]- utility-types: 3.10.0- zustand: [email protected]- dev: false-/@react-three/fiber/[email protected]:resolution: {integrity: sha512-R3/HTMJjjYhJXJu3U3JJ8bmLxv0X+y6/jNBkHm+wSWTFbXkWnKYzWbHkMVMzVesKyyQK1HBP6ZoJVNG+EzM9PA==}peerDependencies:@@ -10351,6 +10324,7 @@ packages:/debounce/1.2.1:resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==}+ dev: true/debug/2.6.9:resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}@@ -18799,18 +18773,6 @@ packages:scheduler: 0.20.2dev: true- /react-reconciler/[email protected]:- resolution: {integrity: sha512-nK6kgY28HwrMNwDnMui3dvm3rCFjZrcGiuwLc5COUipBK5hWHLOxMJhSnSomirqWwjPBJKV1QcbkI0VJr7Gl1Q==}- engines: {node: '>=0.10.0'}- peerDependencies:- react: ^17.0.2- dependencies:- loose-envify: 1.4.0- object-assign: 4.1.1- react: 17.0.2- scheduler: 0.20.2- dev: false-/react-refresh/0.8.3:resolution: {integrity: sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==}engines: {node: '>=0.10.0'}@@ -18980,6 +18942,7 @@ packages:/react-three-fiber/0.0.0-deprecated:resolution: {integrity: sha512-EblIqTAsIpkYeM8bZtC4lcpTE0A2zCEGipFB52RgcQq/q+0oryrk7Sxt+sqhIjUu6xMNEVywV8dr74lz5yWO6A==}+ dev: true/react-use-measure/2.0.4:resolution: {integrity: sha512-7K2HIGaPMl3Q9ZQiEVjen3tRXl4UDda8LiTPy/QxP8dP2rl5gPBhf7mMH6MVjjRNv3loU7sNzey/ycPNnHVTxQ==}@@ -18990,17 +18953,6 @@ packages:debounce: 1.2.1dev: true- /react-use-measure/[email protected][email protected]:- resolution: {integrity: sha512-7K2HIGaPMl3Q9ZQiEVjen3tRXl4UDda8LiTPy/QxP8dP2rl5gPBhf7mMH6MVjjRNv3loU7sNzey/ycPNnHVTxQ==}- peerDependencies:- react: '>=16.13'- react-dom: '>=16.13'- dependencies:- debounce: 1.2.1- react: 17.0.2- react-dom: [email protected]- dev: false-/react/17.0.2:resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==}engines: {node: '>=0.10.0'}@@ -19497,6 +19449,7 @@ packages:/resize-observer-polyfill/1.5.1:resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==}+ dev: true/resolve-cwd/2.0.0:resolution: {integrity: sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=}@@ -22113,15 +22066,6 @@ packages:dependencies:fast-deep-equal: 3.1.3- /use-asset/[email protected]:- resolution: {integrity: sha512-7/hqDrWa0iMnCoET9W1T07EmD4Eg/Wmoj/X8TGBc++ECRK4m5yTsjP4O6s0yagbxfqIOuUkIxe2/sA+VR2GxZA==}- peerDependencies:- react: '>=17.0'- dependencies:- fast-deep-equal: 3.1.3- react: 17.0.2- dev: false-/use-composed-ref/[email protected]:resolution: {integrity: sha512-my1lNHGWsSDAhhVAT4MKs6IjBUtG6ZG11uUqexPH9PptiIZDQOzaF4f5tEbJ2+7qvNbtXNBbU3SfmN+fXlWDhg==}peerDependencies:@@ -23199,18 +23143,6 @@ packages:react:optional: true- /zustand/[email protected]:- resolution: {integrity: sha512-/WfLJuXiEJimt61KGMHebrFBwckkCHGhAgVXTgPQHl6IMzjqm6MREb1OnDSnCRiSmRdhgdFCctceg6tSm79hiw==}- engines: {node: '>=12.7.0'}- peerDependencies:- react: '>=16.8'- peerDependenciesMeta:- react:- optional: true- dependencies:- react: 17.0.2- dev: false-/zwitch/1.0.5:resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==}dev: false