@editframe/create 0.51.2 → 0.51.3
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.
- package/dist/templates/html/package.json +3 -3
- package/dist/templates/nextjs/AGENTS.md +14 -0
- package/dist/templates/nextjs/next.config.mjs +15 -0
- package/dist/templates/nextjs/package.json +22 -0
- package/dist/templates/nextjs/src/app/layout.tsx +17 -0
- package/dist/templates/nextjs/src/app/page.tsx +54 -0
- package/dist/templates/nextjs/src/assets/.gitkeep +0 -0
- package/dist/templates/nextjs/tsconfig.json +21 -0
- package/dist/templates/react/package.json +3 -3
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"start": "editframe preview"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@editframe/cli": "0.51.
|
|
11
|
-
"@editframe/elements": "0.51.
|
|
12
|
-
"@editframe/vite-plugin": "0.51.
|
|
10
|
+
"@editframe/cli": "0.51.3",
|
|
11
|
+
"@editframe/elements": "0.51.3",
|
|
12
|
+
"@editframe/vite-plugin": "0.51.3",
|
|
13
13
|
"@tailwindcss/vite": "^4.0.0",
|
|
14
14
|
"tailwindcss": "^4.0.0",
|
|
15
15
|
"vite": "^8.0.0",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Editframe Project
|
|
2
|
+
|
|
3
|
+
This is an Editframe video composition project using Next.js. Use the skills in `.claude/skills/` or `.agents/skills/` for guidance.
|
|
4
|
+
|
|
5
|
+
## Agent Workflow
|
|
6
|
+
|
|
7
|
+
- To preview: `npm run dev` — opens the workbench at http://localhost:3000
|
|
8
|
+
- Edit `src/app/page.tsx` to build your composition using `<ef-*>` web components
|
|
9
|
+
- Place local video/audio/image assets in `public/assets/` — they are JIT-transcoded automatically
|
|
10
|
+
- Do not scaffold a new project
|
|
11
|
+
|
|
12
|
+
## Docs
|
|
13
|
+
|
|
14
|
+
https://editframe.com/docs
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { withEditframe } from "@editframe/nextjs-plugin";
|
|
2
|
+
|
|
3
|
+
// Ensure ffprobe/ffmpeg are reachable — Homebrew installs to /opt/homebrew/bin
|
|
4
|
+
process.env.PATH = `/opt/homebrew/bin:${process.env.PATH}`;
|
|
5
|
+
|
|
6
|
+
/** @type {import('next').NextConfig} */
|
|
7
|
+
const nextConfig = {};
|
|
8
|
+
|
|
9
|
+
export default withEditframe(
|
|
10
|
+
{
|
|
11
|
+
root: "./public",
|
|
12
|
+
cacheRoot: "./cache",
|
|
13
|
+
},
|
|
14
|
+
nextConfig,
|
|
15
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "editframe-project",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "next dev",
|
|
7
|
+
"dev": "next dev"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@editframe/elements": "0.51.3",
|
|
11
|
+
"@editframe/nextjs-plugin": "0.51.3",
|
|
12
|
+
"next": "^16.0.0",
|
|
13
|
+
"react": "^19.0.0",
|
|
14
|
+
"react-dom": "^19.0.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "^22.0.0",
|
|
18
|
+
"@types/react": "^19.0.0",
|
|
19
|
+
"@types/react-dom": "^19.0.0",
|
|
20
|
+
"typescript": "^5.0.0"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
|
|
3
|
+
export const metadata: Metadata = {
|
|
4
|
+
title: "Editframe Project",
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export default function RootLayout({
|
|
8
|
+
children,
|
|
9
|
+
}: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}) {
|
|
12
|
+
return (
|
|
13
|
+
<html lang="en">
|
|
14
|
+
<body>{children}</body>
|
|
15
|
+
</html>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
|
|
5
|
+
export default function Home() {
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
import("@editframe/elements");
|
|
8
|
+
}, []);
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<main
|
|
12
|
+
style={{
|
|
13
|
+
display: "flex",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
justifyContent: "center",
|
|
16
|
+
minHeight: "100vh",
|
|
17
|
+
background: "#0f172a",
|
|
18
|
+
}}
|
|
19
|
+
>
|
|
20
|
+
{/* @ts-expect-error custom element */}
|
|
21
|
+
<ef-workbench>
|
|
22
|
+
{/* @ts-expect-error custom element */}
|
|
23
|
+
<ef-timegroup
|
|
24
|
+
mode="sequence"
|
|
25
|
+
style={{ width: "1920px", height: "1080px" }}
|
|
26
|
+
>
|
|
27
|
+
{/* Add your composition here */}
|
|
28
|
+
{/* @ts-expect-error custom element */}
|
|
29
|
+
<ef-timegroup
|
|
30
|
+
mode="fixed"
|
|
31
|
+
duration="5s"
|
|
32
|
+
style={{
|
|
33
|
+
position: "absolute",
|
|
34
|
+
width: "100%",
|
|
35
|
+
height: "100%",
|
|
36
|
+
display: "flex",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
justifyContent: "center",
|
|
39
|
+
background: "black",
|
|
40
|
+
}}
|
|
41
|
+
>
|
|
42
|
+
{/* @ts-expect-error custom element */}
|
|
43
|
+
<ef-text duration="5s" style={{ color: "white", fontSize: "4rem" }}>
|
|
44
|
+
Your video starts here
|
|
45
|
+
</ef-text>
|
|
46
|
+
{/* @ts-expect-error custom element */}
|
|
47
|
+
</ef-timegroup>
|
|
48
|
+
{/* @ts-expect-error custom element */}
|
|
49
|
+
</ef-timegroup>
|
|
50
|
+
{/* @ts-expect-error custom element */}
|
|
51
|
+
</ef-workbench>
|
|
52
|
+
</main>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"plugins": [{ "name": "next" }],
|
|
17
|
+
"paths": { "@/*": ["./src/*"] }
|
|
18
|
+
},
|
|
19
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
20
|
+
"exclude": ["node_modules"]
|
|
21
|
+
}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"start": "editframe preview"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@editframe/cli": "0.51.
|
|
11
|
-
"@editframe/react": "0.51.
|
|
12
|
-
"@editframe/vite-plugin": "0.51.
|
|
10
|
+
"@editframe/cli": "0.51.3",
|
|
11
|
+
"@editframe/react": "0.51.3",
|
|
12
|
+
"@editframe/vite-plugin": "0.51.3",
|
|
13
13
|
"@tailwindcss/vite": "^4.0.0",
|
|
14
14
|
"@vitejs/plugin-react": "^6.0.0",
|
|
15
15
|
"tailwindcss": "^4.0.0",
|