🎥 Make videos programmatically with React
let's go
Jonny Burgercb5e3869705e
diff --git a/packages/bundler/src/read-recursively.ts b/packages/bundler/src/read-recursively.tsindex 5cf5a3b6ae..c5e63ffc9f 100644--- a/packages/bundler/src/read-recursively.ts+++ b/packages/bundler/src/read-recursively.ts@@ -46,7 +46,7 @@ export const readRecursively = ({name: path.join(folder, file),lastModified: Math.floor(stat.mtimeMs),sizeInBytes: stat.size,- src: staticHash + '/' + path.join(folder, file),+ src: staticHash + '/' + encodeURIComponent(path.join(folder, file)),});} else if (stat.isSymbolicLink()) {const realpath = fs.realpathSync(path.join(folder, file));@@ -56,7 +56,7 @@ export const readRecursively = ({name: realpath,lastModified: Math.floor(realStat.mtimeMs),sizeInBytes: realStat.size,- src: staticHash + '/' + realpath,+ src: staticHash + '/' + encodeURIComponent(realpath),});}}diff --git a/packages/cli/src/codemods/stringify-with-path.ts b/packages/cli/src/codemods/stringify-with-path.tsindex 77c1d43e5b..6d60808857 100644--- a/packages/cli/src/codemods/stringify-with-path.ts+++ b/packages/cli/src/codemods/stringify-with-path.ts@@ -37,7 +37,9 @@ export const stringifyDefaultProps = ({}if (typeof item === 'string' && item.startsWith(FILE_TOKEN)) {- return `__REMOVEQUOTE____WRAP_IN_STATIC_FILE_START__${item}__WRAP_IN_STATIC_FILE_END____REMOVEQUOTE__`;+ return `__REMOVEQUOTE____WRAP_IN_STATIC_FILE_START__${decodeURIComponent(+ item.replace(FILE_TOKEN, '')+ )}__WRAP_IN_STATIC_FILE_END____REMOVEQUOTE__`;}return value;diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsxindex 8c1c54c100..cfb86bfbe4 100644--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsx+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.tsx@@ -124,7 +124,11 @@ export const ZodStaticFileEditor: React.FC<{/><div style={isRoot ? undefined : container}>- <Combobox values={comboBoxValues} selectedId={value} title={value} />+ <Combobox+ values={comboBoxValues}+ selectedId={localValue.value}+ title={value}+ /></div>{!localValue.zodValidation.success && (<>diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsxindex 098715b2fa..40f428d617 100644--- a/packages/example/src/Video.tsx+++ b/packages/example/src/Video.tsx@@ -776,17 +776,15 @@ export const Index: React.FC = () => {yo: {hi: ' there'},un: 'hi',num: '179',- date: new Date('1999-02-12T20:20:00.000Z'),+ date: new Date('1999-02-12T22:20:00.000Z'),values: 'a' as const,supersuperlongvalueabcdefghji: 'hi',incompatible: null,longEnum: 'k' as const,color: '#eb3a60',nullable: null,- optional: '5645656',- filePath: staticFile(- 'remotion-file:remotion-file%3Aremotion-file%253Anested%252Fmp3.png'- ),+ optional: '',+ filePath: staticFile('nested/logö.png'),}}durationInFrames={150}/>