@editframe/create 0.51.3 → 0.51.5
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/package.json +2 -2
- package/dist/templates/nextjs/src/app/Video.tsx +23 -0
- package/dist/templates/nextjs/src/app/layout.tsx +1 -0
- package/dist/templates/nextjs/src/app/page.tsx +3 -37
- package/dist/templates/nextjs/tsconfig.json +2 -2
- 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.5",
|
|
11
|
+
"@editframe/elements": "0.51.5",
|
|
12
|
+
"@editframe/vite-plugin": "0.51.5",
|
|
13
13
|
"@tailwindcss/vite": "^4.0.0",
|
|
14
14
|
"tailwindcss": "^4.0.0",
|
|
15
15
|
"vite": "^8.0.0",
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"dev": "next dev"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@editframe/
|
|
11
|
-
"@editframe/
|
|
10
|
+
"@editframe/nextjs-plugin": "0.51.5",
|
|
11
|
+
"@editframe/react": "0.51.5",
|
|
12
12
|
"next": "^16.0.0",
|
|
13
13
|
"react": "^19.0.0",
|
|
14
14
|
"react-dom": "^19.0.0"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Timegroup, Text } from "@editframe/react";
|
|
3
|
+
|
|
4
|
+
export const Video = () => {
|
|
5
|
+
return (
|
|
6
|
+
<Timegroup
|
|
7
|
+
workbench
|
|
8
|
+
className="w-[1920px] h-[1080px] bg-black flex items-center justify-center relative overflow-hidden"
|
|
9
|
+
mode="sequence"
|
|
10
|
+
>
|
|
11
|
+
{/* Add your composition here */}
|
|
12
|
+
<Timegroup
|
|
13
|
+
mode="fixed"
|
|
14
|
+
duration="5s"
|
|
15
|
+
className="absolute w-full h-full flex items-center justify-center"
|
|
16
|
+
>
|
|
17
|
+
<Text duration="5s" className="text-white text-4xl">
|
|
18
|
+
Your video starts here
|
|
19
|
+
</Text>
|
|
20
|
+
</Timegroup>
|
|
21
|
+
</Timegroup>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { TimelineRoot } from "@editframe/react";
|
|
4
|
+
import { Video } from "./Video";
|
|
4
5
|
|
|
5
6
|
export default function Home() {
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
import("@editframe/elements");
|
|
8
|
-
}, []);
|
|
9
|
-
|
|
10
7
|
return (
|
|
11
8
|
<main
|
|
12
9
|
style={{
|
|
@@ -17,38 +14,7 @@ export default function Home() {
|
|
|
17
14
|
background: "#0f172a",
|
|
18
15
|
}}
|
|
19
16
|
>
|
|
20
|
-
|
|
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>
|
|
17
|
+
<TimelineRoot id="root" component={Video} />
|
|
52
18
|
</main>
|
|
53
19
|
);
|
|
54
20
|
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"moduleResolution": "bundler",
|
|
12
12
|
"resolveJsonModule": true,
|
|
13
13
|
"isolatedModules": true,
|
|
14
|
-
"jsx": "
|
|
14
|
+
"jsx": "react-jsx",
|
|
15
15
|
"incremental": true,
|
|
16
16
|
"plugins": [{ "name": "next" }],
|
|
17
17
|
"paths": { "@/*": ["./src/*"] }
|
|
18
18
|
},
|
|
19
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
19
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],
|
|
20
20
|
"exclude": ["node_modules"]
|
|
21
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.5",
|
|
11
|
+
"@editframe/react": "0.51.5",
|
|
12
|
+
"@editframe/vite-plugin": "0.51.5",
|
|
13
13
|
"@tailwindcss/vite": "^4.0.0",
|
|
14
14
|
"@vitejs/plugin-react": "^6.0.0",
|
|
15
15
|
"tailwindcss": "^4.0.0",
|