🎥 Make videos programmatically with React
yo
Jonny Burgerc7599a3f2ff7
diff --git a/package-lock.json b/package-lock.jsonindex a15178c1d1..37cceb6572 100644--- a/package-lock.json+++ b/package-lock.json@@ -18,7 +18,7 @@"@types/jest": "^26.0.20","@types/minimist": "^1.2.1","@types/node": "^15.0.1",- "@types/react": "^17.0.5",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.5","@types/sharp": "^0.27.2","eslint": "^7.25.0",diff --git a/package.json b/package.jsonindex bde7cdea57..6523b622d6 100644--- a/package.json+++ b/package.json@@ -12,7 +12,7 @@"@types/jest": "^26.0.20","@types/minimist": "^1.2.1","@types/node": "^15.0.1",- "@types/react": "^17.0.5",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.5","@types/sharp": "^0.27.2","eslint": "^7.25.0",diff --git a/packages/cli/package-lock.json b/packages/cli/package-lock.jsonindex 35f2564912..0640b2ad7a 100644--- a/packages/cli/package-lock.json+++ b/packages/cli/package-lock.json@@ -8,7 +8,7 @@"@jonny/eslint-config": "^2.1.233","@types/jest": "^26.0.22","@types/node": "^15.0.1",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","@types/styled-components": "^5.1.1","ansi-diff": "^1.1.1",@@ -1308,11 +1308,12 @@"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="},"node_modules/@types/react": {- "version": "17.0.0",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.0.tgz",- "integrity": "sha512-aj/L7RIMsRlWML3YB6KZiXB3fV2t41+5RBGYF8z+tAKU43Px8C3cYUZsDvf1/+Bm4FK21QWBrDutu8ZJ/70qOw==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","dependencies": {"@types/prop-types": "*",+ "@types/scheduler": "*","csstype": "^3.0.2"}},@@ -1337,6 +1338,11 @@"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.5.tgz","integrity": "sha512-uVDi8LpBUKQj6sdxNaTetL6FpeCqTjOvAQuQUa/qAqq8oOd4ivkbhgnqayl0dnPal8Tb/yB1tF+gOvCBiicaiQ=="},+ "node_modules/@types/scheduler": {+ "version": "0.16.1",+ "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",+ "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="+ },"node_modules/@types/stack-utils": {"version": "2.0.0","resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz",@@ -10299,11 +10305,12 @@"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="},"@types/react": {- "version": "17.0.0",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.0.tgz",- "integrity": "sha512-aj/L7RIMsRlWML3YB6KZiXB3fV2t41+5RBGYF8z+tAKU43Px8C3cYUZsDvf1/+Bm4FK21QWBrDutu8ZJ/70qOw==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","requires": {"@types/prop-types": "*",+ "@types/scheduler": "*","csstype": "^3.0.2"},"dependencies": {@@ -10330,6 +10337,11 @@"@types/react": "*"}},+ "@types/scheduler": {+ "version": "0.16.1",+ "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",+ "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="+ },"@types/stack-utils": {"version": "2.0.0","resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz",diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 96b2c3ff43..c68b94701e 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -42,7 +42,7 @@"@jonny/eslint-config": "^2.1.233","@types/jest": "^26.0.22","@types/node": "^15.0.1",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","@types/styled-components": "^5.1.1","eslint": "^7.25.0",diff --git a/packages/docs/package-lock.json b/packages/docs/package-lock.jsonindex fb0345023c..a6afa24ae0 100644--- a/packages/docs/package-lock.json+++ b/packages/docs/package-lock.json@@ -15,7 +15,6 @@"@splitbee/web": "^0.2.4","@types/color-namer": "^1.3.0","@types/hls.js": "^0.13.3",- "@types/styled-components": "^5.1.9","chalk": "^4.1.0","clsx": "^1.1.1","color-namer": "1.4.0",@@ -23,8 +22,7 @@"polished": "4.1.2","prism-react-renderer": "^1.1.1","react-player": "^2.9.0",- "remotion": "^2.1.5",- "styled-components": "^5.2.1"+ "remotion": "^2.1.5"}},"../core": {@@ -2039,29 +2037,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/@emotion/is-prop-valid": {- "version": "0.8.8",- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",- "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",- "dependencies": {- "@emotion/memoize": "0.7.4"- }- },- "node_modules/@emotion/memoize": {- "version": "0.7.4",- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",- "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw=="- },- "node_modules/@emotion/stylis": {- "version": "0.8.5",- "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz",- "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ=="- },- "node_modules/@emotion/unitless": {- "version": "0.7.5",- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz",- "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg=="- },"node_modules/@endiliey/static-site-generator-webpack-plugin": {"version": "4.0.0","license": "MIT",@@ -2638,15 +2613,6 @@"resolved": "https://registry.npmjs.org/@types/hls.js/-/hls.js-0.13.3.tgz","integrity": "sha512-Po8ZPCsAcPPuf5OODPEkb6cdWJ/w4BdX1veP7IIOc2WG0x1SW4GEQ1+FHKN1AMG2AePJfNUceJbh5PKtP92yRQ=="},- "node_modules/@types/hoist-non-react-statics": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",- "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",- "dependencies": {- "@types/react": "*",- "hoist-non-react-statics": "^3.3.0"- }- },"node_modules/@types/html-minifier-terser": {"version": "5.1.1","license": "MIT"@@ -2678,25 +2644,10 @@"version": "5.0.3","license": "MIT"},- "node_modules/@types/prop-types": {- "version": "15.7.3",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz",- "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="- },"node_modules/@types/q": {"version": "1.5.4","license": "MIT"},- "node_modules/@types/react": {- "version": "17.0.8",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",- "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==",- "dependencies": {- "@types/prop-types": "*",- "@types/scheduler": "*",- "csstype": "^3.0.2"- }- },"node_modules/@types/sax": {"version": "1.2.1","license": "MIT",@@ -2704,21 +2655,6 @@"@types/node": "*"}},- "node_modules/@types/scheduler": {- "version": "0.16.1",- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",- "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="- },- "node_modules/@types/styled-components": {- "version": "5.1.9",- "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.9.tgz",- "integrity": "sha512-kbEG6YlwK8rucITpKEr6pA4Ho9KSQHUUOzZ9lY3va1mtcjvS3D0wDciFyHEiNHKLL/npZCKDQJqm0x44sPO9oA==",- "dependencies": {- "@types/hoist-non-react-statics": "*",- "@types/react": "*",- "csstype": "^3.0.2"- }- },"node_modules/@types/unist": {"version": "2.0.3","license": "MIT"@@ -3327,25 +3263,6 @@"@babel/core": "^7.0.0-0"}},- "node_modules/babel-plugin-styled-components": {- "version": "1.12.0",- "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-1.12.0.tgz",- "integrity": "sha512-FEiD7l5ZABdJPpLssKXjBUJMYqzbcNzBowfXDCdJhOpbhWiewapUaY+LZGT8R4Jg2TwOjGjG4RKeyrO5p9sBkA==",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.0.0",- "@babel/helper-module-imports": "^7.0.0",- "babel-plugin-syntax-jsx": "^6.18.0",- "lodash": "^4.17.11"- },- "peerDependencies": {- "styled-components": ">= 2"- }- },- "node_modules/babel-plugin-syntax-jsx": {- "version": "6.18.0",- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",- "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY="- },"node_modules/bail": {"version": "1.0.5","license": "MIT",@@ -3671,11 +3588,6 @@"node": ">= 6"}},- "node_modules/camelize": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",- "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="- },"node_modules/caniuse-api": {"version": "3.0.0","license": "MIT",@@ -4363,14 +4275,6 @@"node": ">=8"}},- "node_modules/css-color-keywords": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz",- "integrity": "sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=",- "engines": {- "node": ">=4"- }- },"node_modules/css-color-names": {"version": "1.0.1","license": "MIT",@@ -4474,16 +4378,6 @@"version": "0.1.1","license": "MIT"},- "node_modules/css-to-react-native": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.0.0.tgz",- "integrity": "sha512-Ro1yETZA813eoyUp2GDBhG2j+YggidUmzO1/v9eYBKR2EHVEniE2MI/NqpTQ954BMpTPZFsGNPm46qFB9dpaPQ==",- "dependencies": {- "camelize": "^1.0.0",- "css-color-keywords": "^1.0.0",- "postcss-value-parser": "^4.0.2"- }- },"node_modules/css-tree": {"version": "1.1.3","license": "MIT",@@ -4620,11 +4514,6 @@"node": ">=8.0.0"}},- "node_modules/csstype": {- "version": "3.0.8",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz",- "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw=="- },"node_modules/d": {"version": "1.0.1","license": "ISC",@@ -10958,11 +10847,6 @@"node": ">=8"}},- "node_modules/shallowequal": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",- "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="- },"node_modules/shebang-command": {"version": "2.0.0","license": "MIT",@@ -11509,35 +11393,6 @@"inline-style-parser": "0.1.1"}},- "node_modules/styled-components": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.0.tgz",- "integrity": "sha512-bPJKwZCHjJPf/hwTJl6TbkSZg/3evha+XPEizrZUGb535jLImwDUdjTNxXqjjaASt2M4qO4AVfoHJNe3XB/tpQ==",- "dependencies": {- "@babel/helper-module-imports": "^7.0.0",- "@babel/traverse": "^7.4.5",- "@emotion/is-prop-valid": "^0.8.8",- "@emotion/stylis": "^0.8.4",- "@emotion/unitless": "^0.7.4",- "babel-plugin-styled-components": ">= 1.12.0",- "css-to-react-native": "^3.0.0",- "hoist-non-react-statics": "^3.0.0",- "shallowequal": "^1.1.0",- "supports-color": "^5.5.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/styled-components"- },- "peerDependencies": {- "react": ">= 16.8.0",- "react-dom": ">= 16.8.0",- "react-is": ">= 16.8.0"- }- },"node_modules/stylehacks": {"version": "5.0.0","license": "MIT",@@ -14724,29 +14579,6 @@"tslib": "^2.1.0"}},- "@emotion/is-prop-valid": {- "version": "0.8.8",- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",- "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",- "requires": {- "@emotion/memoize": "0.7.4"- }- },- "@emotion/memoize": {- "version": "0.7.4",- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",- "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw=="- },- "@emotion/stylis": {- "version": "0.8.5",- "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz",- "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ=="- },- "@emotion/unitless": {- "version": "0.7.5",- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz",- "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg=="- },"@endiliey/static-site-generator-webpack-plugin": {"version": "4.0.0","requires": {@@ -15098,15 +14930,6 @@"resolved": "https://registry.npmjs.org/@types/hls.js/-/hls.js-0.13.3.tgz","integrity": "sha512-Po8ZPCsAcPPuf5OODPEkb6cdWJ/w4BdX1veP7IIOc2WG0x1SW4GEQ1+FHKN1AMG2AePJfNUceJbh5PKtP92yRQ=="},- "@types/hoist-non-react-statics": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",- "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",- "requires": {- "@types/react": "*",- "hoist-non-react-statics": "^3.3.0"- }- },"@types/html-minifier-terser": {"version": "5.1.1"},@@ -15131,45 +14954,15 @@"@types/parse5": {"version": "5.0.3"},- "@types/prop-types": {- "version": "15.7.3",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz",- "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="- },"@types/q": {"version": "1.5.4"},- "@types/react": {- "version": "17.0.8",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",- "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==",- "requires": {- "@types/prop-types": "*",- "@types/scheduler": "*",- "csstype": "^3.0.2"- }- },"@types/sax": {"version": "1.2.1","requires": {"@types/node": "*"}},- "@types/scheduler": {- "version": "0.16.1",- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz",- "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA=="- },- "@types/styled-components": {- "version": "5.1.9",- "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.9.tgz",- "integrity": "sha512-kbEG6YlwK8rucITpKEr6pA4Ho9KSQHUUOzZ9lY3va1mtcjvS3D0wDciFyHEiNHKLL/npZCKDQJqm0x44sPO9oA==",- "requires": {- "@types/hoist-non-react-statics": "*",- "@types/react": "*",- "csstype": "^3.0.2"- }- },"@types/unist": {"version": "2.0.3"},@@ -15565,22 +15358,6 @@"@babel/helper-define-polyfill-provider": "^0.2.0"}},- "babel-plugin-styled-components": {- "version": "1.12.0",- "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-1.12.0.tgz",- "integrity": "sha512-FEiD7l5ZABdJPpLssKXjBUJMYqzbcNzBowfXDCdJhOpbhWiewapUaY+LZGT8R4Jg2TwOjGjG4RKeyrO5p9sBkA==",- "requires": {- "@babel/helper-annotate-as-pure": "^7.0.0",- "@babel/helper-module-imports": "^7.0.0",- "babel-plugin-syntax-jsx": "^6.18.0",- "lodash": "^4.17.11"- }- },- "babel-plugin-syntax-jsx": {- "version": "6.18.0",- "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",- "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY="- },"bail": {"version": "1.0.5"},@@ -15799,11 +15576,6 @@"camelcase-css": {"version": "2.0.1"},- "camelize": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",- "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="- },"caniuse-api": {"version": "3.0.0","requires": {@@ -16251,11 +16023,6 @@"crypto-random-string": {"version": "2.0.0"},- "css-color-keywords": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz",- "integrity": "sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU="- },"css-color-names": {"version": "1.0.1"},@@ -16311,16 +16078,6 @@"css-select-base-adapter": {"version": "0.1.1"},- "css-to-react-native": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.0.0.tgz",- "integrity": "sha512-Ro1yETZA813eoyUp2GDBhG2j+YggidUmzO1/v9eYBKR2EHVEniE2MI/NqpTQ954BMpTPZFsGNPm46qFB9dpaPQ==",- "requires": {- "camelize": "^1.0.0",- "css-color-keywords": "^1.0.0",- "postcss-value-parser": "^4.0.2"- }- },"css-tree": {"version": "1.1.3","requires": {@@ -16401,11 +16158,6 @@"css-tree": "^1.1.2"}},- "csstype": {- "version": "3.0.8",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz",- "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw=="- },"d": {"version": "1.0.1","requires": {@@ -20346,11 +20098,6 @@"kind-of": "^6.0.2"}},- "shallowequal": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",- "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="- },"shebang-command": {"version": "2.0.0","requires": {@@ -20715,23 +20462,6 @@"inline-style-parser": "0.1.1"}},- "styled-components": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.0.tgz",- "integrity": "sha512-bPJKwZCHjJPf/hwTJl6TbkSZg/3evha+XPEizrZUGb535jLImwDUdjTNxXqjjaASt2M4qO4AVfoHJNe3XB/tpQ==",- "requires": {- "@babel/helper-module-imports": "^7.0.0",- "@babel/traverse": "^7.4.5",- "@emotion/is-prop-valid": "^0.8.8",- "@emotion/stylis": "^0.8.4",- "@emotion/unitless": "^0.7.4",- "babel-plugin-styled-components": ">= 1.12.0",- "css-to-react-native": "^3.0.0",- "hoist-non-react-statics": "^3.0.0",- "shallowequal": "^1.1.0",- "supports-color": "^5.5.0"- }- },"stylehacks": {"version": "5.0.0","requires": {diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex 409ebeff7a..74009786e6 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -20,7 +20,6 @@"@splitbee/web": "^0.2.4","@types/color-namer": "^1.3.0","@types/hls.js": "^0.13.3",- "@types/styled-components": "^5.1.9","chalk": "^4.1.0","clsx": "^1.1.1","color-namer": "1.4.0",@@ -28,8 +27,7 @@"polished": "4.1.2","prism-react-renderer": "^1.1.1","react-player": "^2.9.0",- "remotion": "^2.1.5",- "styled-components": "^5.2.1"+ "remotion": "^2.1.5"},"browserslist": {"production": [diff --git a/packages/docs/src/components/Spinner.tsx b/packages/docs/src/components/Spinner.tsxnew file mode 100644index 0000000000..482573c7ab--- /dev/null+++ b/packages/docs/src/components/Spinner.tsx@@ -0,0 +1,96 @@+import React, { SVGProps } from "react";++export const Spinner: React.FC<SVGProps<SVGSVGElement>> = (props) => {+ return (+ <svg+ id="loading"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 32 32"+ width="32"+ height="32"+ fill="black"+ {...props}+ >+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0"+ />+ </path>+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(45 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0.125s"+ />+ </path>+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(90 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0.25s"+ />+ </path>+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(135 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0.375s"+ />+ </path>+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(180 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0.5s"+ />+ </path>+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(225 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0.675s"+ />+ </path>+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(270 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0.75s"+ />+ </path>+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(315 16 16)">+ <animate+ attributeName="opacity"+ from="1"+ to=".1"+ dur="1s"+ repeatCount="indefinite"+ begin="0.875s"+ />+ </path>+ </svg>+ );+};diff --git a/packages/docs/src/components/VideoPlayerContent.tsx b/packages/docs/src/components/VideoPlayerContent.tsxindex b364faa779..50cc682f5c 100644--- a/packages/docs/src/components/VideoPlayerContent.tsx+++ b/packages/docs/src/components/VideoPlayerContent.tsx@@ -1,27 +1,45 @@import Hls from "hls.js";-import React, { useEffect, useRef } from "react";-import styled from "styled-components";+import React, {+ useCallback,+ useEffect,+ useMemo,+ useRef,+ useState,+} from "react";import { ShowcaseVideo } from "../data/showcase-videos";import { useElementSize } from "../helpers/use-el-size";+import { Spinner } from "./Spinner";import { VideoSidebar } from "./VideoSidebar";-export const Container = styled.div`- background-color: white;- margin-bottom: 0;- display: flex;- flex-direction: row;-`;+const containerCss: React.CSSProperties = {+ backgroundColor: "white",+ marginBottom: 0,+ display: "flex",+ flexDirection: "row",+};-const Video = styled.video`- margin-bottom: 0;- background-color: white;-`;+const videoCss: React.CSSProperties = {+ marginBottom: 0,+ backgroundColor: "white",+};const RESERVED_FOR_SIDEBAR = 300;-const Sidebar = styled.div`- width: ${RESERVED_FOR_SIDEBAR}px;-`;+const sidebar: React.CSSProperties = {+ width: RESERVED_FOR_SIDEBAR,+};++const spinner: React.CSSProperties = {+ height: 16,+ width: 16,+};++const loadingContainer: React.CSSProperties = {+ position: "absolute",+ justifyContent: "center",+ alignItems: "center",+ display: "flex",+};const getVideoToPlayUrl = (video: ShowcaseVideo) => {if (video.type === "mux_video") {@@ -34,6 +52,7 @@ const getVideoToPlayUrl = (video: ShowcaseVideo) => {export const VideoPlayerContent: React.FC<{ video: ShowcaseVideo }> = ({video,}) => {+ const [loaded, setLoaded] = useState(false);const videoRef = useRef<HTMLVideoElement>(null);const container = useRef<HTMLDivElement>(null);const vidUrl = getVideoToPlayUrl(video);@@ -75,12 +94,37 @@ export const VideoPlayerContent: React.FC<{ video: ShowcaseVideo }> = ({};}, [vidUrl, videoRef]);+ const onLoadedMetadata = useCallback(() => {+ setLoaded(true);+ }, []);++ const loadingStyle = useMemo(() => {+ return {+ ...loadingContainer,+ height,+ width,+ };+ }, [height, width]);+return (- <Container ref={container}>- <Video ref={videoRef} loop height={height} width={width} autoPlay />- <Sidebar>+ <div ref={container} style={containerCss}>+ {loaded ? null : (+ <div style={loadingStyle}>+ <Spinner style={spinner} />+ </div>+ )}+ <video+ ref={videoRef}+ style={videoCss}+ onLoadedMetadata={onLoadedMetadata}+ loop+ height={height}+ width={width}+ autoPlay+ />+ <div style={sidebar}><VideoSidebar video={video} />- </Sidebar>- </Container>+ </div>+ </div>);};diff --git a/packages/docs/src/components/VideoPreview.tsx b/packages/docs/src/components/VideoPreview.tsxindex 1f91f109f6..7ea27ac05e 100644--- a/packages/docs/src/components/VideoPreview.tsx+++ b/packages/docs/src/components/VideoPreview.tsx@@ -1,15 +1,11 @@import clsx from "clsx";import React, { useEffect, useRef, useState } from "react";-import styled from "styled-components";import { ShowcaseVideo } from "../data/showcase-videos";-const A = styled.a`- color: inherit;- cursor: pointer;- &:hover {- color: inherit;- }-`;+const a: React.CSSProperties = {+ color: "inherit",+ cursor: "pointer",+};const videoStyle: React.CSSProperties = {display: "flex",@@ -60,8 +56,9 @@ export const VideoPreview: React.FC<}, []);return (- <A+ <aref={container}+ style={a}className={clsx("col col--4", videoStyle)}onClick={onClick}>@@ -80,6 +77,6 @@ export const VideoPreview: React.FC<</div><h3 style={videoTitle}>{title}</h3><p>{description}</p>- </A>+ </a>);};diff --git a/packages/docs/src/components/VideoSidebar.tsx b/packages/docs/src/components/VideoSidebar.tsxindex 8d5fda3ac0..9543473db6 100644--- a/packages/docs/src/components/VideoSidebar.tsx+++ b/packages/docs/src/components/VideoSidebar.tsx@@ -1,25 +1,23 @@import React from "react";-import styled from "styled-components";import { ShowcaseLink, ShowcaseVideo } from "../data/showcase-videos";-const Container = styled.div`- padding: 20px;-`;--const Title = styled.div`- font-weight: bold;- margin-bottom: 12px;-`;+const container: React.CSSProperties = {+ padding: 20,+};-const Description = styled.div`- font-size: 14px;- margin-bottom: 20px;-`;+const title: React.CSSProperties = {+ fontWeight: "bold",+ marginBottom: 12,+};+const description: React.CSSProperties = {+ fontSize: 13,+ marginBottom: 20,+};-const A = styled.a`- font-size: 14px;- font-weight: bold;-`;+const a: React.CSSProperties = {+ fontSize: 14,+ fontWeight: "bold",+};const getLinkLabel = (linkType: ShowcaseLink) => {switch (linkType) {@@ -31,6 +29,8 @@ const getLinkLabel = (linkType: ShowcaseLink) => {return "Website";case "video":return "Video";+ default:+ throw new Error("don't know link type");}};@@ -38,16 +38,18 @@ export const VideoSidebar: React.FC<{video: ShowcaseVideo;}> = ({ video }) => {return (- <Container>- <Title>{video.title}</Title>- <Description>{video.description}</Description>+ <div style={container}>+ <div style={title}>{video.title}</div>+ <div style={description}>{video.description}</div>{video.links.map((link) => {return (<div key={link.url}>- <A href={link.url}>{getLinkLabel(link.type)}</A>+ <a style={a} target="_blank" href={link.url}>+ {getLinkLabel(link.type)}+ </a></div>);})}- </Container>+ </div>);};diff --git a/packages/gif/package-lock.json b/packages/gif/package-lock.jsonindex 423cbead8e..506ca555a0 100644--- a/packages/gif/package-lock.json+++ b/packages/gif/package-lock.json@@ -10,7 +10,7 @@"@testing-library/react": "^11.2.2","@types/jest": "^26.0.19","@types/node": "^15.0.1",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","eslint": "^7.25.0","jest": "^26.6.3",@@ -1341,9 +1341,9 @@"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="},"node_modules/@types/react": {- "version": "17.0.3",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.3.tgz",- "integrity": "sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","dependencies": {"@types/prop-types": "*","@types/scheduler": "*",@@ -10127,9 +10127,9 @@"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="},"@types/react": {- "version": "17.0.3",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.3.tgz",- "integrity": "sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","requires": {"@types/prop-types": "*","@types/scheduler": "*",diff --git a/packages/gif/package.json b/packages/gif/package.jsonindex 858c11d6ed..2c32bb77c0 100644--- a/packages/gif/package.json+++ b/packages/gif/package.json@@ -27,7 +27,7 @@"@testing-library/react": "^11.2.2","@types/jest": "^26.0.19","@types/node": "^15.0.1",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","eslint": "^7.25.0","jest": "^26.6.3",diff --git a/packages/player-example/package-lock.json b/packages/player-example/package-lock.jsonindex 496293fbdf..1fcf4c47a1 100644--- a/packages/player-example/package-lock.json+++ b/packages/player-example/package-lock.json@@ -11,7 +11,7 @@"@testing-library/user-event": "^12.1.10","@types/jest": "^26.0.15","@types/node": "^12.0.0",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","react": "^17.0.1","react-dom": "^17.0.1",@@ -2369,9 +2369,9 @@"integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug=="},"node_modules/@types/react": {- "version": "17.0.3",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.3.tgz",- "integrity": "sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","dependencies": {"@types/prop-types": "*","@types/scheduler": "*",@@ -20950,9 +20950,9 @@"integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug=="},"@types/react": {- "version": "17.0.3",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.3.tgz",- "integrity": "sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","requires": {"@types/prop-types": "*","@types/scheduler": "*",diff --git a/packages/player-example/package.json b/packages/player-example/package.jsonindex 1ed1905124..5ebf049950 100644--- a/packages/player-example/package.json+++ b/packages/player-example/package.json@@ -15,7 +15,7 @@"@testing-library/user-event": "^12.1.10","@types/jest": "^26.0.15","@types/node": "^12.0.0",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","react": "^17.0.1","react-dom": "^17.0.1",diff --git a/packages/player/package-lock.json b/packages/player/package-lock.jsonindex 1f2dab51ec..5dfe05ac7f 100644--- a/packages/player/package-lock.json+++ b/packages/player/package-lock.json@@ -9,7 +9,7 @@"@testing-library/react": "^11.2.2","@types/jest": "^26.0.19","@types/node": "^14.14.14",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","eslint": "^7.4.0","jest": "^26.6.3",@@ -1301,9 +1301,9 @@"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="},"node_modules/@types/react": {- "version": "17.0.3",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.3.tgz",- "integrity": "sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","dependencies": {"@types/prop-types": "*","@types/scheduler": "*",@@ -10082,9 +10082,9 @@"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="},"@types/react": {- "version": "17.0.3",- "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.3.tgz",- "integrity": "sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==",+ "version": "17.0.8",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.8.tgz",+ "integrity": "sha512-3sx4c0PbXujrYAKwXxNONXUtRp9C+hE2di0IuxFyf5BELD+B+AXL8G7QrmSKhVwKZDbv0igiAjQAMhXj8Yg3aw==","requires": {"@types/prop-types": "*","@types/scheduler": "*",diff --git a/packages/player/package.json b/packages/player/package.jsonindex b16e70e9e5..3fb1b90d8f 100644--- a/packages/player/package.json+++ b/packages/player/package.json@@ -35,7 +35,7 @@"@testing-library/react": "^11.2.2","@types/jest": "^26.0.19","@types/node": "^14.14.14",- "@types/react": "^17.0.0",+ "@types/react": "17.0.8","@types/react-dom": "^17.0.0","eslint": "^7.4.0","jest": "^26.6.3",