🎥 Make videos programmatically with React
Add basic examples with edit functionality
ASchwadbd06f115e4d7
diff --git a/bun.lock b/bun.lockindex d22f86da5a..a8b66a4912 100644--- a/bun.lock+++ b/bun.lock@@ -9,6 +9,7 @@"typescript": "5.8.2",},"devDependencies": {+ "@types/babel__standalone": "^7.1.9","@types/bun": "catalog:","@types/deno": "2.0.0","@types/react": "catalog:",@@ -1406,6 +1407,52 @@"typescript": "5.8.2",},},+ "packages/template-code-generation": {+ "name": "template-code-generation",+ "version": "0.1.0",+ "dependencies": {+ "@babel/standalone": "^7.28.5",+ "@monaco-editor/react": "^4.7.0",+ "@remotion/bundler": "workspace:*",+ "@remotion/cli": "workspace:*",+ "@remotion/google-fonts": "workspace:*",+ "@remotion/lambda": "workspace:*",+ "@remotion/paths": "workspace:*",+ "@remotion/player": "workspace:*",+ "@remotion/shapes": "workspace:*",+ "@remotion/tailwind-v4": "workspace:*",+ "clsx": "2.1.1",+ "monaco-editor": "^0.55.1",+ "next": "16.0.0",+ "react": "19.0.0",+ "react-dom": "19.0.0",+ "remotion": "workspace:*",+ "tailwind-merge": "3.0.1",+ "zod": "3.22.3",+ },+ "devDependencies": {+ "@eslint/eslintrc": "3.1.0",+ "@eslint/js": "9.38.0",+ "@next/eslint-plugin-next": "15.1.6",+ "@remotion/eslint-plugin": "workspace:*",+ "@tailwindcss/postcss": "4.1.1",+ "@types/node": "20.12.14",+ "@types/react": "19.0.0",+ "@types/react-dom": "19.0.0",+ "@types/web": "0.0.166",+ "@typescript-eslint/eslint-plugin": "8.46.0",+ "@typescript-eslint/parser": "8.46.0",+ "autoprefixer": "10.4.20",+ "dotenv": "16.0.3",+ "eslint": "9.19.0",+ "eslint-config-next": "15.1.6",+ "postcss": "8.4.47",+ "prettier": "3.6.0",+ "tailwindcss": "4.0.3",+ "typescript": "5.8.2",+ "typescript-eslint": "8.46.0",+ },+ },"packages/template-code-hike": {"name": "template-code-hike","version": "1.0.0",@@ -2530,6 +2577,8 @@"@babel/runtime-corejs3": ["@babel/[email protected]", "", { "dependencies": { "core-js-pure": "3.37.1", "regenerator-runtime": "0.14.1" } }, "sha512-YXHu5lN8kJCb1LOb9PgV6pvak43X2h4HvRApcN5SdWeaItQOzfn1hgP6jasD6KWQyJDBxrVmA9o9OivlnNJK/w=="],+ "@babel/standalone": ["@babel/[email protected]", "", {}, "sha512-1DViPYJpRU50irpGMfLBQ9B4kyfQuL6X7SS7pwTeWeZX0mNkjzPi0XFqxCjSdddZXUQy4AhnQnnesA/ZHnvAdw=="],+"@babel/template": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "7.26.2", "@babel/parser": "7.26.2", "@babel/types": "7.26.0" } }, "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg=="],"@babel/traverse": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "7.27.1", "@babel/generator": "7.26.2", "@babel/parser": "7.26.2", "@babel/template": "7.25.9", "@babel/types": "7.26.0", "debug": "4.4.1", "globals": "11.12.0" } }, "sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw=="],@@ -3024,6 +3073,10 @@"@module-federation/webpack-bundler-runtime": ["@module-federation/[email protected]", "", { "dependencies": { "@module-federation/runtime": "0.18.0", "@module-federation/sdk": "0.18.0" } }, "sha512-TEvErbF+YQ+6IFimhUYKK3a5wapD90d90sLsNpcu2kB3QGT7t4nIluE25duXuZDVUKLz86tEPrza/oaaCWTpvQ=="],+ "@monaco-editor/loader": ["@monaco-editor/[email protected]", "", { "dependencies": { "state-local": "^1.0.6" } }, "sha512-gIwR1HrJrrx+vfyOhYmCZ0/JcWqG5kbfG7+d3f/C1LXk2EvzAbHSg3MQ5lO2sMlo9izoAZ04shohfKLVT6crVA=="],++ "@monaco-editor/react": ["@monaco-editor/[email protected]", "", { "dependencies": { "@monaco-editor/loader": "^1.5.0" }, "peerDependencies": { "monaco-editor": ">= 0.25.0 < 1", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-cyzXQCtO47ydzxpQtCGSQGOC8Gk3ZUeBXFAxD+CWXYFo5OqZyZUonFl0DwUlTyAfRHntBfw2p3w4s9R6oe1eCA=="],+"@monogrid/gainmap-js": ["@monogrid/[email protected]", "", { "dependencies": { "promise-worker-transferable": "1.0.4" }, "peerDependencies": { "three": "0.178.0" } }, "sha512-Obb0/gEd/HReTlg8ttaYk+0m62gQJmCblMOjHSMHRrBP2zdfKMHLCRbh/6ex9fSUJMKdjjIEiohwkbGD3wj2Nw=="],"@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw=="],@@ -3766,11 +3819,13 @@"@types/babel__core": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "7.24.1", "@babel/types": "7.24.0", "@types/babel__generator": "7.6.3", "@types/babel__template": "7.4.1", "@types/babel__traverse": "7.14.2" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="],- "@types/babel__generator": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "7.24.0" } }, "sha512-/GWCmzJWqV7diQW54smJZzWbSFf4QYtF71WCKhcx6Ru/tFyQIY2eiiITcCAeuPbNSvT9YCGkVMqqvSk2Z0mXiA=="],+ "@types/babel__generator": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "^7.0.0" } }, "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg=="],- "@types/babel__template": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "7.24.1", "@babel/types": "7.24.0" } }, "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g=="],+ "@types/babel__standalone": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "^7.25.6", "@babel/types": "^7.25.6", "@types/babel__core": "^7.20.5", "@types/babel__generator": "^7.6.8", "@types/babel__template": "^7.4.4", "@types/babel__traverse": "^7.20.6" } }, "sha512-IcCNPLqpevUD7UpV8QB0uwQPOyoOKACFf0YtYWRHcmxcakaje4Q7dbG2+jMqxw/I8Zk0NHvEps66WwS7z/UaaA=="],- "@types/babel__traverse": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "7.24.0" } }, "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA=="],+ "@types/babel__template": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A=="],++ "@types/babel__traverse": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "^7.28.2" } }, "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q=="],"@types/body-parser": ["@types/[email protected]", "", { "dependencies": { "@types/connect": "3.4.38", "@types/node": "20.12.14" } }, "sha512-a6bTJ21vFOGIkwM0kzh9Yr89ziVxq4vYH2fQ6N8AeipEzai/cFK6aGMArIkUeIdRIgpwQa+2bXiLuUJCpSf2Cg=="],@@ -3960,6 +4015,8 @@"@types/tough-cookie": ["@types/[email protected]", "", {}, "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA=="],+ "@types/trusted-types": ["@types/[email protected]", "", {}, "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="],+"@types/unist": ["@types/[email protected]", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="],"@types/uuid": ["@types/[email protected]", "", {}, "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw=="],@@ -4666,6 +4723,8 @@"domhandler": ["[email protected]", "", { "dependencies": { "domelementtype": "2.3.0" } }, "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w=="],+ "dompurify": ["[email protected]", "", { "optionalDependencies": { "@types/trusted-types": "^2.0.7" } }, "sha512-WhL/YuveyGXJaerVlMYGWhvQswa7myDG17P7Vu65EWC05o8vfeNbvNf4d/BOvH99+ZW+LlQsc1GDKMa1vNK6dw=="],+"domutils": ["[email protected]", "", { "dependencies": { "dom-serializer": "2.0.0", "domelementtype": "2.3.0", "domhandler": "5.0.3" } }, "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q=="],"dot-case": ["[email protected]", "", { "dependencies": { "no-case": "3.0.4", "tslib": "2.8.1" } }, "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w=="],@@ -5486,7 +5545,7 @@"markdown-table": ["[email protected]", "", { "dependencies": { "repeat-string": "1.6.1" } }, "sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A=="],- "marked": ["[email protected]", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A=="],+ "marked": ["[email protected]", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-uIj4+faQ+MgHgwUW1l2PsPglZLOLOT1uErt06dAPtx2kjteLAkbsd/0FiYg/MGS+i7ZKLb7w2WClxHkzOOuryQ=="],"math-intrinsics": ["[email protected]", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],@@ -5672,6 +5731,8 @@"modern-ahocorasick": ["[email protected]", "", {}, "sha512-yoe+JbhTClckZ67b2itRtistFKf8yPYelHLc7e5xAwtNAXxM6wJTUx2C7QeVSJFDzKT7bCIFyBVybPMKvmB9AA=="],+ "monaco-editor": ["[email protected]", "", { "dependencies": { "dompurify": "3.2.7", "marked": "14.0.0" } }, "sha512-jz4x+TJNFHwHtwuV9vA9rMujcZRb0CEilTEwG2rRSpe/A7Jdkuj8xPKttCgOh+v/lkHy7HsZ64oj+q3xoAFl9A=="],+"morgan": ["[email protected]", "", { "dependencies": { "basic-auth": "2.0.1", "debug": "2.6.9", "depd": "2.0.0", "on-finished": "2.3.0", "on-headers": "1.0.2" } }, "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ=="],"mri": ["[email protected]", "", {}, "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="],@@ -6484,6 +6545,8 @@"stackback": ["[email protected]", "", {}, "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw=="],+ "state-local": ["[email protected]", "", {}, "sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w=="],+"stats-gl": ["[email protected]", "", { "peerDependencies": { "@types/three": "0.170.0", "three": "0.178.0" } }, "sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ=="],"stats.js": ["[email protected]", "", {}, "sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw=="],@@ -6596,6 +6659,8 @@"template-audiogram": ["template-audiogram@workspace:packages/template-audiogram"],+ "template-code-generation": ["template-code-generation@workspace:packages/template-code-generation"],+"template-code-hike": ["template-code-hike@workspace:packages/template-code-hike"],"template-empty": ["template-empty@workspace:packages/template-blank"],@@ -8028,6 +8093,24 @@"@tybys/wasm-util/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+ "@types/babel__core/@types/babel__generator": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "7.24.0" } }, "sha512-/GWCmzJWqV7diQW54smJZzWbSFf4QYtF71WCKhcx6Ru/tFyQIY2eiiITcCAeuPbNSvT9YCGkVMqqvSk2Z0mXiA=="],++ "@types/babel__core/@types/babel__template": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "7.24.1", "@babel/types": "7.24.0" } }, "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g=="],++ "@types/babel__core/@types/babel__traverse": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "7.24.0" } }, "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA=="],++ "@types/babel__generator/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],++ "@types/babel__standalone/@babel/parser": ["@babel/[email protected]", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],++ "@types/babel__standalone/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],++ "@types/babel__template/@babel/parser": ["@babel/[email protected]", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],++ "@types/babel__template/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],++ "@types/babel__traverse/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],+"@types/connect-history-api-fallback/@types/express-serve-static-core": ["@types/[email protected]", "", { "dependencies": { "@types/node": "20.12.14", "@types/qs": "6.9.7", "@types/range-parser": "1.2.4", "@types/send": "0.17.1" } }, "sha512-5kz9ScmzBdzTgB/3susoCgfqNDzBjvLL4taparufgSvlwjdLy6UyUy9T/tCpYd2GIdIilCatC4iSQS0QSYHt0w=="],"@types/express-rate-limit/@types/express": ["@types/[email protected]", "", { "dependencies": { "@types/body-parser": "1.19.1", "@types/express-serve-static-core": "5.0.4", "@types/serve-static": "1.13.10" } }, "sha512-UZUw8vjpWFXuDnjFTh7/5c2TWDlQqeXHi6hcN7F2XSVT5P+WmUnnbFS3KA6Jnc6IsEqI2qCVu2bK0R0J4A8ZQQ=="],@@ -8474,6 +8557,8 @@"jsdoc/escape-string-regexp": ["[email protected]", "", {}, "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="],+ "jsdoc/marked": ["[email protected]", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A=="],+"jszip/readable-stream": ["[email protected]", "", { "dependencies": { "core-util-is": "1.0.3", "inherits": "2.0.4", "isarray": "1.0.0", "process-nextick-args": "2.0.1", "safe-buffer": "5.1.2", "string_decoder": "1.1.1", "util-deprecate": "1.0.2" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],"lazystream/readable-stream": ["[email protected]", "", { "dependencies": { "core-util-is": "1.0.3", "inherits": "2.0.4", "isarray": "1.0.0", "process-nextick-args": "2.0.1", "safe-buffer": "5.1.2", "string_decoder": "1.1.1", "util-deprecate": "1.0.2" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],@@ -9004,6 +9089,20 @@"template-ai-video/uuid": ["[email protected]", "", { "bin": { "uuid": "dist-node/bin/uuid" } }, "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w=="],+ "template-code-generation/@eslint/js": ["@eslint/[email protected]", "", {}, "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A=="],++ "template-code-generation/@typescript-eslint/eslint-plugin": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/type-utils": "8.46.0", "@typescript-eslint/utils": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.46.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hA8gxBq4ukonVXPy0OKhiaUh/68D0E88GSmtC1iAEnGaieuDi38LhS7jdCHRLi6ErJBNDGCzvh5EnzdPwUc0DA=="],++ "template-code-generation/@typescript-eslint/parser": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-n1H6IcDhmmUEG7TNVSspGmiHHutt7iVKtZwRppD7e04wha5MrkV1h3pti9xQLcCMt6YWsncpoT0HMjkH1FNwWQ=="],++ "template-code-generation/dotenv": ["[email protected]", "", {}, "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ=="],++ "template-code-generation/tailwind-merge": ["[email protected]", "", {}, "sha512-AvzE8FmSoXC7nC+oU5GlQJbip2UO7tmOhOfQyOmPhrStOGXHU08j8mZEHZ4BmCqY5dWTCo4ClWkNyRNx1wpT0g=="],++ "template-code-generation/tailwindcss": ["[email protected]", "", {}, "sha512-ImmZF0Lon5RrQpsEAKGxRvHwCvMgSC4XVlFRqmbzTEDb/3wvin9zfEZrMwgsa3yqBbPqahYcVI6lulM2S7IZAA=="],++ "template-code-generation/typescript-eslint": ["[email protected]", "", { "dependencies": { "@typescript-eslint/eslint-plugin": "8.46.0", "@typescript-eslint/parser": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/utils": "8.46.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-6+ZrB6y2bT2DX3K+Qd9vn7OFOJR+xSLDj+Aw/N3zBwUt27uTw2sw2TE2+UcY1RiyBZkaGbTkVg9SSdPNUG6aUw=="],+"template-next-app/@eslint/js": ["@eslint/[email protected]", "", {}, "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A=="],"template-next-app/@typescript-eslint/eslint-plugin": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/type-utils": "8.46.0", "@typescript-eslint/utils": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.46.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hA8gxBq4ukonVXPy0OKhiaUh/68D0E88GSmtC1iAEnGaieuDi38LhS7jdCHRLi6ErJBNDGCzvh5EnzdPwUc0DA=="],@@ -10128,6 +10227,22 @@"@tailwindcss/vite/vite/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "3.3.11", "picocolors": "1.1.1", "source-map-js": "1.2.1" } }, "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ=="],+ "@types/babel__generator/@babel/types/@babel/helper-string-parser": ["@babel/[email protected]", "", {}, "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA=="],++ "@types/babel__generator/@babel/types/@babel/helper-validator-identifier": ["@babel/[email protected]", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],++ "@types/babel__standalone/@babel/types/@babel/helper-string-parser": ["@babel/[email protected]", "", {}, "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA=="],++ "@types/babel__standalone/@babel/types/@babel/helper-validator-identifier": ["@babel/[email protected]", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],++ "@types/babel__template/@babel/types/@babel/helper-string-parser": ["@babel/[email protected]", "", {}, "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA=="],++ "@types/babel__template/@babel/types/@babel/helper-validator-identifier": ["@babel/[email protected]", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],++ "@types/babel__traverse/@babel/types/@babel/helper-string-parser": ["@babel/[email protected]", "", {}, "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA=="],++ "@types/babel__traverse/@babel/types/@babel/helper-validator-identifier": ["@babel/[email protected]", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],+"@types/express-rate-limit/@types/express/@types/express-serve-static-core": ["@types/[email protected]", "", { "dependencies": { "@types/node": "20.12.14", "@types/qs": "6.9.7", "@types/range-parser": "1.2.4", "@types/send": "0.17.1" } }, "sha512-5kz9ScmzBdzTgB/3susoCgfqNDzBjvLL4taparufgSvlwjdLy6UyUy9T/tCpYd2GIdIilCatC4iSQS0QSYHt0w=="],"@types/express-rate-limit/@types/express/@types/serve-static": ["@types/[email protected]", "", { "dependencies": { "@types/mime": "1.3.2", "@types/node": "20.12.14" } }, "sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ=="],@@ -10880,6 +10995,32 @@"teeny-request/https-proxy-agent/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],+ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/utils": "8.46.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hy+lvYV1lZpVs2jRaEYvgCblZxUoJiPyCemwbQZ+NGulWkQRy0HRPYAoef/CNSzaLt+MLvMptZsHXHlkEilaeg=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-nD6yGWPj1xiOm4Gk0k6hLSZz2XkNXhuYmyIrOWcHoPuAhjT9i5bAG+xbWPgFeNR8HPHHtpNKdYUXJl/D3x7f5g=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/ignore": ["[email protected]", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],++ "template-code-generation/@typescript-eslint/parser/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-nD6yGWPj1xiOm4Gk0k6hLSZz2XkNXhuYmyIrOWcHoPuAhjT9i5bAG+xbWPgFeNR8HPHHtpNKdYUXJl/D3x7f5g=="],+"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/utils": "8.46.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hy+lvYV1lZpVs2jRaEYvgCblZxUoJiPyCemwbQZ+NGulWkQRy0HRPYAoef/CNSzaLt+MLvMptZsHXHlkEilaeg=="],@@ -12732,6 +12873,42 @@"shiki-twoslash/@typescript/twoslash/@typescript/vfs/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],+ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],+"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],@@ -13582,6 +13759,22 @@"renderkid/css-select/domutils/dom-serializer/entities": ["[email protected]", "", {}, "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A=="],+ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-code-generation/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],++ "template-code-generation/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/scope-manager/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],+"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],@@ -14022,6 +14215,10 @@"remark-mdx/mdast-util-mdx/mdast-util-mdx-jsx/unist-util-remove-position/unist-util-visit/unist-util-visit-parents": ["[email protected]", "", { "dependencies": { "@types/unist": "2.0.6", "unist-util-is": "5.2.0" } }, "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg=="],+ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],++ "template-code-generation/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],+"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],"template-next-app-tailwind/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],diff --git a/package.json b/package.jsonindex 8a74cac7b3..a93230e44f 100644--- a/package.json+++ b/package.json@@ -43,6 +43,7 @@"node": ">=16"},"devDependencies": {+ "@types/babel__standalone": "^7.1.9","@types/bun": "catalog:","@types/deno": "2.0.0","@types/react": "catalog:",diff --git a/packages/template-code-generation/package.json b/packages/template-code-generation/package.jsonindex 624663185b..8341fb4bf4 100644--- a/packages/template-code-generation/package.json+++ b/packages/template-code-generation/package.json@@ -11,6 +11,9 @@"deploy": "node deploy.mjs"},"dependencies": {+ "@babel/standalone": "^7.28.5",+ "@monaco-editor/react": "^4.7.0",+ "monaco-editor": "^0.55.1","@remotion/bundler": "workspace:*","@remotion/cli": "workspace:*","@remotion/google-fonts": "workspace:*",diff --git a/packages/template-code-generation/src/app/page.tsx b/packages/template-code-generation/src/app/page.tsxindex 1f92cb246a..b9265071c1 100644--- a/packages/template-code-generation/src/app/page.tsx+++ b/packages/template-code-generation/src/app/page.tsx@@ -1,62 +1,137 @@"use client";-import { Player } from "@remotion/player";+import { useState, useCallback, useEffect, useRef } from "react";import type { NextPage } from "next";-import { useMemo, useState } from "react";-import { z } from "zod";-import {- defaultMyCompProps,- CompositionProps,- DURATION_IN_FRAMES,- VIDEO_FPS,- VIDEO_HEIGHT,- VIDEO_WIDTH,-} from "../../types/constants";-import { RenderControls } from "../components/RenderControls";-import { Spacing } from "../components/Spacing";-import { Tips } from "../components/Tips";-import { Main } from "../remotion/MyComp/Main";+import { ExampleSelector } from "../components/ExampleSelector";+import { CodeEditor } from "../components/CodeEditor";+import { AnimationPlayer } from "../components/AnimationPlayer";+import { examples, RemotionExample } from "../templates";+import { useAnimationState } from "../hooks/useAnimationState";const Home: NextPage = () => {- const [text, setText] = useState<string>(defaultMyCompProps.title);+ const [selectedExample, setSelectedExample] =+ useState<RemotionExample | null>(examples[0] || null);+ const [durationInFrames, setDurationInFrames] = useState(+ examples[0]?.durationInFrames || 150+ );+ const [fps, setFps] = useState(examples[0]?.fps || 30);+ const [isEditorOpen, setIsEditorOpen] = useState(true);++ const { code, Component, error, isCompiling, setCode, compileCode } =+ useAnimationState(examples[0]?.code || "");++ // Debounce compilation+ const debounceRef = useRef<ReturnType<typeof setTimeout> | null>(null);++ const handleCodeChange = useCallback(+ (newCode: string) => {+ setCode(newCode);++ // Clear existing debounce+ if (debounceRef.current) {+ clearTimeout(debounceRef.current);+ }++ // Set new debounce+ debounceRef.current = setTimeout(() => {+ compileCode(newCode);+ }, 500);+ },+ [setCode, compileCode]+ );- const inputProps: z.infer<typeof CompositionProps> = useMemo(() => {- return {- title: text,+ const handleExampleSelect = useCallback(+ (example: RemotionExample) => {+ setSelectedExample(example);+ setCode(example.code);+ setDurationInFrames(example.durationInFrames);+ setFps(example.fps);++ // Immediately compile the example code+ if (debounceRef.current) {+ clearTimeout(debounceRef.current);+ }+ compileCode(example.code);+ },+ [setCode, compileCode]+ );++ // Cleanup debounce on unmount+ useEffect(() => {+ return () => {+ if (debounceRef.current) {+ clearTimeout(debounceRef.current);+ }};- }, [text]);+ }, []);return (- <div>- <div className="max-w-screen-md m-auto mb-5">- <div className="overflow-hidden rounded-geist shadow-[0_0_200px_rgba(0,0,0,0.15)] mb-10 mt-16">- <Player- component={Main}- inputProps={inputProps}- durationInFrames={DURATION_IN_FRAMES}- fps={VIDEO_FPS}- compositionHeight={VIDEO_HEIGHT}- compositionWidth={VIDEO_WIDTH}- style={{- // Can't use tailwind class for width since player's default styles take presedence over tailwind's,- // but not over inline styles- width: "100%",- }}- controls- autoPlay- loop+ <div className="flex h-screen w-screen overflow-hidden bg-[#0a0a0a]">+ <ExampleSelector+ selectedExampleId={selectedExample?.id || null}+ onSelectExample={handleExampleSelect}+ />++ <div className="flex-1 flex flex-col min-w-0">+ <div className="flex justify-between items-center px-6 py-3 bg-[#0f0f0f] border-b border-[#2a2a2a]">+ <div className="text-xl font-bold text-white font-sans">+ Remotion Playground+ </div>+ <div className="flex items-center gap-6">+ <div className="flex items-center gap-2">+ <span className="text-sm text-[#888] font-sans">+ Duration (frames):+ </span>+ <input+ type="number"+ min={1}+ max={1000}+ value={durationInFrames}+ onChange={(e) =>+ setDurationInFrames(+ Math.max(1, parseInt(e.target.value) || 1)+ )+ }+ className="w-20 px-3 py-1.5 rounded border border-[#333] bg-[#1a1a1a] text-white text-sm font-sans"+ />+ </div>+ <div className="flex items-center gap-2">+ <span className="text-sm text-[#888] font-sans">FPS:</span>+ <input+ type="number"+ min={1}+ max={60}+ value={fps}+ onChange={(e) =>+ setFps(+ Math.max(1, Math.min(60, parseInt(e.target.value) || 30))+ )+ }+ className="w-20 px-3 py-1.5 rounded border border-[#333] bg-[#1a1a1a] text-white text-sm font-sans"+ />+ </div>+ <button+ className="px-4 py-2 rounded border-none bg-indigo-500 text-white text-sm font-medium cursor-pointer font-sans transition-colors hover:bg-indigo-600"+ onClick={() => setIsEditorOpen(!isEditorOpen)}+ >+ {isEditorOpen ? "Hide Editor" : "Show Editor"}+ </button>+ </div>+ </div>++ <div className="flex-1 flex overflow-hidden">+ <AnimationPlayer+ Component={Component}+ durationInFrames={durationInFrames}+ fps={fps}+ isCompiling={isCompiling}+ error={error}/>++ {isEditorOpen && (+ <CodeEditor code={code} onChange={handleCodeChange} />+ )}</div>- <RenderControls- text={text}- setText={setText}- inputProps={inputProps}- ></RenderControls>- <Spacing></Spacing>- <Spacing></Spacing>- <Spacing></Spacing>- <Spacing></Spacing>- <Tips></Tips></div></div>);diff --git a/packages/template-code-generation/src/components/AnimationPlayer.tsx b/packages/template-code-generation/src/components/AnimationPlayer.tsxnew file mode 100644index 0000000000..87905375f8--- /dev/null+++ b/packages/template-code-generation/src/components/AnimationPlayer.tsx@@ -0,0 +1,76 @@+"use client";++import React from "react";+import { Player } from "@remotion/player";++interface AnimationPlayerProps {+ Component: React.FC | null;+ durationInFrames: number;+ fps: number;+ isCompiling: boolean;+ error: string | null;+}++export const AnimationPlayer: React.FC<AnimationPlayerProps> = ({+ Component,+ durationInFrames,+ fps,+ isCompiling,+ error,+}) => {+ if (isCompiling) {+ return (+ <div className="flex-1 flex flex-col justify-center items-center p-6 bg-[#0a0a0a] min-w-0">+ <div className="w-full max-w-[800px] aspect-video flex justify-center items-center bg-[#1a1a1a] rounded-lg">+ <div className="w-12 h-12 border-4 border-[#333] border-t-[#6366f1] rounded-full animate-spin" />+ </div>+ </div>+ );+ }++ if (error) {+ return (+ <div className="flex-1 flex flex-col justify-center items-center p-6 bg-[#0a0a0a] min-w-0">+ <div className="w-full max-w-[800px] p-6 bg-[#2a1a1a] rounded-lg border border-[#dc2626]">+ <div className="text-[#dc2626] text-base font-semibold mb-2 font-sans">+ Compilation Error+ </div>+ <div className="text-[#f87171] text-sm font-mono whitespace-pre-wrap break-words">+ {error}+ </div>+ </div>+ </div>+ );+ }++ if (!Component) {+ return (+ <div className="flex-1 flex flex-col justify-center items-center p-6 bg-[#0a0a0a] min-w-0">+ <div className="w-full max-w-[800px] aspect-video flex justify-center items-center bg-[#1a1a1a] rounded-lg text-[#666] text-lg font-sans">+ Select an example to get started+ </div>+ </div>+ );+ }++ return (+ <div className="flex-1 flex flex-col justify-center items-center p-6 bg-[#0a0a0a] min-w-0">+ <div className="w-full max-w-[800px] aspect-video rounded-lg overflow-hidden shadow-[0_0_60px_rgba(0,0,0,0.5)]">+ <Player+ component={Component}+ durationInFrames={durationInFrames}+ fps={fps}+ compositionHeight={1080}+ compositionWidth={1920}+ style={{+ width: "100%",+ height: "100%",+ }}+ controls+ autoPlay+ loop+ />+ </div>+ </div>+ );+};diff --git a/packages/template-code-generation/src/components/CodeEditor.tsx b/packages/template-code-generation/src/components/CodeEditor.tsxnew file mode 100644index 0000000000..73a76f0c2a--- /dev/null+++ b/packages/template-code-generation/src/components/CodeEditor.tsx@@ -0,0 +1,55 @@+"use client";++import React from "react";+import dynamic from "next/dynamic";++// Monaco must be loaded client-side only+const MonacoEditor = dynamic(() => import("@monaco-editor/react"), {+ ssr: false,+ loading: () => (+ <div className="w-[600px] h-full flex justify-center items-center bg-[#1e1e1e]">+ <span className="text-[#888] font-sans">Loading editor...</span>+ </div>+ ),+});++interface CodeEditorProps {+ code: string;+ onChange: (value: string) => void;+}++const headerText = `// Available Remotion imports:+// Remotion.AbsoluteFill, Remotion.interpolate,+// Remotion.useCurrentFrame, Remotion.useVideoConfig,+// Remotion.spring, Remotion.Sequence+//+// Your code should be an arrow function returning JSX:`;++export const CodeEditor: React.FC<CodeEditorProps> = ({ code, onChange }) => {+ return (+ <div className="w-[600px] h-full flex flex-col bg-[#1e1e1e] border-l border-[#2a2a2a]">+ <div className="p-3 px-4 bg-[#252526] border-b border-[#2a2a2a] font-mono text-xs text-[#6a9955] leading-relaxed whitespace-pre">+ {headerText}+ </div>+ <div className="flex-1 overflow-hidden">+ <MonacoEditor+ height="100%"+ defaultLanguage="javascript"+ theme="vs-dark"+ value={code}+ onChange={(value) => onChange(value || "")}+ options={{+ minimap: { enabled: false },+ fontSize: 14,+ lineNumbers: "on",+ scrollBeyondLastLine: false,+ automaticLayout: true,+ tabSize: 2,+ wordWrap: "on",+ padding: { top: 16 },+ }}+ />+ </div>+ </div>+ );+};diff --git a/packages/template-code-generation/src/components/ExampleSelector.tsx b/packages/template-code-generation/src/components/ExampleSelector.tsxnew file mode 100644index 0000000000..5746a2c590--- /dev/null+++ b/packages/template-code-generation/src/components/ExampleSelector.tsx@@ -0,0 +1,69 @@+"use client";++import React, { useState } from "react";+import { examples, RemotionExample } from "../templates";++interface ExampleSelectorProps {+ selectedExampleId: string | null;+ onSelectExample: (example: RemotionExample) => void;+}++const getCategoryColor = (category: RemotionExample["category"]) => {+ switch (category) {+ case "Text":+ return { bg: "bg-blue-800", text: "text-blue-300" };+ case "Charts":+ return { bg: "bg-emerald-800", text: "text-emerald-300" };+ case "Other":+ return { bg: "bg-violet-800", text: "text-violet-300" };+ }+};++export const ExampleSelector: React.FC<ExampleSelectorProps> = ({+ selectedExampleId,+ onSelectExample,+}) => {+ const [hoveredId, setHoveredId] = useState<string | null>(null);++ return (+ <div className="w-80 h-full bg-[#0f0f0f] border-r border-[#2a2a2a] overflow-y-auto p-4">+ <h2 className="text-lg font-bold text-white mb-4 font-sans">Examples</h2>+ {examples.map((example) => {+ const isSelected = selectedExampleId === example.id;+ const isHovered = hoveredId === example.id;+ const colors = getCategoryColor(example.category);++ return (+ <div+ key={example.id}+ className={`+ rounded-lg p-4 mb-3 cursor-pointer transition-all duration-200+ ${+ isSelected+ ? "border border-indigo-500 bg-[#1e1e2e]"+ : isHovered+ ? "border border-[#444] bg-[#1a1a1a]"+ : "border border-transparent bg-[#1a1a1a]"+ }+ `}+ onClick={() => onSelectExample(example)}+ onMouseEnter={() => setHoveredId(example.id)}+ onMouseLeave={() => setHoveredId(null)}+ >+ <div className="text-base font-semibold text-white mb-1 font-sans">+ {example.name}+ </div>+ <div className="text-sm text-[#888] mb-2 font-sans">+ {example.description}+ </div>+ <span+ className={`inline-block text-xs px-2 py-0.5 rounded font-sans ${colors.bg} ${colors.text}`}+ >+ {example.category}+ </span>+ </div>+ );+ })}+ </div>+ );+};diff --git a/packages/template-code-generation/src/hooks/useAnimationState.ts b/packages/template-code-generation/src/hooks/useAnimationState.tsnew file mode 100644index 0000000000..c6cf1f801d--- /dev/null+++ b/packages/template-code-generation/src/hooks/useAnimationState.ts@@ -0,0 +1,63 @@+"use client";++import { useState, useEffect, useCallback } from "react";+import { useCodeCompiler, CompilationResult } from "./useCodeCompiler";++export interface AnimationState {+ code: string;+ Component: React.FC | null;+ error: string | null;+ isCompiling: boolean;+}++export function useAnimationState(initialCode: string = "") {+ const { compile } = useCodeCompiler();+ const [state, setState] = useState<AnimationState>({+ code: initialCode,+ Component: null,+ error: null,+ isCompiling: false,+ });++ // Compile code when it changes (with debouncing handled by caller)+ const compileCode = useCallback(+ (code: string) => {+ setState((prev) => ({ ...prev, isCompiling: true }));++ const result: CompilationResult = compile(code);++ setState((prev) => ({+ ...prev,+ Component: result.Component,+ error: result.error,+ isCompiling: false,+ }));+ },+ [compile]+ );++ // Update code and trigger compilation+ const setCode = useCallback((newCode: string) => {+ setState((prev) => ({ ...prev, code: newCode }));+ }, []);++ // Manual compilation trigger+ const manualCompile = useCallback(() => {+ compileCode(state.code);+ }, [compileCode, state.code]);++ // Auto-compile when component mounts with initial code+ useEffect(() => {+ if (initialCode) {+ compileCode(initialCode);+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);++ return {+ ...state,+ setCode,+ compileCode,+ manualCompile,+ };+}diff --git a/packages/template-code-generation/src/hooks/useCodeCompiler.ts b/packages/template-code-generation/src/hooks/useCodeCompiler.tsnew file mode 100644index 0000000000..5427feffab--- /dev/null+++ b/packages/template-code-generation/src/hooks/useCodeCompiler.ts@@ -0,0 +1,91 @@+"use client";++import { useCallback } from "react";+import * as Babel from "@babel/standalone";+import React from "react";+import {+ AbsoluteFill,+ interpolate,+ useCurrentFrame,+ useVideoConfig,+ spring,+ Sequence,+} from "remotion";++export interface CompilationResult {+ Component: React.FC | null;+ error: string | null;+}++export function useCodeCompiler() {+ const compile = useCallback((code: string): CompilationResult => {+ if (!code.trim()) {+ return { Component: null, error: "No code provided" };+ }++ try {+ // Transpile JSX/TypeScript to JavaScript using Babel+ const transpiled = Babel.transform(code, {+ presets: ["react", "typescript"],+ filename: "dynamic-animation.tsx",+ });++ if (!transpiled.code) {+ return { Component: null, error: "Transpilation failed" };+ }++ // Create the Remotion API object to inject+ const Remotion = {+ AbsoluteFill,+ interpolate,+ useCurrentFrame,+ useVideoConfig,+ spring,+ Sequence,+ };++ // Create a function that has access to React and Remotion APIs+ // The code should be a function expression that returns a component+ const createComponent = new Function(+ "React",+ "Remotion",+ "AbsoluteFill",+ "interpolate",+ "useCurrentFrame",+ "useVideoConfig",+ "spring",+ "Sequence",+ `+ const DynamicAnimation = ${transpiled.code};+ return DynamicAnimation;+ `+ );++ const Component = createComponent(+ React,+ Remotion,+ AbsoluteFill,+ interpolate,+ useCurrentFrame,+ useVideoConfig,+ spring,+ Sequence+ );++ if (typeof Component !== "function") {+ return {+ Component: null,+ error: "Code must be a function that returns a React component",+ };+ }++ return { Component, error: null };+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Unknown compilation error";+ return { Component: null, error: errorMessage };+ }+ }, []);++ return { compile };+}diff --git a/packages/template-code-generation/src/templates/index.ts b/packages/template-code-generation/src/templates/index.tsnew file mode 100644index 0000000000..236bd48b15--- /dev/null+++ b/packages/template-code-generation/src/templates/index.ts@@ -0,0 +1,421 @@+export interface RemotionExample {+ id: string;+ name: string;+ description: string;+ code: string;+ durationInFrames: number;+ fps: number;+ category: "Text" | "Charts" | "Other";+}++export const examples: RemotionExample[] = [+ {+ id: "text-rotation",+ name: "Text Rotation",+ description: "Rotating words with dissolve and blur effects",+ category: "Text",+ durationInFrames: 240,+ fps: 30,+ code: `() => {+ const frame = Remotion.useCurrentFrame();+ const { fps } = Remotion.useVideoConfig();++ const words = ["Hello", "World", "Remotion", "React"];+ const wordDuration = 60; // frames per word+ const currentWordIndex = Math.floor(frame / wordDuration) % words.length;+ const frameInWord = frame % wordDuration;++ // Fade in/out animation+ const opacity = Remotion.interpolate(+ frameInWord,+ [0, 15, 45, 60],+ [0, 1, 1, 0],+ { extrapolateRight: "clamp" }+ );++ // Scale animation+ const scale = Remotion.interpolate(+ frameInWord,+ [0, 15, 45, 60],+ [0.8, 1, 1, 1.2],+ { extrapolateRight: "clamp" }+ );++ // Blur animation+ const blur = Remotion.interpolate(+ frameInWord,+ [0, 15, 45, 60],+ [10, 0, 0, 10],+ { extrapolateRight: "clamp" }+ );++ return (+ <Remotion.AbsoluteFill+ style={{+ backgroundColor: "#1a1a2e",+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <h1+ style={{+ fontSize: 120,+ fontWeight: "bold",+ color: "#eee",+ opacity,+ transform: \`scale(\${scale})\`,+ filter: \`blur(\${blur}px)\`,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {words[currentWordIndex]}+ </h1>+ </Remotion.AbsoluteFill>+ );+}`,+ },+ {+ id: "chat-messages",+ name: "Chat Messages",+ description: "WhatsApp-style bouncy message bubbles",+ category: "Text",+ durationInFrames: 180,+ fps: 30,+ code: `() => {+ const frame = Remotion.useCurrentFrame();+ const { fps } = Remotion.useVideoConfig();++ const messages = [+ { text: "Hey! How are you?", isMe: false, delay: 0 },+ { text: "I'm good! Working on Remotion", isMe: true, delay: 30 },+ { text: "That's awesome! Show me!", isMe: false, delay: 60 },+ { text: "Check this out!", isMe: true, delay: 90 },+ ];++ return (+ <Remotion.AbsoluteFill+ style={{+ backgroundColor: "#0a0a0a",+ padding: 40,+ justifyContent: "center",+ }}+ >+ <div style={{ maxWidth: 500, margin: "0 auto" }}>+ {messages.map((msg, i) => {+ const progress = Remotion.spring({+ frame: frame - msg.delay,+ fps,+ config: { damping: 12, stiffness: 200 },+ });++ if (frame < msg.delay) return null;++ return (+ <div+ key={i}+ style={{+ display: "flex",+ justifyContent: msg.isMe ? "flex-end" : "flex-start",+ marginBottom: 12,+ opacity: progress,+ transform: \`translateY(\${(1 - progress) * 30}px) scale(\${0.8 + progress * 0.2})\`,+ }}+ >+ <div+ style={{+ backgroundColor: msg.isMe ? "#25D366" : "#2a2a2a",+ color: "#fff",+ padding: "12px 18px",+ borderRadius: 18,+ fontSize: 24,+ fontFamily: "system-ui, sans-serif",+ maxWidth: 300,+ }}+ >+ {msg.text}+ </div>+ </div>+ );+ })}+ </div>+ </Remotion.AbsoluteFill>+ );+}`,+ },+ {+ id: "counter-animation",+ name: "Counter Animation",+ description: "Animated number counters with metrics",+ category: "Charts",+ durationInFrames: 150,+ fps: 30,+ code: `() => {+ const frame = Remotion.useCurrentFrame();+ const { fps, durationInFrames } = Remotion.useVideoConfig();++ const metrics = [+ { label: "Users", target: 10000, color: "#4f46e5" },+ { label: "Revenue", target: 50000, prefix: "$", color: "#10b981" },+ { label: "Growth", target: 127, suffix: "%", color: "#f59e0b" },+ ];++ const progress = Remotion.interpolate(+ frame,+ [0, durationInFrames * 0.7],+ [0, 1],+ { extrapolateRight: "clamp" }+ );++ return (+ <Remotion.AbsoluteFill+ style={{+ backgroundColor: "#0f0f0f",+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <div+ style={{+ display: "flex",+ gap: 60,+ }}+ >+ {metrics.map((metric, i) => {+ const staggeredProgress = Remotion.interpolate(+ progress,+ [i * 0.15, i * 0.15 + 0.7],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" }+ );++ const value = Math.round(metric.target * staggeredProgress);++ return (+ <div+ key={i}+ style={{+ textAlign: "center",+ opacity: Remotion.interpolate(staggeredProgress, [0, 0.2], [0, 1]),+ transform: \`translateY(\${(1 - staggeredProgress) * 20}px)\`,+ }}+ >+ <div+ style={{+ fontSize: 72,+ fontWeight: "bold",+ color: metric.color,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {metric.prefix || ""}{value.toLocaleString()}{metric.suffix || ""}+ </div>+ <div+ style={{+ fontSize: 24,+ color: "#888",+ marginTop: 8,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {metric.label}+ </div>+ </div>+ );+ })}+ </div>+ </Remotion.AbsoluteFill>+ );+}`,+ },+ {+ id: "histogram",+ name: "Histogram",+ description: "Animated bar chart with data visualization",+ category: "Charts",+ durationInFrames: 120,+ fps: 30,+ code: `() => {+ const frame = Remotion.useCurrentFrame();+ const { fps } = Remotion.useVideoConfig();++ const data = [+ { label: "Mon", value: 65, color: "#6366f1" },+ { label: "Tue", value: 85, color: "#8b5cf6" },+ { label: "Wed", value: 45, color: "#a855f7" },+ { label: "Thu", value: 95, color: "#d946ef" },+ { label: "Fri", value: 75, color: "#ec4899" },+ ];++ const maxValue = Math.max(...data.map(d => d.value));++ return (+ <Remotion.AbsoluteFill+ style={{+ backgroundColor: "#0a0a0a",+ justifyContent: "center",+ alignItems: "flex-end",+ padding: 60,+ paddingBottom: 100,+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "flex-end",+ gap: 24,+ height: 400,+ width: "100%",+ justifyContent: "center",+ }}+ >+ {data.map((item, i) => {+ const delay = i * 10;+ const progress = Remotion.spring({+ frame: frame - delay,+ fps,+ config: { damping: 15, stiffness: 100 },+ });++ const height = (item.value / maxValue) * 300 * progress;++ return (+ <div key={i} style={{ textAlign: "center" }}>+ <div+ style={{+ width: 80,+ height,+ backgroundColor: item.color,+ borderRadius: "8px 8px 0 0",+ display: "flex",+ justifyContent: "center",+ alignItems: "flex-start",+ paddingTop: 10,+ }}+ >+ <span+ style={{+ color: "#fff",+ fontSize: 18,+ fontWeight: "bold",+ opacity: progress,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {Math.round(item.value * progress)}+ </span>+ </div>+ <div+ style={{+ color: "#888",+ fontSize: 16,+ marginTop: 12,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {item.label}+ </div>+ </div>+ );+ })}+ </div>+ </Remotion.AbsoluteFill>+ );+}`,+ },+ {+ id: "progress-bar",+ name: "Progress Bar",+ description: "Animated progress bar from 0 to 100%",+ category: "Other",+ durationInFrames: 180,+ fps: 30,+ code: `() => {+ const frame = Remotion.useCurrentFrame();+ const { durationInFrames } = Remotion.useVideoConfig();++ const progress = Remotion.interpolate(+ frame,+ [0, durationInFrames * 0.8],+ [0, 100],+ { extrapolateRight: "clamp" }+ );++ const opacity = Remotion.interpolate(+ frame,+ [0, 20],+ [0, 1],+ { extrapolateRight: "clamp" }+ );++ return (+ <Remotion.AbsoluteFill+ style={{+ backgroundColor: "#1a1a1a",+ justifyContent: "center",+ alignItems: "center",+ opacity,+ }}+ >+ <div style={{ width: 600 }}>+ <div+ style={{+ display: "flex",+ justifyContent: "space-between",+ marginBottom: 16,+ }}+ >+ <span+ style={{+ color: "#fff",+ fontSize: 24,+ fontFamily: "system-ui, sans-serif",+ }}+ >+ Loading...+ </span>+ <span+ style={{+ color: "#10b981",+ fontSize: 24,+ fontWeight: "bold",+ fontFamily: "system-ui, sans-serif",+ }}+ >+ {Math.round(progress)}%+ </span>+ </div>+ <div+ style={{+ width: "100%",+ height: 24,+ backgroundColor: "#333",+ borderRadius: 12,+ overflow: "hidden",+ }}+ >+ <div+ style={{+ width: \`\${progress}%\`,+ height: "100%",+ background: "linear-gradient(90deg, #10b981, #34d399)",+ borderRadius: 12,+ transition: "width 0.1s ease-out",+ }}+ />+ </div>+ </div>+ </Remotion.AbsoluteFill>+ );+}`,+ },+];++export function getExampleById(id: string): RemotionExample | undefined {+ return examples.find((e) => e.id === id);+}++export function getExamplesByCategory(+ category: RemotionExample["category"]+): RemotionExample[] {+ return examples.filter((e) => e.category === category);+}diff --git a/packages/template-code-generation/styles/global.css b/packages/template-code-generation/styles/global.cssindex 7a4c3bb0ff..70ef8303f9 100644--- a/packages/template-code-generation/styles/global.css+++ b/packages/template-code-generation/styles/global.css@@ -50,6 +50,7 @@--radius-geist: var(--geist-border-radius);--font-geist: var(--geist-font);--animate-spinner: spinner 1.2s linear infinite;+ --animate-spin: spin 1s linear infinite;@keyframes spinner {0% {@@ -59,4 +60,16 @@opacity: 0.15;}}++ @keyframes spin {+ to {+ transform: rotate(360deg);+ }+ }+}++body {+ margin: 0;+ padding: 0;+ overflow: hidden;}