Skip to content

🎥 Make videos programmatically with React

up styled components

Jonny Burgerea0229f9e46b
diff --git a/packages/example/package.json b/packages/example/package.json
index 0a5f231451..30ac7c3d8d 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -45,7 +45,7 @@
"@types/node": "^16.7.5",
"@types/opentype.js": "^1.3.4",
"@types/react": "18.0.26",
- "@types/styled-components": "^5.1.1",
+ "@types/styled-components": "^5.1.26",
"@types/web": "0.0.78",
"babel-loader": "^8.2.2",
"lottie-web": "^5.9.6",
@@ -54,7 +54,8 @@
"polished": "^4.0.5",
"prettier": "^2.7.1",
"remotion": "3.3.51",
- "styled-components": "^5.1.1",
+ "react-is": "^18.2.0",
+ "styled-components": "^5.3.6",
"ts-unused-exports": "^7.0.1",
"typescript": "^4.7.0",
"use-asset": "^1.0.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d6429ce975..5e1bcc6b3b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -488,7 +488,7 @@ importers:
'@types/node': ^16.7.5
'@types/opentype.js': ^1.3.4
'@types/react': 18.0.26
- '@types/styled-components': ^5.1.1
+ '@types/styled-components': ^5.1.26
'@types/web': 0.0.78
'@typescript-eslint/eslint-plugin': 5.18.0
'@typescript-eslint/parser': 5.18.0
@@ -503,8 +503,9 @@ importers:
polished: ^4.0.5
prettier: ^2.7.1
prettier-plugin-organize-imports: ^2.3.4
+ react-is: ^18.2.0
remotion: 3.3.51
- styled-components: ^5.1.1
+ styled-components: ^5.3.6
ts-unused-exports: ^7.0.1
typescript: ^4.7.0
use-asset: ^1.0.4
@@ -533,7 +534,7 @@ importers:
'@types/node': 16.10.2
'@types/opentype.js': 1.3.4
'@types/react': 18.0.26
- '@types/styled-components': 5.1.14
+ '@types/styled-components': 5.1.26
'@types/web': 0.0.78
babel-loader: 8.2.2_m3opitmgss2x7fiy6klia7uvaa
lottie-web: 5.9.6
@@ -541,8 +542,9 @@ importers:
opentype.js: 1.3.4
polished: 4.1.3
prettier: 2.7.1
+ react-is: 18.2.0
remotion: link:../core
- styled-components: 5.3.1_xwin6kermpfszgjtt7m5i5m4jy
+ styled-components: 5.3.6_7i5myeigehqah43i5u7wbekgba
ts-unused-exports: [email protected]
typescript: 4.7.2
use-asset: [email protected]
@@ -2596,8 +2598,8 @@ packages:
'@babel/helpers': 7.15.4
'@babel/parser': 7.15.7
'@babel/template': 7.15.4
- '@babel/traverse': 7.15.4
- '@babel/types': 7.15.6
+ '@babel/traverse': 7.19.1
+ '@babel/types': 7.21.0
convert-source-map: 1.8.0
debug: 4.3.4
gensync: 1.0.0-beta.2
@@ -2683,7 +2685,7 @@ packages:
resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.19.0
+ '@babel/types': 7.21.0
/@babel/helper-builder-binary-assignment-operator-visitor/7.15.4:
resolution: {integrity: sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==}
@@ -2807,7 +2809,7 @@ packages:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.18.6
- '@babel/helper-annotate-as-pure': 7.15.4
+ '@babel/helper-annotate-as-pure': 7.18.6
regexpu-core: 4.8.0
dev: false
@@ -2924,14 +2926,14 @@ packages:
resolution: {integrity: sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.15.6
+ '@babel/types': 7.21.0
dev: false
/@babel/helper-module-imports/7.18.6:
resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.19.0
+ '@babel/types': 7.21.0
/@babel/helper-module-transforms/7.15.7:
resolution: {integrity: sha512-ZNqjjQG/AuFfekFTY+7nY4RgBSklgTu970c7Rj3m/JOhIu5KPBUuTA9AY6zaKcUvk4g6EbDXdBnhi35FAssdSw==}
@@ -3158,7 +3160,7 @@ packages:
resolution: {integrity: sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/helper-validator-identifier': 7.15.7
+ '@babel/helper-validator-identifier': 7.19.1
chalk: 2.4.2
js-tokens: 4.0.0
dev: false
@@ -4156,7 +4158,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.18.6
- '@babel/helper-module-imports': 7.15.4
+ '@babel/helper-module-imports': 7.18.6
'@babel/helper-plugin-utils': 7.14.5
'@babel/helper-remap-async-to-generator': 7.15.4
transitivePeerDependencies:
@@ -4259,7 +4261,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.18.6
- '@babel/helper-annotate-as-pure': 7.15.4
+ '@babel/helper-annotate-as-pure': 7.18.6
'@babel/helper-function-name': 7.15.4
'@babel/helper-optimise-call-expression': 7.15.4
'@babel/helper-plugin-utils': 7.14.5
@@ -4681,7 +4683,7 @@ packages:
'@babel/helper-hoist-variables': 7.15.4
'@babel/helper-module-transforms': 7.15.7
'@babel/helper-plugin-utils': 7.14.5
- '@babel/helper-validator-identifier': 7.15.7
+ '@babel/helper-validator-identifier': 7.19.1
babel-plugin-dynamic-import-node: 2.3.3
transitivePeerDependencies:
- supports-color
@@ -5663,7 +5665,7 @@ packages:
'@babel/helper-plugin-utils': 7.14.5
'@babel/plugin-proposal-unicode-property-regex': 7.14.5_@[email protected]
'@babel/plugin-transform-dotall-regex': 7.14.5_@[email protected]
- '@babel/types': 7.15.6
+ '@babel/types': 7.21.0
esutils: 2.0.3
dev: false
@@ -5824,24 +5826,24 @@ packages:
- supports-color
dev: false
- /@babel/traverse/[email protected]:
- resolution: {integrity: sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==}
+ /@babel/traverse/7.19.1:
+ resolution: {integrity: sha512-0j/ZfZMxKukDaag2PtOPDbwuELqIar6lLskVPPJDjXMXjfLb1Obo/1yjxIGqqAJrmfaTIY3z2wFLAQ7qSkLsuA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/code-frame': 7.16.0
- '@babel/generator': 7.15.4
- '@babel/helper-function-name': 7.15.4
- '@babel/helper-hoist-variables': 7.15.4
- '@babel/helper-split-export-declaration': 7.15.4
- '@babel/parser': 7.15.7
- '@babel/types': 7.15.6
+ '@babel/code-frame': 7.18.6
+ '@babel/generator': 7.19.0
+ '@babel/helper-environment-visitor': 7.18.9
+ '@babel/helper-function-name': 7.19.0
+ '@babel/helper-hoist-variables': 7.18.6
+ '@babel/helper-split-export-declaration': 7.18.6
+ '@babel/parser': 7.19.1
+ '@babel/types': 7.19.0
+ debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
- dev: false
- /@babel/traverse/7.19.1:
+ /@babel/traverse/[email protected]:
resolution: {integrity: sha512-0j/ZfZMxKukDaag2PtOPDbwuELqIar6lLskVPPJDjXMXjfLb1Obo/1yjxIGqqAJrmfaTIY3z2wFLAQ7qSkLsuA==}
engines: {node: '>=6.9.0'}
dependencies:
@@ -5853,10 +5855,11 @@ packages:
'@babel/helper-split-export-declaration': 7.18.6
'@babel/parser': 7.19.1
'@babel/types': 7.19.0
- debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
+ dev: false
/@babel/types/7.15.6:
resolution: {integrity: sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==}
@@ -6675,14 +6678,14 @@ packages:
resolution: {integrity: sha512-8HqW8EVqjnCmWXVpqAOZf+EGESdkR27odcMMMGefgKXtar00SoYNSryGv//TELI4T3QFsECo78p+0lmalk/CFA==}
dev: false
- /@emotion/is-prop-valid/0.8.8:
- resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==}
+ /@emotion/is-prop-valid/1.2.0:
+ resolution: {integrity: sha512-3aDpDprjM0AwaxGE09bOPkNxHpBd+kA6jty3RnaEXdweX1DF1U3VQpPYb0g1IStAuK7SVQ1cy+bNBBKp4W3Fjg==}
dependencies:
- '@emotion/memoize': 0.7.4
+ '@emotion/memoize': 0.8.0
dev: false
- /@emotion/memoize/0.7.4:
- resolution: {integrity: sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==}
+ /@emotion/memoize/0.8.0:
+ resolution: {integrity: sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==}
dev: false
/@emotion/stylis/0.8.5:
@@ -9538,12 +9541,12 @@ packages:
'@types/node': 18.11.2
dev: false
- /@types/styled-components/5.1.14:
- resolution: {integrity: sha512-d6P1/tyNytqKwam3cQXq7a9uPtovc/mdAs7dBiz1YbDdNIT3X4WmuFU78YdSYh84TXVuhOwezZ3EeKuNBhwsHQ==}
+ /@types/styled-components/5.1.26:
+ resolution: {integrity: sha512-KuKJ9Z6xb93uJiIyxo/+ksS7yLjS1KzG6iv5i78dhVg/X3u5t1H7juRWqVmodIdz6wGVaIApo1u01kmFRdJHVw==}
dependencies:
'@types/hoist-non-react-statics': 3.3.1
'@types/react': 18.0.26
- csstype: 3.0.9
+ csstype: 3.1.1
dev: false
/@types/tar/6.1.1:
@@ -10837,20 +10840,20 @@ packages:
transitivePeerDependencies:
- supports-color
- /babel-plugin-styled-components/[email protected]:
+ /babel-plugin-styled-components/[email protected]:
resolution: {integrity: sha512-Vb1R3d4g+MUfPQPVDMCGjm3cDocJEUTR7Xq7QS95JWWeksN1wdFRYpD2kulDgI3Huuaf1CZd+NK4KQmqUFh5dA==}
peerDependencies:
styled-components: '>= 2'
dependencies:
- '@babel/helper-annotate-as-pure': 7.15.4
- '@babel/helper-module-imports': 7.15.4
+ '@babel/helper-annotate-as-pure': 7.18.6
+ '@babel/helper-module-imports': 7.18.6
babel-plugin-syntax-jsx: 6.18.0
lodash: 4.17.21
- styled-components: 5.3.1_xwin6kermpfszgjtt7m5i5m4jy
+ styled-components: 5.3.6_7i5myeigehqah43i5u7wbekgba
dev: false
/babel-plugin-syntax-jsx/6.18.0:
- resolution: {integrity: sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=}
+ resolution: {integrity: sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw==}
dev: false
/babel-plugin-syntax-trailing-function-commas/7.0.0-beta.0:
@@ -11295,7 +11298,7 @@ packages:
engines: {node: '>=10'}
/camelize/1.0.0:
- resolution: {integrity: sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=}
+ resolution: {integrity: sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg==}
dev: false
/caniuse-api/3.0.0:
@@ -12091,7 +12094,7 @@ packages:
dev: false
/css-color-keywords/1.0.0:
- resolution: {integrity: sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=}
+ resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==}
engines: {node: '>=4'}
dev: false
@@ -12197,7 +12200,7 @@ packages:
dependencies:
camelize: 1.0.0
css-color-keywords: 1.0.0
- postcss-value-parser: 4.1.0
+ postcss-value-parser: 4.2.0
dev: false
/css-tree/1.1.3:
@@ -12315,10 +12318,6 @@ packages:
cssom: 0.3.8
dev: true
- /csstype/3.0.9:
- resolution: {integrity: sha512-rpw6JPxK6Rfg1zLOYCSwle2GFOOsnjmDYDaBwEcwoOg4qlsIVCN789VkBZDJAGi4T07gI4YSutR43t9Zz4Lzuw==}
- dev: false
-
/csstype/3.1.1:
resolution: {integrity: sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==}
@@ -20041,8 +20040,8 @@ packages:
/react-is/17.0.2:
resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
- /react-is/18.0.0:
- resolution: {integrity: sha512-yUcBYdBBbo3QiPsgYDcfQcIkGZHfxOaoE6HLSnr1sPzMhdyxusbfKOSUbSd/ocGi32dxcj366PsTj+5oggeKKw==}
+ /react-is/18.2.0:
+ resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}
/react-json-view/1.21.3_dhtikzz4vae4grl5s3txc3txzu:
resolution: {integrity: sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==}
@@ -20262,7 +20261,7 @@ packages:
dependencies:
object-assign: 4.1.1
react: 18.0.0
- react-is: 18.0.0
+ react-is: 18.2.0
/react-textarea-autosize/8.3.3_mibu4szvw4ek6m273klteqcdre:
resolution: {integrity: sha512-2XlHXK2TDxS6vbQaoPbMOfQ8GK7+irc2fVK6QFIcC8GOnH3zI/v481n+j1L0WaPVvKxwesnY93fEfH++sus2rQ==}
@@ -22048,25 +22047,26 @@ packages:
inline-style-parser: 0.1.1
dev: false
- /styled-components/5.3.1_xwin6kermpfszgjtt7m5i5m4jy:
- resolution: {integrity: sha512-JThv2JRzyH0NOIURrk9iskdxMSAAtCfj/b2Sf1WJaCUsloQkblepy1jaCLX/bYE+mhYo3unmwVSI9I5d9ncSiQ==}
+ /styled-components/5.3.6_7i5myeigehqah43i5u7wbekgba:
+ resolution: {integrity: sha512-hGTZquGAaTqhGWldX7hhfzjnIYBZ0IXQXkCYdvF1Sq3DsUaLx6+NTHC5Jj1ooM2F68sBiVz3lvhfwQs/S3l6qg==}
engines: {node: '>=10'}
+ requiresBuild: true
peerDependencies:
react: '>= 16.8.0'
react-dom: '>= 16.8.0'
react-is: '>= 16.8.0'
dependencies:
- '@babel/helper-module-imports': 7.15.4
- '@babel/traverse': [email protected]
- '@emotion/is-prop-valid': 0.8.8
+ '@babel/helper-module-imports': 7.18.6
+ '@babel/traverse': [email protected]
+ '@emotion/is-prop-valid': 1.2.0
'@emotion/stylis': 0.8.5
'@emotion/unitless': 0.7.5
- babel-plugin-styled-components: [email protected]
+ babel-plugin-styled-components: [email protected]
css-to-react-native: 3.0.0
hoist-non-react-statics: 3.3.2
react: 18.2.0
react-dom: [email protected]
- react-is: 18.0.0
+ react-is: 18.2.0
shallowequal: 1.1.0
supports-color: 5.5.0
dev: false