@revideo/create 0.5.10-alpha.1094 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/examples/avatar-with-background/package.json +8 -8
  2. package/examples/avatar-with-background/src/scenes/example.tsx +1 -0
  3. package/examples/default/package.json +8 -8
  4. package/examples/github-stars-celebration/package.json +7 -7
  5. package/examples/github-stars-celebration/src/scenes/example.tsx +2 -2
  6. package/examples/google-cloud-run-parallelized/render-orchestrator/package.json +21 -21
  7. package/examples/google-cloud-run-parallelized/render-worker/package.json +8 -8
  8. package/examples/marketing-templates/marketing-template/package.json +7 -7
  9. package/examples/marketing-templates/multiple-videos-in-one/package.json +7 -7
  10. package/examples/minimal-drag-drop/README.md +27 -0
  11. package/examples/minimal-drag-drop/next/app/api/render/route.ts +22 -0
  12. package/examples/minimal-drag-drop/next/app/globals.css +3 -0
  13. package/examples/minimal-drag-drop/next/app/layout.tsx +25 -0
  14. package/examples/minimal-drag-drop/next/app/page.tsx +277 -0
  15. package/examples/minimal-drag-drop/next/next-env.d.ts +5 -0
  16. package/examples/minimal-drag-drop/next/next.config.mjs +4 -0
  17. package/examples/minimal-drag-drop/next/package-lock.json +5577 -0
  18. package/examples/minimal-drag-drop/next/package.json +35 -0
  19. package/examples/minimal-drag-drop/next/postcss.config.js +6 -0
  20. package/examples/minimal-drag-drop/next/public/favicon.ico +0 -0
  21. package/examples/minimal-drag-drop/next/public/next.svg +1 -0
  22. package/examples/minimal-drag-drop/next/public/vercel.svg +1 -0
  23. package/examples/minimal-drag-drop/next/tailwind.config.ts +30 -0
  24. package/examples/minimal-drag-drop/next/tsconfig.json +26 -0
  25. package/examples/minimal-drag-drop/next/utils/parse.ts +35 -0
  26. package/examples/minimal-drag-drop/revideo/package-lock.json +3771 -0
  27. package/examples/minimal-drag-drop/revideo/package.json +24 -0
  28. package/examples/minimal-drag-drop/revideo/src/global.css +1 -0
  29. package/examples/minimal-drag-drop/revideo/src/project.meta +28 -0
  30. package/examples/minimal-drag-drop/revideo/src/project.ts +9 -0
  31. package/examples/minimal-drag-drop/revideo/src/render.ts +15 -0
  32. package/examples/minimal-drag-drop/revideo/src/revideo.d.ts +1 -0
  33. package/examples/minimal-drag-drop/revideo/src/scenes/example.meta +5 -0
  34. package/examples/minimal-drag-drop/revideo/src/scenes/example.tsx +44 -0
  35. package/examples/minimal-drag-drop/revideo/tsconfig.json +9 -0
  36. package/examples/minimal-drag-drop/revideo/vite.config.ts +6 -0
  37. package/examples/parallelized-aws-lambda/revideo-project/package.json +8 -11
  38. package/examples/parallelized-aws-lambda/revideo-project/src/lambda.ts +15 -2
  39. package/examples/parallelized-aws-lambda/revideo-project/src/render.ts +2 -1
  40. package/examples/parallelized-aws-lambda/revideo-project/src/scenes/example.tsx +1 -0
  41. package/examples/reddit-post-video/package.json +7 -7
  42. package/examples/reddit-post-video/src/project.meta +2 -2
  43. package/examples/rive-explanation-video/package.json +8 -8
  44. package/examples/saas-template/next/package.json +33 -33
  45. package/examples/saas-template/revideo/package.json +23 -23
  46. package/examples/stitching-videos/package.json +6 -6
  47. package/examples/stitching-videos/src/render.ts +2 -1
  48. package/examples/three-js-example/package-lock.json +41 -41
  49. package/examples/three-js-example/package.json +7 -7
  50. package/examples/youtube-shorts/README.md +7 -7
  51. package/examples/youtube-shorts/package-lock.json +332 -365
  52. package/examples/youtube-shorts/package.json +8 -8
  53. package/examples/youtube-shorts/src/get-assets.ts +34 -0
  54. package/examples/youtube-shorts/src/render.ts +4 -35
  55. package/examples/youtube-shorts/src/scenes/example.tsx +25 -12
  56. package/index.js +8 -1
  57. package/package.json +9 -9
  58. package/examples/avatar-with-background/package-lock.json +0 -3223
  59. package/examples/marketing-templates/marketing-template/package-lock.json +0 -3824
  60. package/examples/marketing-templates/multiple-videos-in-one/package-lock.json +0 -3824
  61. package/examples/rive-explanation-video/package-lock.json +0 -3706
  62. package/examples/stitching-videos/package-lock.json +0 -2801
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "next",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "dev": "next dev",
7
+ "build": "next build",
8
+ "start": "next start",
9
+ "lint": "next lint"
10
+ },
11
+ "dependencies": {
12
+ "@radix-ui/react-navigation-menu": "^1.1.4",
13
+ "@revideo/player-react": "0.5.10",
14
+ "@revideo/2d": "0.5.10",
15
+ "class-variance-authority": "^0.7.0",
16
+ "lucide-react": "^0.378.0",
17
+ "next": "14.2.3",
18
+ "p-limit": "^3",
19
+ "react": "^18",
20
+ "react-dom": "^18",
21
+ "tailwind-merge": "^2.3.0",
22
+ "tailwindcss-animate": "^1.0.7"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^20",
26
+ "@types/react": "^18",
27
+ "@types/react-dom": "^18",
28
+ "autoprefixer": "^10.4.19",
29
+ "eslint": "^8",
30
+ "eslint-config-next": "14.2.3",
31
+ "postcss": "^8",
32
+ "tailwindcss": "^3.4.3",
33
+ "typescript": "^5"
34
+ }
35
+ }
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ };
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3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3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>
@@ -0,0 +1,30 @@
1
+ /* eslint-disable naming-convention */
2
+ import type {Config} from 'tailwindcss';
3
+
4
+ const config: Config = {
5
+ content: [
6
+ './pages/**/*.{js,ts,jsx,tsx,mdx}',
7
+ './components/**/*.{js,ts,jsx,tsx,mdx}',
8
+ './app/**/*.{js,ts,jsx,tsx,mdx}',
9
+ ],
10
+ theme: {
11
+ extend: {
12
+ colors: {
13
+ gray: {
14
+ 50: '#FAFAFA',
15
+ 100: '#F3F3F3',
16
+ 200: '#E5E5E5',
17
+ 300: '#C7C7C7',
18
+ 400: '#ACACAC',
19
+ 500: '#808080',
20
+ 600: '#5F5F5F',
21
+ 700: '#4E4E4E',
22
+ 800: '#373737',
23
+ 900: '#2A2A2A',
24
+ 950: '#151515',
25
+ },
26
+ },
27
+ },
28
+ },
29
+ };
30
+ export default config;
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "lib": ["dom", "dom.iterable", "esnext"],
4
+ "allowJs": true,
5
+ "skipLibCheck": true,
6
+ "strict": true,
7
+ "noEmit": true,
8
+ "esModuleInterop": true,
9
+ "module": "esnext",
10
+ "moduleResolution": "bundler",
11
+ "resolveJsonModule": true,
12
+ "isolatedModules": true,
13
+ "jsx": "preserve",
14
+ "incremental": true,
15
+ "plugins": [
16
+ {
17
+ "name": "next"
18
+ }
19
+ ],
20
+ "paths": {
21
+ "@/*": ["./*"]
22
+ }
23
+ },
24
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25
+ "exclude": ["node_modules"]
26
+ }
@@ -0,0 +1,35 @@
1
+ export async function parseStream(
2
+ reader: ReadableStreamDefaultReader<Uint8Array>,
3
+ updateProgress: (progress: number) => void,
4
+ ) {
5
+ while (true) {
6
+ const {done, value} = await reader.read();
7
+
8
+ const decoded = new TextDecoder('utf-8').decode(value);
9
+ const split = decoded.split('\n');
10
+
11
+ if (done) {
12
+ break;
13
+ }
14
+
15
+ const event = split[0].slice(6).trim();
16
+ const data = split[1].slice(6).trim();
17
+
18
+ if (event === 'progress') {
19
+ const parsed = JSON.parse(data);
20
+ updateProgress(parsed.progress);
21
+ }
22
+
23
+ if (event === 'completed') {
24
+ const parsed = JSON.parse(data);
25
+ return parsed.downloadLink as string;
26
+ }
27
+
28
+ if (event === 'error') {
29
+ console.error(data);
30
+ break;
31
+ }
32
+ }
33
+
34
+ return '';
35
+ }