@warpgogol/forge 0.19.6 → 0.20.0
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/package.json
CHANGED
|
@@ -9,25 +9,38 @@
|
|
|
9
9
|
- Captions: accessibility captions for speech audio
|
|
10
10
|
Run `editframe preview` to preview, `editframe render` to produce output.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
Configuration,
|
|
14
|
+
TimelineRoot,
|
|
15
|
+
Timegroup,
|
|
16
|
+
Video,
|
|
17
|
+
Text,
|
|
18
|
+
Audio,
|
|
19
|
+
Captions,
|
|
20
|
+
Workbench,
|
|
21
|
+
} from "@editframe/react";
|
|
13
22
|
|
|
14
23
|
export default function Composition() {
|
|
15
24
|
return (
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
<Configuration>
|
|
26
|
+
<Workbench resolution="1920x1080">
|
|
27
|
+
<TimelineRoot>
|
|
28
|
+
<Timegroup duration="10s">
|
|
29
|
+
<Video src="assets/background.mp4" fit="contain" duration="10s" />
|
|
30
|
+
<Text
|
|
31
|
+
text="Your text here"
|
|
32
|
+
x="50%"
|
|
33
|
+
y="50%"
|
|
34
|
+
fontSize="48px"
|
|
35
|
+
color="white"
|
|
36
|
+
textAlign="center"
|
|
37
|
+
duration="5s"
|
|
38
|
+
/>
|
|
39
|
+
<Audio src="assets/narration.mp3" />
|
|
40
|
+
<Captions src="assets/captions.vtt" />
|
|
41
|
+
</Timegroup>
|
|
42
|
+
</TimelineRoot>
|
|
43
|
+
</Workbench>
|
|
44
|
+
</Configuration>
|
|
32
45
|
);
|
|
33
46
|
}
|
package/profiles/editframe.yaml
CHANGED
|
@@ -173,6 +173,9 @@ workspace:
|
|
|
173
173
|
- "compositions/*"
|
|
174
174
|
- "packages/*"
|
|
175
175
|
- "services/*"
|
|
176
|
+
allowBuilds:
|
|
177
|
+
"@editframe/cli": true
|
|
178
|
+
node-av: true
|
|
176
179
|
- path: turbo.json
|
|
177
180
|
content: |
|
|
178
181
|
{
|
|
@@ -390,6 +393,8 @@ firstWorkspace:
|
|
|
390
393
|
content: |
|
|
391
394
|
import React from "react";
|
|
392
395
|
import { createRoot } from "react-dom/client";
|
|
396
|
+
import "@editframe/elements/gui";
|
|
397
|
+
import "@editframe/elements/styles.css";
|
|
393
398
|
import Composition from "../composition";
|
|
394
399
|
|
|
395
400
|
const root = document.getElementById("root");
|
|
@@ -404,10 +409,14 @@ firstWorkspace:
|
|
|
404
409
|
content: |
|
|
405
410
|
import { defineConfig } from "vite";
|
|
406
411
|
import react from "@vitejs/plugin-react";
|
|
407
|
-
import editframePlugin from "@editframe/vite-plugin";
|
|
412
|
+
import { vitePluginEditframe as editframePlugin } from "@editframe/vite-plugin";
|
|
413
|
+
import path from "node:path";
|
|
414
|
+
|
|
415
|
+
const root = import.meta.dirname;
|
|
416
|
+
const cacheRoot = path.join(root, ".ef-cache");
|
|
408
417
|
|
|
409
418
|
export default defineConfig({
|
|
410
|
-
plugins: [react(), editframePlugin()],
|
|
419
|
+
plugins: [react(), editframePlugin({ root, cacheRoot })],
|
|
411
420
|
});
|
|
412
421
|
- path: tsconfig.json
|
|
413
422
|
content: |
|
|
@@ -432,7 +441,7 @@ firstWorkspace:
|
|
|
432
441
|
This file declares a video composition using @editframe/react components.
|
|
433
442
|
Run `editframe preview` to preview, `editframe render` to produce output.
|
|
434
443
|
*/
|
|
435
|
-
import { TimelineRoot, Timegroup, Text } from "@editframe/react";
|
|
444
|
+
import { Configuration, TimelineRoot, Timegroup, Text, Workbench } from "@editframe/react";
|
|
436
445
|
|
|
437
446
|
function Timeline({ id }: { id: string }) {
|
|
438
447
|
return (
|
|
@@ -451,10 +460,16 @@ firstWorkspace:
|
|
|
451
460
|
}
|
|
452
461
|
|
|
453
462
|
export default function Composition() {
|
|
454
|
-
return
|
|
463
|
+
return (
|
|
464
|
+
<Configuration>
|
|
465
|
+
<Workbench resolution="1920x1080">
|
|
466
|
+
<TimelineRoot id="root" component={Timeline} />
|
|
467
|
+
</Workbench>
|
|
468
|
+
</Configuration>
|
|
469
|
+
);
|
|
455
470
|
}
|
|
456
471
|
install:
|
|
457
|
-
- pnpm add -D @editframe/react @editframe/vite-plugin @editframe/dev-server react react-dom typescript @types/react @types/react-dom vite @vitejs/plugin-react tailwindcss @tailwindcss/vite vitest
|
|
472
|
+
- pnpm add -D @editframe/react @editframe/elements @editframe/vite-plugin @editframe/dev-server react react-dom typescript @types/react @types/react-dom vite @vitejs/plugin-react tailwindcss @tailwindcss/vite vitest
|
|
458
473
|
templates:
|
|
459
474
|
- id: react
|
|
460
475
|
default: true
|
|
@@ -492,6 +507,8 @@ templates:
|
|
|
492
507
|
content: |
|
|
493
508
|
import React from "react";
|
|
494
509
|
import { createRoot } from "react-dom/client";
|
|
510
|
+
import "@editframe/elements/gui";
|
|
511
|
+
import "@editframe/elements/styles.css";
|
|
495
512
|
import Composition from "../composition";
|
|
496
513
|
|
|
497
514
|
const root = document.getElementById("root");
|
|
@@ -506,10 +523,14 @@ templates:
|
|
|
506
523
|
content: |
|
|
507
524
|
import { defineConfig } from "vite";
|
|
508
525
|
import react from "@vitejs/plugin-react";
|
|
509
|
-
import editframePlugin from "@editframe/vite-plugin";
|
|
526
|
+
import { vitePluginEditframe as editframePlugin } from "@editframe/vite-plugin";
|
|
527
|
+
import path from "node:path";
|
|
528
|
+
|
|
529
|
+
const root = import.meta.dirname;
|
|
530
|
+
const cacheRoot = path.join(root, ".ef-cache");
|
|
510
531
|
|
|
511
532
|
export default defineConfig({
|
|
512
|
-
plugins: [react(), editframePlugin()],
|
|
533
|
+
plugins: [react(), editframePlugin({ root, cacheRoot })],
|
|
513
534
|
});
|
|
514
535
|
- path: tsconfig.json
|
|
515
536
|
content: |
|
|
@@ -534,7 +555,7 @@ templates:
|
|
|
534
555
|
This file declares a video composition using @editframe/react components.
|
|
535
556
|
Run `editframe preview` to preview, `editframe render` to produce output.
|
|
536
557
|
*/
|
|
537
|
-
import { TimelineRoot, Timegroup, Text } from "@editframe/react";
|
|
558
|
+
import { Configuration, TimelineRoot, Timegroup, Text, Workbench } from "@editframe/react";
|
|
538
559
|
|
|
539
560
|
function Timeline({ id }: { id: string }) {
|
|
540
561
|
return (
|
|
@@ -553,10 +574,16 @@ templates:
|
|
|
553
574
|
}
|
|
554
575
|
|
|
555
576
|
export default function Composition() {
|
|
556
|
-
return
|
|
577
|
+
return (
|
|
578
|
+
<Configuration>
|
|
579
|
+
<Workbench resolution="1920x1080">
|
|
580
|
+
<TimelineRoot id="root" component={Timeline} />
|
|
581
|
+
</Workbench>
|
|
582
|
+
</Configuration>
|
|
583
|
+
);
|
|
557
584
|
}
|
|
558
585
|
install:
|
|
559
|
-
- pnpm add -D @editframe/react @editframe/vite-plugin @editframe/dev-server react react-dom typescript @types/react @types/react-dom vite @vitejs/plugin-react tailwindcss @tailwindcss/vite vitest
|
|
586
|
+
- pnpm add -D @editframe/react @editframe/elements @editframe/vite-plugin @editframe/dev-server react react-dom typescript @types/react @types/react-dom vite @vitejs/plugin-react tailwindcss @tailwindcss/vite vitest
|
|
560
587
|
- id: html
|
|
561
588
|
firstWorkspace:
|
|
562
589
|
path: compositions/my-first-video
|