ugcinc-render 1.8.0 → 1.8.1

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/index.js CHANGED
@@ -2634,8 +2634,30 @@ var defaultVideoProps = {
2634
2634
  sources: {},
2635
2635
  scale: 1
2636
2636
  };
2637
+ var defaultAutoCaptionProps = {
2638
+ videoUrl: "",
2639
+ width: 1080,
2640
+ height: 1920,
2641
+ durationMs: 1e3,
2642
+ captions: [],
2643
+ style: {
2644
+ fontName: "Montserrat",
2645
+ fontSize: 80,
2646
+ fontWeight: "black",
2647
+ fontColor: "#FFFFFF",
2648
+ highlightColor: "#FFFF00",
2649
+ strokeColor: "#000000",
2650
+ strokeWidth: 3,
2651
+ position: "bottom",
2652
+ yOffset: 100,
2653
+ maxWidth: 90,
2654
+ enableAnimation: true,
2655
+ wordsPerPage: 3
2656
+ }
2657
+ };
2637
2658
  var ImageComp = ImageEditorComposition;
2638
2659
  var VideoComp = VideoEditorComposition;
2660
+ var AutoCaptionComp = AutoCaptionComposition;
2639
2661
  var calculateImageMetadata = async ({ props }) => {
2640
2662
  console.log("[calculateMetadata] Starting metadata calculation...");
2641
2663
  const canvasWidth = props.width ?? props.config?.width ?? 1080;
@@ -2711,6 +2733,18 @@ var RenderRoot = () => {
2711
2733
  height: 1920,
2712
2734
  defaultProps: defaultVideoProps
2713
2735
  }
2736
+ ),
2737
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2738
+ import_remotion7.Composition,
2739
+ {
2740
+ id: "AutoCaptionComposition",
2741
+ component: AutoCaptionComp,
2742
+ durationInFrames: 300,
2743
+ fps: 30,
2744
+ width: 1080,
2745
+ height: 1920,
2746
+ defaultProps: defaultAutoCaptionProps
2747
+ }
2714
2748
  )
2715
2749
  ] });
2716
2750
  };
package/dist/index.mjs CHANGED
@@ -2532,8 +2532,30 @@ var defaultVideoProps = {
2532
2532
  sources: {},
2533
2533
  scale: 1
2534
2534
  };
2535
+ var defaultAutoCaptionProps = {
2536
+ videoUrl: "",
2537
+ width: 1080,
2538
+ height: 1920,
2539
+ durationMs: 1e3,
2540
+ captions: [],
2541
+ style: {
2542
+ fontName: "Montserrat",
2543
+ fontSize: 80,
2544
+ fontWeight: "black",
2545
+ fontColor: "#FFFFFF",
2546
+ highlightColor: "#FFFF00",
2547
+ strokeColor: "#000000",
2548
+ strokeWidth: 3,
2549
+ position: "bottom",
2550
+ yOffset: 100,
2551
+ maxWidth: 90,
2552
+ enableAnimation: true,
2553
+ wordsPerPage: 3
2554
+ }
2555
+ };
2535
2556
  var ImageComp = ImageEditorComposition;
2536
2557
  var VideoComp = VideoEditorComposition;
2558
+ var AutoCaptionComp = AutoCaptionComposition;
2537
2559
  var calculateImageMetadata = async ({ props }) => {
2538
2560
  console.log("[calculateMetadata] Starting metadata calculation...");
2539
2561
  const canvasWidth = props.width ?? props.config?.width ?? 1080;
@@ -2609,6 +2631,18 @@ var RenderRoot = () => {
2609
2631
  height: 1920,
2610
2632
  defaultProps: defaultVideoProps
2611
2633
  }
2634
+ ),
2635
+ /* @__PURE__ */ jsx8(
2636
+ Composition,
2637
+ {
2638
+ id: "AutoCaptionComposition",
2639
+ component: AutoCaptionComp,
2640
+ durationInFrames: 300,
2641
+ fps: 30,
2642
+ width: 1080,
2643
+ height: 1920,
2644
+ defaultProps: defaultAutoCaptionProps
2645
+ }
2612
2646
  )
2613
2647
  ] });
2614
2648
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Unified rendering package for UGC Inc - shared types, components, and compositions for pixel-perfect client/server rendering",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",